doc: recommendations on gettext version
[gnulib.git] / ChangeLog
1 2012-05-08  Eric Blake  <eblake@redhat.com>
2
3         doc: recommendations on gettext version
4         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
5         choice between versions.
6         * DEPENDENCIES (gettext): Cover both approaches.
7
8 2012-05-08  Jim Meyering  <meyering@redhat.com>
9
10         init.sh: explain why EXEEXT support uses aliases rather than functions
11         * tests/init.sh: Add a comment.
12
13         init.sh: don't let bash aliases interfere with tests
14         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
15         is bash.  This avoids problems for those who alias standard commands to
16         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
17         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
18
19 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20
21         stdint: be more consistent with glibc, SunOS libc
22         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
23         (gl_int_fast16_t, gl_uint_fast16_t)
24         (gl_int_fast32_t, gl_uint_fast32_t)
25         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
26         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
27         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
28         Be consistent with glibc by default, and with SunOS 5.10 and later
29         if __sun is defined.  This lessens the likelihood of clashes if
30         code compiled for older hosts is combined with code compiled for
31         newer ones.  Problem reported by Niels Möller in
32         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
33
34 2012-05-07  Eric Blake  <eblake@redhat.com>
35
36         isatty: relax license to LGPLv2+
37         * modules/isatty (License): Relax license.
38
39 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
40
41         stat-size: comment fix
42         * lib/stat-size.h: Remove obsolete comment about indenting.
43
44 2012-05-06  Bruno Haible  <bruno@clisp.org>
45
46         Tests for module 'sh-quote'.
47         * modules/sh-quote-tests: New file.
48         * tests/test-sh-quote.c: New file.
49
50 2012-05-06  Bruno Haible  <bruno@clisp.org>
51
52         sh-quote: Improve shell_quote_argv's signature.
53         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
54         * lib/sh-quote.c (shell_quote_argv): Likewise.
55
56 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
57
58         stdint: document issues with int_fast8_t etc.
59         * doc/posix-headers/stdint.texi (stdint.h): Say that other
60         stdint.h substitutes may define these types differently.  See
61         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
62
63 2012-05-05  Bruno Haible  <bruno@clisp.org>
64
65         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
66         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
67         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
68         or 'guessing no (mishandles large arguments)'.
69
70 2012-05-05  Bruno Haible  <bruno@clisp.org>
71
72         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
73         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
74         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
75         set gl_cv_func_link_follows_symlink to "guessing no".
76
77 2012-05-05  Bruno Haible  <bruno@clisp.org>
78
79         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
80         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
81         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
82         "guessing no".
83         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
84
85 2012-05-05  Bruno Haible  <bruno@clisp.org>
86
87         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
88         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
89         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
90         set gl_cv_struct_dirent_d_ino to "guessing yes".
91
92 2012-05-05  Bruno Haible  <bruno@clisp.org>
93
94         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
95         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
96         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
97         "guessing yes".
98
99 2012-05-05  Bruno Haible  <bruno@clisp.org>
100
101         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
102         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
103         compiling to a glibc system, set gl_cv_func_signbit and
104         gl_cv_func_signbit_gcc to "guessing yes".
105
106 2012-05-05  Bruno Haible  <bruno@clisp.org>
107
108         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
109         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
110         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
111         to "guessing yes".
112         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
113         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
114
115 2012-05-05  Bruno Haible  <bruno@clisp.org>
116
117         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
118         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
119         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
120         gl_cv_func_realpath_works to "guessing yes".
121
122 2012-05-05  Bruno Haible  <bruno@clisp.org>
123
124         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
125         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
126         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
127
128 2012-05-04  Bruno Haible  <bruno@clisp.org>
129
130         Tweak last commit.
131         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
132         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
133
134 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
135
136         unistd_h: make it easier to avoid sys_types_h
137         This is useful for Emacs, which has its own method of porting to
138         Windows, and which therefore does not need the sys_types_h module.
139         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
140         code moved here from gl_SYS_TYPES_H.
141         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
142         using the code directly.
143         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
144         gl_SYS_TYPES_H.
145         * modules/sys_types (Files):
146         * modules/unistd (Files): Add m4/off_t.m4.
147
148 2012-05-03  Bruno Haible  <bruno@clisp.org>
149
150         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
151         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
152         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
153         "guessing yes" or "guessing no".
154         (gl_FUNC_LSTAT): Update.
155         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
156         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
157         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
158
159 2012-05-03  Bruno Haible  <bruno@clisp.org>
160
161         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
162         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
163         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
164         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
165         cross-compiling, choose the first alternative on glibc systems.
166         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
167
168 2012-05-03  Bruno Haible  <bruno@clisp.org>
169
170         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
171         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
172         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
173
174 2012-05-03  Bruno Haible  <bruno@clisp.org>
175
176         chown: Avoid "guessing no" when cross-compiling to glibc systems.
177         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
178
179 2012-05-03  Bruno Haible  <bruno@clisp.org>
180
181         Avoid "guessing no" guesses when cross-compiling to glibc systems.
182         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
183         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
184         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
185         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
186         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
187         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
188         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
189         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
190         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
191         compiling to glibc systems, set gl_cv_func_chown_slash_works,
192         gl_cv_func_chown_ctime_works to "guessing yes".
193         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
194         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
195         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
196         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
197         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
198         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
199         compiling to glibc systems, set gl_cv_func_open_directory_works to
200         "guessing yes".
201         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
202         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
203         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
204         "guessing yes".
205         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
206         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
207         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
208         compiling to glibc systems, set gl_cv_func_floorf_ieee to
209         "guessing yes".
210         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
211         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
212         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
213         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
214         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
215         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
216         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
217         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
218         "guessing yes".
219         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
220         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
221         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
222         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
223         "guessing yes".
224         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
225         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
226         "guessing yes".
227         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
228         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
229         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
230         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
231         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
232         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
233         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
234         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
235         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
236         compiling to glibc systems, set gl_cv_func_log10f_ieee to
237         "guessing yes".
238         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
239         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
240         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
241         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
242         "guessing yes".
243         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
244         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
245         "guessing yes".
246         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
247         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
248         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
249         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
250         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
251         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
252         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
253         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
254         compiling to glibc systems, set gl_cv_func_mkfifo_works to
255         "guessing yes".
256         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
257         compiling to glibc systems, set gl_cv_func_mknod_works to
258         "guessing yes".
259         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
260         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
261         "guessing yes".
262         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
263         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
264         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
265         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
266         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
267         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
268         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
269         compiling to glibc systems, set gl_cv_func_svid_putenv to
270         "guessing yes".
271         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
272         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
273         "guessing yes".
274         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
275         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
276         "guessing yes".
277         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
278         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
279         to "guessing yes".
280         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
281         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
282         to "guessing yes".
283         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
284         compiling to glibc systems, set gl_cv_func_rmdir_works to
285         "guessing yes".
286         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
287         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
288         gl_cv_func_unlink_parent_fails to "guessing yes".
289         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
290         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
291         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
292         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
293         gl_cv_func_rename_dest_works to "guessing yes".
294         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
295         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
296         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
297         compiling to glibc systems, set gl_cv_func_roundf_ieee to
298         "guessing yes".
299         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
300         compiling to glibc systems, set gl_cv_func_roundl_ieee to
301         "guessing yes".
302         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
303         compiling to glibc systems, set gl_cv_func_setenv_works to
304         "guessing yes".
305         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
306         compiling to glibc systems, set gl_cv_func_unsetenv_works to
307         "guessing yes".
308         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
309         compiling to glibc systems, set gl_cv_func_sleep_works to
310         "guessing yes".
311         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
312         compiling to glibc systems, set gl_cv_func_stat_file_slash to
313         "guessing yes".
314         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
315         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
316         "guessing yes".
317         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
318         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
319         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
320         compiling to glibc systems, set gl_cv_func_truncf_ieee to
321         "guessing yes".
322         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
323         compiling to glibc systems, set gl_cv_func_truncl_ieee to
324         "guessing yes".
325         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
326         compiling to glibc systems, set gl_cv_func_usleep_works to
327         "guessing yes".
328         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
329         compiling to glibc systems, set gl_cv_func_futimesat_works to
330         "guessing yes".
331
332 2012-05-03  Bruno Haible  <bruno@clisp.org>
333
334         Say "guessing yes" or "guessing no" when cross-compiling.
335         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
336         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
337         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
338         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
339         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
340         am_cv_func_working_getline to "guessing yes" or "guessing no".
341         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
342         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
343         (gl_FUNC_MEMMEM): When cross-compiling, set
344         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
345         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
346         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
348         set gl_cv_func_strcasestr_works_always to "guessing yes" or
349         "guessing no".
350         (gl_FUNC_STRCASESTR): When cross-compiling, set
351         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
352         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
353         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
354         (gl_FUNC_STRSTR): When cross-compiling, set
355         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
356         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
357         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
358         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
359         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
360
361 2012-05-01  Bruno Haible  <bruno@clisp.org>
362
363         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
364         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
365         * build-aux/reloc-ldflags: Likewise.
366         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
367
368 2012-05-01  Bruno Haible  <bruno@clisp.org>
369
370         gnulib-tool: Remove transitional code.
371         * gnulib-tool: Don't warn about --import with 0 arguments any more.
372         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
373
374 2012-05-01  Bruno Haible  <bruno@clisp.org>
375
376         getcwd: Fix misindentation.
377         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
378
379 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
380
381         exclude: process exclude and include directives in order
382         This restores the pre-2009 behavior, and is part of a fix of a
383         grep bug reported by Quentin Arce in
384         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
385         * lib/exclude.c (struct exclude): Remove 'tail' member.
386         (new_exclude_segment): Prepend the new segment instead of appending.
387         Return void, since that's now more convenient.
388         (file_pattern_matches): Renamed from excluded_file_pattern_p.
389         (file_name_matches): Renamed from excluded_file_name_p.
390         (file_pattern_matches, file_name_matches):
391         Return true if the pattern matches, not if it excludes.
392         All callers changed.
393         (excluded_file_name): Process the list in reverse order;
394         since the list is now reversed this restores the pre-2009 behavior.
395         (add_exclude): Adjust to new reversed-order list.  Use local var
396         rather than macro, for clarity.
397         * tests/test-exclude7.sh: Adjust to corrected behavior.
398
399         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
400         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
401         it's not possible here.  Handle the case of \ at end of pattern
402         without dumping core.
403         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
404
405         _Noreturn: future-proof non-GNU and non-MSVC compilers
406         * build-aux/snippet/_Noreturn.h (_Noreturn):
407         * m4/gnulib-common.m4 (gl_COMMON_BODY):
408         Do not define _Noreturn if __STDC_VERSION__ indicates this is
409         C11 or later.  This is more likely to work with random future C
410         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
411         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
412
413         exclude: handle wildcards with FNM_EXTMATCH
414         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
415         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
416         comment that "has wildcards" really means "has or may have
417         wildcards".  Simplify by avoiding the need to call strcspn.
418
419 2012-04-29  Bruno Haible  <bruno@clisp.org>
420
421         gnulib-tool: Fix list of authors.
422         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
423
424 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
425
426         bootstrap: support Automake-NG in $buildreq
427         * bootstrap (check_versions): Handle automake and aclocal from
428         Automake-NG specially.  They can be specified as respectively
429         the "automake-ng" and "aclocal-ng" requirements.
430
431 2012-04-25  Eric Blake  <eblake@redhat.com>
432
433         bootstrap: only force latest Makefile.in.in for gettext module
434         * build-aux/bootstrap (with_gettext): Only install latest
435         Makefile.in.in for projects requesting bleeding edge gettext.
436
437 2012-04-22  Bruno Haible  <bruno@clisp.org>
438
439         doc: Mention reason for replacement on glibc/Linux systems.
440         * doc/posix-functions/dprintf.texi: Mention the problem with special
441         'long double' values.
442         * doc/posix-functions/fprintf.texi: Likewise.
443         * doc/posix-functions/printf.texi: Likewise.
444         * doc/posix-functions/snprintf.texi: Likewise.
445         * doc/posix-functions/sprintf.texi: Likewise.
446         * doc/posix-functions/vdprintf.texi: Likewise.
447         * doc/posix-functions/vfprintf.texi: Likewise.
448         * doc/posix-functions/vprintf.texi: Likewise.
449         * doc/posix-functions/vsnprintf.texi: Likewise.
450         * doc/posix-functions/vsprintf.texi: Likewise.
451         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
452         platforms with F_DUPFD_CLOEXEC problems.
453         * doc/posix-functions/glob.texi: Mention which platforms are affected
454         by the problem with symbolic links.
455         * doc/posix-functions/linkat.texi: Mention the problem with
456         AT_SYMLINK_FOLLOW on Linux.
457
458 2012-04-22  Bruno Haible  <bruno@clisp.org>
459
460         pwrite: Don't replace on all platforms.
461         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
462
463 2012-04-22  Bruno Haible  <bruno@clisp.org>
464
465         rint* tests: Avoid gcc warnings.
466         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
467         * tests/test-rintf.c (INFINITY, NAN): Likewise.
468         * tests/test-rintl.c (INFINITY, NAN): Likewise.
469
470 2012-04-21  Bruno Haible  <bruno@clisp.org>
471
472         users.txt: Update.
473         * users.txt: Add freedink, wdiff. Update URLs for projects that have
474         switched from CVS to git, bzr, or svn.
475
476 2012-04-21  Bruno Haible  <bruno@clisp.org>
477
478         Large File Support for native Windows platforms.
479
480         * m4/largefile.m4 (gl_LARGEFILE): New macro.
481         * modules/largefile (configure.ac): Require gl_LARGEFILE.
482
483         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
484         type.
485         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
486         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
487         * doc/posix-headers/sys_types.texi: Mention the effect of the
488         'largefile' module.
489
490         * lib/fcntl.in.h: Add comments about off_t.
491         * modules/fcntl-h (Depends-on): Add sys_types.
492
493         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
494         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
495         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
496         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
497         * modules/unistd (Depends-on): Add sys_types.
498         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
499
500         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
501         instead of lseek.
502         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
503         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
504         * modules/lseek (Depends-on): Add sys_types.
505
506         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
507         msvc-nothrow.h.
508         (SetFileSize): New function.
509         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
510         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
511         if Large File Support is requested.
512         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
513         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
514
515         * lib/stdio.in.h: Add comments about off_t.
516         * modules/stdio (Depends-on): Add sys_types.
517
518         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
519         instead of ftello.
520         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
521         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
522         (gl_PREREQ_FTELLO): New macro.
523         * modules/ftello (Depends-on): Add sys_types.
524         (configure.ac): Incoke gl_PREREQ_FTELLO.
525
526         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
527         instead of fseeko.
528         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
529         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
530         (gl_PREREQ_FSEEKO): New macro.
531         * modules/fseeko (Depends-on): Add sys_types.
532         (configure.ac): Invoke gl_PREREQ_FSEEKO.
533
534         * lib/sys_stat.in.h: Add comments about off_t.
535         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
536         64-bit integer for st_size in 'struct stat'.
537         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
538         Define _GL_WINDOWS_64_BIT_ST_SIZE.
539         * modules/sys_stat (Depends-on): Add sys_types.
540         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
541
542         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
543         instead of stat or _stat.
544
545         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
546         'struct _stati64' instead of fstat and 'struct stat'.
547         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
548         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
549
550         Reported by Ray Satiro <raysatiro@yahoo.com>.
551
552 2012-04-19  Eric Blake  <eblake@redhat.com>
553
554         bootstrap: accommodate older libtool
555         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
556         Reported by Daniel P. Berrange.
557
558 2012-04-19  Jim Meyering  <meyering@redhat.com>
559
560         announce-gen: avoid failure due to lack of Digest::SHA1
561         Even with the preferred Digest::SHA available, this script
562         would fail when the backup module, Digest::SHA1, was not installed.
563         * build-aux/announce-gen: Quote the conditional use of "use".
564         Reported by Reuben Thomas in:
565         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
566
567         bootstrap: don't let a user's CDPATH setting affect this script
568         When CDPATH is set, cd will sometimes generate output.
569         When "cd" is run in a subshell whose output matters, that
570         surprising-to-some output can cause malfunction.
571         Unsetting CDPATH turns off this shell "feature."
572         * build-aux/bootstrap (CDPATH): Unset.
573         Reported by Reuben Thomas in:
574         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
575         and inspired by his patch here:
576         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
577
578 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
579         and Jim Meyering  <meyering@redhat.com>
580
581         maint.mk: catch "see @xref{}" and similar
582         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
583         prohibit "See also @xref{", "Also see @pxref{", and similar.
584
585 2012-04-16  Jim Meyering  <meyering@redhat.com>
586
587         bootstrap: really use gnulib's po/Makefile.in.in
588         * build-aux/bootstrap: Correct the source file name in previous change.
589         Reported by Akim Demaille.
590
591         configmake: correct minor inconsistency in Makefile rule
592         * modules/configmake (Makefile.am): All other rules like this one
593         run the final "mv -f ..." in the same backslash-continued command
594         as the one that does everything else.  This one put the mv -f ...
595         command on a separate, non-backslash-continued line.
596         Make it like the others.
597
598         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
599         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
600         the one from gettext.  Reported by Akim Demaille.
601
602 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
603
604         Fix recursion of install-* into po directories.
605         Bison's install-pdf bug reported by Hans Aberg at
606         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
607         * build-aux/po/Makefile.in.in (install-dvi, install-html)
608         (install-info, install-pdf, install-ps): New targets.
609
610 2012-04-16  Jim Meyering  <meyering@redhat.com>
611
612         maint: avoid spurious "make sc_maint" failure
613         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
614         exempt all *.class file names, for lib/javaversion.class.
615
616 2012-04-15  Bruno Haible  <bruno@clisp.org>
617
618         lseek: Make configure test independent of environment.
619         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
620         Windows, we know that lseek() on pipes is broken; skip the runtime
621         test.
622
623 2012-04-14  Bruno Haible  <bruno@clisp.org>
624
625         stat: Bypass buggy override in mingw64.
626         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
627         * lib/stat.c (stat) [mingw64]: Define to _stat.
628         * doc/posix-functions/stat.texi: Mention mingw64 bug.
629
630 2012-04-14  Bruno Haible  <bruno@clisp.org>
631
632         pathmax: Fix compilation error on MSVC 9.
633         * modules/pathmax (Depends-on): Add unistd.
634
635 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
636
637         README: document pointer comparison assumption
638         * README (Portability guidelines): Document assumption about
639         pointer comparisons, in response to a recent bug-gnulib comment by
640         Jeffrey Kegler.
641
642 2012-04-12  Bruno Haible  <bruno@clisp.org>
643
644         Tests for module 'getrusage'.
645         * modules/getrusage-tests: New file.
646         * tests/test-getrusage.c: New file.
647
648         New module 'getrusage'.
649         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
650         warn-on-use.h.
651         (getrusage): New declaration.
652         * lib/getrusage.c: New file.
653         * m4/getrusage.m4: New file.
654         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
655         is declared.
656         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
657         HAVE_GETRUSAGE.
658         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
659         snippet/c++defs, snippet/warn-on-use.
660         (Makefile.am): Update generation of sys/resource.h. Substitute
661         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
662         * modules/getrusage: New file.
663         * doc/posix-functions/getrusage.texi: Mention the new module.
664
665 2012-04-12  Bruno Haible  <bruno@clisp.org>
666
667         Tests for module 'sys_resource'.
668         * modules/sys_resource-tests: New file.
669         * tests/test-sys_resource.c: New file.
670
671         New module 'sys_resource'.
672         * lib/sys_resource.in.h: New file.
673         * m4/sys_resource_h.m4: New file.
674         * modules/sys_resource: New file.
675         * doc/posix-headers/sys_resource.texi: Mention the new module.
676
677 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
678
679         ioctl: Fix compilation error on mingw.
680         * lib/ioctl.c: Include <windows.h>.
681         Also reported by Ray Satiro <raysatiro@yahoo.com>.
682
683 2012-04-04  Jim Meyering  <meyering@redhat.com>
684
685         regex: correct #pragma guard expression
686         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
687         not 4.3.  Correct its cpp guard expression.
688
689 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
690
691         regex: remove unnecessary type punning
692         Problem reported by Vladimir Serbinenko in
693         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
694         * lib/regex.h (struct re_pattern_buffer): Change the type of
695         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
696         Fix comment to match code.
697         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
698         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
699         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
700         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
701         (set_regs):
702         Omit no-longer-necessary casts.
703
704 2012-04-03  Bruno Haible  <bruno@clisp.org>
705
706         Tests for module 'ilogbl'.
707         * modules/ilogbl-tests: New file.
708         * tests/test-ilogbl.c: New file.
709
710         New module 'ilogbl'.
711         * lib/math.in.h (ilogbl): New declaration.
712         * lib/ilogbl.c: New file.
713         * m4/ilogbl.m4: New file.
714         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
716         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
717         Split sed invocation, to avoid the limit of 100 substitutions of
718         HP-UX 'sed'.
719         * modules/ilogbl: New file.
720         * tests/test-math-c++.cc: Check the declaration of ilogbl.
721         * doc/posix-functions/ilogbl.texi: Mention the new module.
722
723 2012-04-03  Bruno Haible  <bruno@clisp.org>
724
725         Tests for module 'ilogbf'.
726         * modules/ilogbf-tests: New file.
727         * tests/test-ilogbf.c: New file.
728
729         New module 'ilogbf'.
730         * lib/math.in.h (ilogbf): New declaration.
731         * lib/ilogbf.c: New file.
732         * m4/ilogbf.m4: New file.
733         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
734         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
735         REPLACE_ILOGBF.
736         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
737         REPLACE_ILOGBF.
738         * modules/ilogbf: New file.
739         * tests/test-math-c++.cc: Check the declaration of ilogbf.
740         * doc/posix-functions/ilogbf.texi: Mention the new module.
741
742 2012-04-03  Bruno Haible  <bruno@clisp.org>
743
744         Tests for module 'ilogb'.
745         * modules/ilogb-tests: New file.
746         * tests/test-ilogb.c: New file.
747         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
748         tests/test-logb-ieee.h.
749
750         New module 'ilogb'.
751         * lib/math.in.h (ilogb): New declaration.
752         * lib/ilogb.c: New file.
753         * m4/ilogb.m4: New file.
754         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
755         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
756         REPLACE_ILOGB.
757         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
758         REPLACE_ILOGB.
759         * modules/ilogb: New file.
760         * tests/test-math-c++.cc: Check the declaration of ilogb.
761         * doc/posix-functions/ilogb.texi: Mention the new module.
762
763 2012-04-03  Bruno Haible  <bruno@clisp.org>
764
765         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
766         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
767         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
768         (main): Check their values.
769         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
770         problem.
771
772 2012-04-03  Bruno Haible  <bruno@clisp.org>
773
774         Tests for module 'logbl-ieee'.
775         * modules/logbl-ieee-tests: New file.
776         * tests/test-logbl-ieee.c: New file.
777
778         New module 'logbl-ieee'.
779         * modules/logbl-ieee: New file.
780
781         Tests for module 'logb-ieee'.
782         * modules/logb-ieee-tests: New file.
783         * tests/test-logb-ieee.c: New file.
784
785         New module 'logb-ieee'.
786         * modules/logb-ieee: New file.
787
788         Tests for module 'logbf-ieee'.
789         * modules/logbf-ieee-tests: New file.
790         * tests/test-logbf-ieee.c: New file.
791         * tests/test-logb-ieee.h: New file.
792
793         New module 'logbf-ieee'.
794         * modules/logbf-ieee: New file.
795
796 2012-04-03  Bruno Haible  <bruno@clisp.org>
797
798         Tests for module 'logbl'.
799         * modules/logbl-tests: New file.
800         * tests/test-logbl.c: New file.
801
802         New module 'logbl'.
803         * lib/math.in.h (logbl): New declaration.
804         * lib/logbl.c: New file.
805         * m4/logbl.m4: New file.
806         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
808         REPLACE_LOGBL.
809         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
810         REPLACE_LOGBL.
811         * modules/logbl: New file.
812         * tests/test-math-c++.cc: Check the declaration of logbl.
813         * doc/posix-functions/logbl.texi: Mention the new module.
814
815 2012-04-02  Bruno Haible  <bruno@clisp.org>
816
817         Tests for module 'logbf'.
818         * modules/logbf-tests: New file.
819         * tests/test-logbf.c: New file.
820
821         New module 'logbf'.
822         * lib/math.in.h (logbf): New declaration.
823         * lib/logbf.c: New file.
824         * m4/logbf.m4: New file.
825         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
827         REPLACE_LOGBF.
828         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
829         REPLACE_LOGBF.
830         * modules/logbf: New file.
831         * tests/test-math-c++.cc: Check the declaration of logbf.
832         * doc/posix-functions/logbf.texi: Mention the new module.
833
834 2012-04-02  Bruno Haible  <bruno@clisp.org>
835
836         logb tests: More tests.
837         * tests/test-logb.h: New file, based on tests/test-logb.c and
838         tests/test-frexp.h.
839         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
840         (main): Just invoke test_function.
841         * modules/logb-tests (Files): Add tests/test-logb.h,
842         tests/minus-zero.h, tests/randomd.c.
843         (Makefile.am): Add randomd.c to test_logb_SOURCES.
844
845         logb: Provide replacement and workarounds.
846         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
847         is 1.
848         * lib/logb.c: New file.
849         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
850         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
852         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
853         * modules/logb (Files): Add lib/logb.c.
854         (Depends-on): Add isfinite, frexp, isnand.
855         (configure.ac): Compile the replacement code logb.c if needed.
856         * tests/test-math-c++.cc: Check the declaration of logb.
857         * doc/posix-functions/logb.texi: Mention the replacement and the bug
858         with subnormal numbers.
859
860 2012-04-02  Bruno Haible  <bruno@clisp.org>
861
862         log10* tests: Speed up.
863         * tests/test-log10.h (test_function): Reduce amount of random numbers
864         to test.
865
866 2012-04-01  Bruno Haible  <bruno@clisp.org>
867
868         logf-ieee: Fix test whether logf works.
869         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
870
871 2012-04-01  Bruno Haible  <bruno@clisp.org>
872
873         log10l: Work around log10l-ieee test failure on IRIX 6.5.
874         * lib/log10l.c: Include <float.h>
875         (log10l): On IRIX, normalize the +Infinity value.
876         * modules/log10l (Depends-on): Add 'float'.
877         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
878         +Infinity.
879
880         log10f-ieee: Work around test failure on NetBSD 5.1.
881         * m4/log10f-ieee.m4: New file.
882         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
883         test whether log10f works with a negative argument. Replace it if not.
884         * lib/log10f.c (log10f): For negative arguments, return NaN.
885         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
886         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
887         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
888
889         log10f-ieee: Work around test failure on Solaris 9.
890         * modules/log10f-ieee (Depends-on): Add log10-ieee.
891         (configure.ac): Require gl_FUNC_LOG10F.
892
893         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
894         * m4/log10-ieee.m4: New file.
895         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
896         whether log10 works with a negative argument. Replace it if not.
897         * lib/log10.c (log10): For negative arguments, return NaN.
898         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
899         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
900         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
901
902         Tests for module 'log10l-ieee'.
903         * modules/log10l-ieee-tests: New file.
904         * tests/test-log10l-ieee.c: New file.
905
906         New module 'log10l-ieee'.
907         * modules/log10l-ieee: New file.
908
909         Tests for module 'log10-ieee'.
910         * modules/log10-ieee-tests: New file.
911         * tests/test-log10-ieee.c: New file.
912
913         New module 'log10-ieee'.
914         * modules/log10-ieee: New file.
915
916         Tests for module 'log10f-ieee'.
917         * modules/log10f-ieee-tests: New file.
918         * tests/test-log10f-ieee.c: New file.
919         * tests/test-log10-ieee.h: New file.
920
921         New module 'log10f-ieee'.
922         * modules/log10f-ieee: New file.
923
924 2012-04-01  Bruno Haible  <bruno@clisp.org>
925
926         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
927         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
928         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
929         workaround.
930         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
931         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
933         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
934         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
935         (Depends-on): Update conditions.
936         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
937         IRIX 6.5, OSF/1 5.1 problems.
938
939 2012-04-01  Bruno Haible  <bruno@clisp.org>
940
941         log10f: Work around OSF/1 5.1 bug.
942         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
943         * lib/log10f.c (log10f): If logf exists, use it and provide just the
944         workaround.
945         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
946         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
948         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
949         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
950         (Depends-on): Update conditions.
951         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
952
953 2012-04-01  Bruno Haible  <bruno@clisp.org>
954
955         log10: Work around OSF/1 5.1 bug.
956         * lib/math.in.h (log10): New declaration.
957         * lib/log10.c: New file.
958         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
959         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
960         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
962         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
963         * modules/log10 (Files): Add lib/log10.c.
964         (Depends-on): Add math.
965         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
966         * tests/test-math-c++.cc: Check the declaration of log10.
967         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
968
969 2012-03-31  Bruno Haible  <bruno@clisp.org>
970
971         log10l tests: More tests.
972         * modules/log10l-tests (Files): Add tests/test-log10l.h,
973         tests/minus-zero.h, tests/randoml.c.
974         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
975         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
976         (main): Invoke test_function.
977
978         log10f tests: More tests.
979         * modules/log10f-tests (Files): Add tests/test-log10.h,
980         tests/minus-zero.h, tests/randomf.c.
981         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
982         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
983         (main): Invoke test_function.
984
985         log10 tests: More tests.
986         * tests/test-log10.h: New file.
987         * modules/log10-tests (Files): Add tests/test-log10.h,
988         tests/minus-zero.h, tests/randomd.c.
989         (Makefile.am): Add randomd.c to test_log10_SOURCES.
990         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
991         (main): Invoke test_function.
992
993 2012-03-31  Simon Josefsson  <simon@josefsson.org>
994
995         fflush: Fix syntax error.
996         * lib/fflush.c: Include unused-parameter.h, needed for
997         _GL_UNUSED_PARAMETER.
998         * modules/fflush (Depends-on): Add snippet/unused-parameter.
999
1000 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1001
1002         regex: pacify GCC when compiling GRUB
1003         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1004         a diagnostic.  Reported by Vladimir Serbinenko in
1005         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1006
1007 2012-03-29  Eric Blake  <eblake@redhat.com>
1008
1009         stdio: don't assume gets any more
1010         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1011         support.
1012         * modules/stdio (Makefile.am): Likewise.
1013         * lib/stdio-read.c (gets): Likewise.
1014         * tests/test-stdio-c++.cc: Likewise.
1015         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1016         * lib/stdio.in.h (gets): Make warning occur in more places.
1017         * doc/posix-functions/gets.texi (gets): Update documentation.
1018         Reported by Christer Solskogen.
1019
1020         maint.mk: fix syntax checks without exclusions
1021         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1022         Reported by Daniel P. Berrange.
1023
1024         strerror_r: avoid compiler warning
1025         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1026         level.
1027
1028         fflush: avoid compiler warning
1029         * lib/fflush.c (update_fpos_cache): Mark variables that are
1030         potentially unused.
1031
1032 2012-03-25  Bruno Haible  <bruno@clisp.org>
1033
1034         Tests for module 'localeconv'.
1035         * modules/localeconv-tests: New file.
1036         * tests/test-localeconv.c: New file.
1037
1038         New module 'localeconv'.
1039         * lib/locale.in.h (localeconv): New declaration.
1040         * lib/localeconv.c: New file.
1041         * m4/localeconv.m4: New file.
1042         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1043         REPLACE_LOCALECONV.
1044         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1045         REPLACE_LOCALECONV.
1046         * modules/localeconv: New file.
1047         * modules/nl_langinfo (Depends-on): Add localeconv.
1048         * modules/human (Depends-on): Likewise.
1049         * doc/posix-functions/localeconv.texi: Mention the new module.
1050
1051 2012-03-25  Bruno Haible  <bruno@clisp.org>
1052
1053         locale: Provide a complete 'struct lconv'.
1054         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1055         'struct lconv' does not contain int_p_cs_precedes.
1056         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1057         * doc/posix-headers/locale.texi: Update.
1058
1059         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1060         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1061         * doc/posix-headers/locale.texi: Update.
1062
1063         locale: Provide a working 'struct lconv'.
1064         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1065         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1066         'struct lconv' does not even contain decimal_point.
1067         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1068         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1069         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1070         * doc/posix-headers/locale.texi: Mention the problems with
1071         'struct lconv'.
1072         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1073
1074 2012-03-24  Bruno Haible  <bruno@clisp.org>
1075
1076         Enable common subexpression optimization in GCC.
1077         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1078         macros.
1079         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1080         GCC attribute 'const'.
1081         (uc_locale_language): Declare with GCC attribute 'pure'.
1082         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1083         with GCC attribute 'const'.
1084         * lib/unictype.in.h (uc_is_general_category_withtable,
1085         uc_combining_class, uc_combining_class_name,
1086         uc_combining_class_long_name, uc_bidi_class_name,
1087         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1088         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1089         uc_decimal_value, uc_digit_value, uc_numeric_value,
1090         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1091         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1092         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1093         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1094         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1095         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1096         Declare with GCC attribute 'const'.
1097         (uc_general_category_name, uc_general_category_long_name,
1098         uc_general_category_byname, uc_general_category,
1099         uc_is_general_category, uc_combining_class_byname,
1100         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1101         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1102         Declare with GCC attribute 'pure'.
1103         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1104         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1105         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1106         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1107         with GCC attribute 'pure'.
1108         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1109         'const'.
1110         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1111         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1112         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1113         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1114         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1115         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1116         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1117         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1118         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1119         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1120         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1121         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1122         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1123         GCC attribute 'pure'.
1124         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1125         'const'.
1126         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1127         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1128         u32_strwidth): Declare with GCC attribute 'pure'.
1129
1130         Enable common subexpression optimization in GCC.
1131         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1132         (alphasort): Declare with GCC attribute 'pure'.
1133         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1134         (atoll): Declare with GCC attribute 'pure'.
1135         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1136         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1137         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1138         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1139         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1140         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1141         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1142
1143 2012-03-24  Bruno Haible  <bruno@clisp.org>
1144
1145         gnulib-tool: Avoid unintended error output from 'cmp'.
1146         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1147         "cmp -s", not "cmp > /dev/null".
1148
1149 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1150
1151         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1152
1153         It's not just Automake versions < 1.9b that creates an empty
1154         pkgdatadir at installation time if pkgdata_DATA is specified
1155         to empty; modern automake versions do this as well, at least
1156         until automake 1.11.4 (not yet released at the moment of writing,
1157         but soon to appear).  That behaviour was generally considered a
1158         feature rather than a bug, at least until this discussion:
1159         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1160
1161         See also automake bugs #10997 and #11030.
1162
1163         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1164         reference to relevant automake bug numbers.
1165         (func_emit_tests_Makefile_am): Likewise.
1166
1167 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1168
1169         announce-gen: use Digest::SHA when possible
1170         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1171         back to Digest::SHA1 if necessary.
1172
1173 2012-03-20  Jim Meyering  <meyering@redhat.com>
1174
1175         tests: avoid gcc warnings about argv vs. const initializers
1176         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1177         warnings about discarding 'const' qualifier from pointer target type.
1178         * tests/test-posix_spawn2.c (main): Likewise.
1179
1180 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1181
1182         README-release: simplify slightly
1183         * top/README-release: Run "git checkout master" only once.
1184
1185 2012-03-15  Mark Wielaard  <mark@klomp.org>
1186
1187         git-merge-changelog: add specific example on how to use with hg.
1188         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1189
1190 2012-03-18  Mark Wielaard  <mark@klomp.org>
1191
1192         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1193
1194 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1195
1196         git-version-gen: don't let "prefix" envvar cause trouble
1197         * build-aux/git-version-gen (prefix): Initialize properly,
1198         so as not to use a value specified via the environment.
1199         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1200
1201 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1202
1203         regex: diagnose too-large repeat counts in EREs
1204         Previously, the code did not diagnose the too-large repeat count
1205         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1206         as if it were 'b\{1000000000}', which is unexpected.
1207         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1208         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1209         is a reasonable one for this problem.  Another option would be to
1210         create a new REG_OVERFLOW error for repeat counts that are too large.
1211         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1212         count is too large, so that the caller can distinguish the two cases.
1213         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1214         "Too large" return code, and that repeat counts are one example of this.
1215
1216 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1217
1218         doc: some glibc x32 integer width issues
1219         * doc/posix-headers/sys_types.texi (sys/types.h):
1220         * doc/posix-headers/time.texi (time.h):
1221         Mention that glibc x32 does not conform to POSIX in a couple of
1222         areas related to integer widths.
1223
1224 2012-03-15  Bruno Haible  <bruno@clisp.org>
1225
1226         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1227         * lib/fma.c (VOLATILE): New macro.
1228         (FUNC): Use it to work around a GCC compiler bug.
1229
1230 2012-03-13  Bruno Haible  <bruno@clisp.org>
1231
1232         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1233         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1234         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1235         REPLACE_HYPOTL to 1.
1236         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1237
1238 2012-03-13  Bruno Haible  <bruno@clisp.org>
1239
1240         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1241         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1242         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1243         REPLACE_REMAINDERL to 1.
1244         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1245         bug.
1246
1247 2012-03-13  Bruno Haible  <bruno@clisp.org>
1248
1249         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1250         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1251         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1252         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1253         too big rounding errors.
1254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1255         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1256         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1257         (Depends-on): Update conditions.
1258         * tests/test-sqrtl.c (my_ldexpl): New function.
1259         (main): Add test of a particular value.
1260         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1261
1262 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1263
1264         doc: Update timer_* platform portability notes.
1265         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1266         that always return ENOSYS.
1267         * doc/posix-functions/timer_delete.texi: Likewise.
1268         * doc/posix-functions/timer_gettime.texi: Likewise.
1269         * doc/posix-functions/timer_settime.texi: Likewise.
1270
1271 2012-03-13  Bruno Haible  <bruno@clisp.org>
1272
1273         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1274         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1275         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1276         REPLACE_CBRTL to 1.
1277         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1278
1279 2012-03-13  Bruno Haible  <bruno@clisp.org>
1280
1281         remainderl: Avoid compilation error on AIX >= 5.2.
1282         * lib/math.in.h (remainderl): Undefine macro from the system header.
1283
1284 2012-03-13  Bruno Haible  <bruno@clisp.org>
1285
1286         Avoid compilation errors with MSVC option -fp:strict.
1287         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1288         * lib/cbrtf.c: Likewise.
1289         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1290
1291 2012-03-12  Bruno Haible  <bruno@clisp.org>
1292
1293         uninorm: Don't crash in out-of-memory conditions.
1294         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1295         gracefully.
1296         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1297         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1298
1299 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1300
1301         quote: fix syntax-check
1302         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1303         also exports quote_quoting_options.
1304
1305 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1306
1307         Collapse list of copyright years to ranges.  See
1308         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1309         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1310         build-aux/csharpexec.sh.in, build-aux/gnupload,
1311         build-aux/install-reloc, build-aux/javacomp.sh.in,
1312         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1313         build-aux/move-if-change, build-aux/reloc-ldflags,
1314         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1315
1316 2012-03-11  Bruno Haible  <bruno@clisp.org>
1317
1318         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1319         * m4/log2f-ieee.m4: New file.
1320         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1321         whether log2f works with a minus zero argument. Replace it if not.
1322         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1323         (Depends-on): Add log2-ieee.
1324         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1325         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1326
1327         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1328         * m4/log2-ieee.m4: New file.
1329         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1330         whether log2 works with a minus zero argument. Replace it if not.
1331         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1332         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1333         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1334
1335         Tests for module 'log2l-ieee'.
1336         * modules/log2l-ieee-tests: New file.
1337         * tests/test-log2l-ieee.c: New file.
1338
1339         New module 'log2l-ieee'.
1340         * modules/log2l-ieee: New file.
1341
1342         Tests for module 'log2-ieee'.
1343         * modules/log2-ieee-tests: New file.
1344         * tests/test-log2-ieee.c: New file.
1345
1346         New module 'log2-ieee'.
1347         * modules/log2-ieee: New file.
1348
1349         Tests for module 'log2f-ieee'.
1350         * modules/log2f-ieee-tests: New file.
1351         * tests/test-log2f-ieee.c: New file.
1352         * tests/test-log2-ieee.h: New file.
1353
1354         New module 'log2f-ieee'.
1355         * modules/log2f-ieee: New file.
1356
1357 2012-03-11  Bruno Haible  <bruno@clisp.org>
1358
1359         Tests for module 'log2l'.
1360         * modules/log2l-tests: New file.
1361         * tests/test-log2l.c: New file.
1362
1363         New module 'log2l'.
1364         * lib/math.in.h (log2l): New declaration.
1365         * lib/log2l.c: New file.
1366         * m4/log2l.m4: New file.
1367         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1368         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1369         REPLACE_LOG2L.
1370         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1371         REPLACE_LOG2L.
1372         * modules/log2l: New file.
1373         * tests/test-math-c++.cc: Check the declaration of log2l.
1374         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1375         and OSF/1 problems.
1376
1377 2012-03-11  Bruno Haible  <bruno@clisp.org>
1378
1379         Tests for module 'log2f'.
1380         * modules/log2f-tests: New file.
1381         * tests/test-log2f.c: New file.
1382
1383         New module 'log2f'.
1384         * lib/math.in.h (log2f): New declaration.
1385         * lib/log2f.c: New file.
1386         * m4/log2f.m4: New file.
1387         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1388         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1389         REPLACE_LOG2F.
1390         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1391         REPLACE_LOG2F.
1392         * modules/log2f: New file.
1393         * tests/test-math-c++.cc: Check the declaration of log2f.
1394         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1395         and OSF/1 and Cygwin problems.
1396
1397 2012-03-11  Bruno Haible  <bruno@clisp.org>
1398
1399         Tests for module 'log2'.
1400         * modules/log2-tests: New file.
1401         * tests/test-log2.c: New file.
1402         * tests/test-log2.h: New file.
1403
1404         New module 'log2'.
1405         * lib/math.in.h (log2): New declaration.
1406         * lib/log2.c: New file.
1407         * m4/log2.m4: New file.
1408         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1409         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1410         REPLACE_LOG2.
1411         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1412         REPLACE_LOG2.
1413         * modules/log2: New file.
1414         * tests/test-math-c++.cc: Check the declaration of log2.
1415         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1416         and OSF/1 and Cygwin problems.
1417
1418 2012-03-11  Bruno Haible  <bruno@clisp.org>
1419
1420         exp2* tests: More tests.
1421         * tests/test-exp2.h (test_function): Test all integral arguments that
1422         don't need to overflow or denormalized numbers.
1423         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1424         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1425         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1426
1427 2012-03-10  Bruno Haible  <bruno@clisp.org>
1428
1429         log1pl-ieee: Work around test failure on AIX 7.1.
1430         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1431
1432         log1pl-ieee: Work around test failure on IRIX 6.5.
1433         * m4/log1pl-ieee.m4: New file.
1434         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1435         test whether log1pl works with a minus zero argument. Replace it if
1436         not.
1437         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1439         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1440         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1441         (Depends-on): Update conditions.
1442         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1443         m4/signbit.m4.
1444         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1445         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1446
1447         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1448         * m4/log1pf-ieee.m4: New file.
1449         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1450         test whether log1pf works with a minus zero argument. Replace it if
1451         not.
1452         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1453         m4/signbit.m4.
1454         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1455         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1456
1457         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1458         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1459         (configure.ac): Require gl_FUNC_LOG1PF.
1460
1461         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1462         * m4/log1p-ieee.m4: New file.
1463         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1464         whether log1p works with a minus zero argument. Replace it if not.
1465         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1467         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1468         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1469         (Depends-on): Update conditions.
1470         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1471         m4/signbit.m4.
1472         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1473         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1474
1475         Tests for module 'log1pl-ieee'.
1476         * modules/log1pl-ieee-tests: New file.
1477         * tests/test-log1pl-ieee.c: New file.
1478
1479         New module 'log1pl-ieee'.
1480         * modules/log1pl-ieee: New file.
1481
1482         Tests for module 'log1p-ieee'.
1483         * modules/log1p-ieee-tests: New file.
1484         * tests/test-log1p-ieee.c: New file.
1485
1486         New module 'log1p-ieee'.
1487         * modules/log1p-ieee: New file.
1488
1489         Tests for module 'log1pf-ieee'.
1490         * modules/log1pf-ieee-tests: New file.
1491         * tests/test-log1pf-ieee.c: New file.
1492         * tests/test-log1p-ieee.h: New file.
1493
1494         New module 'log1pf-ieee'.
1495         * modules/log1pf-ieee: New file.
1496
1497 2012-03-10  Bruno Haible  <bruno@clisp.org>
1498
1499         Tests for module 'log1pl'.
1500         * modules/log1pl-tests: New file.
1501         * tests/test-log1pl.c: New file.
1502
1503         New module 'log1pl'.
1504         * lib/math.in.h (log1pl): New declaration.
1505         * lib/log1pl.c: New file.
1506         * m4/log1pl.m4: New file.
1507         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1509         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1510         * modules/log1pl: New file.
1511         * tests/test-math-c++.cc: Check the declaration of log1pl.
1512         * doc/posix-functions/log1pl.texi: Mention the new module.
1513
1514 2012-03-10  Bruno Haible  <bruno@clisp.org>
1515
1516         Tests for module 'log1pf'.
1517         * modules/log1pf-tests: New file.
1518         * tests/test-log1pf.c: New file.
1519
1520         New module 'log1pf'.
1521         * lib/math.in.h (log1pf): New declaration.
1522         * lib/log1pf.c: New file.
1523         * m4/log1pf.m4: New file.
1524         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1526         REPLACE_LOG1PF.
1527         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1528         REPLACE_LOG1PF.
1529         * modules/log1pf: New file.
1530         * tests/test-math-c++.cc: Check the declaration of log1pf.
1531         * doc/posix-functions/log1pf.texi: Mention the new module.
1532
1533 2012-03-10  Bruno Haible  <bruno@clisp.org>
1534
1535         log1p tests: More tests.
1536         * tests/test-log1p.h: New file.
1537         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1538         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1539         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1540         (main): Invoke test_function.
1541
1542         log1p: Provide replacement for Minix and MSVC.
1543         * lib/math.in.h (log1p): New declaration.
1544         * lib/log1p.c: New file.
1545         * m4/log1p.m4: New file.
1546         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1547         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1548         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1549         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1550         (Depends-on): Add math, isnand, log, round.
1551         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1552         HAVE_LOG1P is 0.
1553         * tests/test-math-c++.cc: Check the declaration of log1p.
1554         * doc/posix-functions/log1p.texi: Mention the replacement.
1555
1556 2012-03-10  Bruno Haible  <bruno@clisp.org>
1557
1558         math tests: Small simplification.
1559         * tests/test-exp.h (test_function): Use the same err_bound for
1560         'double' on platforms with sizeof (long double) == sizeof (double)
1561         than on platforms with sizeof (long double) > sizeof (double).
1562         * tests/test-exp2.h (test_function): Likewise.
1563         * tests/test-expm1.h (test_function): Likewise.
1564         * tests/test-log.h (test_function): Likewise.
1565
1566 2012-03-10  Bruno Haible  <bruno@clisp.org>
1567
1568         Fix some comments.
1569         * lib/expl.c: Fix an ambiguous comment.
1570         * lib/expm1.c: Likewise.
1571         * lib/expm1l.c: Likewise.
1572         * lib/exp2.c: Likewise.
1573         * lib/exp2l.c: Likewise.
1574
1575 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1576
1577         regex: allow inclusion of <regex.h> before <limits.h>
1578         Without this patch, portable programs had to include <limits.h> before
1579         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1580         I ran into this problem with a test version of GNU grep on Solaris 8.
1581         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1582         This is done conditionally so that this change can be merged
1583         back to glibc.
1584         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1585         using the included regex.
1586
1587         fts: depend on fdopendir
1588         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1589         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1590         problem was introduced when fdopendir was split out.
1591
1592 2012-03-10  Bruno Haible  <bruno@clisp.org>
1593
1594         Remove unused variables.
1595         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1596         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1597
1598 2012-03-10  Bruno Haible  <bruno@clisp.org>
1599
1600         isnanf-nolibm: Fix last commit.
1601         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1602
1603         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1604         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1605
1606 2012-03-10  Bruno Haible  <bruno@clisp.org>
1607
1608         logf-ieee: Work around test failure on NetBSD 5.1.
1609         * m4/logf-ieee.m4: New file.
1610         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1611         whether logf works with a negative argument. Replace it if not.
1612         * lib/logf.c (logf): For negative arguments, return NaN.
1613         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1614         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1615         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1616
1617         logf-ieee: Work around test failure on Solaris 9.
1618         * modules/logf-ieee (Depends-on): Add log-ieee.
1619         (configure.ac): Require gl_FUNC_LOGF.
1620
1621         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1622         * m4/log-ieee.m4: New file.
1623         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1624         log works with a negative argument. Replace it if not.
1625         * lib/log.c (log): For negative arguments, return NaN.
1626         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1627         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1628         * doc/posix-functions/log.texi: Mention the log-ieee module.
1629
1630         Tests for module 'logl-ieee'.
1631         * modules/logl-ieee-tests: New file.
1632         * tests/test-logl-ieee.c: New file.
1633
1634         New module 'logl-ieee'.
1635         * modules/logl-ieee: New file.
1636
1637         Tests for module 'log-ieee'.
1638         * modules/log-ieee-tests: New file.
1639         * tests/test-log-ieee.c: New file.
1640
1641         New module 'log-ieee'.
1642         * modules/log-ieee: New file.
1643
1644         Tests for module 'logf-ieee'.
1645         * modules/logf-ieee-tests: New file.
1646         * tests/test-logf-ieee.c: New file.
1647         * tests/test-log-ieee.h: New file.
1648
1649         New module 'logf-ieee'.
1650         * modules/logf-ieee: New file.
1651
1652 2012-03-10  Bruno Haible  <bruno@clisp.org>
1653
1654         log: Fix bug introduced on 2012-03-09.
1655         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1656
1657 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1658
1659         timer-time: link explicitly with pthreads on glibc
1660         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1661         to support static linking, when newer glibc is
1662         detected, as that contains pthread emulation of
1663         POSIX timer functions where required.
1664         * modules/timer-time: Depend on threadlib to
1665         pull in the appropriate library to link.
1666
1667 2012-03-10  Bruno Haible  <bruno@clisp.org>
1668
1669         log* tests: More tests.
1670         * tests/test-log.h: New file.
1671         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1672         (main): Invoke test_function.
1673         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1674         (main): Invoke test_function.
1675         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1676         (main): Invoke test_function.
1677         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1678         tests/randomd.c.
1679         (Makefile.am): Add randomd.c to test_log_SOURCES.
1680         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1681         tests/randomf.c.
1682         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1683         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1684         tests/randoml.c.
1685         (Depends-on): Add 'float'.
1686         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1687
1688 2012-03-09  Bruno Haible  <bruno@clisp.org>
1689
1690         logl: Work around OSF/1 5.1 bug.
1691         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1692         * lib/logl.c (logl): If logl exists, use it and provide just the
1693         workaround.
1694         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1695         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1697         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1698         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1699         (Depends-on): Update conditions.
1700         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1701
1702 2012-03-09  Bruno Haible  <bruno@clisp.org>
1703
1704         logf: Work around OSF/1 5.1 bug.
1705         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1706         * lib/logf.c (logf): If logf exists, use it and provide just the
1707         workaround.
1708         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1709         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1710         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1711         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1712         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1713         (Depends-on): Update conditions.
1714         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1715
1716 2012-03-09  Bruno Haible  <bruno@clisp.org>
1717
1718         log: Work around OSF/1 5.1 bug.
1719         * lib/math.in.h (log): New declaration.
1720         * lib/log.c: New file.
1721         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1722         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1723         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1725         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1726         * modules/log (Files): Add lib/log.c.
1727         (Depends-on): Add math.
1728         (configure.ac): If REPLACE_LOG is 1, compile an override.
1729         * tests/test-math-c++.cc: Check the declaration of log.
1730         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1731
1732 2012-03-09  Jim Meyering  <meyering@redhat.com>
1733
1734         readtokens.c: adjust wording in a comment
1735         * lib/readtokens.c: Insert omitted "that" in a comment.
1736
1737 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1738
1739         modechange: add notations +40, 00440, etc.
1740         * lib/modechange.c (mode_compile): Support new notations
1741         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1742
1743 2012-03-08  Bruno Haible  <bruno@clisp.org>
1744
1745         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1746         * m4/exp2l-ieee.m4: New file.
1747         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1748         test whether exp2l works with a NaN argument and with a negative
1749         infinity argument. Replace it if not.
1750         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1751         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1752         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1753         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1754         (Depends-on): Update conditions.
1755         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1756         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1757         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1758
1759         Tests for module 'exp2l-ieee'.
1760         * modules/exp2l-ieee-tests: New file.
1761         * tests/test-exp2l-ieee.c: New file.
1762
1763         New module 'exp2l-ieee'.
1764         * modules/exp2l-ieee: New file.
1765
1766         Tests for module 'exp2-ieee'.
1767         * modules/exp2-ieee-tests: New file.
1768         * tests/test-exp2-ieee.c: New file.
1769
1770         New module 'exp2-ieee'.
1771         * modules/exp2-ieee: New file.
1772
1773         Tests for module 'exp2f-ieee'.
1774         * modules/exp2f-ieee-tests: New file.
1775         * tests/test-exp2f-ieee.c: New file.
1776         * tests/test-exp2-ieee.h: New file.
1777
1778         New module 'exp2f-ieee'.
1779         * modules/exp2f-ieee: New file.
1780
1781 2012-03-08  Bruno Haible  <bruno@clisp.org>
1782
1783         Tests for module 'exp2l'.
1784         * modules/exp2l-tests: New file.
1785         * tests/test-exp2l.c: New file.
1786
1787         New module 'exp2l'.
1788         * lib/math.in.h (exp2l): New declaration.
1789         * lib/exp2l.c: New file.
1790         * lib/expl-table.c: New file, extracted from lib/expl.c.
1791         * lib/expl.c (gl_expl_table): New declaration.
1792         (expl): Remove expl_table. Update reference.
1793         * m4/exp2l.m4: New file.
1794         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1795         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1796         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1797         * modules/exp2l: New file.
1798         * modules/expl (Files): Add lib/expl-table.c.
1799         (configure.ac): Compile also expl-table.c.
1800         * tests/test-math-c++.cc: Check the declaration of exp2l.
1801         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1802         problem.
1803
1804 2012-03-08  Bruno Haible  <bruno@clisp.org>
1805
1806         Tests for module 'exp2f'.
1807         * modules/exp2f-tests: New file.
1808         * tests/test-exp2f.c: New file.
1809
1810         New module 'exp2f'.
1811         * lib/math.in.h (exp2f): New declaration.
1812         * lib/exp2f.c: New file.
1813         * m4/exp2f.m4: New file.
1814         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1816         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1817         * modules/exp2f: New file.
1818         * tests/test-math-c++.cc: Check the declaration of exp2f.
1819         * doc/posix-functions/exp2f.texi: Mention the new module and the
1820         IRIX problem.
1821
1822 2012-03-08  Bruno Haible  <bruno@clisp.org>
1823
1824         Tests for module 'exp2'.
1825         * modules/exp2-tests: New file.
1826         * tests/test-exp2.c: New file.
1827         * tests/test-exp2.h: New file.
1828
1829         New module 'exp2'.
1830         * lib/math.in.h (exp2): New declaration.
1831         * lib/exp2.c: New file.
1832         * m4/exp2.m4: New file.
1833         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1835         REPLACE_EXP2.
1836         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1837         REPLACE_EXP2.
1838         * modules/exp2: New file.
1839         * tests/test-math-c++.cc: Check the declaration of exp2.
1840         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1841         and OpenBSD problems.
1842
1843 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1844
1845         savedir: fix comment typo
1846         * lib/savedir.c (savedirstream): Fix typo in comment.
1847
1848 2012-03-08  Bruno Haible  <bruno@clisp.org>
1849
1850         test-readtokens.c: use const; remove unwarranted cast
1851         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1852
1853 2012-03-08  Bruno Haible  <bruno@clisp.org>
1854
1855         fmal: Avoid compilation error on AIX.
1856         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1857         AIX 5.2..7.1.
1858
1859 2012-03-08  Bruno Haible  <bruno@clisp.org>
1860
1861         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1862         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1863         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1864         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1865         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1866         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1867         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1868
1869 2012-03-08  Bruno Haible  <bruno@clisp.org>
1870
1871         remainderf: Override buggy system function on IRIX 6.5.
1872         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1873         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1874         when it exists.
1875         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1876
1877 2012-03-08  Jim Meyering  <meyering@redhat.com>
1878
1879         test-readtokens.c: avoid const-related compilation warnings
1880         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1881
1882 2012-03-07  Jim Meyering  <meyering@redhat.com>
1883             Bruno Haible  <bruno@clisp.org>
1884
1885         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1886         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1887         tests/randomd.c.
1888         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1889         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1890         tests/randoml.c.
1891         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1892
1893 2012-03-07  Bruno Haible  <bruno@clisp.org>
1894
1895         expm1l: Avoid compilation error on AIX.
1896         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1897         AIX 5.2..7.1.
1898
1899 2012-03-07  Bruno Haible  <bruno@clisp.org>
1900
1901         expm1l: Don't override undeclared system function on IRIX 6.5.
1902         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1903         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1904         it exists. Set HAVE_DECL_EXPM1L.
1905         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1906         HAVE_EXPM1L.
1907         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1908         HAVE_EXPM1L.
1909         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1910
1911 2012-03-07  Bruno Haible  <bruno@clisp.org>
1912
1913         remainderl: Don't override undeclared system function on IRIX 6.5.
1914         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1915         HAVE_REMAINDERL.
1916         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1917         declared when it exists. Set HAVE_DECL_REMAINDERL.
1918         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1919         not HAVE_REMAINDERL.
1920         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1921         HAVE_REMAINDERL.
1922         * doc/posix-functions/remainderl.texi: Mention missing declaration
1923         problem.
1924
1925 2012-03-07  Bruno Haible  <bruno@clisp.org>
1926
1927         rintf: Don't override undeclared system function on IRIX 6.5.
1928         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1929         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1930         exists. Set HAVE_DECL_RINTF.
1931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1932         HAVE_RINTF.
1933         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1934         HAVE_RINTF.
1935         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1936
1937 2012-03-07  Bruno Haible  <bruno@clisp.org>
1938
1939         roundl: Avoid compilation error on AIX.
1940         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1941         AIX 5.2..7.1.
1942
1943 2012-03-07  Bruno Haible  <bruno@clisp.org>
1944
1945         roundl: Don't override undeclared system function on IRIX 6.5.
1946         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1947         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1948         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1949         * modules/roundl (configure.ac): For replacement code, test
1950         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1951         (Depends-on): Update conditions.
1952         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1953
1954 2012-03-07  Bruno Haible  <bruno@clisp.org>
1955
1956         roundf: Don't override undeclared system function on IRIX 6.5.
1957         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1958         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1959         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1960         * modules/roundf (configure.ac): For replacement code, test
1961         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1962         (Depends-on): Update conditions.
1963         * modules/roundf-ieee (Depends-on): Update conditions.
1964         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1965
1966 2012-03-07  Bruno Haible  <bruno@clisp.org>
1967
1968         round: Don't override undeclared system function on IRIX 6.5.
1969         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1970         argument.
1971         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1972         also when it is not declared. Set HAVE_ROUND. For replacement code,
1973         test HAVE_ROUND, not HAVE_DECL_ROUND.
1974         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1975         not HAVE_DECL_ROUND.
1976         (Depends-on): Update conditions.
1977         * modules/round-ieee (Depends-on): Update conditions.
1978         * doc/posix-functions/round.texi: Mention the IRIX problem.
1979
1980 2012-03-07  Bruno Haible  <bruno@clisp.org>
1981
1982         copysignf: Don't override undeclared system function on IRIX 6.5.
1983         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1984         HAVE_COPYSIGNF.
1985         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1986         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1988         not HAVE_COPYSIGNF.
1989         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1990         HAVE_COPYSIGNF.
1991         * doc/posix-functions/copysignf.texi: Mention missing declaration
1992         problem.
1993
1994 2012-03-07  Jim Meyering  <meyering@redhat.com>
1995
1996         readtokens: add tests
1997         * modules/readtokens-tests: New file.
1998         * tests/test-readtokens.c: New file.
1999
2000 2012-03-07  Jim Meyering  <meyering@redhat.com>
2001
2002         quotearg: the module must now include quote.h
2003         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2004         So must the module.
2005         * modules/quotearg (Files): Add quote.h.
2006
2007 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2008
2009         readtokens: avoid core dumps with unusual calling patterns
2010         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2011         * lib/readtokens.c: Include limits.h.
2012         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2013         (readtoken): Don't cache the delimiters; the cache code was buggy
2014         if !delim && saved_delim, or if the new n_delim differs from the old.
2015         Also, it wasn't thread-safe.
2016
2017 2012-03-07  Bruno Haible  <bruno@clisp.org>
2018
2019         quote: Adhere to common module description layout.
2020         * modules/quote (Makefile.am): Add back empty section.
2021
2022 2012-03-06  Akim Demaille  <demaille@gostai.com>
2023
2024         quote: fuse into quotearg
2025         This patch is made for the benefit of Bison.
2026         quote does not leave the choice of the quoting style to the user.
2027         quoting_style provides poor customizability, yet quoting_options,
2028         which is very rich, is hidden inside quotearg.c.  So in order to
2029         allow quote customization, move its implementation to quotearg.c.
2030         * lib/quote.c: Remove.
2031         * modules/quote: Adjust.
2032         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2033         warning: provide all the members of literal structs.
2034         (quote_quoting_options): New.
2035         (quote, quote_n): Import implementation from quote.c.
2036         * lib/quote.h: Import the comments from quote.c.
2037         (quote_quoting_options): New.
2038
2039 2012-03-06  Bruno Haible  <bruno@clisp.org>
2040
2041         Tests for module 'expm1l-ieee'.
2042         * modules/expm1l-ieee-tests: New file.
2043         * tests/test-expm1l-ieee.c: New file.
2044
2045         New module 'expm1l-ieee'.
2046         * modules/expm1l-ieee: New file.
2047
2048         Tests for module 'expm1f-ieee'.
2049         * modules/expm1f-ieee-tests: New file.
2050         * tests/test-expm1f-ieee.c: New file.
2051
2052         New module 'expm1f-ieee'.
2053         * modules/expm1f-ieee: New file.
2054
2055         Tests for module 'expm1-ieee'.
2056         * modules/expm1-ieee-tests: New file.
2057         * tests/test-expm1-ieee.c: New file.
2058         * tests/test-expm1-ieee.h: New file.
2059
2060         New module 'expm1-ieee'.
2061         * modules/expm1-ieee: New file.
2062         * m4/expm1-ieee.m4: New file.
2063         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2064         whether expm1 works with a minus zero argument. Replace it if not.
2065         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2067         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2068         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2069         (Depends-on): Update conditions.
2070         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2071         AIX problem.
2072
2073 2012-03-06  Bruno Haible  <bruno@clisp.org>
2074
2075         Work around expm1f bug on IRIX 6.5.
2076         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2077         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2078         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2079         not work.
2080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2081         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2082         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2083         (Depends-on): Update conditions.
2084         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2085
2086 2012-03-06  Bruno Haible  <bruno@clisp.org>
2087
2088         Tests for module 'expm1l'.
2089         * modules/expm1l-tests: New file.
2090         * tests/test-expm1l.c: New file.
2091
2092         New module 'expm1l'.
2093         * lib/math.in.h (expm1l): New declaration.
2094         * lib/expm1l.c: New file.
2095         * m4/expm1l.m4: New file.
2096         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2097         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2098         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2099         * modules/expm1l: New file.
2100         * tests/test-math-c++.cc: Check the declaration of expm1l.
2101         * doc/posix-functions/expm1l.texi: Mention the new module.
2102
2103 2012-03-06  Bruno Haible  <bruno@clisp.org>
2104
2105         Tests for module 'expm1f'.
2106         * modules/expm1f-tests: New file.
2107         * tests/test-expm1f.c: New file.
2108
2109         New module 'expm1f'.
2110         * lib/math.in.h (expm1f): New declaration.
2111         * lib/expm1f.c: New file.
2112         * m4/expm1f.m4: New file.
2113         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2114         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2115         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2116         * modules/expm1f: New file.
2117         * tests/test-math-c++.cc: Check the declaration of expm1f.
2118         * doc/posix-functions/expm1f.texi: Mention the new module.
2119
2120 2012-03-06  Bruno Haible  <bruno@clisp.org>
2121
2122         Tests for module 'expm1'.
2123         * modules/expm1-tests: New file.
2124         * tests/test-expm1.c: New file.
2125         * tests/test-expm1.h: New file.
2126
2127         New module 'expm1'.
2128         * lib/math.in.h (expm1): New declaration.
2129         * lib/expm1.c: New file.
2130         * m4/expm1.m4: New file.
2131         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2133         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2134         * modules/expm1: New file.
2135         * tests/test-math-c++.cc: Check the declaration of expm1.
2136         * doc/posix-functions/expm1.texi: Mention the new module.
2137
2138 2012-03-06  Bruno Haible  <bruno@clisp.org>
2139
2140         math: Ensure declarations of math functions.
2141         * modules/acosf (Depends-on): Add 'extensions'.
2142         * modules/asinf (Depends-on): Likewise.
2143         * modules/atan2f (Depends-on): Likewise.
2144         * modules/atanf (Depends-on): Likewise.
2145         * modules/cbrt (Depends-on): Likewise.
2146         * modules/cbrtf (Depends-on): Likewise.
2147         * modules/cbrtl (Depends-on): Likewise.
2148         * modules/copysignf (Depends-on): Likewise.
2149         * modules/copysignl (Depends-on): Likewise.
2150         * modules/cosf (Depends-on): Likewise.
2151         * modules/coshf (Depends-on): Likewise.
2152         * modules/expf (Depends-on): Likewise.
2153         * modules/fabsf (Depends-on): Likewise.
2154         * modules/fabsl (Depends-on): Likewise.
2155         * modules/fmaf (Depends-on): Likewise.
2156         * modules/fmal (Depends-on): Likewise.
2157         * modules/fmodf (Depends-on): Likewise.
2158         * modules/fmodl (Depends-on): Likewise.
2159         * modules/frexpf (Depends-on): Likewise.
2160         * modules/frexpl (Depends-on): Likewise.
2161         * modules/hypot (Depends-on): Likewise.
2162         * modules/hypotf (Depends-on): Likewise.
2163         * modules/hypotl (Depends-on): Likewise.
2164         * modules/ldexpf (Depends-on): Likewise.
2165         * modules/ldexpl (Depends-on): Likewise.
2166         * modules/log10f (Depends-on): Likewise.
2167         * modules/log10l (Depends-on): Likewise.
2168         * modules/log1p (Depends-on): Likewise.
2169         * modules/logb (Depends-on): Likewise.
2170         * modules/logf (Depends-on): Likewise.
2171         * modules/modff (Depends-on): Likewise.
2172         * modules/modfl (Depends-on): Likewise.
2173         * modules/powf (Depends-on): Likewise.
2174         * modules/remainderf (Depends-on): Likewise.
2175         * modules/remainderl (Depends-on): Likewise.
2176         * modules/rintf (Depends-on): Likewise.
2177         * modules/rintl (Depends-on): Likewise.
2178         * modules/sinf (Depends-on): Likewise.
2179         * modules/sinhf (Depends-on): Likewise.
2180         * modules/sqrtf (Depends-on): Likewise.
2181         * modules/tanf (Depends-on): Likewise.
2182         * modules/tanhf (Depends-on): Likewise.
2183         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2184         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2185         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2186         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2187         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2188         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2189         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2190         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2191         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2192         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2193         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2194         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2195         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2196         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2197         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2198         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2199         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2200         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2201         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2202         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2203         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2204         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2205         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2206         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2207         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2208         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2209         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2210         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2211         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2212         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2213         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2214         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2215         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2216         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2217         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2218         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2219         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2220         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2221         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2222         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2223         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2224
2225 2012-03-06  Bruno Haible  <bruno@clisp.org>
2226
2227         math: Update module names in warnings.
2228         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2229         tanl): Use specific module name in warn-on-use warning.
2230
2231 2012-03-06  Bruno Haible  <bruno@clisp.org>
2232
2233         expl: Simplify computation.
2234         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2235
2236 2012-03-05  Bruno Haible  <bruno@clisp.org>
2237
2238         exp* tests: More tests.
2239         * tests/test-exp.h: New file.
2240         * tests/test-exp.c: Include <float.h> and test-exp.h.
2241         (main): Invoke test_function.
2242         * tests/test-expf.c: Include <float.h> and test-exp.h.
2243         (main): Invoke test_function.
2244         * tests/test-expl.c: Include <float.h> and test-exp.h.
2245         (main): Invoke test_function.
2246         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2247         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2248         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2249         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2250         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2251         (Depends-on): Add 'float'.
2252         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2253
2254         expl: Fix precision of computed result.
2255         * lib/expl.c: Completely rewritten.
2256         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2257         (Maintainer): Add me.
2258         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2259
2260 2012-03-05  Bruno Haible  <bruno@clisp.org>
2261
2262         cbrt* tests: More tests.
2263         * tests/test-cbrt.h: New file.
2264         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2265         (main): Invoke test_function.
2266         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2267         (main): Invoke test_function.
2268         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2269         (main): Invoke test_function.
2270         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2271         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2272         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2273         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2274         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2275         (Depends-on): Add 'float'.
2276         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2277
2278 2012-03-05  Bruno Haible  <bruno@clisp.org>
2279
2280         hypot* tests: More tests.
2281         * tests/test-hypot.h: New file, partially extracted from
2282         tests/test-hypotl.c.
2283         * tests/test-hypot.c: Include test-hypot.h.
2284         (main): Invoke test_function.
2285         * tests/test-hypotf.c: Include test-hypot.h.
2286         (main): Invoke test_function.
2287         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2288         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2289         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2290         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2291         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2292         tests/randomf.c.
2293         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2294         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2295         tests/randoml.c.
2296         (Depends-on): Add 'fpucw', 'float'.
2297         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2298
2299 2012-03-05  Bruno Haible  <bruno@clisp.org>
2300
2301         fpucw: Doc about FreeBSD.
2302         * lib/fpucw.h: Mention FreeBSD in comments.
2303
2304 2012-03-04  Bruno Haible  <bruno@clisp.org>
2305
2306         sqrt* tests: More tests.
2307         * tests/test-sqrt.h: New file.
2308         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2309         (main): Invoke test_function.
2310         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2311         (main): Invoke test_function.
2312         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2313         (main): Invoke test_function.
2314         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2315         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2316         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2317         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2318         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2319         (Depends-on): Add 'float'.
2320         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2321
2322 2012-03-04  Bruno Haible  <bruno@clisp.org>
2323
2324         remainder* tests: More tests.
2325         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2326         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2327         (main): Invoke test_function.
2328         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2329         (main): Invoke test_function.
2330         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2331         (main): Invoke test_function.
2332         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2333         tests/randomd.c.
2334         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2335         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2336         tests/randomf.c.
2337         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2338         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2339         tests/randoml.c.
2340         (Depends-on): Add 'float'.
2341         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2342
2343 2012-03-04  Bruno Haible  <bruno@clisp.org>
2344
2345         remainder, remainderf, remainderl: Fix computation for large quotients.
2346         * lib/remainder.c: Completely rewritten.
2347         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2348         USE_FLOAT.
2349         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2350         USE_LONG_DOUBLE.
2351         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2352         isnand, isinf. Remove round, fma.
2353         * modules/remainderf (Files): Add lib/remainder.c.
2354         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2355         Remove roundf, fmaf.
2356         * modules/remainderl (Files): Add lib/remainder.c.
2357         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2358         isinf. Remove roundl, fmal.
2359         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2360         REMAINDER_LIBM.
2361         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2362         REMAINDERF_LIBM.
2363         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2364         REMAINDERL_LIBM.
2365
2366 2012-03-04  Bruno Haible  <bruno@clisp.org>
2367
2368         fmod* tests: More tests.
2369         * tests/test-fmod.h (my_ldexp): New function.
2370         (test_function): Reduce amount of random numbers to test. Add tests
2371         of very large quotients x / y.
2372         * tests/test-fmod.c (MAX_EXP): New macro.
2373         * tests/test-fmodf.c (MAX_EXP): Likewise.
2374         * tests/test-fmodl.c (MAX_EXP): Likewise.
2375
2376 2012-03-04  Bruno Haible  <bruno@clisp.org>
2377
2378         fmod, fmodl: Fix computation for large quotients x / y.
2379         * lib/fmod.c: Completely rewritten.
2380         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2381         USE_LONG_DOUBLE.
2382         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2383         isnand. Remove fma.
2384         * modules/fmodl (Files): Add lib/fmod.c.
2385         (Depends-on): Add float, isfinite, signbit, fabsl,
2386         frexpl, ldexpl, isnanl. Remove fma.
2387         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2388         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2389
2390 2012-03-03  Bruno Haible  <bruno@clisp.org>
2391
2392         fmod* tests: More tests.
2393         * tests/test-fmod.h: New file.
2394         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2395         (main): Invoke test_function.
2396         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2397         (main): Invoke test_function.
2398         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2399         (main): Invoke test_function.
2400         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2401         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2402         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2403         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2404         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2405         (Depends-on): Add 'float'.
2406         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2407
2408 2012-03-03  Bruno Haible  <bruno@clisp.org>
2409
2410         rint* tests: More tests.
2411         * tests/test-rint.h: New file, partially extracted from
2412         tests/test-rintl.c.
2413         * tests/test-rint.c: Include test-rint.h.
2414         (main): Invoke test_function.
2415         * tests/test-rintf.c: Include test-rint.h.
2416         (main): Invoke test_function.
2417         * tests/test-rintl.c: Include test-rint.h.
2418         (main): Invoke test_function.
2419         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2420         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2421         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2422         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2423         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2424         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2425
2426 2012-03-03  Bruno Haible  <bruno@clisp.org>
2427
2428         modf* tests: More tests.
2429         * tests/test-modf.h: New file.
2430         * tests/test-modf.c: Include <float.h> and test-modf.h.
2431         (main): Invoke test_function.
2432         * tests/test-modff.c: Include <float.h> and test-modf.h.
2433         (main): Invoke test_function.
2434         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2435         (main): Invoke test_function.
2436         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2437         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2438         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2439         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2440         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2441         (Depends-on): Add 'float'.
2442         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2443
2444 2012-03-03  Bruno Haible  <bruno@clisp.org>
2445
2446         fabs* tests: More tests.
2447         * tests/test-fabs.h: New file, partially extracted from
2448         tests/test-fabsl.c.
2449         * tests/test-fabs.c (RANDOM): New macro.
2450         * tests/test-fabsf.c (RANDOM): New macro.
2451         * tests/test-fabsl.c (RANDOM): New macro.
2452         * modules/fabs-tests (Files): Add tests/randomd.c.
2453         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2454         * modules/fabsf-tests (Files): Add tests/randomf.c.
2455         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2456         * modules/fabsl-tests (Files): Add tests/randoml.c.
2457         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2458
2459 2012-03-03  Bruno Haible  <bruno@clisp.org>
2460
2461         ldexp* tests: More tests.
2462         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2463         * tests/test-ldexp.c (RANDOM): New macro.
2464         * tests/test-ldexpf.c (RANDOM): New macro.
2465         * tests/test-ldexpl.c (RANDOM): New macro.
2466         * modules/ldexp-tests (Files): Add tests/randomd.c.
2467         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2468         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2469         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2470         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2471         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2472
2473 2012-03-03  Bruno Haible  <bruno@clisp.org>
2474
2475         frexp* tests: More tests.
2476         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2477         * tests/test-frexp.c (RANDOM): New macro.
2478         * tests/test-frexpf.c (RANDOM): New macro.
2479         * tests/test-frexpl.c (RANDOM): New macro.
2480         * modules/frexp-tests (Files): Add tests/randomd.c.
2481         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2482         * modules/frexpf-tests (Files): Add tests/randomf.c.
2483         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2484         * modules/frexpl-tests (Files): Add tests/randoml.c.
2485         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2486
2487 2012-03-03  Bruno Haible  <bruno@clisp.org>
2488
2489         Support for pseudo-random numbers in tests.
2490         * tests/randomf.c: New file.
2491         * tests/randomd.c: New file.
2492         * tests/randoml.c: New file.
2493         * tests/macros.h (randomf, randomd, randoml): New declarations.
2494
2495 2012-03-03  Bruno Haible  <bruno@clisp.org>
2496
2497         frexp* tests: Refactor.
2498         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2499         * tests/test-frexp.c: Include and use it.
2500         * tests/test-frexpf.c: Likewise.
2501         * tests/test-frexpl.c: Likewise.
2502         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2503         * modules/frexpf-tests (Files): Likewise.
2504         * modules/frexpl-tests (Files): Likewise.
2505
2506 2012-03-02  Jim Meyering  <meyering@redhat.com>
2507
2508         maint: don't specify XZ_OPT=-9ev in dist-related rule
2509         Using xz's -9 option is warranted only if you have a very large
2510         tarball (see xz's documentation for the sizes vs. presets), and
2511         requires 64MiB of memory at decompression time.
2512         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2513         Automake's default of just "-e" is fine.  Override on a
2514         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2515
2516 2012-03-01  Eric Blake  <eblake@redhat.com>
2517
2518         maint.mk: allow announcement for non-gnulib project
2519         * maint.mk (announcement): Skip gnulib version if not used.
2520
2521 2012-03-01  Jim Meyering  <meyering@redhat.com>
2522
2523         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2524         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2525         envvar settings cannot interfere.  Otherwise, setting envvars like
2526         prohibit=foo require=bar, etc. would cause spurious test failures.
2527
2528 2012-03-01  Eric Blake  <eblake@redhat.com>
2529
2530         maint.mk: add per-line exclusions to prohibitions
2531         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2532         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2533         (sc_const_long_option): Use it.
2534
2535 2012-03-01  Bruno Haible  <bruno@clisp.org>
2536
2537         Tests for module 'expl-ieee'.
2538         * modules/expl-ieee-tests: New file.
2539         * tests/test-expl-ieee.c: New file.
2540
2541         New module 'expl-ieee'.
2542         * modules/expl-ieee: New file.
2543
2544         Tests for module 'exp-ieee'.
2545         * modules/exp-ieee-tests: New file.
2546         * tests/test-exp-ieee.c: New file.
2547
2548         New module 'exp-ieee'.
2549         * modules/exp-ieee: New file.
2550
2551         Tests for module 'expf-ieee'.
2552         * modules/expf-ieee-tests: New file.
2553         * tests/test-expf-ieee.c: New file.
2554         * tests/test-exp-ieee.h: New file.
2555
2556         New module 'expf-ieee'.
2557         * modules/expf-ieee: New file.
2558
2559 2012-02-29  Bruno Haible  <bruno@clisp.org>
2560
2561         cbrtl-ieee: Work around test failure on IRIX 6.5.
2562         * m4/cbrtl-ieee.m4: New file.
2563         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2564         test whether cbrtl works with a minus zero argument. Replace it if not.
2565         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2567         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2568         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2569         (Depends-on): Update conditions.
2570         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2571         m4/signbit.m4.
2572         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2573         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2574         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2575
2576         Tests for module 'cbrtl-ieee'.
2577         * modules/cbrtl-ieee-tests: New file.
2578         * tests/test-cbrtl-ieee.c: New file.
2579
2580         New module 'cbrtl-ieee'.
2581         * modules/cbrtl-ieee: New file.
2582
2583         Tests for module 'cbrt-ieee'.
2584         * modules/cbrt-ieee-tests: New file.
2585         * tests/test-cbrt-ieee.c: New file.
2586
2587         New module 'cbrt-ieee'.
2588         * modules/cbrt-ieee: New file.
2589
2590         Tests for module 'cbrtf-ieee'.
2591         * modules/cbrtf-ieee-tests: New file.
2592         * tests/test-cbrtf-ieee.c: New file.
2593         * tests/test-cbrt-ieee.h: New file.
2594
2595         New module 'cbrtf-ieee'.
2596         * modules/cbrtf-ieee: New file.
2597
2598 2012-02-29  Bruno Haible  <bruno@clisp.org>
2599
2600         cbrtf: Work around bug in IRIX 6.5 system function.
2601         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2602         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2603         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2604         work.
2605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2606         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2607         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2608         (Depends-on): Update conditions.
2609         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2610
2611 2012-02-29  Bruno Haible  <bruno@clisp.org>
2612
2613         Tests for module 'cbrtl'.
2614         * modules/cbrtl-tests: New file.
2615         * tests/test-cbrtl.c: New file.
2616
2617         New module 'cbrtl'.
2618         * lib/math.in.h (cbrtl): New declaration.
2619         * lib/cbrtl.c: New file.
2620         * m4/cbrtl.m4: New file.
2621         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2623         HAVE_DECL_CBRTL.
2624         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2625         HAVE_DECL_CBRTL.
2626         * modules/cbrtl: New file.
2627         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2628         * doc/posix-functions/cbrtl.texi: Mention the new module.
2629
2630 2012-02-29  Bruno Haible  <bruno@clisp.org>
2631
2632         Tests for module 'cbrtf'.
2633         * modules/cbrtf-tests: New file.
2634         * tests/test-cbrtf.c: New file.
2635
2636         New module 'cbrtf'.
2637         * lib/math.in.h (cbrtf): New declaration.
2638         * lib/cbrtf.c: New file.
2639         * m4/cbrtf.m4: New file.
2640         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2641         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2642         HAVE_DECL_CBRTF.
2643         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2644         HAVE_DECL_CBRTF.
2645         * modules/cbrtf: New file.
2646         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2647         * doc/posix-functions/cbrtf.texi: Mention the new module.
2648
2649 2012-02-29  Bruno Haible  <bruno@clisp.org>
2650
2651         cbrt: Provide replacement on MSVC and Minix.
2652         * lib/math.in.h (cbrt): New declaration.
2653         * lib/cbrt.c: New file.
2654         * m4/cbrt.m4: New file.
2655         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2656         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2657         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2658         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2659         (Depends-on): Add dependencies.
2660         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2661         * tests/test-math-c++.cc: Check the declaration of cbrt.
2662         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2663         replacement.
2664
2665 2012-02-29  Bruno Haible  <bruno@clisp.org>
2666
2667         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2668         * m4/hypotl-ieee.m4: New file.
2669         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2670         test whether hypotl works with mixed NaN and Infinity arguments.
2671         Replace it if not.
2672         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2674         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2675         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2676         (Depends-on): Update conditions.
2677         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2678         (Depends-on): Add hypot-ieee.
2679         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2680         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2681
2682         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2683         * m4/hypotf-ieee.m4: New file.
2684         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2685         test whether hypotf works with mixed NaN and Infinity arguments.
2686         Replace it if not.
2687         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2688         (Depends-on): Add hypot-ieee.
2689         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2690         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2691
2692         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2693         * lib/math.in.h (hypot): New declaration.
2694         * lib/hypot.c: New file.
2695         * m4/hypot-ieee.m4: New file.
2696         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2697         whether hypot works with mixed NaN and Infinity arguments. Replace it
2698         if not.
2699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2700         REPLACE_HYPOT.
2701         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2702         * modules/hypot (Files): Add lib/hypot.c.
2703         (Depends-on): Add dependencies.
2704         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2705         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2706         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2707         * tests/test-math-c++.cc: Check the declaration of hypot.
2708         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2709
2710         Tests for module 'hypotl-ieee'.
2711         * modules/hypotl-ieee-tests: New file.
2712         * tests/test-hypotl-ieee.c: New file.
2713
2714         New module 'hypotl-ieee'.
2715         * modules/hypotl-ieee: New file.
2716
2717         Tests for module 'hypot-ieee'.
2718         * modules/hypot-ieee-tests: New file.
2719         * tests/test-hypot-ieee.c: New file.
2720
2721         New module 'hypot-ieee'.
2722         * modules/hypot-ieee: New file.
2723
2724         Tests for module 'hypotf-ieee'.
2725         * modules/hypotf-ieee-tests: New file.
2726         * tests/test-hypotf-ieee.c: New file.
2727         * tests/test-hypot-ieee.h: New file.
2728
2729         New module 'hypotf-ieee'.
2730         * modules/hypotf-ieee: New file.
2731
2732 2012-02-29  Bruno Haible  <bruno@clisp.org>
2733
2734         Remove unused variables.
2735         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2736         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2737         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2738         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2739
2740 2012-02-29  Eric Blake  <eblake@redhat.com>
2741
2742         termios: fix pid_t always, not just for tcgetsid
2743         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2744         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2745         just when building tcgetsid.
2746
2747 2012-02-29  Bruno Haible  <bruno@clisp.org>
2748
2749         Tests for module 'hypotl'.
2750         * modules/hypotl-tests: New file.
2751         * tests/test-hypotl.c: New file.
2752
2753         New module 'hypotl'.
2754         * lib/math.in.h (hypotl): New declaration.
2755         * lib/hypotl.c: New file.
2756         * m4/hypotl.m4: New file.
2757         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2758         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2759         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2760         * modules/hypotl: New file.
2761         * tests/test-math-c++.cc: Check the hypotl declaration.
2762         * doc/posix-functions/hypotl.texi: Mention the new module.
2763
2764 2012-02-29  Eric Blake  <eblake@redhat.com>
2765
2766         tcgetsid: fix cygwin header bug
2767         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2768
2769         docs: update cygwin progress
2770         * doc/posix-functions/llround.texi (llround): Added in cygwin
2771         1.7.8.
2772         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2773         * doc/glibc-functions/program_invocation_name.texi
2774         (program_invocation_name): Likewise.
2775         * doc/glibc-functions/program_invocation_short_name.texi
2776         (program_invocation_short_name): Likewise.
2777         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2778         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2779         Likewise.
2780         * doc/posix-functions/pthread_spin_destroy.texi
2781         (pthread_spin_destroy): Added in cygwin 1.7.10.
2782         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2783         Likewise.
2784         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2785         Likewise.
2786         * doc/posix-functions/pthread_spin_trylock.texi
2787         (pthread_spin_trylock): Likewise.
2788         * doc/posix-functions/pthread_spin_unlock.texi
2789         (pthread_spin_unlock): Likewise.
2790         * doc/posix-functions/pthread_setschedprio.texi
2791         (pthread_setschedprio): Likewise.
2792         * doc/posix-functions/pthread_attr_getstack.texi
2793         (pthread_attr_getstack): Likewise.
2794         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2795         (pthread_attr_getstackaddr): Likewise.
2796         * doc/glibc-functions/pthread_getattr_np.texi
2797         (pthread_getattr_np): Likewise.
2798         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2799         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2800         * doc/posix-functions/clock_settime.texi (clock_settime):
2801         Likewise.
2802         * doc/posix-functions/pthread_attr_getguardsize.texi
2803         (pthread_attr_getguardsize): Likewise.
2804         * doc/posix-functions/pthread_attr_setguardsize.texi
2805         (pthread_attr_setguardsize): Likewise.
2806         * doc/posix-functions/pthread_attr_setstack.texi
2807         (pthread_attr_setstack): Likewise.
2808         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2809         (pthread_attr_setstackaddr): Likewise.
2810         * doc/posix-functions/clock_getcpuclockid.texi
2811         (clock_getcpuclockid): Likewise.
2812         * doc/posix-functions/pthread_getcpuclockid.texi
2813         (pthread_getcpuclockid): Likewise.
2814         * doc/glibc-functions/error.texi (error): Likewise.
2815         * doc/glibc-functions/error_at_line.texi (error_at_line):
2816         Likewise.
2817         * doc/glibc-functions/error_message_count.texi
2818         (error_message_count): Likewise.
2819         * doc/glibc-functions/error_one_per_line.texi
2820         (error_one_per_line): Likewise.
2821         * doc/glibc-functions/error_print_progname.texi
2822         (error_print_progname): Likewise.
2823         * doc/posix-functions/pthread_condattr_getclock.texi
2824         (pthread_condattr_getclock): Likewise.
2825         * doc/posix-functions/pthread_condattr_setclock.texi
2826         (pthread_condattr_setclock): Likewise.
2827         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2828         Likewise.
2829         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2830         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2831         * doc/glibc-functions/get_current_dir_name.texi
2832         (get_current_dir_name): Likewise.
2833         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2834         Likewise.
2835         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2836         wrong return type.
2837         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2838         1.7.11.
2839
2840 2012-02-29  Bruno Haible  <bruno@clisp.org>
2841
2842         Tests for module 'hypotf'.
2843         * modules/hypotf-tests: New file.
2844         * tests/test-hypotf.c: New file.
2845
2846         New module 'hypotf'.
2847         * lib/math.in.h (hypotf): New declaration.
2848         * lib/hypotf.c: New file.
2849         * m4/hypotf.m4: New file.
2850         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2852         REPLACE_HYPOTF.
2853         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2854         REPLACE_HYPOTF.
2855         * modules/hypotf: New file.
2856         * tests/test-math-c++.cc: Check the hypotf declaration.
2857         * doc/posix-functions/hypotf.texi: Mention the new module.
2858
2859         hypot: Prepare for hypotf module.
2860         * m4/hypot.m4: New file.
2861         * modules/hypot (Files): Add m4/hypot.m4.
2862         (configure.ac): Invoke gl_FUNC_HYPOT.
2863
2864 2012-02-29  Bruno Haible  <bruno@clisp.org>
2865
2866         hypot tests: More tests.
2867         * tests/test-hypot.c: Include <float.h>.
2868         (main): Add tests about overflow and underflow.
2869
2870 2012-02-29  Bruno Haible  <bruno@clisp.org>
2871
2872         math code: Add comments.
2873         * lib/acosl.c: Add comment about related glibc source files.
2874         * lib/asinl.c: Likewise.
2875         * lib/atanl.c: Likewise.
2876         * lib/expl.c: Likewise.
2877         * lib/logl.c: Likewise.
2878         * lib/sincosl.c: Likewise.
2879         * lib/sinl.c: Likewise.
2880         * lib/tanl.c: Likewise.
2881         * lib/trigl.c: Likewise.
2882         * lib/cosl.c: Likewise. Fix comments.
2883
2884 2012-02-28  Bruno Haible  <bruno@clisp.org>
2885
2886         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2887         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2888         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2889         HUGE_VALL are defined.
2890         (numeric_equald): Renamed from numeric_equal.
2891         (numeric_equalf, numeric_equall): New functions.
2892         (main): Check also HUGE_VALF, HUGE_VALL.
2893         * modules/math-tests (Files): Add tests/macros.h.
2894         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2895         HUGE_VALL.
2896
2897 2012-02-28  Bruno Haible  <bruno@clisp.org>
2898
2899         doc: Move ISO C11 feature notes into POSIX chapters.
2900         * doc/posix-functions/aligned_alloc.texi: Renamed from
2901         doc/glibc-functions/aligned_alloc.texi.
2902         * doc/posix-functions/quick_exit.texi: Renamed from
2903         doc/glibc-functions/quick_exit.texi.
2904         * doc/posix-headers/uchar.texi: Renamed from
2905         doc/glibc-headers/uchar.texi.
2906         * doc/posix-functions/c16rtomb.texi: Renamed from
2907         doc/glibc-functions/c16rtomb.texi.
2908         * doc/posix-functions/c32rtomb.texi: Renamed from
2909         doc/glibc-functions/c32rtomb.texi.
2910         * doc/posix-functions/mbrtoc16.texi: Renamed from
2911         doc/glibc-functions/mbrtoc16.texi.
2912         * doc/posix-functions/mbrtoc32.texi: Renamed from
2913         doc/glibc-functions/mbrtoc32.texi.
2914         * doc/gnulib.texi: Update.
2915         (Glibc uchar.h): Remove section.
2916         Suggested by Eric Blake.
2917
2918 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2919
2920         stdnoreturn: port to MSVC better
2921         MSVC standard headers use __declspec(noreturn), so #define noreturn
2922         to empty on that platform.  Reported by Bruno Haible in
2923         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2924         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2925         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2926
2927 2012-02-28  Bruno Haible  <bruno@clisp.org>
2928
2929         doc: Mention new glibc headers and functions.
2930         * doc/glibc-headers/uchar.texi: New file.
2931         * doc/glibc-functions/aligned_alloc.texi: New file.
2932         * doc/glibc-functions/c16rtomb.texi: New file.
2933         * doc/glibc-functions/c32rtomb.texi: New file.
2934         * doc/glibc-functions/clock_adjtime.texi: New file.
2935         * doc/glibc-functions/fanotify_init.texi: New file.
2936         * doc/glibc-functions/fanotify_mark.texi: New file.
2937         * doc/glibc-functions/inet6_opt_append.texi: New file.
2938         * doc/glibc-functions/inet6_opt_find.texi: New file.
2939         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2940         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2941         * doc/glibc-functions/inet6_opt_init.texi: New file.
2942         * doc/glibc-functions/inet6_opt_next.texi: New file.
2943         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2944         * doc/glibc-functions/inet6_rth_add.texi: New file.
2945         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2946         * doc/glibc-functions/inet6_rth_init.texi: New file.
2947         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2948         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2949         * doc/glibc-functions/inet6_rth_space.texi: New file.
2950         * doc/glibc-functions/login.texi: New file.
2951         * doc/glibc-functions/mbrtoc16.texi: New file.
2952         * doc/glibc-functions/mbrtoc32.texi: New file.
2953         * doc/glibc-functions/name_to_handle_at.texi: New file.
2954         * doc/glibc-functions/ntp_gettimex.texi: New file.
2955         * doc/glibc-functions/open_by_handle_at.texi: New file.
2956         * doc/glibc-functions/prlimit.texi: New file.
2957         * doc/glibc-functions/process_vm_readv.texi: New file.
2958         * doc/glibc-functions/process_vm_writev.texi: New file.
2959         * doc/glibc-functions/recvmmsg.texi: New file.
2960         * doc/glibc-functions/scandirat.texi: New file.
2961         * doc/glibc-functions/sendmmsg.texi: New file.
2962         * doc/glibc-functions/setns.texi: New file.
2963         * doc/glibc-functions/timespec_get.texi: New file.
2964         * doc/gnulib.texi: Include them.
2965         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2966         sections.
2967         Reported by Eric Blake.
2968
2969 2012-02-28  Bruno Haible  <bruno@clisp.org>
2970
2971         Avoid compilation errors with MSVC option -fp:strict.
2972         * lib/floor.c: Use MSVC specific pragma fenv_access.
2973         * lib/ceil.c: Likewise.
2974         * lib/trunc.c: Likewise.
2975         * lib/round.c: Likewise.
2976         * lib/rint.c: Likewise.
2977         * lib/fma.c: Likewise.
2978         * lib/integer_length.c: Likewise.
2979         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2980         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2981         * tests/test-floor2.c: Likewise.
2982         * tests/test-floorf2.c: Likewise.
2983         * tests/test-ceil2.c: Likewise.
2984         * tests/test-ceilf2.c: Likewise.
2985         * tests/test-trunc2.c: Likewise.
2986         * tests/test-truncf2.c: Likewise.
2987         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2988
2989 2012-02-27  Bruno Haible  <bruno@clisp.org>
2990
2991         Tests for module 'sqrtl-ieee'.
2992         * modules/sqrtl-ieee-tests: New file.
2993         * tests/test-sqrtl-ieee.c: New file.
2994
2995         New module 'sqrtl-ieee'.
2996         * modules/sqrtl-ieee: New file.
2997
2998         Tests for module 'sqrt-ieee'.
2999         * modules/sqrt-ieee-tests: New file.
3000         * tests/test-sqrt-ieee.c: New file.
3001
3002         New module 'sqrt-ieee'.
3003         * modules/sqrt-ieee: New file.
3004
3005         Tests for module 'sqrtf-ieee'.
3006         * modules/sqrtf-ieee-tests: New file.
3007         * tests/test-sqrtf-ieee.c: New file.
3008         * tests/test-sqrt-ieee.h: New file.
3009
3010         New module 'sqrtf-ieee'.
3011         * modules/sqrtf-ieee: New file.
3012
3013 2012-02-27  Bruno Haible  <bruno@clisp.org>
3014
3015         remainderl-ieee: Work around test failure on OSF/1.
3016         * m4/remainderl-ieee.m4: New file.
3017         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3018         present, test whether remainderl works with a zero second argument.
3019         Replace it if not.
3020         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3022         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3023         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3024         (Depends-on): Update conditions.
3025         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3026         (Depends-on): Add remainder-ieee.
3027         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3028         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3029         module.
3030
3031         remainderf-ieee: Work around test failure on OSF/1.
3032         * m4/remainderf-ieee.m4: New file.
3033         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3034         present, test whether remainderf works with a zero second argument.
3035         Replace it if not.
3036         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3037         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3038         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3039         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3040         (Depends-on): Update conditions.
3041         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3042         (Depends-on): Add remainder-ieee.
3043         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3044         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3045         module.
3046
3047         remainder-ieee: Work around test failure on OSF/1.
3048         * m4/remainder-ieee.m4: New file.
3049         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3050         present, test whether remainder works with a zero second argument.
3051         Replace it if not.
3052         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3054         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3055         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3056         (Depends-on): Update dependencies.
3057         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3058         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3059         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3060
3061         Tests for module 'remainderl-ieee'.
3062         * modules/remainderl-ieee-tests: New file.
3063         * tests/test-remainderl-ieee.c: New file.
3064
3065         New module 'remainderl-ieee'.
3066         * modules/remainderl-ieee: New file.
3067
3068         Tests for module 'remainder-ieee'.
3069         * modules/remainder-ieee-tests: New file.
3070         * tests/test-remainder-ieee.c: New file.
3071
3072         New module 'remainder-ieee'.
3073         * modules/remainder-ieee: New file.
3074
3075         Tests for module 'remainderf-ieee'.
3076         * modules/remainderf-ieee-tests: New file.
3077         * tests/test-remainderf-ieee.c: New file.
3078         * tests/test-remainder-ieee.h: New file.
3079
3080         New module 'remainderf-ieee'.
3081         * modules/remainderf-ieee: New file.
3082
3083 2012-02-27  Bruno Haible  <bruno@clisp.org>
3084
3085         modff, modfl: Fix configure syntax error.
3086         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3087         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3088
3089 2012-02-27  Bruno Haible  <bruno@clisp.org>
3090
3091         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3092         * m4/fmodl-ieee.m4: New file.
3093         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3094         whether fmodl works with zero arguments. Replace it if not.
3095         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3096         (Depends-on): Add fmod-ieee.
3097         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3098         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3099
3100         fmodf-ieee: Work around test failure on OSF/1.
3101         * m4/fmodf-ieee.m4: New file.
3102         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3103         whether fmodf works with zero arguments. Replace it if not.
3104         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3106         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3107         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3108         (Depends-on): Update dependencies.
3109         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3110         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3111         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3112
3113         fmodf-ieee: Work around test failure on MSVC 9.
3114         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3115         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3116
3117         fmod-ieee: Work around test failures on OSF/1, mingw.
3118         * m4/fmod-ieee.m4: New file.
3119         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3120         whether fmod works with zero arguments. Replace it if not.
3121         * lib/math.in.h (fmod): New declaration.
3122         * lib/fmod.c: New file.
3123         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3125         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3126         * modules/fmod (Files): Add lib/fmod.c.
3127         (Depends-on): Add math, isinf, trunc, fma.
3128         (configure.ac): Arrange to compile lib/fmod.c if needed.
3129         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3130         m4/signbit.m4.
3131         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3132         * tests/test-math-c++.cc: Check the declaration of fmod.
3133         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3134
3135         fmodl-ieee: Fix test failures.
3136         * lib/fmodl.c (fmodl): Treat Inf specially.
3137         * modules/fmodl (Depends-on): Add isinf.
3138
3139         Tests for module 'fmodl-ieee'.
3140         * modules/fmodl-ieee-tests: New file.
3141         * tests/test-fmodl-ieee.c: New file.
3142
3143         New module 'fmodl-ieee'.
3144         * modules/fmodl-ieee: New file.
3145
3146         Tests for module 'fmod-ieee'.
3147         * modules/fmod-ieee-tests: New file.
3148         * tests/test-fmod-ieee.c: New file.
3149
3150         New module 'fmod-ieee'.
3151         * modules/fmod-ieee: New file.
3152
3153         Tests for module 'fmodf-ieee'.
3154         * modules/fmodf-ieee-tests: New file.
3155         * tests/test-fmodf-ieee.c: New file.
3156         * tests/test-fmod-ieee.h: New file.
3157
3158         New module 'fmodf-ieee'.
3159         * modules/fmodf-ieee: New file.
3160
3161 2012-02-27  Bruno Haible  <bruno@clisp.org>
3162
3163         Tests for module 'rintl-ieee'.
3164         * modules/rintl-ieee-tests: New file.
3165         * tests/test-rintl-ieee.c: New file.
3166
3167         New module 'rintl-ieee'.
3168         * modules/rintl-ieee: New file.
3169
3170         Tests for module 'rint-ieee'.
3171         * modules/rint-ieee-tests: New file.
3172         * tests/test-rint-ieee.c: New file.
3173
3174         New module 'rint-ieee'.
3175         * modules/rint-ieee: New file.
3176
3177         Tests for module 'rintf-ieee'.
3178         * modules/rintf-ieee-tests: New file.
3179         * tests/test-rintf-ieee.c: New file.
3180         * tests/test-rint-ieee.h: New file.
3181
3182         New module 'rintf-ieee'.
3183         * modules/rintf-ieee: New file.
3184
3185 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3186
3187         regex: re_search etc. should return -2 when memory exhausted
3188         This bug was uncovered when testing 'grep'.  Without the fix,
3189         re_search and friends return -1 when memory is exhausted, but -1
3190         means no match, and this causes grep to falsely report no-match
3191         instead of memory-exhaustion.  See
3192         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3193         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3194         trouble; this can occur if re_search_internal ran out of memory.
3195
3196 2012-02-26  Bruno Haible  <bruno@clisp.org>
3197
3198         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3199         * m4/modfl-ieee.m4: New file.
3200         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3201         whether modfl works with Inf. Replace it if not.
3202         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3204         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3205         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3206         (Depends-on): Update dependencies.
3207         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3208         m4/signbit.m4.
3209         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3210         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3211
3212         modfl-ieee: Fix dependencies.
3213         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3214
3215         modfl-ieee: Fix test failures.
3216         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3217         * modules/modfl (Depends-on): Add isfinite, isinf.
3218
3219         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3220         * m4/modff-ieee.m4: New file.
3221         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3222         whether modff works with NaN and Inf. Replace it if not.
3223         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3225         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3226         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3227         (Depends-on): Update dependencies.
3228         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3229         m4/signbit.m4.
3230         (Depends-on): Add modf-ieee.
3231         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3232         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3233
3234         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3235         * m4/modf-ieee.m4: New file.
3236         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3237         whether modf works with NaN and Inf. Replace it if not.
3238         * lib/math.in.h (modf): New declaration.
3239         * lib/modf.c: New file.
3240         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3241         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3242         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3243         * modules/modf (Files): Add lib/modf.c.
3244         (Depends-on): Add math, isfinite, trunc, isinf.
3245         (configure.ac): Addrange to compile lib/modf.c if needed.
3246         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3247         m4/signbit.m4.
3248         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3249         * tests/test-math-c++.cc: Check the declaration of modf.
3250         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3251
3252         Tests for module 'modfl-ieee'.
3253         * modules/modfl-ieee-tests: New file.
3254         * tests/test-modfl-ieee.c: New file.
3255
3256         New module 'modfl-ieee'.
3257         * modules/modfl-ieee: New file.
3258
3259         Tests for module 'modf-ieee'.
3260         * modules/modf-ieee-tests: New file.
3261         * tests/test-modf-ieee.c: New file.
3262
3263         New module 'modf-ieee'.
3264         * modules/modf-ieee: New file.
3265
3266         Tests for module 'modff-ieee'.
3267         * modules/modff-ieee-tests: New file.
3268         * tests/test-modff-ieee.c: New file.
3269         * tests/test-modf-ieee.h: New file.
3270
3271         New module 'modff-ieee'.
3272         * modules/modff-ieee: New file.
3273
3274 2012-02-26  Bruno Haible  <bruno@clisp.org>
3275
3276         Tests for module 'fabsl-ieee'.
3277         * modules/fabsl-ieee-tests: New file.
3278         * tests/test-fabsl-ieee.c: New file.
3279
3280         New module 'fabsl-ieee'.
3281         * modules/fabsl-ieee: New file.
3282
3283         Tests for module 'fabs-ieee'.
3284         * modules/fabs-ieee-tests: New file.
3285         * tests/test-fabs-ieee.c: New file.
3286
3287         New module 'fabs-ieee'.
3288         * modules/fabs-ieee: New file.
3289
3290         Tests for module 'fabsf-ieee'.
3291         * modules/fabsf-ieee-tests: New file.
3292         * tests/test-fabsf-ieee.c: New file.
3293         * tests/test-fabs-ieee.h: New file.
3294
3295         New module 'fabsf-ieee'.
3296         * modules/fabsf-ieee: New file.
3297
3298 2012-02-26  Bruno Haible  <bruno@clisp.org>
3299
3300         Tests for module 'fmal-ieee'.
3301         * modules/fmal-ieee-tests: New file.
3302         * tests/test-fmal-ieee.c: New file.
3303
3304         New module 'fmal-ieee'.
3305         * modules/fmal-ieee: New file.
3306
3307         Tests for module 'fma-ieee'.
3308         * modules/fma-ieee-tests: New file.
3309         * tests/test-fma-ieee.c: New file.
3310
3311         New module 'fma-ieee'.
3312         * modules/fma-ieee: New file.
3313
3314         Tests for module 'fmaf-ieee'.
3315         * modules/fmaf-ieee-tests: New file.
3316         * tests/test-fmaf-ieee.c: New file.
3317         * tests/test-fma-ieee.h: New file.
3318
3319         New module 'fmaf-ieee'.
3320         * modules/fmaf-ieee: New file.
3321
3322 2012-02-26  Bruno Haible  <bruno@clisp.org>
3323
3324         Tests for module 'ldexpl-ieee'.
3325         * modules/ldexpl-ieee-tests: New file.
3326         * tests/test-ldexpl-ieee.c: New file.
3327
3328         New module 'ldexpl-ieee'.
3329         * modules/ldexpl-ieee: New file.
3330
3331         Tests for module 'ldexp-ieee'.
3332         * modules/ldexp-ieee-tests: New file.
3333         * tests/test-ldexp-ieee.c: New file.
3334
3335         New module 'ldexp-ieee'.
3336         * modules/ldexp-ieee: New file.
3337
3338         Tests for module 'ldexpf-ieee'.
3339         * modules/ldexpf-ieee-tests: New file.
3340         * tests/test-ldexpf-ieee.c: New file.
3341         * tests/test-ldexp-ieee.h: New file.
3342
3343         New module 'ldexpf-ieee'.
3344         * modules/ldexpf-ieee: New file.
3345
3346 2012-02-26  Bruno Haible  <bruno@clisp.org>
3347
3348         Refactor frexp*-ieee tests.
3349         * tests/test-frexp-ieee.h: New file.
3350         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3351         (main): Just call test_function.
3352         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3353         (main): Just call test_function.
3354         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3355         (main): Just call test_function.
3356         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3357         * modules/frexp-ieee-tests (Files): Likewise.
3358         * modules/frexpl-ieee-tests (Files): Likewise.
3359
3360         Tests for module 'frexpl-ieee'.
3361         * modules/frexpl-ieee-tests: New file.
3362         * tests/test-frexpl-ieee.c: New file.
3363
3364         New module 'frexpl-ieee'.
3365         * modules/frexpl-ieee: New file.
3366
3367         Tests for module 'frexp-ieee'.
3368         * modules/frexp-ieee-tests: New file.
3369         * tests/test-frexp-ieee.c: New file.
3370
3371         New module 'frexp-ieee'.
3372         * modules/frexp-ieee: New file.
3373
3374         Tests for module 'frexpf-ieee'.
3375         * modules/frexpf-ieee-tests: New file.
3376         * tests/test-frexpf-ieee.c: New file.
3377
3378         New module 'frexpf-ieee'.
3379         * modules/frexpf-ieee: New file.
3380
3381 2012-02-26  Bruno Haible  <bruno@clisp.org>
3382
3383         roundl-ieee tests: More tests.
3384         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3385         (main): Add tests for [MX] shaded specification in POSIX.
3386         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3387         (Depends-on): Add isnanl-nolibm.
3388
3389         round-ieee tests: More tests.
3390         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3391         (main): Add tests for [MX] shaded specification in POSIX.
3392         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3393         (Depends-on): Add isnand-nolibm.
3394
3395         roundf-ieee tests: More tests.
3396         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3397         (main): Add tests for [MX] shaded specification in POSIX.
3398         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3399         (Depends-on): Add isnanf-nolibm.
3400
3401         truncl-ieee tests: More tests.
3402         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3403         (main): Add tests for [MX] shaded specification in POSIX.
3404         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3405         (Depends-on): Add isnanl-nolibm.
3406
3407         trunc-ieee tests: More tests.
3408         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3409         (main): Add tests for [MX] shaded specification in POSIX.
3410         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3411         (Depends-on): Add isnand-nolibm.
3412
3413         truncf-ieee tests: More tests.
3414         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3415         (main): Add tests for [MX] shaded specification in POSIX.
3416         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3417         (Depends-on): Add isnanf-nolibm.
3418
3419         ceill-ieee tests: More tests.
3420         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3421         (main): Add tests for [MX] shaded specification in POSIX.
3422         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3423         (Depends-on): Add isnanl-nolibm.
3424
3425         ceil-ieee tests: More tests.
3426         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3427         (main): Add tests for [MX] shaded specification in POSIX.
3428         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3429         (Depends-on): Add isnand-nolibm.
3430
3431         ceilf-ieee tests: More tests.
3432         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3433         (main): Add tests for [MX] shaded specification in POSIX.
3434         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3435         (Depends-on): Add isnanf-nolibm.
3436
3437         floorl-ieee tests: More tests.
3438         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3439         (main): Add tests for [MX] shaded specification in POSIX.
3440         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3441         (Depends-on): Add isnanl-nolibm.
3442
3443         floor-ieee tests: More tests.
3444         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3445         (main): Add tests for [MX] shaded specification in POSIX.
3446         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3447         (Depends-on): Add isnand-nolibm.
3448
3449         floorf-ieee tests: More tests.
3450         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3451         (main): Add tests for [MX] shaded specification in POSIX.
3452         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3453         (Depends-on): Add isnanf-nolibm.
3454
3455 2012-02-26  Bruno Haible  <bruno@clisp.org>
3456
3457         fpieee: More comments.
3458         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3459
3460 2012-02-25  Bruno Haible  <bruno@clisp.org>
3461
3462         Tests for module 'log10l'.
3463         * modules/log10l-tests: New file.
3464         * tests/test-log10l.c: New file.
3465         * tests/test-math-c++.cc: Check the declaration of log10l.
3466
3467         New module 'log10l'.
3468         * lib/math.in.h (log10l): New declaration.
3469         * lib/log10l.c: New file.
3470         * m4/log10l.m4: New file.
3471         * modules/log10l: New file.
3472         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3474         HAVE_DECL_LOG10L.
3475         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3476         HAVE_DECL_LOG10L.
3477         * doc/posix-functions/log10l.texi: Mention the new module.
3478
3479 2012-02-25  Bruno Haible  <bruno@clisp.org>
3480
3481         fmodl, remainder*: Avoid wrong results due to rounding errors.
3482         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3483         expected bounds.
3484         * lib/remainderf.c (remainderf): Likewise.
3485         * lib/remainder.c (remainder): Likewise.
3486         * lib/remainderl.c (remainderl): Likewise.
3487
3488 2012-02-25  Bruno Haible  <bruno@clisp.org>
3489
3490         Tests for module 'remainderl'.
3491         * modules/remainderl-tests: New file.
3492         * tests/test-remainderl.c: New file.
3493         * tests/test-math-c++.cc: Check the declaration of remainderl.
3494
3495         New module 'remainderl'.
3496         * lib/math.in.h (remainderl): New declaration.
3497         * lib/remainderl.c: New file.
3498         * m4/remainderl.m4: New file.
3499         * modules/remainderl: New file.
3500         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3501         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3502         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3503         HAVE_REMAINDERL.
3504         * doc/posix-functions/remainderl.texi: Mention the new module.
3505
3506 2012-02-25  Bruno Haible  <bruno@clisp.org>
3507
3508         Tests for module 'remainderf'.
3509         * modules/remainderf-tests: New file.
3510         * tests/test-remainderf.c: New file.
3511         * tests/test-math-c++.cc: Check the declaration of remainderf.
3512
3513         New module 'remainderf'.
3514         * lib/math.in.h (remainderf): New declaration.
3515         * lib/remainderf.c: New file.
3516         * m4/remainderf.m4: New file.
3517         * modules/remainderf: New file.
3518         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3519         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3520         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3521         HAVE_REMAINDERF.
3522         * doc/posix-functions/remainderf.texi: Mention the new module.
3523
3524 2012-02-25  Bruno Haible  <bruno@clisp.org>
3525
3526         remainder: Support for MSVC.
3527         * lib/math.in.h (remainder): New declaration.
3528         * lib/remainder.c: New file.
3529         * m4/remainder.m4: New file.
3530         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3531         (Depends-on): Add math, round, fma.
3532         (configure.ac): Use results of gl_FUNC_REMAINDER.
3533         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3534         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3535         HAVE_DECL_REMAINDER.
3536         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3537         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3538         * tests/test-math-c++.cc: Check the declaration of remainder.
3539         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3540         problems are fixed.
3541
3542 2012-02-25  Bruno Haible  <bruno@clisp.org>
3543
3544         Tests for module 'fmodl'.
3545         * modules/fmodl-tests: New file.
3546         * tests/test-fmodl.c: New file.
3547         * tests/test-math-c++.cc: Check the declaration of fmodl.
3548
3549         New module 'fmodl'.
3550         * lib/math.in.h (fmodl): New declaration.
3551         * lib/fmodl.c: New file.
3552         * m4/fmodl.m4: New file.
3553         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3554         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3555         REPLACE_FMODL.
3556         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3557         REPLACE_FMODL.
3558         * modules/fmodl: New file.
3559         * doc/posix-functions/fmodl.texi: Mention the new module.
3560
3561 2012-02-25  Bruno Haible  <bruno@clisp.org>
3562
3563         Tests for module 'modfl'.
3564         * modules/modfl-tests: New file.
3565         * tests/test-modfl.c: New file.
3566         * tests/test-math-c++.cc: Check the declaration of modfl.
3567
3568         New module 'modfl'.
3569         * lib/math.in.h (modfl): New declaration.
3570         * lib/modfl.c: New file.
3571         * m4/modfl.m4: New file.
3572         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3574         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3575         * modules/modfl: New file.
3576         * doc/posix-functions/modfl.texi: Mention the new module.
3577
3578 2012-02-25  Bruno Haible  <bruno@clisp.org>
3579
3580         Tests for module 'fabsl'.
3581         * modules/fabsl-tests: New file.
3582         * tests/test-fabsl.c: New file.
3583         * tests/test-math-c++.cc: Check the declaration of fabsl.
3584
3585         New module 'fabsl'.
3586         * lib/math.in.h (fabsl): New declaration.
3587         * lib/fabsl.c: New file.
3588         * m4/fabsl.m4: New file.
3589         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3590         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3591         REPLACE_FABSL.
3592         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3593         REPLACE_FABSL.
3594         * modules/fabsl: New file.
3595         * doc/posix-functions/fabsl.texi: Mention the new module.
3596
3597 2012-02-25  Bruno Haible  <bruno@clisp.org>
3598
3599         fabs tests: More tests.
3600         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3601         (zero): New variable.
3602         (main): Add tests for signed zero.
3603         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3604
3605         fabsf tests: More tests.
3606         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3607         (zero): New variable.
3608         (main): Add tests for signed zero.
3609         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3610
3611 2012-02-24  Bruno Haible  <bruno@clisp.org>
3612
3613         atanl: Provide function definition on MSVC.
3614         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3615         function pointer.
3616         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3617
3618 2012-02-24  Bruno Haible  <bruno@clisp.org>
3619
3620         acosl: Provide function definition on MSVC.
3621         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3622         function pointer.
3623         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3624
3625 2012-02-24  Bruno Haible  <bruno@clisp.org>
3626
3627         asinl: Provide function definition on MSVC.
3628         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3629         function pointer.
3630         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3631
3632 2012-02-24  Bruno Haible  <bruno@clisp.org>
3633
3634         tanl: Provide function definition on MSVC.
3635         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3636         function pointer.
3637         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3638
3639 2012-02-24  Bruno Haible  <bruno@clisp.org>
3640
3641         cosl: Provide function definition on MSVC.
3642         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3643         function pointer.
3644         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3645
3646 2012-02-24  Bruno Haible  <bruno@clisp.org>
3647
3648         sinl: Provide function definition on MSVC.
3649         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3650         function pointer.
3651         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3652
3653 2012-02-24  Bruno Haible  <bruno@clisp.org>
3654
3655         logl: Provide function definition on MSVC.
3656         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3657         function pointer.
3658         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3659
3660 2012-02-24  Bruno Haible  <bruno@clisp.org>
3661
3662         expl: Provide function definition on MSVC.
3663         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3664         function pointer.
3665         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3666
3667 2012-02-24  Bruno Haible  <bruno@clisp.org>
3668
3669         sqrtl: Provide function definition on MSVC.
3670         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3671         a function pointer.
3672         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3673
3674 2012-02-24  Bruno Haible  <bruno@clisp.org>
3675
3676         ceill: Provide function definition on MSVC.
3677         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3678         used as a function pointer.
3679         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3680
3681 2012-02-24  Bruno Haible  <bruno@clisp.org>
3682
3683         floorl: Provide function definition on MSVC.
3684         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3685         used as a function pointer.
3686         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3687
3688 2012-02-24  Bruno Haible  <bruno@clisp.org>
3689
3690         ceilf: Provide function definition on MSVC.
3691         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3692         used as a function pointer.
3693         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3694
3695 2012-02-24  Bruno Haible  <bruno@clisp.org>
3696
3697         floorf: Provide function definition on MSVC.
3698         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3699         used as a function pointer.
3700         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3701
3702 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3703
3704         stdnoreturn: new module
3705         This implements a replacement for C11's <stdnoreturn.h>.
3706         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3707         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3708         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3709         * tests/test-stdnoreturn.c: New files.
3710
3711 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3712
3713         regex: fix false multibyte matches in some regular expressions
3714         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3715         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3716         * lib/regex_internal.c (re_string_skip_chars):
3717         Fix miscomputation of remain_len that may cause incomplete
3718         multi-byte character and false match.
3719
3720 2012-02-24  Jim Meyering  <meyering@redhat.com>
3721
3722         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3723         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3724         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3725         Remove now-unnecessary str''cmp obfuscation.
3726         Suggested by Akim Demaille.
3727
3728 2012-02-24  Bruno Haible  <bruno@clisp.org>
3729
3730         streq: Rename macro.
3731         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3732         * NEWS: Mention the change.
3733         * lib/mbrtowc.c (mbrtowc): Update.
3734         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3735         * lib/wcwidth.c (wcwidth): Update.
3736         Suggested by Akim Demaille and Jim Meyering.
3737
3738 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3739
3740         regex: fix typo in definition of MIN
3741         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3742         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3743
3744 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3745             Bruno Haible  <bruno@clisp.org>
3746
3747         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3748         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3749         entries into a stack-allocated buffer directly.
3750         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3751
3752 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3753             Bruno Haible  <bruno@clisp.org>
3754
3755         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3756
3757          - There were several instances of this pattern:
3758
3759              for (;;) {
3760                n = acl (f, GETACLCNT, 0, NULL);
3761                [ allocate an array A of size N ]
3762                if (acl (f, GETACL, n, a) == n)
3763                  break;
3764              }
3765
3766            This loop might never terminate if some other process is constantly
3767            manipulating the file's ACL.  The loop should be rewritten to
3768            terminate.
3769
3770          - The acl (... GETACLNT ...) call is merely an optimization; its value
3771            is merely a hint as to how big to make the array.  A better
3772            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3773            and just guess a reasonably-big size, growing the size and trying
3774            again if it's not large enough.  This guarantees termination, and
3775            saves a system call.
3776
3777         * lib/acl-internal.h: Include <limits.h>.
3778         (MIN, SIZE_MAX): New macros.
3779         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3780         a stack-allocated buffer, and use malloc if it does not fit. Don't
3781         use GETACLCNT.
3782         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3783
3784 2012-02-19  Bruno Haible  <bruno@clisp.org>
3785
3786         acl: Fix endless loop on Solaris with vxfs.
3787         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3788         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3789         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3790         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3791         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3792         Reported by Bill Jones in
3793         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3794
3795 2012-02-19  Bruno Haible  <bruno@clisp.org>
3796
3797         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3798         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3799         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3800         that this function returns 0 in some more cases.
3801
3802 2012-02-19  Bruno Haible  <bruno@clisp.org>
3803
3804         acl: Update doc references.
3805         * doc/acl-resources.txt: Update links to Solaris documentation.
3806
3807 2012-02-19  Bruno Haible  <bruno@clisp.org>
3808
3809         Fix test failure in many locales on Solaris 11.
3810         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3811         'tr' arguments.
3812         * tests/test-pipe-filter-ii1.c (main): Likewise.
3813         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3814         expressions in the C locale.
3815         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3816         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3817
3818 2012-02-19  Bruno Haible  <bruno@clisp.org>
3819
3820         gnulib-tool: Improve usage message.
3821         * gnulib-tool (func_usage): Move doc of --help and --version to the
3822         section "Operation modes".
3823
3824 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3825
3826         README-release: make it easier to execute commands
3827         * top/README-release: break commands out on to separate lines.
3828
3829 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3830
3831         GNUmakefile: simplify detection of unconfigured trees
3832         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3833         whether the tree make is being run from is already configured or
3834         not.  Related simplifications.
3835
3836 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3837
3838         * gnulib-tool (func_usage): Document --help and --version.
3839
3840 2012-02-11  Jim Meyering  <meyering@redhat.com>
3841
3842         bootstrap: don't exit 0 upon gnulib-tool failure
3843         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3844         its exit status, not 0.
3845
3846 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3847
3848         README-release: various improvements
3849         * top/README-release: Give a command to push changes for the
3850         release.  Add "distcheck" to list of other pre-release checks.
3851         Fix instance of "make stable" which should be "make TYPE".
3852
3853 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3854
3855         maint: replace FSF snail-mail addresses with URLs
3856         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3857         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3858         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3859         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3860         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3861         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3862         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3863         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3864         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3865         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3866         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3867         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3868         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3869         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3870         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3871         * lib/glthread/thread.c, lib/glthread/thread.h:
3872         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3873         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3874         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3875         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3876         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3877         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3878         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3879         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3880         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3881         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3882         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3883         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3884         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3885         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3886         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3887         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3888         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3889         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3890         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3891         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3892         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3893         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3894         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3895         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3896         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3897         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3898         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3899         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3900         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3901         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3902         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3903         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3904         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3905         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3906         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3907         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3908         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3909         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3910         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3911         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3912         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3913         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3914         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3915         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3916         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3917         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3918         * tests/test-poll.c, tests/test-quotearg-simple.c:
3919         * tests/test-quotearg.c, tests/test-quotearg.h:
3920         * tests/test-round-ieee.c, tests/test-round1.c:
3921         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3922         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3923         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3924         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3925         * tests/test-strerror.c, tests/test-strerror_r.c:
3926         * tests/test-strsignal.c, tests/test-strverscmp.c:
3927         * tests/test-xmemdup0.c:
3928         Replace FSF snail mail addresses with URLs, as per GNU coding
3929         standards.  See glibc bug
3930         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3931
3932 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3933
3934         README-release: capitalize a word and split a line
3935         * top/README-release: Fix punctuation and spacing.
3936
3937 2012-02-08  Akim Demaille  <demaille@gostai.com>
3938
3939         fatal-signal: use C prototypes (with explicit void).
3940         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3941         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3942
3943 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3944
3945         regex: spelling fix
3946         * lib/regexec.c: spelling fix
3947
3948         regex: rely on stdint.h for SIZE_MAX
3949         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3950
3951 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3952
3953         regex: merge glibc changes
3954
3955         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3956         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3957         (init_word_char): Work even if bitset words are not exactly 32 or
3958         64 bits wide.  Don't assume there are no padding bits.
3959         * lib/regex.c [_LIBC]: Do not include <config.h>.
3960         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3961         and -Wtype-limits.
3962         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3963         needless disagreement with glibc.  All uses changed.  Define it to
3964         1 only if _GNU_SOURCE, to match glibc.
3965         (_REG_RM_NAME): Remove; no longer needed, since the names in
3966         question are now all protected by __USE_GNU.
3967         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3968         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3969         * lib/regex_internal.h (MIN): New macro.
3970
3971         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3972         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3973
3974         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3975         * lib/regex_internal.c (re_string_fetch_byte_case):
3976         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3977         is miscompiled, and it turns out it is because of an incorrect
3978         attribute on re_string_fetch_byte_case.  Unlike
3979         re_string_peek_byte_case, this one is really not pure, it modifies
3980         memory (increments pstr->cur_idx), and with the pure attribute GCC
3981         assumed it doesn't and it cached the presumed value of
3982         regexp->cur_idx in a variable across the
3983          for (;; ++i)
3984            {
3985              if (i >= BRACKET_NAME_BUF_SIZE)
3986                return REG_EBRACK;
3987              if (token->type == OP_OPEN_CHAR_CLASS)
3988                ch = re_string_fetch_byte_case (regexp);
3989              else
3990                ch = re_string_fetch_byte (regexp);
3991              if (re_string_eoi(regexp))
3992                return REG_EBRACK;
3993              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3994                break;
3995              elem->opr.name[i] = ch;
3996            }
3997
3998         2011-11-29 Andreas Schwab <schwab@redhat.com>
3999         * lib/regcomp.c (build_equiv_class):
4000         Fix access after end of search string in regex matcher.
4001
4002         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4003         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4004
4005         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4006         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4007
4008         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4009         * lib/regcomp.c (parse_branch, parse_sub_exp):
4010         More regex memory leak fixes and tests.
4011         (parse_sub_exp, parse_bracket_exp):
4012         Fix memory leak for some invalid regular expressions.
4013
4014         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4015         * lib/regex_internal.c, lib/regexec.c:
4016         Fix unnecessary overallocation due to incomplete character.  When
4017         incomplete characters are found at the end of a string the code
4018         ran amok and allocated lots of memory.  Stricter limits are now in
4019         place.
4020
4021         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4022         * lib/regex.h: Update documentation.
4023
4024         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4025         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4026
4027         2010-05-05 Andreas Schwab <schwab@redhat.com>
4028         * lib/regexec.c (find_collation_sequence_value):
4029         Fix lookup of collation sequence value during regexp matching.
4030
4031         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4032         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4033
4034         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4035         * lib/regex.h: Cleanup namespace.
4036
4037         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4038         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4039
4040         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4041         * lib/regex_internal.h: Prevent some declarations and definitions
4042         to be seen when used in tests.
4043
4044         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4045         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4046         __libc_lock_* macros if not _LIBC.
4047         (struct re_dfa_t): Add lock.
4048
4049 2012-02-07  Eric Blake  <eblake@redhat.com>
4050
4051         maint.mk: also prohibit lower-case @var@
4052         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4053         lower case, like @top_srcdir@.
4054
4055 2012-02-04  Eric Blake  <eblake@redhat.com>
4056
4057         canonicalize: avoid uninitialized memory use
4058         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4059         random '/' left in dest.
4060         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4061
4062 2012-02-04  Bruno Haible  <bruno@clisp.org>
4063
4064         isatty: Fix test failure of ptsname_r on native Windows.
4065         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4066         and don't set errno.
4067         (isatty): Test first whether fd is valid. Set errno when returning 0.
4068
4069 2012-02-04  Bruno Haible  <bruno@clisp.org>
4070
4071         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4072         * tests/test-spawn-pipe-main.c: Include progname.h.
4073         (main): Invoke set_program_name.
4074         * modules/spawn-pipe-tests (Depends-on): Add progname.
4075
4076         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4077         * tests/test-nonblocking-socket-main.c: Include progname.h.
4078         (main): Invoke set_program_name.
4079         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4080
4081         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4082         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4083         (main): Invoke set_program_name.
4084         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4085
4086 2012-02-04  Eric Blake  <eblake@redhat.com>
4087
4088         canonicalize-lgpl: fix // handling
4089         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4090
4091         canonicalize: fix // handling
4092         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4093         /// to //, since only // is special.
4094
4095 2012-02-04  Bruno Haible  <bruno@clisp.org>
4096
4097         ioctl: Fix test failure on native Windows.
4098         * lib/ioctl.c: Include msvc-nothrow.h.
4099         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4100
4101 2012-02-04  Bruno Haible  <bruno@clisp.org>
4102
4103         fsync: Avoid test failure on native Windows.
4104         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4105         read-only.
4106
4107 2012-02-04  Bruno Haible  <bruno@clisp.org>
4108
4109         sys_select: Avoid syntax error on OpenBSD 5.0.
4110         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4111         currently being included, just include the system's <sys/select.h>.
4112
4113 2012-02-04  Bruno Haible  <bruno@clisp.org>
4114
4115         sys_select: Avoid syntax error on OpenBSD 5.0.
4116         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4117         <sys/select.h>, not before.
4118         Reported by Jiri B <jirib@devio.us>.
4119
4120 2012-02-04  Bruno Haible  <bruno@clisp.org>
4121
4122         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4123         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4124         global variables.
4125         * tests/test-get-rusage-data.c (main): Likewise.
4126         Reported by Jim Meyering.
4127
4128 2012-02-04  Bruno Haible  <bruno@clisp.org>
4129
4130         stdioext: Fix last commit.
4131         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4132
4133 2012-02-03  Bruno Haible  <bruno@clisp.org>
4134
4135         stdioext: Add tentative support for Plan9.
4136         * lib/stdio-impl.h: Include <errno.h>.
4137         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4138         * lib/freadable.c (freadable): Likewise.
4139         * lib/fwritable.c (fwritable): Likewise.
4140         * lib/fbufmode.c (fbufmode): Likewise.
4141         * lib/freading.c (freading): Likewise.
4142         * lib/fwriting.c (fwriting): Likewise.
4143         * lib/freadptr.c (freadptr): Likewise.
4144         * lib/freadseek.c (freadptrinc): Likewise.
4145         * lib/freadahead.c (freadahead): Likewise.
4146         * lib/fpurge.c (fpurge): Likewise.
4147         * lib/fseeko.c (rpl_fseeko): Likewise.
4148         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4149         Reported by Jens Staal <staal1978@gmail.com>.
4150
4151 2012-02-02  Jim Meyering  <meyering@redhat.com>
4152
4153         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4154         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4155         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4156         not even to try to add the attribute.  Instead, add a pragma to suppress
4157         the suggestion/warning.
4158
4159 2012-01-31  Karl Berry  <karl@gnu.org>
4160
4161         setstate doc: typo.
4162         * doc/posix-functions/setstate.texi (setstate): { not (.
4163
4164 2012-01-31  Bruno Haible  <bruno@clisp.org>
4165
4166         popen: Make more robust on Windows.
4167         * lib/popen.c: On native Windows, use the _popen based code even if
4168         HAVE_POPEN is set.
4169         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4170         environment variable on native Windows.
4171
4172 2012-01-30  Bruno Haible  <bruno@clisp.org>
4173
4174         pclose: Fix typo.
4175         * lib/stdio.in.h (pclose): Fix typo in warning message.
4176
4177 2012-01-30  Bruno Haible  <bruno@clisp.org>
4178
4179         doc about getlogin_r, setstate.
4180         * doc/posix-functions/getlogin_r.texi: List the incompatible
4181         declaration problem under "not fixed by gnulib".
4182         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4183         problem on Solaris 11 and other platforms.
4184
4185 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4186             Bruno Haible  <bruno@clisp.org>
4187
4188         poll tests: Make test more robust.
4189         * tests/test-poll.c: Include macros.h.
4190         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4191         return value of various I/O operations.
4192         * modules/poll-tests (Files): Add tests/macros.h.
4193
4194 2012-01-30  Bruno Haible  <bruno@clisp.org>
4195
4196         sys_stat: Fix support for mingw64 and MSVC.
4197         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4198         header files already do it.
4199         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4200         stat itself.
4201         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4202
4203 2012-01-30  Bruno Haible  <bruno@clisp.org>
4204
4205         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4206         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4207         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4208
4209 2012-01-29  Bruno Haible  <bruno@clisp.org>
4210
4211         quotearg: Fix test failure on MacOS X 10.5.
4212         * tests/test-quotearg-simple.c: Include localcharset.h.
4213         (main): If the locale encoding is not ASCII, bypass the tests of
4214         locale_quoting_style and clocale_quoting_style.
4215         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4216
4217 2012-01-29  Jim Meyering  <meyering@redhat.com>
4218
4219         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4220         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4221         detect uses of canonicalize_file_name.
4222
4223 2012-01-28  Bruno Haible  <bruno@clisp.org>
4224
4225         test-framework-sh: Fix test failure with AIX 7.1 diff.
4226         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4227         in column 1, like 'diff -c' does.
4228         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4229         whether 'diff -u' is used. Instead, test whether the output contains
4230         some '@' character.
4231
4232 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4233
4234         strtoimax: eliminate need for stdint.h, inttypes.h checks
4235         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4236         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4237         the prerequisites for a recently-introduced strtoimax test.
4238         I guess this might cause strtoimax to be replaced when not
4239         strictly necessary on older hosts, but this shouldn't introduce
4240         any bugs and it should make Emacs 'configure' faster on typical
4241         modern hosts.  Problem discovered when importing the latest gnulib
4242         to an Emacs test version.
4243         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4244
4245 2012-01-28  Bruno Haible  <bruno@clisp.org>
4246
4247         sys_time: Override 'struct timeval' on some native Windows platforms.
4248         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4249         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4250         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4251         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4252         needs to be overridden.
4253         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4254         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4255         * tests/test-sys_select.c: Check that the tv_sec member has the same
4256         size as a 'time_t'.
4257         * tests/test-sys_time.c: Likewise.
4258         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4259         is set, set also REPLACE_GETTIMEOFDAY.
4260         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4261         convert the resulting 'struct timeval' before returning.
4262         * lib/select.c: Include <sys/time.h>.
4263         (select, timeval): Undefine at the right place.
4264         * modules/select (Depends-on): Add sys_time.
4265         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4266         some Windows platforms.
4267         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4268
4269 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4270
4271         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4272         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4273         an integer.
4274         * lib/fcntl.c (dupfd): Likewise.
4275         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4276
4277 2012-01-28  Bruno Haible  <bruno@clisp.org>
4278
4279         fcntl: Avoid compilation error on native Windows.
4280         * modules/fcntl (Depends-on): Add 'close'.
4281
4282 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4283
4284         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4285         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4286         pointer to an integer.
4287         * lib/poll.c (IsConsoleHandle): Likewise.
4288         * lib/isatty.c (IsConsoleHandle): Likewise.
4289
4290 2012-01-28  Jim Meyering  <meyering@redhat.com>
4291
4292         doc: clarify README-release
4293         * top/README-release: Clarify: you should make a point to have
4294         the latest stable versions of build tools in your PATH, and the
4295         reference to buildreq is solely for its list of tool names, not
4296         for its minimal-functional version numbers.
4297         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4298
4299         maint.mk: use more readable (yet functionally equivalent) quoting
4300         It is common to quote a single quote in a single quoted string like
4301         this:  '...'\''...'.  Unless you know the idiom, that looks like
4302         gibberish, so prefer to double-quote the string when possible.
4303         Then you can use a more readable, lone single quote: "...'..."
4304         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4305         "don't" is more readable than the equivalent 'don'\''t'.
4306         (sc_cast_of_x_alloc_return_value): Likewise.
4307         (sc_cast_of_alloca_return_value): Likewise.
4308         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4309         rather than '\'':'\''.
4310
4311 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4312
4313         stdalign: relax _Alignof and tighten _Alignas test
4314         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4315         as it was too strict: alignof must divide offsetof, but it need
4316         not equal offsetof.  Inspired by Joseph S. Myers's comment
4317         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4318         Conversely, tighten the _Alignas test a bit, as the resulting
4319         alignment must be exactly 8.
4320
4321 2012-01-27  Bruno Haible  <bruno@clisp.org>
4322
4323         stdalign: Document the last change.
4324         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4325
4326 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4327
4328         stdalign: check that alignof and offsetof are consistent
4329         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4330         Problem reported for gnulib by Richard W.M. Jones in
4331         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4332
4333 2012-01-27  Jim Meyering  <meyering@redhat.com>
4334
4335         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4336         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4337         convert a sequence with gaps to the minimal containing range.
4338         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4339         * tests/test-update-copyright.sh: Test for this.
4340         The FSF confirmed it is ok to do this, assuming there is at
4341         least one significant change per year in the affected range:
4342         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4343
4344 2012-01-26  Bruno Haible  <bruno@clisp.org>
4345
4346         pipe2: refine doc about thread-safety
4347         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4348         multithread-safety problem.
4349         * doc/glibc-functions/accept4.texi: Likewise.
4350
4351 2012-01-26  Bruno Haible  <bruno@clisp.org>
4352
4353         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4354         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4355         In the test program, include <fcntl.h>, for O_RDONLY.
4356
4357 2012-01-26  Eric Blake  <eblake@redhat.com>
4358
4359         pipe2: document lack of thread-safety in replacement
4360         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4361         issue in replacement.
4362         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4363         Based on a report by Eric Wong.
4364
4365 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4366             Bruno Haible  <bruno@clisp.org>
4367
4368         malloca: Avoid warnings on x86_64 mingw64.
4369         * lib/malloca.c: Include <stdint.h>.
4370         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4371         * modules/malloca (Depends-on): Add stdint.
4372         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4373
4374 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4375
4376         obstack: remove __STDC__ conditionals
4377         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4378         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4379         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4380         m4/include_next.m4 as the only gnulib-maintained places that still
4381         refer to __STDC__.
4382
4383 2012-01-24  Bruno Haible  <bruno@clisp.org>
4384
4385         havelib: Modern quoting.
4386         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4387         the recent change to the GNU coding standards.
4388
4389 2012-01-24  Bruno Haible  <bruno@clisp.org>
4390
4391         stdint: Improve support for Android.
4392         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4393         Reported by Simon Josefsson <simon@josefsson.org>.
4394
4395 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4396
4397         doc: omit trailing empty lines from INSTALL etc.
4398         * doc/Makefile (INSTALL): Omit trailing empty lines.
4399         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4400         omit trailing empty lines.  This simplifies the build procedure.
4401
4402 2012-01-23  Jim Meyering  <meyering@redhat.com>
4403
4404         tests: avoid spurious warnings about gl_sockets_startup
4405         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4406         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4407         reporting a "statement with no effect".
4408         * tests/test-accept.c (main): Mark as "(void)".
4409         * tests/test-accept4.c (main): Likewise.
4410         * tests/test-bind.c (main): Likewise.
4411         * tests/test-connect.c (main): Likewise.
4412         * tests/test-getpeername.c (main): Likewise.
4413         * tests/test-getsockname.c (main): Likewise.
4414         * tests/test-getsockopt.c (main): Likewise.
4415         * tests/test-listen.c (main): Likewise.
4416         * tests/test-recv.c (main): Likewise.
4417         * tests/test-recvfrom.c (main): Likewise.
4418         * tests/test-send.c (main): Likewise.
4419         * tests/test-sendto.c (main): Likewise.
4420         * tests/test-setsockopt.c (main): Likewise.
4421         * tests/test-shutdown.c (main): Likewise.
4422
4423 2012-01-21  Bruno Haible  <bruno@clisp.org>
4424
4425         locale-fr.m4: Fix for Android.
4426         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4427         failure of the test program on Bionic libc.
4428
4429 2012-01-21  Jim Meyering  <meyering@redhat.com>
4430
4431         bootstrap: fail when bootstrap_post_import_hook fails
4432         Otherwise, it's far too easy to miss diagnostics emitted
4433         between gnulib-tool's output and that of running configure.
4434         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4435
4436 2012-01-17  Jim Meyering  <meyering@redhat.com>
4437
4438         maint: enable sc_trailing_blank
4439         * build-aux/pmccabe.css: Remove trailing blanks.
4440         * doc/acl-cygwin.txt: Likewise.
4441         * doc/gnu-oids.texi: Likewise
4442         * cfg.mk: Enable sc_trailing_blank.
4443         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4444
4445 2012-01-17  Jim Meyering  <meyering@redhat.com>
4446
4447         maint: enable sc_prohibit_openat_without_use
4448         * cfg.mk: Enable sc_prohibit_openat_without_use.
4449         Exempt lib/selinux-at.c.
4450
4451 2012-01-17  Jim Meyering  <meyering@redhat.com>
4452
4453         maint: enable sc_prohibit_cloexec_without_use
4454         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4455         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4456
4457 2012-01-17  Jim Meyering  <meyering@redhat.com>
4458
4459         maint: enable sc_prohibit_intprops_without_use
4460         * cfg.mk: Enable sc_prohibit_intprops_without_use
4461         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4462
4463 2012-01-17  Jim Meyering  <meyering@redhat.com>
4464
4465         maint: enable sc_prohibit_hash_pjw_without_use
4466         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4467         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4468         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4469         following " (".
4470
4471 2012-01-17  Jim Meyering  <meyering@redhat.com>
4472
4473         maint: enable double-word-prohibiting rule
4474         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4475         Exempt three files.
4476
4477 2012-01-17  Jim Meyering  <meyering@redhat.com>
4478
4479         maint: remove empty lines at EOF, but excluding modules/*
4480         Apply syntax rules at home as well as abroad.  Most changes
4481         were induced by running this:
4482           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4483             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4484             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4485         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4486         Exempt modules/* and two binary files.
4487         Also exempt doc/INSTALL*, per request from Bruno Haible.
4488         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4489         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4490         * doc/Copyright/request-assign.future: Likewise.
4491         * doc/Copyright/request-disclaim.changes: Likewise.
4492         * doc/INSTALL: Likewise.
4493         * doc/INSTALL.ISO: Likewise.
4494         * doc/INSTALL.UTF-8: Likewise.
4495         * doc/acl-cygwin.txt: Likewise.
4496         * doc/acl-resources.txt: Likewise.
4497         * doc/fdl-1.2.texi: Likewise.
4498         * doc/fdl-1.3.texi: Likewise.
4499         * doc/fdl.texi: Likewise.
4500         * lib/argp-pin.c: Likewise.
4501         * lib/round.c: Likewise.
4502         * lib/unicase/u16-totitle.c: Likewise.
4503         * lib/unictype/block_test.c: Likewise.
4504         * lib/uninorm/canonical-decomposition.c: Likewise.
4505         * m4/README: Likewise.
4506         * m4/relocatable-lib.m4: Likewise.
4507         * tests/test-isnand-nolibm.c: Likewise.
4508         * tests/test-isnand.c: Likewise.
4509         * tests/uninorm/NormalizationTest.txt: Likewise.
4510
4511 2012-01-17  Jim Meyering  <meyering@redhat.com>
4512
4513         maint: add framework to run syntax-check rules against gnulib sources
4514         * cfg.mk: New file, to disable all currently-failing tests.
4515         We'll enable them one by one, as they are made to pass.
4516         * Makefile (sc_maint): New rule.
4517
4518 2012-01-21  Bruno Haible  <bruno@clisp.org>
4519
4520         stdint: Add support for Android.
4521         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4522         include the system's <stdint.h>.
4523         Reported by Simon Josefsson <simon@josefsson.org>.
4524
4525 2012-01-19  Jim Meyering  <meyering@redhat.com>
4526
4527         bootstrap: add bootstrap_post_import_hook
4528         Bison does still need something like the gnulib_mk_hook whose
4529         invocation I had to remove along with slurp in commit 767ccd40.
4530         Technically, we could get along without it, but doing so would
4531         have required living with a warning and a mandatory post-bootstrap
4532         automake rerun.
4533         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4534         (bootstrap_post_import_hook): New function.
4535         Invoke it after gnulib-tool --import and before autoreconf.
4536
4537 2012-01-18  Jim Meyering  <meyering@redhat.com>
4538
4539         gitlog-to-changelog: don't use "no_"-prefixed variable name
4540         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4541         to enable both --cluster and --no-cluster.  Change variable name,
4542         s/\$no_cluster/$cluster/, and reverse usage to match.
4543
4544         gitlog-to-changelog: use "||", not "or" in expressions
4545         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4546         expressions.
4547
4548 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4549
4550         gitlog-to-changelog: new option --no-cluster
4551         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4552         clustering of adjacent commit messages.
4553
4554 2012-01-17  Jim Meyering  <meyering@redhat.com>
4555
4556         maint: spell file systems with two words, not one
4557         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4558         two words, not one.
4559
4560 2012-01-16  Jim Meyering  <meyering@redhat.com>
4561
4562         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4563         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4564
4565 2012-01-16  Eric Blake  <eblake@redhat.com>
4566
4567         bootstrap: cater to autoconf 2.59
4568         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4569         is not available.
4570
4571         bootstrap: properly check for libtool
4572         * build-aux/bootstrap (libtoolize): Also run libtool when older
4573         usage is detected.
4574
4575 2012-01-15  Bruno Haible  <bruno@clisp.org>
4576
4577         Improve support for MSVC 9.
4578         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4579         clashes on MSVC.
4580         * lib/fcntl.in.h: Likewise.
4581         * lib/stdlib.in.h: Likewise.
4582         * lib/sys_stat.in.h: Likewise.
4583
4584 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4585
4586         gnupload: we hold the master copy of this script now
4587         For motivation and more information, see:
4588         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4589         * build-aux/gnupload: Make it clear in the heading comments that the
4590         master copy of this file is maintained by gnulib.  Since we are at
4591         it, bump its copyright year and ...
4592         ($scriptversion): ... the date in its version.
4593         ($usage): Patches and bug reports should be sent to the gnulib list,
4594         not the automake one.
4595         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4596         anymore.
4597
4598 2012-01-15  Bruno Haible  <bruno@clisp.org>
4599
4600         Fix module 'random'.
4601         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4602         initstate, setstate are declared.
4603
4604 2012-01-14  Bruno Haible  <bruno@clisp.org>
4605
4606         Tests for module 'random'.
4607         * modules/random-tests: New file.
4608         * tests/test-random.c: New file, based on tests/test-random_r.c.
4609
4610         New module 'random'.
4611         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4612         declarations.
4613         * lib/random.c: New file, based on glibc/stdlib/random.c.
4614         * m4/random.m4: New file.
4615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4616         HAVE_RANDOM.
4617         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4618         * modules/random: New file.
4619         * config/srclist.txt: Add an entry for random.c.
4620         * doc/posix-functions/random.texi: Mention the 'random' module.
4621         * doc/posix-functions/initstate.texi: Likewise.
4622         * doc/posix-functions/setstate.texi: Likewise.
4623         * doc/posix-functions/srandom.texi: Likewise.
4624
4625 2012-01-12  Bruno Haible  <bruno@clisp.org>
4626
4627         random_r: Use common idioms.
4628         * lib/random_r.c: Include <stdlib.h> first.
4629
4630         random_r: Override incompatible API on AIX, OSF/1.
4631         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4632         Override the system function if REPLACE_RANDOM_R is 1.
4633         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4634         and OSF/1, set REPLACE_RANDOM_R.
4635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4636         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4637         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4638         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4639         * doc/glibc-functions/random_r.texi: Likewise.
4640         * doc/glibc-functions/setstate_r.texi: Likewise.
4641
4642         random_r: Support for MSVC 9.
4643         * lib/random_r.c: Include stdint.h, not inttypes.h.
4644
4645 2012-01-12  Eric Blake  <eblake@redhat.com>
4646
4647         inet_ntop: guard extra work by IF_LINT
4648         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4649         better code generation when not checking for warnings.
4650         Suggested by Paul Eggert and Jim Meyering.
4651
4652         strptime: fix regression on mingw
4653         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4654         Fix regression.  Reported by Bruno Haible.
4655
4656 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4657             Bruno Haible  <bruno@clisp.org>
4658
4659         copy-file: add error-code-returning variant.
4660         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4661         (qcopy_file_preserving): New declaration.
4662         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4663         copy_file_preserving. Change return type to 'int'. Don't emit an error
4664         message here.
4665         (copy_file_preserving): New function.
4666         * tests/test-copy-file.c: Include <stdlib.h>.
4667         (main): Test qcopy_file_preserving if the environment variable
4668         NO_STDERR_OUTPUT is set.
4669         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4670         with NO_STDERR_OUTPUT
4671         * tests/test-copy-file-2.sh: Likewise.
4672
4673 2012-01-10  Bruno Haible  <bruno@clisp.org>
4674
4675         copy-file: Use 'quote' module consistently.
4676         * lib/copy-file.c (copy_file_preserving): Use quote().
4677
4678         copy-file: Refactor.
4679         * lib/copy-file.c: Include quote.h.
4680         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4681         message here.
4682         * modules/copy-file (Depends-on): Add quote.
4683
4684         acl: Export qcopy_acl.
4685         * lib/acl.h (qcopy_acl): New declaration.
4686         * lib/copy-acl.c (qcopy_acl): Make non-static.
4687
4688         acl: Rename a local variable.
4689         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4690
4691         acl: Align return values of copy_acl and qcopy_acl.
4692         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4693         maybe < -1.
4694
4695 2012-01-11  Eric Blake  <eblake@redhat.com>
4696
4697         strptime: silence gcc warnings
4698         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4699         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4700         Reported by Daniel P. Berrange.
4701
4702         inet_ntop: silence gcc warning
4703         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4704         Reported by Daniel P. Berrange.
4705
4706 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4707
4708         getloadavg test: skip the test on GNU/Linux without /proc mounted
4709         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4710         file.  When /proc is not mounted, it always fails with ENOENT.
4711         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4712         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4713
4714 2012-01-10  Bruno Haible  <bruno@clisp.org>
4715
4716         regex: Avoid link error on MSVC 9.
4717         * modules/regex (Depends-on): Add wctype.
4718
4719 2012-01-10  Bruno Haible  <bruno@clisp.org>
4720
4721         doc: Mention --with-tests option.
4722         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4723         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4724         --with-tests.
4725         Reported by Reuben Thomas.
4726
4727 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4728
4729         users.txt: order package names lexicographically.
4730         * users.txt: Order package names lexicographically.
4731
4732 2012-01-10  Jim Meyering  <meyering@redhat.com>
4733
4734         maint.mk: fix description in comment
4735         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4736
4737         ignore-value: remove deprecated ignore_ptr function
4738         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4739         * NEWS: Note this.
4740
4741 2012-01-09  Jim Meyering  <meyering@redhat.com>
4742
4743         test-init.sh: avoid a subshell
4744         * tests/test-init.sh: Remove protective subshell.
4745         Suggested by Bernhard Voelker.  While a subshell is normally
4746         required to protect against older shells (Solaris, FreeBSD) that
4747         warn about a missing program before performing redirection, the
4748         shell-selection tests performed by init.sh probably exclude any
4749         offending shell.
4750
4751 2012-01-08  Bruno Haible  <bruno@clisp.org>
4752
4753         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4754         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4755         variable.
4756
4757 2012-01-08  Bruno Haible  <bruno@clisp.org>
4758
4759         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4760         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4761         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4762         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4763         macro.
4764         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4765         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4766         * lib/spawn_faction_addopen.c: Add workaround implementation if
4767         HAVE_WORKING_POSIX_SPAWN.
4768         * modules/spawn (Makefile): Substitute
4769         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4770         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4771         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4772         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4773         (Depends-on): Update conditions.
4774         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4775         the Solaris 11 bug.
4776
4777 2012-01-08  Bruno Haible  <bruno@clisp.org>
4778
4779         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4780         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4781         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4782         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4783         macro.
4784         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4785         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4786         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4787         HAVE_WORKING_POSIX_SPAWN.
4788         * modules/spawn (Makefile): Substitute
4789         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4790         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4791         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4792         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4793         (Depends-on): Update conditions.
4794         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4795         the Solaris 11 bug.
4796
4797 2012-01-08  Bruno Haible  <bruno@clisp.org>
4798
4799         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4800         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4801         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4802         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4803         HAVE_WORKING_POSIX_SPAWN.
4804         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4805         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4806         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4807         * lib/spawn_faction_addclose.c: Add workaround implementation if
4808         HAVE_WORKING_POSIX_SPAWN.
4809         * modules/spawn (Makefile): Substitute
4810         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4811         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4812         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4813         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4814         (Depends-on): Update conditions.
4815         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4816         the Solaris 11 bug.
4817
4818 2012-01-08  Bruno Haible  <bruno@clisp.org>
4819
4820         doc: Update for Solaris 11 2011-11.
4821         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4822         * m4/printf.m4: Update comments.
4823
4824 2012-01-08  Bruno Haible  <bruno@clisp.org>
4825
4826         mktime: Avoid compilation error on Solaris 11.
4827         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4828
4829 2012-01-08  Bruno Haible  <bruno@clisp.org>
4830
4831         doc: Small fix.
4832         * doc/posix-headers/nl_types.texi: Correct platforms list.
4833
4834 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4835
4836         Add lgpl-3.0 module.
4837         * MODULES.html.sh (Support for building documentation): Add
4838         lgpl-3.0.
4839         * modules/lgpl-3.0: New file.
4840
4841 2012-01-08  Jim Meyering  <meyering@redhat.com>
4842
4843         select.c: indent with spaces, not TABs
4844         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4845
4846 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4847
4848         quotearg: do not use grave accent for left quote
4849         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4850         locale_quoting_style.
4851         (quotearg_buffer_restyled): Fix example.
4852         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4853
4854 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4855
4856         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4857         Most programs do not have translation catalogs for English and much
4858         less separate catalogs for British and American English.  Drop the
4859         suggestion to translators about these two, and provide it
4860         automatically for Unicode locales.  Like most programs, even those
4861         using American English, we use single quotation marks.  This conflicts
4862         with the American typographic convention, but works better when you
4863         cite the entire error message within double quotes.  It also tries not
4864         to clash with established practice and with what non-gnulib programs
4865         will usually do.
4866         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4867         using an UTF-8 or GB-18030 locale.  The list of other locales with
4868         quotes was provided by Bruno Haible.
4869         (quotearg_buffer_restyled): Adjust instructions to translators.
4870         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4871         text, since this would be wrong when using Unicode.
4872         * modules/quotearg: Depend on c-strcaseeq.
4873
4874 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4875
4876         quotearg: fix Wikipedia link
4877         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4878
4879 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4880
4881         Fix for mingw with MSVC9.
4882         * m4/ld-version-script.m4: Check that compiler rejects version
4883         scripts with syntax errors.  Reported by Bruno Haible
4884         <bruno@clisp.org>.
4885
4886 2012-01-06  Bruno Haible  <bruno@clisp.org>
4887
4888         Talk about "native Windows API", not "Woe32".
4889         * lib/accept4.c: Update comments to mention native Windows.
4890         * lib/execute.c: Likewise.
4891         * lib/fatal-signal.c: Likewise.
4892         * lib/localcharset.c: Likewise.
4893         * lib/nanosleep.c: Likewise.
4894         * lib/nl_langinfo.c: Likewise.
4895         * lib/pclose.c: Likewise.
4896         * lib/pipe-filter-gi.c: Likewise.
4897         * lib/pipe-filter-ii.c: Likewise.
4898         * lib/pipe.c: Likewise.
4899         * lib/pipe2.c: Likewise.
4900         * lib/popen.c: Likewise.
4901         * lib/progreloc.c: Likewise.
4902         * lib/relocatable.c: Likewise.
4903         * lib/sigaction.c: Likewise.
4904         * lib/sigprocmask.c: Likewise.
4905         * lib/spawn-pipe.h: Likewise.
4906         * lib/spawn-pipe.c: Likewise.
4907         * lib/spawni.c: Likewise.
4908         * lib/stat-time.h: Likewise.
4909         * lib/w32spawn.h: Likewise.
4910         * tests/test-isatty.c: Likewise.
4911         * lib/config.charset: More comments.
4912         * doc/gnulib-intro.texi: Mention native Windows.
4913         * doc/posix-functions/_Exit_C99.texi: Likewise.
4914         * doc/posix-headers/fcntl.texi: Likewise.
4915
4916 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4917
4918         argp: Avoid crash if translator uses % characters in a translation.
4919         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4920         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4921
4922 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4923
4924         doc: C11 and C++11 are now official
4925         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4926         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4927         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4928         * modules/stdalign:
4929         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4930
4931 2012-01-06  Bruno Haible  <bruno@clisp.org>
4932
4933         uc-is-grapheme-break tests: Tweak.
4934         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4935         message.
4936
4937 2012-01-06  Bruno Haible  <bruno@clisp.org>
4938
4939         test-init.sh: correct the test for diff -u
4940         * tests/test-init.sh: Also redirect stdout to /dev/null.
4941
4942 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4943
4944         Use ', not `, for quoting output.
4945         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4946         (print_changelog_deltas, get_tool_versions, main program):
4947         * build-aux/git-version-gen:
4948         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4949         * build-aux/move-if-change (help):
4950         * build-aux/useless-if-before-free (usage, main program):
4951         * check-module (parse_module_file, usage)
4952         (find_included_lib_files, check_module):
4953         * lib/argmatch.c (main) [TEST]:
4954         * lib/argp-help.c (_help):
4955         * lib/getopt1.c (main) [TEST]:
4956         * lib/git-merge-changelog.c (usage):
4957         * lib/xstrtol-error.c (xstrtol_error):
4958         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4959         * m4/argz.m4 (gl_FUNC_ARGZ):
4960         * m4/bison.m4 (gl_BISON):
4961         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4962         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4963         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4964         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4965         * m4/gc-random.m4 (gl_GC_RANDOM):
4966         * m4/intl.m4 (gt_CHECK_DECL):
4967         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4968         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4969         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4970         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4971         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4972         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4973         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4974         * tests/test-dirname.c (main):
4975         * tests/test-getpass.c (main):
4976         * tests/test-iconvme.c (main):
4977         * tests/test-parse-datetime.c (LOG):
4978         * tests/test-xstrtoimax.sh:
4979         * tests/test-xstrtol.sh:
4980         * tests/test-xstrtoll.sh:
4981         * tests/test-xstrtoumax.sh:
4982         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4983         * top/GNUmakefile (abort-due-to-no-makefile):
4984         Quote 'like this', not `like this', as per the recent change to
4985         the GNU coding standards.
4986
4987 2012-01-05  Bruno Haible  <bruno@clisp.org>
4988
4989         strtoimax: Don't force a replacement on systems where intmax_t is int.
4990         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4991         'intmax_t' is not larger than 'int'.
4992         Reported by Pádraig Brady <P@draigBrady.com>.
4993
4994 2012-01-05  Bruno Haible  <bruno@clisp.org>
4995
4996         doc: Mention NetBSD bugs.
4997         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4998         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4999
5000 2012-01-05  Bruno Haible  <bruno@clisp.org>
5001
5002         strtoumax tests: Enhance tests.
5003         * tests/test-strtoumax.c (main): Add tests for large values.
5004
5005 2012-01-05  Bruno Haible  <bruno@clisp.org>
5006
5007         strtoimax: Work around AIX 5.1 bug.
5008         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5009         definition.
5010         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5011         Set HAVE_STRTOIMAX.
5012         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5013         REPLACE_STRTOIMAX.
5014         * modules/inttypes-incomplete (Makefile.am): Substitute
5015         REPLACE_STRTOIMAX.
5016         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5017         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5018         (Depends-on): Update conditions.
5019         * tests/test-strtoimax.c (main): Add tests for large values.
5020         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5021
5022 2012-01-05  Bruno Haible  <bruno@clisp.org>
5023
5024         inttypes: Modernize.
5025         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5026         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5027         (Makefile.am): Update inttypes.h rule.
5028
5029 2012-01-05  Jim Meyering  <meyering@redhat.com>
5030
5031         init.sh: don't waste a subshell just to redirect stderr
5032         * tests/init.sh: In testing for diff -u and diff -c, use a
5033         stderr-redirecting exec inside `...` rather than a subshell.
5034
5035         test-init.sh: avoid failure on HP-UX 11.00
5036         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5037         resolves to diff -c or cmp.  Reported by Bruno Haible.
5038
5039 2012-01-05  Bruno Haible  <bruno@clisp.org>
5040
5041         Tests for module 'strtoull'.
5042         * modules/strtoull-tests: New file.
5043         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5044
5045 2012-01-05  Bruno Haible  <bruno@clisp.org>
5046
5047         Tests for module 'strtoll'.
5048         * modules/strtoll-tests: New file.
5049         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5050
5051 2012-01-05  Bruno Haible  <bruno@clisp.org>
5052
5053         Tests for module 'strtoul'.
5054         * modules/strtoul-tests: New file.
5055         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5056
5057 2012-01-05  Bruno Haible  <bruno@clisp.org>
5058
5059         Tests for module 'strtol'.
5060         * modules/strtol-tests: New file.
5061         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5062
5063 2012-01-04  Jim Meyering  <meyering@redhat.com>
5064
5065         test-init.sh: accommodate Solaris 5.10's different diff -u output
5066         * tests/test-init.sh: Also exempt @@ lines from the comparison
5067         of diff output, since Solaris 5.10 and GNU diff formats differ.
5068         Reported by Stefano Lattarini.
5069
5070 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5071
5072         test-posixtm: don't assume signed integer wraparound
5073         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5074         after signed integer overflow.  Inspired by (though it may not
5075         fix) Bruno Haible's bug report in
5076         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5077
5078         Spell out "Windows 9x" and "Windows XP".
5079         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5080         "Windows 9x" and "WinXP" with "Windows XP".
5081
5082 2012-01-04  Jim Meyering  <meyering@redhat.com>
5083
5084         test-vc-list-files-cvs.sh: remove obsolete comment
5085         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5086         double exit.  Now that's all encapsulated via skip_ and Exit.
5087
5088 2012-01-04  Bruno Haible  <bruno@clisp.org>
5089
5090         Talk about "native Windows API", not "Win32".
5091         * lib/classpath.c: Update comments to mention native Windows.
5092         * lib/csharpexec.c: Likewise.
5093         * lib/dup2.c: Likewise.
5094         * lib/error.c: Likewise.
5095         * lib/fcntl.c: Likewise.
5096         * lib/filename.h: Likewise.
5097         * lib/findprog.c: Likewise.
5098         * lib/get-rusage-as.c: Likewise.
5099         * lib/get-rusage-data.c: Likewise.
5100         * lib/getpagesize.c: Likewise.
5101         * lib/javaexec.c: Likewise.
5102         * lib/msvc-inval.c: Likewise.
5103         * lib/msvc-nothrow.c: Likewise.
5104         * lib/nanosleep.c: Likewise.
5105         * lib/nonblocking.c: Likewise.
5106         * lib/printf-parse.c: Likewise.
5107         * lib/setlocale.c: Likewise.
5108         * lib/sigaction.c: Likewise.
5109         * lib/strerror_r.c: Likewise.
5110         * lib/tmpdir.c: Likewise.
5111         * lib/vasnprintf.c: Likewise.
5112         * lib/w32spawn.h: Likewise.
5113         * lib/waitpid.c: Likewise.
5114         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5115         * m4/locale-ar.m4: Likewise.
5116         * m4/locale-fr.m4: Likewise.
5117         * m4/locale-ja.m4: Likewise.
5118         * m4/locale-tr.m4: Likewise.
5119         * m4/locale-zh.m4: Likewise.
5120         * m4/printf.m4: Likewise.
5121         * tests/test-cloexec.c: Likewise.
5122         * tests/test-copy-acl.sh: Likewise.
5123         * tests/test-copy-file.sh: Likewise.
5124         * tests/test-file-has-acl.sh: Likewise.
5125         * tests/test-set-mode-acl.sh: Likewise.
5126         * tests/test-dup-safer.c: Likewise.
5127         * tests/test-dup2.c: Likewise.
5128         * tests/test-dup3.c: Likewise.
5129         * tests/test-fcntl.c: Likewise.
5130         * tests/test-nonblocking-pipe.h: Likewise.
5131         * tests/test-nonblocking-socket.h: Likewise.
5132         * tests/test-pipe.c: Likewise.
5133         * tests/test-pipe2.c: Likewise.
5134         * tests/test-spawn-pipe-child.c: Likewise.
5135         * doc/acl-resources.txt: Likewise.
5136         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5137         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5138         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5139         * lib/localcharset.c: Update comments to mention native Windows.
5140         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5141         * lib/localename.c: Likewise.
5142         * lib/progreloc.c: Likewise.
5143         * lib/relocatable.c: Likewise.
5144         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5145         (windows_compute_revents): Renamed from win32_compute_revents.
5146         (windows_compute_revents_socket): Renamed from
5147         win32_compute_revents_socket.
5148         * lib/select.c: Update comments to mention native Windows.
5149         (windows_poll_handle): Renamed from win32_poll_handle.
5150         * m4/threadlib.m4: Update comments to mention native Windows.
5151         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5152         --enable-threads=windows instead of --enable-threads=win32. Set
5153         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5154         * lib/glthread/lock.h: Update comments to mention native Windows.
5155         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5156         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5157         USE_WIN32_THREADS.
5158         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5159         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5160         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5161         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5162         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5163         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5164         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5165         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5166         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5167         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5168         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5169         * tests/test-tls.c: Likewise.
5170         Rationale:
5171         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5172         on both 32-bit and 64-bit Windows systems.
5173         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5174         line of distinction is between "native Windows" on one side and Unix/
5175         POSIX systems on the other side. More details in
5176         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5177         Suggested by Paul Eggert.
5178
5179 2012-01-03  Bruno Haible  <bruno@clisp.org>
5180
5181         isatty: Support for MSVC 9.
5182         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5183         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5184         (_isatty_nothrow): New function.
5185         (isatty): Use it instead of _isatty.
5186         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5187         * lib/poll.c (IsConsoleHandle): Likewise.
5188         * lib/select.c (IsConsoleHandle): Likewise.
5189         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5190         (gl_PREREQ_ISATTY): New macro.
5191         * modules/isatty (Depends-on): Add msvc-inval.
5192         (configure.ac): Invoke gl_PREREQ_ISATTY.
5193
5194 2012-01-03  Jim Meyering  <meyering@redhat.com>
5195
5196         maint.mk: remove temporary transition aid from over 1.5 years ago
5197         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5198         purpose was to aid in the transition (avoiding silent malfunction)
5199         from that old name to the new _sc_search_regexp.  This shim was
5200         added by commit 219c504b.
5201
5202         init.sh: do not try to accommodate compare arguments starting with "-"
5203         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5204         compare arguments that start with "-".  Besides, we do not worry
5205         about this when invoking diff or cmp; why start now with sed?
5206         Using "--" to separate options from argument would trigger sed
5207         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5208         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5209
5210 2012-01-02  Bruno Haible  <bruno@clisp.org>
5211
5212         Enhance tests for module 'isatty'.
5213         * modules/isatty-tests (Depends-on): Add pipe-posix.
5214         * tests/test-isatty.c: Include <fcntl.h>.
5215         (DEV_NULL): New macro.
5216         (main): Test the resut of isatty() also on regular files, pipes, and
5217         /dev/null.
5218
5219         New module 'isatty'.
5220         * lib/unistd.in.h (isatty): New declaration.
5221         * lib/isatty.c: New file, based on an idea of
5222         Bastien Roucariès <roucaries.bastien@gmail.com>.
5223         * m4/isatty.m4: New file.
5224         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5225         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5226         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5227         REPLACE_ISATTY.
5228         * modules/isatty: New file.
5229         * doc/posix-functions/isatty.texi: Mention the new module.
5230         Suggested by Paolo Bonzini.
5231
5232 2012-01-02  Bruno Haible  <bruno@clisp.org>
5233
5234         canonicalize: Tweak 2011-12-29 commit.
5235         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5236         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5237
5238 2012-01-02  Jim Meyering  <meyering@redhat.com>
5239
5240         gitlog-to-changelog: describe input syntax in --help output
5241         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5242
5243         gitlog-to-changelog: fix typo in --help: show backslash before email @
5244         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5245         in sources, but not in actual output.
5246
5247 2011-12-30  Jim Meyering  <meyering@redhat.com>
5248
5249         gitlog-to-changelog: don't malfunction when name contains %-directive
5250         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5251         in a name string cause trouble.  E.g., with a user name of "%s",
5252         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5253
5254 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5255
5256         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5257         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5258         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5259         the "  (tiny change)" notation that is appended to the standard
5260         ChangeLog "date  name  email" header line.
5261
5262 2012-01-01  Jim Meyering  <meyering@redhat.com>
5263
5264         test-framework-sh: init.sh: fix "make dist" failure
5265         When using gnulib-tool's --with-tests option and any module that
5266         depends on test-framework-sh, "make dist" would fail due to the
5267         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5268         in the gltests directory, and not in the gllib/ directory.
5269         One way to work around that is to move the EXTRA_DIST += init.sh
5270         from the primary module to the -tests one:
5271         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5272         * modules/test-framework-sh (Makefile.am): ...not here.
5273         Reported by Tom G. Christensen in
5274         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5275
5276         version-etc: update copyright year reported by --version
5277         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5278
5279 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5280
5281         canonicalize: only stat() if required
5282         * lib/canonicalize.c (canonicalize_filename_mode):
5283         Avoid calling l?stat() when both CAN_MISSING,
5284         and CAN_NOLINKS are set, as we neither need
5285         to resolve symlinks or test component existence.
5286
5287 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5288
5289         doc: cover st_ino issues once; add OpenVMS etc.
5290         * doc/posix-functions/stat.texi (stat):
5291         * doc/posix-functions/lstat.texi (lstat):
5292         * doc/posix-functions/fstatat.texi (fstatat):
5293         * doc/posix-functions/fstat.texi (fstat):
5294         Move general 'struct stat' stuff to sys_stat.texi,
5295         leaving behind a pointer.
5296         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5297         Merge duplicate info about 'struct stat' problems into here.
5298         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5299         and suggest partial workarounds.
5300
5301         same-inode: port to OpenVMS
5302         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5303         three st_ino values.
5304
5305 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5306
5307         canonicalize: fix references to stat() and lstat()
5308         * lib/canonicalize.c (canonicalize_filename_mode):
5309         Ensure references always resolve to a replacement
5310         function if required (even via a macro).
5311
5312 2011-12-30  Jim Meyering  <meyering@redhat.com>
5313
5314         gitlog-to-changelog: remove a little duplication
5315         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5316         rather than twice.
5317
5318 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5319
5320         canonicalize: add support for not resolving symlinks
5321         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5322         indicate we don't want to follow symlinks.  Also
5323         provide CAN_MODE_MASK to aid setting these existing
5324         mutually exclusive values.
5325         * lib/canonicalize.c (canonicalize_filename_mode):
5326         Extract the flags from can_mode parameter, which
5327         are currently just used to select between stat()
5328         and lstat().  Also ensure that mutually exclusive
5329         values are flagged immediately as invalid.
5330         * tests/test-canonicalize.c: Verify symlinks are
5331         not followed, and that invalid flag combinations
5332         are diagnosed.
5333
5334 2011-12-25  Jim Meyering  <meyering@redhat.com>
5335
5336         gitlog-to-changelog: do not clump multi-paragraph entries
5337         Identical header lines (date,name,email+coauthors) are suppressed,
5338         thus putting all entries with those same characteristics under
5339         a single header.  However, when a log entry consists of two or
5340         more paragraphs, it may not be clear where it starts and ends.
5341         This change makes it so that such an entry is always separated
5342         from others by a header line, even when that header would
5343         otherwise be suppressed.
5344         * build-aux/gitlog-to-changelog: Implement the above.
5345         Inspired by a related request from Stefano Lattarini in
5346         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5347
5348 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5349
5350         announce-gen: fix `cmd' typo in diagnostic
5351         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5352         diagnostic: a missing '$' meant that the command was not output.
5353
5354 2011-12-23  Jim Meyering  <meyering@redhat.com>
5355
5356         test-framework-sh: distribute init.sh
5357         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5358         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5359         fail due to the lack of init.sh.
5360
5361         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5362         * modules/atexit-tests: Rather than listing tests/init.sh,
5363         now that there's a module for it, simply depend on that new module.
5364         * modules/closein-tests: Likewise.
5365         * modules/exclude-tests: Likewise.
5366         * modules/getcwd-tests: Likewise.
5367         * modules/perror-tests: Likewise.
5368         * modules/pread-tests: Likewise.
5369         * modules/pwrite-tests: Likewise.
5370         * modules/vc-list-files-tests: Likewise.
5371         * modules/verify-tests: Likewise.
5372         * modules/xalloc-die-tests: Likewise.
5373         * modules/xstrtoimax-tests: Likewise.
5374         * modules/xstrtol-tests: Likewise.
5375         * modules/xstrtoll-tests: Likewise.
5376         * modules/xstrtoumax-tests: Likewise.
5377         * modules/yesno-tests: Likewise.
5378
5379 2011-12-22  Jim Meyering  <meyering@redhat.com>
5380
5381         test-framework-sh: add minimal tests of init.sh's compare function
5382         * modules/test-framework-sh-tests: New file.
5383         * tests/test-init.sh: New file.
5384
5385         test-framework-sh: new module
5386         * modules/test-framework-sh: New file.
5387         * MODULES.html.sh (Support for maintaining and releasing projects):
5388         List it.
5389
5390         init.sh: do not emit simulated diff output to stderr
5391         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5392
5393 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5394
5395         .gitignore: ignore gnulib.dvi and regex.info
5396         * doc/.gitignore:add gnulib.dvi and regex.info
5397
5398 2011-12-22  Jim Meyering  <meyering@redhat.com>
5399
5400         init.sh: correct previous change
5401         * tests/init.sh (compare): My previous change was wrong.
5402         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5403
5404         init.sh: avoid unwarranted test failure when using "set -e"
5405         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5406         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5407         a use like "compare exp out" would get evoke an unconditional failure.
5408
5409 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5410
5411         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5412         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5413         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5414         autoreconf that did not.
5415         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5416         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5417
5418 2011-12-17  Jim Meyering  <meyering@redhat.com>
5419
5420         bootstrap: remove some now-unneeded code
5421         This script arose back when gnulib-tool was young.
5422         Since then, it has seen improvements that render much of this
5423         script unnecessary.  In particular, it can now make symlinks
5424         to the files it uses.  Also, I no longer see as much value in
5425         marking files as read-only via comments.
5426         If you relied on the symlink-creation feature of the preceding
5427         version of this script, you can get most of that functionality
5428         by adding the --symlink option to the definition of
5429         gnulib_tool_option_extras in your bootstrap.conf file.
5430         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5431         Run autopoint and libtoolize *before* gnulib-tool.
5432         After it, run an abbreviated autoreconf, rather than a loop around
5433         all tools.
5434         (slirp, bt_mark_as_generated): Remove functions.
5435
5436 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5437
5438         ftoastr: fix typo
5439         * lib/ftoastr.h: Fix misspelling in comment.
5440
5441 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5442
5443         * top/README-release: fix punctuation.
5444
5445 2011-12-17  Jim Meyering  <meyering@redhat.com>
5446
5447         bootstrap: correct the recent buildreq change
5448         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5449         had no effect.
5450         * build-aux/bootstrap (buildreq): Bracket each search term with
5451         "*...*", so that the shell "case" statement works as intended.
5452         Add comments.
5453
5454 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5455
5456         build: let bootstrap resort to wget when downloading .po files
5457         * build-aux/bootstrap (download_po_files): Fallback to wget when
5458         downloading the .po files via rsync fails.  This is necessary to
5459         bootstrap from behind a strict firewall.
5460
5461 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5462
5463         stdint: don't assume C++11 when compiling with g++
5464         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5465         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5466         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5467         work also in C++ before C++11, as that improperly inhibits
5468         generating a substitute stdint.h for that case.
5469
5470 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5471
5472         alloca: protect comment from gnulib-tool
5473         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5474         that gnulib-tool doesn't think it's a license, and munge it to
5475         say "GCC version 3".
5476
5477 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5478
5479         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5480         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5481         $(abs_top_builddir) instead of $(top_builddir).
5482
5483 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5484
5485         strftime-tests: also test nanoseconds
5486         * tests/test-strftime.c (T): Add a test of %N.
5487
5488 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5489
5490         inttypes, stdint: add C++11 support
5491         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5492         when including inttypes.h and stdint.h.  Support this change to
5493         the standard.
5494         * doc/posix-headers/inttypes.texi (inttypes.h):
5495         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5496         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5497         Define if not defined already, for the benefit of pre-C++11 hosts.
5498         Define the standard format macros (e.g., PRId8) always.
5499         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5500         Likewise, if __cpluspus.  Define the standard constant and limit
5501         macros (e.g., INT8_C, INT8_MAX) always.
5502         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5503         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5504         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5505         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5506         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5507         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5508         Likewise.
5509
5510 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5511
5512         nonblocking tests: Fix test failure on Linux/PPC.
5513         Suggested by Prerna Saxena in
5514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5515         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5516         Set to 1100000.
5517
5518 2011-12-12  Jim Meyering  <meyering@redhat.com>
5519
5520         argmatch: don't hard-code `' when listing valid option arguments
5521         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5522         use the quote function to add quotes.  Use fputs rather than
5523         fprintf for the format string with no format directive.
5524
5525 2011-12-07  Eric Blake  <eblake@redhat.com>
5526
5527         bootstrap: detect tools required by gnulib-tool
5528         * build-aux/bootstrap (buildreq): Provide minimum implicit
5529         dependencies.
5530         * DEPENDENCIES: Mention patch as a prereq.
5531
5532 2011-12-04  Bruno Haible  <bruno@clisp.org>
5533
5534         sethostname: Port to Windows platforms.
5535         * lib/sethostname.c: Provide an alternate implementation for Windows
5536         platforms.
5537         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5538         (main): Skip the test if sethostname() fails with EPERM. On Windows
5539         platforms, don't check the result of gethostname().
5540
5541 2011-12-04  Bruno Haible  <bruno@clisp.org>
5542             Jim Meyering  <meyering@redhat.com>
5543
5544         tests: Avoid spurious error message on platforms without mktemp program.
5545         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5546
5547 2011-12-04  Bruno Haible  <bruno@clisp.org>
5548
5549         sethostname: Fix documentation.
5550         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5551         "not fixed" section.
5552
5553 2011-12-03  Bruno Haible  <bruno@clisp.org>
5554
5555         gnulib-tool: Verify that the License field is present and non-empty.
5556         * gnulib-tool (func_get_license_raw): New function, extracted from
5557         func_get_license.
5558         (func_get_license): Use it. Warn if the module is not a test module and
5559         has no license.
5560         Suggested by Jim Meyering.
5561
5562 2011-12-03  Bruno Haible  <bruno@clisp.org>
5563
5564         sethostname tests: Fix link error on mingw.
5565         * tests/test-sethostname1.c: New file, extracted from
5566         tests/test-sethostname.c.
5567         * tests/test-sethostname2.c: New file, extracted from
5568         tests/test-sethostname.c.
5569         * tests/test-sethostname.c: Remove file.
5570         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5571         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5572         (Depends-on): Add gethostname.
5573         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5574         Link the latter with $(GETHOSTNAME_LIB).
5575
5576         sethostname tests: Fix compilation error on mingw.
5577         * tests/test-sethostname.c: Don't include <sys/types.h>.
5578         (geteuid): Use a dummy value without uid_t.
5579         * modules/sethostname-tests (Depends-on): Remove sys_types.
5580
5581         sethostname tests: Avoid a gcc warning.
5582         * tests/test-sethostname.c (main): Remove an unused variable.
5583
5584         Tweak last commit.
5585         * modules/sethostname-tests (Files): Sort by decreasing importance.
5586         (configure.ac): Check for geteuid.
5587         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5588         the test when there's nothing to test. Drop an unnecessary cast.
5589         Improve an error message. Verify that the final sethostname() call
5590         succeeds.
5591
5592 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5593
5594         Add a test suite for the sethostname module.
5595         * modules/sethostname-tests: New file.  A test program
5596         for the sethostname module.
5597         * tests/test-sethostname.c: Likewise.
5598
5599 2011-12-03  Bruno Haible  <bruno@clisp.org>
5600
5601         Tweak last commit.
5602         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5603         Fix preprocessor directives indentation. Fix typos.
5604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5605         * modules/unistd (Makefile): Likewise.
5606
5607 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5608
5609         Integrate the sethostname module into unistd.
5610         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5611         into the unistd.h header.
5612         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5613         preprocessor directives.
5614         * modules/unistd: Setup the Makefile substitutions of the
5615         SETHOSTNAME preprocessor directives.
5616
5617 2011-12-03  Bruno Haible  <bruno@clisp.org>
5618
5619         Tweak last commit.
5620         * lib/sethostname.c: Don't include <string.h>.
5621         (sethostname): No need to copy the argument string to the stack. Don't
5622         call clearerr. Preserve errno when fprintf failed.
5623         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5624         Don't invoke AC_REPLACE_FUNCS.
5625         * modules/sethostname (Link): Remove empty section.
5626         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5627         failure problem.
5628
5629 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5630
5631         New module 'sethostname'.
5632         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5633         for systems that lack it.
5634         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5635         sethostname declaration and function.
5636         * modules/sethostname: New file.  Define the sethostname module.
5637
5638 2011-12-03  Bruno Haible  <bruno@clisp.org>
5639
5640         Tweak last commit.
5641         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5642
5643 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5644
5645         Split the HOST_NAME_MAX detection into a separate m4 macro.
5646         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5647         macro so it can be used by the pending sethostname module.
5648
5649 2011-12-03  Bruno Haible  <bruno@clisp.org>
5650
5651         Fix module descriptions syntax.
5652         * modules/argv-iter (License): Fix syntax.
5653         * modules/di-set (License): Likewise.
5654         * modules/ino-map (License): Likewise.
5655         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5656
5657 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5658
5659         stdalign: port to Clang 3.0
5660         Problem reported by Simon Josefsson in
5661         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5662         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5663         which has <stdalign.h> but which does not define alignof.
5664         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5665
5666 2011-12-01  Eric Blake  <eblake@redhat.com>
5667
5668         mktempd: silence dd usage
5669         * build-aux/mktempd (rand_bytes): Silence dd.
5670
5671 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5672
5673         manywarnings: Don't mention gcc version in docstring.
5674         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5675         Jim Meyering <meyering@redhat.com>.
5676
5677 2011-11-30  Jim Meyering  <meyering@redhat.com>
5678
5679         hash: mark a few floating point constants with "f" suffix
5680         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5681         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5682         floating point constants with "f", since they're destined to be
5683         saved/used as "float"s.
5684
5685 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5686
5687         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5688         * tests/test-float.c (test_long_double): Correct and re-enable the
5689         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5690
5691 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5692
5693         Avoid subtracting two pointers that don't point into the same block.
5694         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5695         only pointers into the same memory block are subtracted. We cannot
5696         assume that sizeof (ptrdiff_t) == sizeof (void *).
5697
5698 2011-11-29  Eric Blake  <eblake@redhat.com>
5699
5700         maint.mk: add syntax check for use of compare from init.sh
5701         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5702         moved here from coreutils.
5703
5704         manywarnings: drop -Wunsuffixed-float-constants
5705         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5706         '1.0D', which is the only way to silence this warning for 'double'.
5707
5708 2011-11-29  Jim Meyering  <meyering@redhat.com>
5709
5710         hash: mark compute_bucket_size with the pure attribute
5711         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5712
5713         quotearg, propername: correct pragma guard expression
5714         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5715         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5716
5717 2011-11-28  Jim Meyering  <meyering@redhat.com>
5718
5719         propername: do not mark proper_name with the const attribute
5720         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5721         since it examines data pointed to by its parameter.
5722         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5723         the suggestion from -Wsuggest-attribute=const.
5724
5725         propername: mark one more function as const
5726         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5727
5728 2011-11-27  Jim Meyering  <meyering@redhat.com>
5729
5730         mark functions with const and pure attributes
5731
5732         Mark functions per suggestions from gcc-4.6 when using these options:
5733         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5734         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5735         Follow these guidelines: when possible, apply the attribute to
5736         an extern declaration, not to its definition.  Apply it to the
5737         definition only when the definition is static.
5738         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5739         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5740         * lib/base64.h (isbase64): Likewise.
5741         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5742         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5743         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5744         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5745         (c_tolower, c_toupper): Likewise.
5746         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5747         * lib/chdir-long.c (find_non_slash): Likewise.
5748         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5749         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5750         * lib/file-type.h (file_type): Likewise.
5751         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5752         * lib/filevercmp.c (verrevcmp): Likewise.
5753         * lib/freadahead.h (freadahead): Likewise.
5754         * lib/fts.c (fts_maxarglen): Likewise.
5755         * lib/hash-pjw.h (hash_pjw): Likewise.
5756         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5757         * lib/hash.c (is_prime, next_prime): Likewise.
5758         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5759         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5760         (hash_table_ok, hash_get_first, hash_string): Likewise.
5761         (compute_bucket_size): Likewise.
5762         * lib/i-ring.h (i_ring_empty): Likewise.
5763         * lib/isnan.c (isnanl): Likewise.
5764         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5765         * lib/memcasecmp.h (memcasecmp): Likewise.
5766         * lib/memchr2.h (memchr2): Likewise.
5767         * lib/memcmp2.h (memcmp2): Likewise.
5768         * lib/parse-datetime.y (lookup_zone): Likewise.
5769         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5770         [!WINDOWS_SOCKETS]: Likewise.
5771         * lib/strnlen1.h (strnlen1): Likewise.
5772         * lib/uniwidth.in.h (uc_width): Likewise.
5773         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5774         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5775         (quoting_options_from_style): Add a comment.
5776         * lib/propername.h (proper_name): Add a comment.
5777
5778 2011-11-27  Bruno Haible  <bruno@clisp.org>
5779
5780         Remove unused macros from !_LIBC code in glibc-borrowed files.
5781         * lib/fnmatch.c (STRCOLL): Remove macro.
5782         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5783         * lib/glob.c (__stat, __readdir64): Remove macros.
5784         * lib/tempname.c (__open64, __xstat64): Remove macros.
5785         Suggested by Paul Eggert.
5786
5787 2011-11-27  Bruno Haible  <bruno@clisp.org>
5788
5789         getcwd: Fix link error on MSVC 9.
5790         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5791
5792 2011-11-27  Bruno Haible  <bruno@clisp.org>
5793
5794         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5795         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5796         HAVE_OPENDIR is 0.
5797         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5798         HAVE_CLOSEDIR is 0.
5799         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5800         is 0.
5801         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5802
5803 2011-11-27  Bruno Haible  <bruno@clisp.org>
5804
5805         getcwd: Fix bug from 2011-08-17.
5806         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5807         platforms that need it.
5808         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5809         code of 4 to be a failure, not a success. This ensures that
5810         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5811
5812 2011-11-27  Bruno Haible  <bruno@clisp.org>
5813
5814         binary-io tests: Avoid test failure on mingw when libtool is used.
5815         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5816         Don't verify the size of t-bin-out1.tmp here.
5817         * tests/test-binary-io.sh: Verify it here.
5818         Reported by Simon Josefsson.
5819
5820 2011-11-26  Bruno Haible  <bruno@clisp.org>
5821
5822         Fix conflict between two instantiations of module 'unistd'.
5823         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5824         ${include_guard_prefix} also in the autoconf snippet.
5825         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5827         GNULIB_UNISTD_H_GETOPT.
5828         * modules/getopt-posix (configure.ac): Set the
5829         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5830         * modules/getopt-gnu (configure.ac): Likewise.
5831         * modules/unistd (Makefile.am): Change the substitution value of
5832         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5833         Reported by Simon Josefsson.
5834
5835 2011-11-25  Bruno Haible  <bruno@clisp.org>
5836
5837         pagealign_alloc: Doc and comments.
5838         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5839         module.
5840         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5841
5842 2011-11-25  Jim Meyering  <meyering@redhat.com>
5843
5844         test-update-copyright.sh: avoid false-positive failure
5845         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5846         around false positive failure on Cygwin/Windows.  The latter was
5847         matching erroneously-created files with names like
5848         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5849
5850 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5851
5852         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5853         * m4/valgrind-tests.m4: Check that the parameters that will be
5854         used works, not just a subset of them.  Reported by Bruno Haible
5855         <bruno@clisp.org>.
5856
5857 2011-11-24  Jim Meyering  <meyering@redhat.com>
5858
5859         test-stdalign.c: comment out long double tests
5860         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5861         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5862         error: '_Alignas' specifiers cannot reduce alignment of \
5863         'static_longdouble_alignas'.
5864
5865 2011-11-22  Jim Meyering  <meyering@redhat.com>
5866
5867         init.sh: make "compare /dev/null FILE" output more readable
5868         * tests/init.sh (compare_): Document the preferred order of arguments.
5869         (emit_diff_u_header_): New function.
5870         (compare_dev_null_): Emit a simulated diff, rather than just the
5871         contents of the unexpected file.  Suggestion from Bruno Haible.
5872
5873 2011-11-21  Jim Meyering  <meyering@redhat.com>
5874             Eric Blake  <eblake@redhat.com>
5875
5876         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5877         * tests/init.sh: Make our compare function slightly more portable.
5878         Reported by Bruno Haible in
5879         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5880
5881 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5882
5883         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5884         before using it, in code that ends up in config.h.
5885
5886 2011-11-20  Bruno Haible  <bruno@clisp.org>
5887
5888         getcwd: Work around getcwd bug on AIX 5..7.
5889         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5890         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5891         Use a different value for gl_cv_func_getcwd_path_max. Move the
5892         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5893         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5894         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5895         Define HAVE_MINIMALLY_WORKING_GETCWD.
5896         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5897         where it is not even minimally working, that is, on AIX.
5898         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5899         m4/getcwd-path-max.m4.
5900         (main): Update exit code computation.
5901         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5902         getcwd does not handle long file names.
5903
5904 2011-11-20  Bruno Haible  <bruno@clisp.org>
5905
5906         getcwd: Fix bug from 2009-09-10.
5907         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5908         like "no".
5909
5910 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5911
5912         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5913
5914 2011-11-20  Bruno Haible  <bruno@clisp.org>
5915
5916         fma tests: Avoid shadowing local variables.
5917         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5918         expected.
5919
5920 2011-11-20  Bruno Haible  <bruno@clisp.org>
5921
5922         copysignf tests: Fix.
5923         * tests/test-copysignf.c: Fix signature check.
5924
5925 2011-11-20  Bruno Haible  <bruno@clisp.org>
5926
5927         fma: Remove unused code.
5928         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5929         unused macros.
5930
5931 2011-11-20  Bruno Haible  <bruno@clisp.org>
5932
5933         sethostname: Fix doc about AIX.
5934         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5935         sethostname; it has it.
5936
5937         sethostname: Mention more portability problems.
5938         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5939         problem.
5940         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5941
5942 2011-11-19  Bruno Haible  <bruno@clisp.org>
5943
5944         Depend on module fcntl-h when AT_FDCWD is used.
5945         * modules/utimens (Depends-on): Add fcntl-h.
5946         * modules/areadlinkat (Depends-on): Likewise.
5947         * modules/areadlinkat-with-size (Depends-on): Likewise.
5948         * modules/faccessat (Depends-on): Likewise.
5949         * modules/fchmodat (Depends-on): Likewise.
5950         * modules/fchownat (Depends-on): Likewise.
5951         * modules/getcwd (Depends-on): Likewise.
5952         * modules/mkdirat (Depends-on): Likewise.
5953         * modules/mkfifoat (Depends-on): Likewise.
5954         * modules/readlinkat (Depends-on): Likewise.
5955         * modules/symlinkat (Depends-on): Likewise.
5956         * modules/dup2-tests (Depends-on): Likewise.
5957         * modules/fdutimensat-tests (Depends-on): Likewise.
5958         * modules/futimens-tests (Depends-on): Likewise.
5959
5960 2011-11-19  Bruno Haible  <bruno@clisp.org>
5961
5962         euidaccess: Update a comment.
5963         * lib/euidaccess.c: Update comment about platforms with faccessat.
5964
5965 2011-11-19  Bruno Haible  <bruno@clisp.org>
5966
5967         openat: Fix file list.
5968         * modules/openat (Files): Remove lib/at-func.c.
5969
5970 2011-11-19  Bruno Haible  <bruno@clisp.org>
5971
5972         fstatat: Simplify.
5973         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5974         gnulib should define rpl_fstatat, there is a
5975         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5976
5977 2011-11-19  Bruno Haible  <bruno@clisp.org>
5978
5979         Ensure 'inline' can be used in tests/test-utimens-common.h.
5980         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5981         * modules/futimens-tests (configure.ac): Likewise.
5982         * modules/utimens-tests (configure.ac): Likewise.
5983         * modules/utimensat-tests (configure.ac): Likewise.
5984
5985 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5986
5987         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5988         not hash_insert0.
5989         (hash_insert_if_absent): Doc fix.
5990
5991 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5992
5993         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5994
5995 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5996
5997         test-getcwd: disambiguate exit status
5998         * tests/test-getcwd.c (test_long_name): Return 0..7.
5999         (main): Exit with an unambiguous exit status.  The old
6000         code yielded a mysterious mixture of two failure codes.
6001
6002         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6003         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6004         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6005         rpl_fstatat or fstatat.  This should fix the other problem
6006         reported by Kai Habel in
6007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6008         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6010         and I reproduced it on a Solaris 8 host we still have in production.
6011
6012 2011-11-18  Jim Meyering  <meyering@redhat.com>
6013
6014         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6015         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6016         Add a sentence to the comment.
6017         (hash_insert0): New function that simply calls hash_insert_if_absent.
6018         * lib/hash.h (hash_insert_if_absent): Declare it.
6019         (hash_insert0): Add deprecation attribute.
6020         (_GL_ATTRIBUTE_DEPRECATED): Define.
6021         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6022         not hash_insert0.
6023         * NEWS: Mention it, even though it's not really an incompatible change.
6024
6025 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6026
6027         openat: avoid compilation failure due to lack of <errno.h> inclusion
6028         * lib/openat.c: Include <errno.h>.
6029
6030 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6031
6032         * modules/getcwd (Depends-on): Add fdopendir.
6033         This fixes one of the two problems reported by Kai Habel in
6034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6035
6036         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6037         stdalign problem reported by Ian Beckwith in
6038         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6039         * modules/crypto/gc-arcfour (Depends-on):
6040         Depend conditionally on crypto/arcfour.
6041         * modules/crypto/gc-arctwo (Depends-on):
6042         Depend conditionally on crypto/arctwo.
6043         * modules/crypto/gc-des (Depends-on):
6044         Depend conditionally on crypto/des.
6045         * modules/crypto/gc-hmac-md5 (Depends-on):
6046         Depend conditionally on crypto/hmac-md5.
6047         * modules/crypto/gc-hmac-sha1 (Depends-on):
6048         Depend conditionally on crypto/hmac-sha1.
6049         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6050         * modules/crypto/gc-md4 (Depends-on):
6051         Depend conditionally on crypto/md4.
6052         * modules/crypto/gc-md5 (Depends-on):
6053         Depend conditionally on crypto/md5.
6054         * modules/crypto/gc-rijndael (Depends-on):
6055         Depend conditionally on crypto/rijndael.
6056         * modules/crypto/gc-sha1 (Depends-on):
6057         Depend conditionally on crypto/sha1.
6058         * modules/crypto/gc-arcfour:
6059         * modules/crypto/gc-arctwo:
6060         * modules/crypto/gc-des:
6061         * modules/crypto/gc-hmac-md5:
6062         * modules/crypto/gc-hmac-sha1:
6063         * modules/crypto/gc-md2:
6064         * modules/crypto/gc-md4:
6065         * modules/crypto/gc-md5:
6066         * modules/crypto/gc-rijndael:
6067         * modules/crypto/gc-sha1:
6068         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6069         now that the conditional dependencies do the work for us.
6070
6071 2011-11-17  Jim Meyering  <meyering@redhat.com>
6072
6073         tests: factor st_ctime-comparison out of two headers
6074         * tests/test-utimens-common.h (ctime_compare): Define.
6075         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6076         * tests/test-lutimens.h (test_lutimens): Likewise.
6077         * tests/test-utimens.h (test_utimens): Likewise.
6078
6079         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6080         Invoke the test program via an init.sh-using wrapper.
6081         * tests/test-getcwd.sh: New file.
6082         * modules/getcwd-tests (Files): Add it.
6083         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6084
6085 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6086
6087         gitlog-to-changelog: support multi-author commits.
6088         The FSF cares about keeping track of all authors of patches to its
6089         projects, but Git doesn't provide obvious support for multi-author
6090         changesets. Consensus seems to be forming around the use of extra
6091         Signed-off-by inspired lines in the log message formatted as
6092         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6093         multi-author commits between version control systems.
6094         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6095         log message and output in standard ChangeLog multi-author format.
6096         Reported by Peter Rosin <peda@lysator.liu.se>
6097
6098 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6099             Bruno Haible  <bruno@clisp.org>
6100
6101         Fix some modules' file list.
6102         * modules/fstatat (Files): Add m4/lstat.m4.
6103         * modules/openat (Files): Likewise.
6104         * modules/unlinkat (Files): Likewise.
6105
6106 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6107
6108         maint.mk: fix tight-scope.mk generation in VPATH builds.
6109         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6110         reference with $(srcdir) so that the file is found correctly even
6111         when running `make syntax-check' in a VPATH build.
6112
6113 2011-11-13  Bruno Haible  <bruno@clisp.org>
6114             Jim Meyering  <meyering@redhat.com>
6115
6116         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6117         * tests/init.sh (compare): Remove "No differences encountered" or
6118         synonymous output from the 'diff' program.
6119
6120 2011-11-13  Bruno Haible  <bruno@clisp.org>
6121
6122         Makefile: Tweak indentation.
6123         * Makefile: Use tab as first character in every line that contains rule
6124         commands.
6125
6126 2011-11-13  Bruno Haible  <bruno@clisp.org>
6127
6128         Syntax check for copyright statements.
6129         * check-copyright: New file.
6130         * Makefile (sc_check_copyright): New rule.
6131
6132 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6133
6134         * build-aux/git-version-gen: Add --prefix to configure the tag
6135         match string.
6136
6137 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6138
6139         * build-aux/git-version-gen: Add --help and --version.
6140
6141 2011-11-12  Jim Meyering  <meyering@redhat.com>
6142
6143         revamp the other test-exclude?.sh scripts to use init.sh, too
6144         * tests/test-exclude1.sh: Use init.sh.
6145         * tests/test-exclude2.sh: Likewise.
6146         * tests/test-exclude3.sh: Likewise.
6147         * tests/test-exclude4.sh: Likewise.
6148         * tests/test-exclude5.sh: Likewise.
6149         * tests/test-exclude6.sh: Likewise.
6150         * tests/test-exclude7.sh: Likewise.
6151         * tests/test-exclude8.sh: Likewise.
6152         * modules/exclude-tests (Files): List init.sh.
6153
6154         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6155         These shell scripts ignored failure of the binary test-exclude,
6156         so making the latter return 77 didn't cause them to be skipped.
6157         * tests/test-exclude5.sh: Exit with test-exclude's error status
6158         when that program fails.  Revamp to use init.sh.
6159         * tests/test-exclude2.sh: Likewise.
6160
6161         test-exclude: fix a typo
6162         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6163
6164 2011-11-11  Bruno Haible  <bruno@clisp.org>
6165
6166         obstack: Fix compilation error on MSVC 9.
6167         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6168
6169 2011-11-11  Jim Meyering  <meyering@redhat.com>
6170
6171         test-exclude: skip tests rather than failing on deficient systems
6172         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6173         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6174         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6175         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6176
6177 2011-11-10  Bruno Haible  <bruno@clisp.org>
6178
6179         ptsname_r test: Avoid gcc warning on glibc systems.
6180         * tests/test-ptsname_r.c (null_ptr): New function.
6181         (test_errors): Use it.
6182
6183 2011-11-10  Bruno Haible  <bruno@clisp.org>
6184
6185         ptsname_r: Avoid compilation error on OSF/1 5.1.
6186         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6188         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6189         function is not declared or incompatibly declared.
6190         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6191         * modules/ptsname_r (Depends-on, configure.ac): Update.
6192         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6193
6194 2011-11-10  Bruno Haible  <bruno@clisp.org>
6195
6196         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6197         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6198         When cross-compiling, guess yes on all platforms except AIX.
6199         Reported by Ludovic Courtès <ludo@gnu.org>.
6200
6201 2011-11-09  Bruno Haible  <bruno@clisp.org>
6202
6203         ptsname_r tests: Fix bugs.
6204         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6205         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6206
6207 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6208
6209         fstatat: work with cross-compilation
6210         Problem reported by Ludovic Courtès in
6211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6212         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6213         "cross-compiling" and assume the bug is present.  Replace
6214         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6215         an inverted sense, to be more conservative about our assumptions.
6216         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6217
6218 2011-11-09  Bruno Haible  <bruno@clisp.org>
6219
6220         Improve MODULES.html output.
6221         * modules/mkfifoat (Description): Use the word "function".
6222         * modules/readlinkat (Description): Likewise.
6223         * modules/symlinkat (Description): Likewise.
6224
6225 2011-11-09  Eric Blake  <eblake@redhat.com>
6226
6227         ptsname_r-tests: new test module
6228         * modules/ptsname_r-tests: New module.
6229         * tests/test-ptsname_r.c: New file.
6230
6231         ptsname_r: new module
6232         * modules/ptsname_r: New module.
6233         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6234         * lib/ptsname.c (__ptsname_r): Split...
6235         * lib/ptsname_r.c: ...into new file.
6236         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6237         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6238         * modules/stdlib (Makefile.am): Substitute witnesses.
6239         * lib/stdlib.in.h (ptsname_r): Declare it.
6240         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6241         * MODULES.html.sh (Misc): Likewise.
6242         * modules/ptsname (Depends-on): Alter dependency.
6243         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6244
6245 2011-11-09  Jim Meyering  <meyering@redhat.com>
6246
6247         announce-gen: be more concise when there's only one URL+tarball
6248         * build-aux/announce-gen (get_tool_versions): When you distribute
6249         only one type of tarball, combine the first two "Here are..."
6250         sections and make the key-checking grammar independent of
6251         how many tarballs there are.
6252
6253 2011-11-09  Eric Blake  <eblake@redhat.com>
6254
6255         openpty: provide a stub on mingw
6256         * lib/pty.in.h (includes): Provide forward declarations.
6257         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6258
6259         raise: fix mingw handling of SIGPIPE
6260         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6261
6262 2011-11-08  Bruno Haible  <bruno@clisp.org>
6263
6264         More conditional dependencies.
6265         * modules/faccessat (Depends-on): Add conditions.
6266         * modules/fchmodat (Depends-on): Likewise.
6267         * modules/fchownat (Depends-on): Likewise.
6268         * modules/fstatat (Depends-on): Likewise.
6269         * modules/mkfifoat (Depends-on): Likewise.
6270         * modules/readlinkat (Depends-on): Likewise.
6271         * modules/symlinkat (Depends-on): Likewise.
6272         * modules/unlinkat (Depends-on): Likewise.
6273         * modules/utimensat (Depends-on): Likewise.
6274         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6275         * modules/linkat (Depends-on): Refine the conditions.
6276         * modules/renameat (Depends-on): Likewise.
6277
6278 2011-11-08  Bruno Haible  <bruno@clisp.org>
6279
6280         faccessat: Move AC_LIBOBJ invocation to module description.
6281         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6282         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6283         invocation from here...
6284         * modules/faccessat (configure.ac): ... to here. Invoke
6285         gl_PREREQ_FACCESSAT.
6286
6287 2011-11-08  Bruno Haible  <bruno@clisp.org>
6288
6289         faccessat: Simplify autoconf macro.
6290         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6291         gl_FUNC_EUIDACCESS.
6292
6293 2011-11-08  Bruno Haible  <bruno@clisp.org>
6294
6295         renameat: Fix dependencies.
6296         * modules/renameat (Depends-on): Add stdbool.
6297
6298 2011-11-08  Bruno Haible  <bruno@clisp.org>
6299
6300         mkfifoat: Fix module description.
6301         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6302         not gl_UNISTD_MODULE_INDICATOR.
6303
6304 2011-11-08  Bruno Haible  <bruno@clisp.org>
6305
6306         fstatat: Remove unused dependency.
6307         * modules/fstatat (Depends-on): Remove fstat.
6308
6309 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6310
6311         GNUmakefile: behave when Makefile is missing.
6312         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6313
6314 2011-11-08  Bruno Haible  <bruno@clisp.org>
6315
6316         openat: Conditionalize dependencies.
6317         * lib/openat.c: Reduce the scope of some #includes.
6318         * modules/openat (Depends-on): Add conditions.
6319
6320 2011-11-07  Jim Meyering  <meyering@redhat.com>
6321
6322         maint.mk: extract GPG key ID without using a temporary file
6323         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6324         without using a temporary file.  Based on a suggestion from Werner Koch
6325         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6326
6327 2011-11-07  Eric Blake  <eblake@redhat.com>
6328
6329         grantpt: fix typo
6330         * lib/stdlib.in.h (grantpt): Check correct function.
6331
6332         maint.mk: silence new syntax check
6333         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6334
6335 2011-11-06  Bruno Haible  <bruno@clisp.org>
6336
6337         Doc about floating-point and math API.
6338         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6339         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6340
6341 2011-11-06  Bruno Haible  <bruno@clisp.org>
6342
6343         stdalign tests: Skip the test when compiled by Sun C.
6344         * tests/test-stdalign.c (main): Skip the test on Sun C.
6345
6346 2011-11-06  Bruno Haible  <bruno@clisp.org>
6347
6348         ansi-c++-opt: Complete the 2011-06-05 change.
6349         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6350         does not support namespaces, set the variable to "no", not to ":".
6351
6352 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6353
6354         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6355
6356 2011-11-06  Bruno Haible  <bruno@clisp.org>
6357
6358         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6359         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6360         (minus_zerol) [HP-UX]: New macro.
6361         (unary_minus) [HP-UX]: New function.
6362         (copysignl) [HP-UX]: Use unary_minus function.
6363
6364 2011-11-06  Bruno Haible  <bruno@clisp.org>
6365
6366         ldexp, ldexpf, ldexpl: Enhance tests.
6367         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6368         and tests/test-ldexpl.c.
6369         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6370         LDEXP, MIN_EXP, MAX_EXP): New macros.
6371         Include test-ldexp.h.
6372         (main): Just call test_function.
6373         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6374         infinity.h, nan.h.
6375         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6376         MAX_EXP): New macros.
6377         Include test-ldexp.h.
6378         (x, y): Remove variables.
6379         (main): Just call test_function.
6380         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6381         infinity.h, nan.h.
6382         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6383         MAX_EXP): New macros.
6384         Include test-ldexp.h.
6385         (x, y): Remove variables.
6386         (main): Just call test_function.
6387         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6388         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6389         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6390         (Depends-on): Add isnand-nolibm, signbit, float.
6391         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6392         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6393         (Depends-on): Add isnanf-nolibm, signbit, float.
6394
6395 2011-11-06  Bruno Haible  <bruno@clisp.org>
6396
6397         math tests: Cosmetics.
6398         * tests/test-math-c++.cc: Reorder declarations.
6399
6400 2011-11-05  Bruno Haible  <bruno@clisp.org>
6401
6402         fma*: Simplify test.
6403         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6404         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6405
6406         Tests for module 'fmal'.
6407         * modules/fmal-tests: New file.
6408         * tests/test-fmal1.c: New file.
6409         * tests/test-fmal2.c: New file.
6410
6411         New module 'fmal'.
6412         * lib/math.in.h (fmal): New declaration.
6413         * lib/fmal.c: New file.
6414         * m4/fmal.m4: New file.
6415         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6416         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6417         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6418         REPLACE_FMAL.
6419         * modules/fmal: New file.
6420         * doc/posix-functions/fmal.texi: Mention the new module and the various
6421         bugs.
6422
6423         Tests for module 'fmaf'.
6424         * modules/fmaf-tests: New file.
6425         * tests/test-fmaf1.c: New file.
6426         * tests/test-fmaf2.c: New file.
6427
6428         New module 'fmaf'.
6429         * lib/math.in.h (fmaf): New declaration.
6430         * lib/fmaf.c: New file.
6431         * m4/fmaf.m4: New file.
6432         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6433         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6434         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6435         REPLACE_FMAF.
6436         * modules/fmaf: New file.
6437         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6438         bugs.
6439
6440         Tests for module 'fma'.
6441         * modules/fma-tests: New file.
6442         * tests/test-fma1.c: New file.
6443         * tests/test-fma1.h: New file.
6444         * tests/test-fma2.c: New file.
6445         * tests/test-fma2.h: New file.
6446
6447         New module 'fma'.
6448         * lib/math.in.h (fma): New declaration.
6449         * lib/fma.c: New file.
6450         * m4/fma.m4: New file.
6451         * m4/fegetround.m4: New file.
6452         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6454         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6455         REPLACE_FMA.
6456         * modules/fma: New file.
6457         * doc/posix-functions/fma.texi: Mention the new module and the various
6458         bugs.
6459
6460         Extend gl_MATHFUNC.
6461         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6462         Support 'void' as argument type.
6463         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6464
6465 2011-11-05  Jim Meyering  <meyering@redhat.com>
6466
6467         maint.mk: also prohibit inclusion of dirent.h without use
6468         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6469
6470 2011-11-05  Bruno Haible  <bruno@clisp.org>
6471
6472         ldexpl tests: Avoid test failure on MSVC 9.
6473         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6474         value. Needed in order to enforce the conversion from a value greater
6475         than LDBL_MAX to Infinity.
6476
6477 2011-11-05  Bruno Haible  <bruno@clisp.org>
6478
6479         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6480         * modules/at-internal: New file, extracted from modules/openat.
6481         * modules/openat-h: New file.
6482         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6483         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6484         * modules/openat (Description): Add reference to POSIX function.
6485         (Files): Remove lib/openat.h, lib/openat-proc.c.
6486         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6487         intprops, unistd.
6488         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6489         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6490         gl_FCNTL_MODULE_INDICATOR.
6491         (Include): Remove unistd.h, openat.h.
6492         * modules/areadlinkat (Files): Add lib/at-func.c.
6493         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6494         openat-die, openat-h, save-cwd.
6495         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6496         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6497         openat-die, openat-h, save-cwd, unistd.
6498         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6499         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6500         openat-h, save-cwd. Remove fcntl-h, openat.
6501         * modules/fchmodat (Files): Remove lib/openat.h.
6502         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6503         openat, stdbool, unistd.
6504         * modules/fchownat (Files): Remove lib/openat.h.
6505         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6506         openat, stdbool, sys_stat.
6507         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6508         lib/openat-proc.c.
6509         (Depends-on): Add at-internal.
6510         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6511         * modules/fstatat (Files): Remove lib/openat.h.
6512         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6513         stdbool, unistd.
6514         * modules/fts (Depends-on): Add openat-h.
6515         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6516         openat.
6517         * modules/mkdirat (Files): Remove lib/openat.h.
6518         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6519         openat, stdbool, sys_stat.
6520         * modules/mkfifoat (Files): Add lib/at-func.c.
6521         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6522         openat-h, save-cwd. Remove fcntl-h, openat.
6523         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6524         * modules/readlinkat (Files): Add lib/at-func.c.
6525         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6526         openat-h, save-cwd. Remove fcntl-h, openat.
6527         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6528         openat.
6529         * modules/selinux-at (Files): Add lib/at-func.c.
6530         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6531         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6532         * modules/symlinkat (Files): Add lib/at-func.c.
6533         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6534         openat-h, save-cwd. Remove fcntl-h, openat.
6535         * modules/unlinkat (Files): Remove lib/openat.h.
6536         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6537         stdbool.
6538         * modules/utimensat (Files): Add lib/at-func.c.
6539         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6540         openat-die, openat-h, save-cwd.
6541         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6542         * modules/fdutimensat-tests (Depends-on): Add openat.
6543         * modules/fstatat-tests (Depends-on): Add openat-h.
6544         * modules/readlinkat-tests (Depends-on): Add openat.
6545         * modules/symlinkat-tests (Depends-on): Add openat.
6546
6547 2011-11-05  Bruno Haible  <bruno@clisp.org>
6548
6549         openat: Include <stdbool.h>.
6550         * lib/openat.c: Include <stdbool.h>.
6551
6552 2011-11-04  Bruno Haible  <bruno@clisp.org>
6553
6554         fchownat, renameat, unlinkat: Fix dependencies.
6555         * modules/fchownat (Depends-on): Add fstatat.
6556         * modules/renameat (Depends-on): Likewise.
6557         * modules/unlinkat (Depends-on): Likewise.
6558
6559 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6560
6561         openat: remove direct dependency on dirent
6562         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6563         and hasn't been needed ever since fdopendir was split into its own
6564         module on 2009-08-31.
6565         * modules/openat (Depends-on): Remove dirent.
6566
6567 2011-11-04  Bruno Haible  <bruno@clisp.org>
6568
6569         renameat: Optimize code size.
6570         * modules/renameat (configure.ac): Don't compile at-func2.c if
6571         REPLACE_RENAMEAT is 1.
6572
6573 2011-11-04  Bruno Haible  <bruno@clisp.org>
6574
6575         openat tests: Fix file list.
6576         * modules/openat-tests (Files): Add tests/test-open.h.
6577
6578 2011-11-04  Bruno Haible  <bruno@clisp.org>
6579
6580         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6581         * modules/fchmodat (Depends-on): Add openat-die.
6582         * modules/fchownat (Depends-on): Likewise.
6583         * modules/linkat (Depends-on): Likewise.
6584         * modules/renameat (Depends-on): Likewise.
6585         * modules/openat (Depends-on): Add dirent.
6586
6587 2011-11-04  Jim Meyering  <meyering@redhat.com>
6588
6589         at-func*.c: fix comments
6590         * lib/at-func2.c: Correct/improve first-line comment.
6591         * lib/at-func.c: Correct grammar in first-line comment.
6592
6593 2011-11-04  Bruno Haible  <bruno@clisp.org>
6594
6595         New module 'mkdirat', split off from module 'openat'.
6596         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6597         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6598         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6599         * modules/mkdirat: New file, extracted from modules/openat.
6600         * modules/openat (Files): Remove lib/mkdirat.c.
6601         (Depends-on): Remove mkdir.
6602         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6603         (Include): Remove <sys/stat.h>.
6604         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6605         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6606         tests/test-mkdir.h.
6607         (Depends-on): Remove ignore-value.
6608         (Makefile.am): Remove rules for test-mkdirat.
6609         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6610         of module 'openat'.
6611         * NEWS: Mention the change.
6612
6613 2011-11-04  Bruno Haible  <bruno@clisp.org>
6614
6615         closedir: Avoid warning on mingw.
6616         * lib/closedir.c: Include <unistd.h>.
6617
6618 2011-11-04  Bruno Haible  <bruno@clisp.org>
6619
6620         New module 'fstatat', split off from module 'openat'.
6621         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6622         defined.
6623         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6624         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6625         gl_FUNC_FSTATAT.
6626         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6627         * modules/fstatat: New file, extracted from modules/openat.
6628         * modules/openat (Files): Remove lib/fstatat.c.
6629         (Depends-on): Remove lstat.
6630         (configure.ac): Remove AC_LIBOBJ of fstatat.
6631         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6632         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6633         tests/test-lstat.h, tests/test-stat.h.
6634         (Depends-on): Remove getcwd-lgpl.
6635         (Makefile.am): Remove rules for test-fstatat.
6636         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6637         of module 'openat'.
6638         * NEWS: Mention the change.
6639         * modules/getcwd (Depends-on): Add fstatat.
6640         * modules/linkat (Depends-on): Likewise.
6641         * modules/mkfifoat-tests (Depends-on): Likewise.
6642         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6643
6644 2011-11-03  Bruno Haible  <bruno@clisp.org>
6645
6646         New module 'unlinkat', split off from module 'openat'.
6647         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6648         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6649         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6650         * modules/unlinkat: New file, extracted from modules/openat. Correct
6651         the dependency conditions.
6652         * modules/openat (Files): Remove lib/unlinkat.c.
6653         (Depends-on): Remove rmdir, unlink.
6654         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6655         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6656         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6657         tests/test-rmdir.h, tests/test-unlink.h.
6658         (Depends-on): Remove unlinkdir.
6659         (Makefile.am): Remove rules for test-unlinkat.
6660         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6661         of module 'openat'.
6662         * NEWS: Mention the change.
6663         * modules/linkat-tests (Depends-on): Add unlinkat.
6664         * modules/mkfifoat-tests (Depends-on): Likewise.
6665         * modules/readlinkat-tests (Depends-on): Likewise.
6666
6667 2011-11-02  Bruno Haible  <bruno@clisp.org>
6668
6669         New module 'fchmodat', split off from module 'openat'.
6670         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6671         defined.
6672         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6673         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6674         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6675         * modules/fchmodat: New file, extracted from modules/openat.
6676         * modules/openat (Files): Remove lib/fchmodat.c.
6677         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6678         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6679         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6680         (Makefile.am): Remove rules for test-fchmodat.
6681         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6682         of module 'openat'.
6683         * NEWS: Mention the change.
6684
6685 2011-11-02  Jim Meyering  <meyering@redhat.com>
6686
6687         putenv: indent #definition of "environ" to placate cppi
6688         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6689
6690         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6691         Git logs are often treated as immutable, because editing them
6692         changes the SHA1 checksums of all descendants.  Thus, errors in
6693         git logs tend to stay there forever.  However, when we generate
6694         a ChangeLog file -- typically for distribution -- from that git log,
6695         we can actually make corrections in the generated file.  The key
6696         lies in recording in machine-readable/applicable form the desired
6697         corrections.  See --help for description and an example.
6698         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6699         (usage): Describe it; alphabetize option descriptions.
6700         (main): Honor the new option, carefully.
6701
6702 2011-11-01  Jim Meyering  <meyering@redhat.com>
6703
6704         gitlog-to-changelog: avoid an infloop
6705         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6706         that ends up being empty.
6707
6708 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6709
6710         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6711         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6712         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6713         contains (possibly-quoted) backslashes.  This should avoid
6714         all-too-common shell bugs if COMPLICATED contains backslashes in
6715         the "wrong" places.  Reported by David Evans in
6716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6717         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6718         because we want ASCII ranges.  Is there some reason we don't use
6719         the C locale everywhere in this script?
6720         (func_module, top level): Avoid unwanted pathname expansion when
6721         $repo_url_prefix or $repo_url_suffix_repl contain shell
6722         metacharacters like '?' and '*'.
6723
6724 2011-11-01  Bruno Haible  <bruno@clisp.org>
6725
6726         fchownat: Improve description.
6727         * modules/fchownat (Description): Add link to function.
6728
6729 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6730
6731         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6732         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6733         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6734         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6735
6736 2011-11-01  Bruno Haible  <bruno@clisp.org>
6737
6738         alignof: Avoid collision with stdalign module.
6739         * lib/alignof.h (alignof): Remove macro.
6740         * NEWS: Mention the change.
6741         Reported by Paul Eggert.
6742
6743 2011-11-01  Bruno Haible  <bruno@clisp.org>
6744
6745         New module 'fchownat', split off from module 'openat'.
6746         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6747         defined.
6748         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6749         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6750         invoke gl_FUNC_FCHOWNAT.
6751         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6752         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6753         * modules/fchownat: New file, extracted from modules/openat.
6754         * modules/openat (Files): Remove lib/fchownat.c.
6755         (Depends-on): Remove lchown.
6756         (configure.ac): Remove AC_LIBOBJ of fchownat.
6757         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6758         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6759         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6760         (Depends-on): Remove mgetgroups, usleep, stat-time.
6761         (configure.ac): Remove test for getegid.
6762         (Makefile.am): Remove rules for test-fchownat.
6763         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6764         of module 'openat'.
6765         * NEWS: Mention the change.
6766
6767 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6768
6769         stdalign: port better to MSVC and to Sun C 5.11
6770         This fixes some of the problems reported by Bruno Haible in
6771         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6772         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6773         shortcomings of MSVC and of Sun C 5.11.
6774         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6775         around __declspec arg.
6776         * modules/stdalign-tests (Files): Add tests/macros.h.
6777         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6778         Include macros.h, for ASSERT.
6779         (DECLARE_ALIGNED): Remove.
6780         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6781         to catch bug), and to 1 if not (simplifies the rest of the code).
6782         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6783         (CHECK_AUTO): Remove.
6784         (CHECK_ALIGNED): Check only the alignment of the static vars,
6785         since auto var alignment isn't supported by Sun C 5.11.
6786         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6787         ASSERT failures are easier to diagnose.
6788
6789 2011-10-31  Bruno Haible  <bruno@clisp.org>
6790
6791         doc about some IRIX 5.3 problems.
6792         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6793         on IRIX 5.3.
6794         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6795         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6796         5.3.
6797         * doc/posix-functions/grantpt.texi: Likewise.
6798         * doc/posix-functions/unlockpt.texi: Likewise.
6799         * doc/posix-functions/lgamma.texi: Likewise.
6800         * doc/posix-functions/nextafter.texi: Likewise.
6801         * doc/posix-functions/remainder.texi: Likewise.
6802         * doc/posix-functions/select.texi: Mention misplaced declaration on
6803         IRIX 5.3.
6804         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6805
6806 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6807
6808         gitlog-to-changelog: fix git-log invocation.
6809         git-log mishandles date strings before 1970-01-01 UTC, and there is
6810         no use to specify --since=1970-01-01 by default anyway.
6811         * build-aux/gitlog-to-changelog: By default, when no --since option
6812         was given, do not specify explicit --since option to git-log.
6813
6814 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6815
6816         gitlog-to-changelog: new option --append-dot.
6817         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6818         first non-blank line of each commit message terminated with a dot.
6819
6820 2011-10-30  Bruno Haible  <bruno@clisp.org>
6821
6822         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6823         * lib/ffsl.h: Include <config.h>.
6824         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6825
6826 2011-10-30  Jim Meyering  <meyering@redhat.com>
6827
6828         GNUmakefile: reenable "make syntax-check" for most projects
6829         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6830         build-aux variable", "syntax-check" would do nothing but succeed with
6831         the "No version control files detected..." diagnostic (unless you
6832         happened to override _build-aux via cfg.mk).
6833         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6834         to precede inclusion of maint.mk.  Otherwise, these variables would
6835         be used undefined in any project that does not override the default.
6836
6837 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6838
6839         gitlog-to-changelog: treat a message with only blank lines as empty.
6840         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6841         trailing blank lines before the code that issues a warning about an
6842         empty commit message.
6843
6844 2011-10-30  Jim Meyering  <meyering@redhat.com>
6845
6846         test-parse-datetime.c: avoid new DST-related false positive test failure
6847         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6848         based on the time/date we'll convert, not the current time.
6849         Otherwise, the moment we cross a DST boundary like today's in
6850         Europe, (CEST to CET), that offset ends up being one hour off.
6851
6852 2011-10-27  Bruno Haible  <bruno@clisp.org>
6853
6854         fstat: Tweak documentation.
6855         * modules/fstat (Description): More precise description.
6856
6857 2011-10-27  Bruno Haible  <bruno@clisp.org>
6858
6859         Update documentation regarding 'largefile' module.
6860         * doc/posix-functions/fstat.texi: Tweak wording.
6861         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6862         problems with huge directories and/or small ino_t types.
6863         * doc/posix-functions/readdir.texi: Likewise.
6864         * doc/posix-functions/rewinddir.texi: Likewise.
6865
6866 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6867
6868         maint.mk: don't maintain a second build-aux variable.
6869         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6870         depends on GNUmakefile, which already maintains a cfg.mk
6871         overridable $(_build-aux) for projects with a non-standard
6872         build-aux directory location, although without the $(srcdir)
6873         prefix.  Use that variable consistently instead of introducing a
6874         second one.  Adjust all call sites.
6875
6876 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6877
6878         Add stdalign module and use it in other modules.
6879         This is based on a previous proposal by Bruno Haible
6880         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6881
6882         stdalign: new module
6883         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6884         * modules/stdalign: New files.
6885         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6886         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6887
6888         stdalign-tests: new module
6889         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6890
6891         argp: use stdalign
6892         * lib/argp-parse.c: Include <stdalign.h>.
6893         (alignof): Remove.
6894         * modules/argp (Depends-on): Add stdalign.
6895
6896         crypto libraries: use stdalign
6897         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6898         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6899         Do not include <stdlib.h> twice, in md4.c.
6900         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6901         because we are accessing a pointer's bit-pattern, not a size.
6902         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6903         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6904         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6905         * modules/crypto/sha512: Likewise.
6906
6907         sys_socket: use stdalign, not alignof
6908         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6909         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6910
6911 2011-10-27  Bruno Haible  <bruno@clisp.org>
6912
6913         raise test: Avoid a test failure on Linux/MIPS.
6914         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6915         because 99 is a valid signal on Linux/MIPS.
6916
6917 2011-10-27  Bruno Haible  <bruno@clisp.org>
6918
6919         nonblocking tests: Fix test failure on Linux/MIPS.
6920         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6921         Set to 270000.
6922
6923 2011-10-27  Bruno Haible  <bruno@clisp.org>
6924
6925         utimensat: Work around problem on Linux/hppa.
6926         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6927         values.
6928         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6929
6930 2011-10-25  Jim Meyering  <meyering@redhat.com>
6931
6932         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6933         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6934         after symbols like NULL, size_t, etc.
6935         Reported by Alfred M. Szmidt.
6936
6937         maint.mk: exempt ENODATA from a syntax-check rule
6938         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6939         from the sc_prohibit_always-defined_macros syntax-check rule.
6940         Add a comment.  See this for more details:
6941         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6942
6943 2011-10-23  Jim Meyering  <meyering@redhat.com>
6944
6945         fts: close parent dir FD before returning from post-traversal fts_read
6946         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6947         unlink A, even though an FD open on A remained.  This is suboptimal
6948         (holding a file descriptor open longer than needed), but otherwise not
6949         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6950         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6951         that represents a real problem: it causes the removal of A to fail
6952         with e.g., "rm: cannot remove `A': Device or resource busy"
6953
6954         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6955         directory file descriptors.  After completing the final, FTS_DP,
6956         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6957         cache, but then proceeded to add a new FD to it via the subsequent
6958         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6959         final file descriptor would be closed only via fts_close's call to
6960         fd_ring_clear.  Now, it is usually closed earlier, via the final
6961         FTS_DP-returning fts_read call.
6962         * lib/fts.c (restore_initial_cwd): New function, converted from
6963         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6964         Update callers.
6965         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6966         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6967
6968 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6969             Bruno Haible  <bruno@clisp.org>
6970             Jim Meyering  <jim@meyering.net>
6971
6972         readme-release: improve safety of release prep instructions.
6973         * README-release: Don't git pull all branches when only master
6974         is needed for the release process.
6975         Run make maintainer-clean before changing trees and merging.
6976         Don't try to run ./configure right after git pull in case files
6977         that influence the bootstrap process have changed, move the
6978         ./configure step to after running ./bootstrap.
6979         Don't bootstrap "one last time"... it's the first time!
6980
6981 2011-10-22  Bruno Haible  <bruno@clisp.org>
6982
6983         errno, strerror-override: Support for MSVC 10.
6984         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6985         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6986         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6987         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6988         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6989         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6990         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6991         Assign values compatible with MSVC 10.
6992         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6993         New macros.
6994         (GNULIB_defined_EWINSOCK): New macro.
6995         * lib/strerror-override.c (strerror_override): Update accordingly.
6996         * lib/strerror-override.h: Likewise.
6997         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6998         longer equal to the corresponding errno value.
6999         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7000
7001 2011-10-22  Bruno Haible  <bruno@clisp.org>
7002
7003         perror: Recognize when test program crashes.
7004         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7005         strerror, set gl_cv_func_perror_works to no.
7006         Reported by Daniel Richard G. <skunk@iskunk.org>.
7007
7008         perror: Fix indentation.
7009         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7010
7011 2011-10-22  Bruno Haible  <bruno@clisp.org>
7012
7013         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7014         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7015         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7016         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7017         functions, not as a macro.
7018         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7019         macros.
7020         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7021         absence of macro.
7022         Suggested by Eric Blake.
7023         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7024
7025 2011-10-21  Bruno Haible  <bruno@clisp.org>
7026
7027         relocatable-prog-wrapper: Don't leave object files behind.
7028         * build-aux/install-reloc: Re-synchronize list of .o files to be
7029         removed with list of compilation units.
7030
7031 2011-10-20  Bruno Haible  <bruno@clisp.org>
7032
7033         openpty, posix_openpt: Remove code duplication.
7034         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7035         * lib/openpty.c: Include <stdlib.h>.
7036         (openpty): Use posix_openpt on all platforms except IRIX.
7037         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7038
7039 2011-10-20  Bruno Haible  <bruno@clisp.org>
7040
7041         unlockpt: Detect invalid argument.
7042         * lib/unlockpt.c: Include <fcntl.h>.
7043         (unlockpt): Check whether fd is valid, using fcntl().
7044         * modules/unlockpt (Depends-on): Add fcntl-h.
7045
7046 2011-10-20  Bruno Haible  <bruno@clisp.org>
7047
7048         openpty: Avoid compilation error on AIX 6.1.
7049         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7050
7051 2011-10-20  Bruno Haible  <bruno@clisp.org>
7052
7053         posix_openpt: Support for OpenBSD.
7054         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7055         (posix_openpt) [OpenBSD]: New code.
7056         * lib/grantpt.c: Include <fcntl.h>.
7057         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7058         * modules/grantpt (Depends-on): Add fcntl-h.
7059
7060 2011-10-20  Bruno Haible  <bruno@clisp.org>
7061
7062         posix_openpt test: Coding style.
7063         * tests/test-posix_openpt.c: Use GNU coding style.
7064
7065 2011-10-20  Bruno Haible  <bruno@clisp.org>
7066
7067         grantpt: Support --avoid=pt_chown.
7068         * modules/grantpt (Files): Add lib/pty-private.h.
7069
7070 2011-10-20  Bruno Haible  <bruno@clisp.org>
7071
7072         posix_openpt: Fix autoconf macro.
7073         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7074         unneeded check for _getpty.
7075
7076 2011-10-20  Bruno Haible  <bruno@clisp.org>
7077
7078         openpty: Update comments.
7079         * lib/openpty.c: Add comments about Minix.
7080
7081 2011-10-19  Eric Blake  <eblake@redhat.com>
7082
7083         openpty: relax license
7084         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7085
7086         pt_chown: use configmake to simplify build
7087         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7088
7089         ptsname and others: relax license
7090         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7091         * modules/unlockpt (License): Likewise.
7092         * modules/pt_chown (License): Likewise.
7093         * modules/ptsname (License): Likewise.
7094         * modules/ttyname_r (License): Likewise.
7095
7096 2011-10-19  Jim Meyering  <meyering@redhat.com>
7097
7098         posix_openpt: remove spurious #endif
7099         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7100
7101 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7102
7103         maint.mk: Respect $(build_aux) in web-manual rule.
7104         * top/maint.mk (web-manual): Find gen-announce script in user's
7105         $(build_aux) directory instead of hard-coding 'build-aux'.
7106
7107 2011-10-19  Bruno Haible  <bruno@clisp.org>
7108
7109         posix_openpt: Fix compilation error.
7110         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7111         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7112         Mention the openpty module as an alternative.
7113
7114 2011-10-19  Bruno Haible  <bruno@clisp.org>
7115
7116         Support for old NeXTstep 3.3 frexp().
7117         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7118         execution time of the test to 5 seconds.
7119         Reported by Daniel Richard G. <skunk@iskunk.org>.
7120
7121 2011-10-19  Bruno Haible  <bruno@clisp.org>
7122
7123         Support for old NeXTstep 3.3 sed.
7124         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7125         part, use /.../, not \|...|. Escape periods in the header file name.
7126         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7127         Reported by Daniel Richard G. <skunk@iskunk.org>.
7128
7129 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7130
7131         Support for old NeXTstep 3.3 gcc.
7132         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7133         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7134         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7135         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7136         * lib/regex.h (_Restrict_arr_): Likewise.
7137         * lib/regex_internal.h (re_token_t): Likewise.
7138         * lib/regexec.c (check_node_accept_bytes): Likewise.
7139         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7140
7141 2011-10-18  Eric Blake  <eblake@redhat.com>
7142
7143         posix_openpt: new module
7144         * modules/posix_openpt: New module.
7145         * m4/posix_openpt.m4: New file.
7146         * lib/posix_openpt.c: Likewise.
7147         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7148         (gl_STDLIB_H_DEFAULTS): Set defaults.
7149         * modules/stdlib (Makefile.am): Substitute macros.
7150         * lib/stdlib.in.h (posix_openpt): Declare.
7151         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7152         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7153         * modules/posix_openpt-tests: New test module.
7154         * tests/test-posix_openpt.c: New test.
7155
7156 2011-10-15  Bruno Haible  <bruno@clisp.org>
7157
7158         xstrtoll: Fix compilation failure.
7159         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7160         from lib/strtol.c.
7161         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7162         some platforms.
7163         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7164
7165 2011-10-15  Bruno Haible  <bruno@clisp.org>
7166
7167         vasnprintf: Optimize bit search operation.
7168         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7169         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7170         gl_DOUBLE_EXPONENT_LOCATION.
7171         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7172         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7173         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7174         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7175         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7176         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7177         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7178         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7179         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7180
7181 2011-10-15  Bruno Haible  <bruno@clisp.org>
7182
7183         vasnprintf: Fix comments.
7184         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7185
7186 2011-10-14  Bruno Haible  <bruno@clisp.org>
7187
7188         Tests for module 'integer_length_ll'.
7189         * modules/integer_length_ll-tests: New file.
7190         * tests/test-integer_length_ll.c: New file.
7191
7192         New module 'integer_length_ll'.
7193         * lib/integer_length_ll.c: New file.
7194         * modules/integer_length_ll: New file.
7195
7196 2011-10-14  Bruno Haible  <bruno@clisp.org>
7197
7198         Tests for module 'integer_length_l'.
7199         * modules/integer_length_l-tests: New file.
7200         * tests/test-integer_length_l.c: New file.
7201
7202         New module 'integer_length_l'.
7203         * lib/integer_length_l.c: New file.
7204         * modules/integer_length_l: New file.
7205
7206 2011-10-14  Bruno Haible  <bruno@clisp.org>
7207
7208         Tests for module 'integer_length'.
7209         * modules/integer_length-tests: New file.
7210         * tests/test-integer_length.c: New file.
7211
7212         New module 'integer_length'.
7213         * lib/integer_length.h: New file.
7214         * lib/integer_length.c: New file.
7215         * modules/integer_length: New file.
7216
7217 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7218
7219         popen: Fix dependency conditions.
7220         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7221
7222 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7223
7224         perror: Fix autoconf test.
7225         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7226         <stdlib.h> and <string.h>.
7227
7228 2011-10-14  Bruno Haible  <bruno@clisp.org>
7229
7230         ffsl: Optimize on 64-bit platforms.
7231         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7232         unrolling.
7233
7234 2011-10-13  Bruno Haible  <bruno@clisp.org>
7235
7236         ffsl: Optimize on 32-bit platforms.
7237         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7238         use ffs() without a loop.
7239
7240         ffsl, ffsll: Optimize for GCC.
7241         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7242         * lib/ffsl.c (GCC_BUILTIN): New macro.
7243         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7244
7245 2011-10-13  Bruno Haible  <bruno@clisp.org>
7246
7247         ffs, bcopy, memset: Support symbol renaming via config.h.
7248         * lib/ffs.c: Include <config.h>.
7249         * lib/bcopy.c: Likewise.
7250         * lib/memset.c: Likewise.
7251
7252 2011-10-10  Bruno Haible  <bruno@clisp.org>
7253
7254         atanl: Simplify for platforms where 'long double' == 'double'.
7255         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7256         alternative implementation.
7257         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7258         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7259         * modules/atanl (Depends-on): Add atan. Update conditions.
7260
7261 2011-10-10  Bruno Haible  <bruno@clisp.org>
7262
7263         acosl: Simplify for platforms where 'long double' == 'double'.
7264         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7265         alternative implementation.
7266         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7267         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7268         * modules/acosl (Depends-on): Add acos. Update conditions.
7269
7270 2011-10-10  Bruno Haible  <bruno@clisp.org>
7271
7272         asinl: Simplify for platforms where 'long double' == 'double'.
7273         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7274         alternative implementation.
7275         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7276         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7277         * modules/asinl (Depends-on): Add asin. Update conditions.
7278
7279 2011-10-10  Bruno Haible  <bruno@clisp.org>
7280
7281         tanl: Simplify for platforms where 'long double' == 'double'.
7282         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7283         implementation.
7284         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7285         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7286         * modules/tanl (Depends-on): Add tan. Update conditions.
7287         (configure.ac): Don't compile trigl.c if
7288         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7289
7290 2011-10-10  Bruno Haible  <bruno@clisp.org>
7291
7292         cosl: Simplify for platforms where 'long double' == 'double'.
7293         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7294         implementation.
7295         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7296         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7297         * modules/cosl (Depends-on): Add cos. Update conditions.
7298         (configure.ac): Don't compile sincosl.c and trigl.c if
7299         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7300
7301 2011-10-10  Bruno Haible  <bruno@clisp.org>
7302
7303         sinl: Simplify for platforms where 'long double' == 'double'.
7304         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7305         implementation.
7306         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7307         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7308         * modules/sinl (Depends-on): Add sin. Update conditions.
7309         (configure.ac): Don't compile sincosl.c and trigl.c if
7310         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7311
7312 2011-10-10  Bruno Haible  <bruno@clisp.org>
7313
7314         logl: Simplify for platforms where 'long double' == 'double'.
7315         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7316         implementation.
7317         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7318         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7319         * modules/logl (Depends-on): Add log. Update conditions.
7320
7321 2011-10-10  Bruno Haible  <bruno@clisp.org>
7322
7323         expl: Simplify for platforms where 'long double' == 'double'.
7324         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7325         implementation.
7326         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7327         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7328         * modules/expl (Depends-on): Add exp. Update conditions.
7329
7330 2011-10-10  Bruno Haible  <bruno@clisp.org>
7331
7332         sqrtl: Simplify for platforms where 'long double' == 'double'.
7333         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7334         alternative implementation.
7335         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7336         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7337         * modules/sqrtl (Depends-on): Update conditions.
7338
7339 2011-10-10  Bruno Haible  <bruno@clisp.org>
7340
7341         ldexpl: Simplify for platforms where 'long double' == 'double'.
7342         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7343         alternative implementation.
7344         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7345         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7346         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7347
7348 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7349
7350         ffsll: set correct witness
7351         * modules/ffsll (configure.ac): Fix typo.
7352
7353 2011-10-10  Bruno Haible  <bruno@clisp.org>
7354
7355         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7356         * lib/printf-frexpl.c: Include <config.h>.
7357         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7358         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7359         second time.
7360         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7361         gl_LONG_DOUBLE_VS_DOUBLE.
7362         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7363         conditions.
7364
7365 2011-10-10  Bruno Haible  <bruno@clisp.org>
7366
7367         frexpl: Simplify for platforms where 'long double' == 'double'.
7368         * lib/frexpl.c: Include <config.h>.
7369         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7370         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7371         time.
7372         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7373         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7374         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7375         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7376         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7377         conditions.
7378
7379 2011-10-10  Jim Meyering  <meyering@redhat.com>
7380
7381         test-renameat: don't leave behind a temporary file
7382         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7383           ERROR: files left in build directory after distclean:
7384           ./gltests/test-renameat.too
7385           make[1]: *** [distcleancheck] Error 1
7386         Reported by Tom G. Christensen.
7387
7388 2011-10-09  Bruno Haible  <bruno@clisp.org>
7389
7390         rint: Determine RINT_LIBM correctly on AIX 7.
7391         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7392         directly, not only through a function pointer. Also accept an optional
7393         4th argument with extra code.
7394         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7395         rintf() call by gcc when optimizing.
7396
7397         mathfunc.m4: Refactor.
7398         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7399         m4 variable.
7400
7401 2011-10-09  Bruno Haible  <bruno@clisp.org>
7402
7403         rintl: Simplify for platforms where 'long double' == 'double'.
7404         * lib/rintl.c: Include <config.h>.
7405         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7406         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7407         time.
7408         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7409         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7410         * modules/rintl (Depends-on): Add rint. Update conditions.
7411
7412 2011-10-09  Bruno Haible  <bruno@clisp.org>
7413
7414         roundl: Simplify for platforms where 'long double' == 'double'.
7415         * lib/roundl.c: Include <config.h>.
7416         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7417         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7418         time.
7419         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7420         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7421         * modules/roundl (Depends-on): Add round. Update conditions.
7422
7423 2011-10-09  Bruno Haible  <bruno@clisp.org>
7424
7425         truncl: Simplify for platforms where 'long double' == 'double'.
7426         * lib/truncl.c: Include <config.h>.
7427         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7428         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7429         time.
7430         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7431         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7432         * modules/truncl (Depends-on): Add trunc. Update conditions.
7433
7434 2011-10-09  Bruno Haible  <bruno@clisp.org>
7435
7436         ceill: Simplify for platforms where 'long double' == 'double'.
7437         * lib/ceill.c: Include <config.h>.
7438         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7439         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7440         time.
7441         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7442         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7443         * modules/ceill (Depends-on): Add ceil. Update conditions.
7444
7445 2011-10-09  Bruno Haible  <bruno@clisp.org>
7446
7447         floorl: Simplify for platforms where 'long double' == 'double'.
7448         * lib/floorl.c: Include <config.h>.
7449         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7450         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7451         time.
7452         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7453         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7454         * modules/floorl (Depends-on): Add floor. Update conditions.
7455
7456 2011-10-09  Bruno Haible  <bruno@clisp.org>
7457
7458         rint: Fix ordering constraints.
7459         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7460         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7461         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7462
7463 2011-10-09  Bruno Haible  <bruno@clisp.org>
7464
7465         copysignl: Simplify for platforms where 'long double' == 'double'.
7466         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7467         alternative.
7468         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7469         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7470         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7471
7472 2011-10-09  Bruno Haible  <bruno@clisp.org>
7473
7474         Tests for module 'rintl'.
7475         * modules/rintl-tests: New file.
7476         * tests/test-rintl.c: New file.
7477
7478         New module 'rintl'.
7479         * lib/math.in.h (rintl): New declaration.
7480         * lib/rintl.c: New file.
7481         * m4/rintl.m4: New file.
7482         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7483         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7484         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7485         * modules/rintl: New file.
7486         * tests/test-math-c++.cc: Check the declaration of rintl.
7487         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7488         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7489         * doc/posix-functions/rintl.texi: Mention the new module.
7490
7491 2011-10-09  Bruno Haible  <bruno@clisp.org>
7492
7493         Tests for module 'rintf'.
7494         * modules/rintf-tests: New file.
7495         * tests/test-rintf.c: New file.
7496
7497         New module 'rintf'.
7498         * lib/math.in.h (rintf): New declaration.
7499         * lib/rintf.c: New file.
7500         * m4/rintf.m4: New file.
7501         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7502         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7503         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7504         * modules/rintf: New file.
7505         * tests/test-math-c++.cc: Check the declaration of rintf.
7506         * doc/posix-functions/rintf.texi: Mention the new module.
7507
7508 2011-10-09  Bruno Haible  <bruno@clisp.org>
7509
7510         rint: Support for MSVC.
7511         * lib/math.in.h (rint): New declaration.
7512         * lib/rint.c: New file.
7513         * m4/rint.m4: New file.
7514         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7516         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7517         * modules/rint (Description): Fix.
7518         (Files): Add lib/rint.c, m4/rint.m4.
7519         (Depends-on): Add math.
7520         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7521         gl_MATH_MODULE_INDICATOR.
7522         * tests/test-math-c++.cc: Check the declaration of rint.
7523         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7524         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7525         * doc/posix-functions/rint.texi: Mention the replacement provided by
7526         the module.
7527
7528         rint tests: More tests.
7529         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7530         minus-zero.h, infinity.h, nan.h.
7531         (main): Skip the test if the current rounding mode is not standard. Add
7532         tests for negative numbers, minus zero, infinity, NaN.
7533         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7534         tests/nan.h.
7535         (Depends-on): Add isnand-nolibm.
7536
7537 2011-10-09  Bruno Haible  <bruno@clisp.org>
7538
7539         Tests for module 'copysignl'.
7540         * modules/copysignl-tests: New file.
7541         * tests/test-copysignl.c: New file.
7542
7543         New module 'copysignl'.
7544         * lib/math.in.h (copysignl): New declaration.
7545         * lib/copysignl.c: New file.
7546         * m4/copysignl.m4: New file.
7547         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7548         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7549         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7550         HAVE_COPYSIGNL.
7551         * modules/copysignl: New file.
7552         * tests/test-math-c++.cc: Check the declaration of copysignl.
7553         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7554         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7555         * doc/posix-functions/copysignl.texi: Mention the new module.
7556
7557 2011-10-09  Bruno Haible  <bruno@clisp.org>
7558
7559         Tests for module 'copysignf'.
7560         * modules/copysignf-tests: New file.
7561         * tests/test-copysignf.c: New file.
7562
7563         New module 'copysignf'.
7564         * lib/math.in.h (copysignf): New declaration.
7565         * lib/copysignf.c: New file.
7566         * m4/copysignf.m4: New file.
7567         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7568         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7569         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7570         HAVE_COPYSIGNF.
7571         * modules/copysignf: New file.
7572         * tests/test-math-c++.cc: Check the declaration of copysignf.
7573         * doc/posix-functions/copysignf.texi: Mention the new module.
7574
7575 2011-10-09  Bruno Haible  <bruno@clisp.org>
7576
7577         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7578         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7579         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7580         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7581         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7582         gl_SIGNAL_H_DEFAULTS.
7583
7584 2011-10-09  Bruno Haible  <bruno@clisp.org>
7585
7586         poll: Make macro safer.
7587         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7588         ac_cv_header_poll_h is not set.
7589
7590 2011-10-09  Bruno Haible  <bruno@clisp.org>
7591
7592         copysign: Provide replacement.
7593         * lib/math.in.h (copysign): New declaration.
7594         * lib/copysign.c: New file.
7595         * m4/copysign.m4: New file.
7596         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7597         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7598         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7599         HAVE_COPYSIGN.
7600         * modules/copysign (Description): Clarify.
7601         (Files): Add lib/copysign.c, m4/copysign.m4.
7602         (Depends-on): Add math, signbit.
7603         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7604         gl_MATH_MODULE_INDICATOR.
7605         * tests/test-math-c++.cc: Check the declaration of copysign.
7606         * doc/posix-functions/copysign.texi: Mention the effects of the module
7607         on Minix and MSVC.
7608
7609 2011-10-09  Bruno Haible  <bruno@clisp.org>
7610
7611         isinf: Ensure macro on AIX 5.1.
7612         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7613         macro.
7614         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7615
7616 2011-10-09  Bruno Haible  <bruno@clisp.org>
7617
7618         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7619         * modules/snprintf-posix-tests (configure.ac): Require
7620         gl_LONG_DOUBLE_VS_DOUBLE.
7621         * modules/sprintf-posix-tests (configure.ac): Likewise.
7622         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7623         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7624         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7625         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7626         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7627         tests on platforms where 'long double' is the same as 'double'.
7628         * tests/test-sprintf-posix.h (test_function): Likewise.
7629         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7630         * tests/test-vasprintf-posix.c (test_function): Likewise.
7631
7632         *printf: Fix for platforms where 'long double' == 'double'.
7633         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7634         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7635         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7636         * modules/fprintf-posix (Files): Likewise.
7637         * modules/obstack-printf-posix (Files): Likewise.
7638         * modules/snprintf-posix (Files): Likewise.
7639         * modules/sprintf-posix (Files): Likewise.
7640         * modules/vasnprintf (Files): Likewise.
7641         * modules/vasnprintf-posix (Files): Likewise.
7642         * modules/vasprintf-posix (Files): Likewise.
7643         * modules/vdprintf-posix (Files): Likewise.
7644         * modules/vfprintf-posix (Files): Likewise.
7645         * modules/vsnprintf-posix (Files): Likewise.
7646         * modules/vsprintf-posix (Files): Likewise.
7647         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7648         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7649         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7650         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7651         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7652         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7653         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7654
7655         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7656         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7657         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7658         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7659         'long double'.
7660         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7661
7662         isinf: Fix for platforms where 'long double' == 'double'.
7663         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7664         Don't blindly assume 80-bit 'long double'.
7665
7666         isfinite: Fix for platforms where 'long double' == 'double'.
7667         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7668         Don't blindly assume 80-bit 'long double'.
7669
7670         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7671         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7672         * modules/isfinite-tests (configure.ac): Require
7673         gl_LONG_DOUBLE_VS_DOUBLE.
7674         * modules/isinf-tests (configure.ac): Likewise.
7675         * modules/isnan-tests (configure.ac): Likewise.
7676         * modules/isnanl-tests (configure.ac): Likewise.
7677         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7678         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7679         tests on platforms where 'long double' is the same as 'double'.
7680         * tests/test-isinf.c (test_isinfl): Likewise.
7681         * tests/test-isnan.c (test_long_double): Likewise.
7682         * tests/test-isnanl.h (main): Likewise.
7683
7684 2011-10-08  Bruno Haible  <bruno@clisp.org>
7685
7686         Tests for module 'tanhf'.
7687         * modules/tanhf-tests: New file.
7688         * tests/test-tanhf.c: New file.
7689
7690         New module 'tanhf'.
7691         * lib/math.in.h (tanhf): New declaration.
7692         * lib/tanhf.c: New file.
7693         * m4/tanhf.m4: New file.
7694         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7696         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7697         * modules/tanhf: New file.
7698         * tests/test-math-c++.cc: Check the declaration of tanhf.
7699         * doc/posix-functions/tanhf.texi: Mention the new module.
7700
7701         tanh: Use a .m4 file.
7702         * m4/tanh.m4: New file.
7703         * modules/tanh (Files): Add it.
7704         (configure.ac): Just invoke gl_FUNC_TANH.
7705
7706 2011-10-08  Bruno Haible  <bruno@clisp.org>
7707
7708         Tests for module 'coshf'.
7709         * modules/coshf-tests: New file.
7710         * tests/test-coshf.c: New file.
7711
7712         New module 'coshf'.
7713         * lib/math.in.h (coshf): New declaration.
7714         * lib/coshf.c: New file.
7715         * m4/coshf.m4: New file.
7716         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7718         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7719         * modules/coshf: New file.
7720         * tests/test-math-c++.cc: Check the declaration of coshf.
7721         * doc/posix-functions/coshf.texi: Mention the new module.
7722
7723         cosh: Use a .m4 file.
7724         * m4/cosh.m4: New file.
7725         * modules/cosh (Files): Add it.
7726         (configure.ac): Just invoke gl_FUNC_COSH.
7727
7728 2011-10-08  Bruno Haible  <bruno@clisp.org>
7729
7730         Tests for module 'sinhf'.
7731         * modules/sinhf-tests: New file.
7732         * tests/test-sinhf.c: New file.
7733
7734         New module 'sinhf'.
7735         * lib/math.in.h (sinhf): New declaration.
7736         * lib/sinhf.c: New file.
7737         * m4/sinhf.m4: New file.
7738         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7739         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7740         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7741         * modules/sinhf: New file.
7742         * tests/test-math-c++.cc: Check the declaration of sinhf.
7743         * doc/posix-functions/sinhf.texi: Mention the new module.
7744
7745         sinh: Use a .m4 file.
7746         * m4/sinh.m4: New file.
7747         * modules/sinh (Files): Add it.
7748         (configure.ac): Just invoke gl_FUNC_SINH.
7749
7750 2011-10-08  Bruno Haible  <bruno@clisp.org>
7751
7752         Tests for module 'atan2f'.
7753         * modules/atan2f-tests: New file.
7754         * tests/test-atan2f.c: New file.
7755
7756         New module 'atan2f'.
7757         * lib/math.in.h (atan2f): New declaration.
7758         * lib/atan2f.c: New file.
7759         * m4/atan2f.m4: New file.
7760         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7761         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7762         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7763         * modules/atan2f: New file.
7764         * tests/test-math-c++.cc: Check the declaration of atan2f.
7765         * doc/posix-functions/atan2f.texi: Mention the new module.
7766
7767         atan2: Use a .m4 file.
7768         * m4/atan2.m4: New file.
7769         * modules/atan2 (Files): Add it.
7770         (configure.ac): Just invoke gl_FUNC_ATAN2.
7771
7772 2011-10-08  Bruno Haible  <bruno@clisp.org>
7773
7774         Tests for module 'atanf'.
7775         * modules/atanf-tests: New file.
7776         * tests/test-atanf.c: New file.
7777
7778         New module 'atanf'.
7779         * lib/math.in.h (atanf): New declaration.
7780         * lib/atanf.c: New file.
7781         * m4/atanf.m4: New file.
7782         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7783         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7784         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7785         * modules/atanf: New file.
7786         * tests/test-math-c++.cc: Check the declaration of atanf.
7787         * doc/posix-functions/atanf.texi: Mention the new module.
7788
7789         atan: Use a .m4 file.
7790         * m4/atan.m4: New file.
7791         * modules/atan (Files): Add it.
7792         (configure.ac): Just invoke gl_FUNC_ATAN.
7793
7794 2011-10-08  Bruno Haible  <bruno@clisp.org>
7795
7796         Tests for module 'acosf'.
7797         * modules/acosf-tests: New file.
7798         * tests/test-acosf.c: New file.
7799
7800         New module 'acosf'.
7801         * lib/math.in.h (acosf): New declaration.
7802         * lib/acosf.c: New file.
7803         * m4/acosf.m4: New file.
7804         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7806         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7807         * modules/acosf: New file.
7808         * tests/test-math-c++.cc: Check the declaration of acosf.
7809         * doc/posix-functions/acosf.texi: Mention the new module.
7810
7811         acos: Use a .m4 file.
7812         * m4/acos.m4: New file.
7813         * modules/acos (Files): Add it.
7814         (configure.ac): Just invoke gl_FUNC_ACOS.
7815
7816 2011-10-08  Bruno Haible  <bruno@clisp.org>
7817
7818         Tests for module 'asinf'.
7819         * modules/asinf-tests: New file.
7820         * tests/test-asinf.c: New file.
7821
7822         New module 'asinf'.
7823         * lib/math.in.h (asinf): New declaration.
7824         * lib/asinf.c: New file.
7825         * m4/asinf.m4: New file.
7826         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7827         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7828         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7829         * modules/asinf: New file.
7830         * tests/test-math-c++.cc: Check the declaration of asinf.
7831         * doc/posix-functions/asinf.texi: Mention the new module.
7832
7833         asin: Use a .m4 file.
7834         * m4/asin.m4: New file.
7835         * modules/asin (Files): Add it.
7836         (configure.ac): Just invoke gl_FUNC_ASIN.
7837
7838 2011-10-08  Bruno Haible  <bruno@clisp.org>
7839
7840         Tests for module 'tanf'.
7841         * modules/tanf-tests: New file.
7842         * tests/test-tanf.c: New file.
7843
7844         New module 'tanf'.
7845         * lib/math.in.h (tanf): New declaration.
7846         * lib/tanf.c: New file.
7847         * m4/tanf.m4: New file.
7848         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7850         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7851         * modules/tanf: New file.
7852         * tests/test-math-c++.cc: Check the declaration of tanf.
7853         * doc/posix-functions/tanf.texi: Mention the new module.
7854
7855         tan: Use a .m4 file.
7856         * m4/tan.m4: New file.
7857         * modules/tan (Files): Add it.
7858         (configure.ac): Just invoke gl_FUNC_TAN.
7859
7860 2011-10-08  Bruno Haible  <bruno@clisp.org>
7861
7862         Tests for module 'cosf'.
7863         * modules/cosf-tests: New file.
7864         * tests/test-cosf.c: New file.
7865
7866         New module 'cosf'.
7867         * lib/math.in.h (cosf): New declaration.
7868         * lib/cosf.c: New file.
7869         * m4/cosf.m4: New file.
7870         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7871         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7872         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7873         * modules/cosf: New file.
7874         * tests/test-math-c++.cc: Check the declaration of cosf.
7875         * doc/posix-functions/cosf.texi: Mention the new module.
7876
7877         cos: Use a .m4 file.
7878         * m4/cos.m4: New file.
7879         * modules/cos (Files): Add it.
7880         (configure.ac): Just invoke gl_FUNC_COS.
7881
7882 2011-10-08  Bruno Haible  <bruno@clisp.org>
7883
7884         Tests for module 'sinf'.
7885         * modules/sinf-tests: New file.
7886         * tests/test-sinf.c: New file.
7887
7888         New module 'sinf'.
7889         * lib/math.in.h (sinf): New declaration.
7890         * lib/sinf.c: New file.
7891         * m4/sinf.m4: New file.
7892         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7894         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7895         * modules/sinf: New file.
7896         * tests/test-math-c++.cc: Check the declaration of sinf.
7897         * doc/posix-functions/sinf.texi: Mention the new module.
7898
7899         sin: Use a .m4 file.
7900         * m4/sin.m4: New file.
7901         * modules/sin (Files): Add it.
7902         (configure.ac): Just invoke gl_FUNC_SIN.
7903
7904 2011-10-08  Bruno Haible  <bruno@clisp.org>
7905
7906         Tests for module 'powf'.
7907         * modules/powf-tests: New file.
7908         * tests/test-powf.c: New file.
7909
7910         New module 'powf'.
7911         * lib/math.in.h (powf): New declaration.
7912         * lib/powf.c: New file.
7913         * m4/powf.m4: New file.
7914         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7915         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7916         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7917         * modules/powf: New file.
7918         * tests/test-math-c++.cc: Check the declaration of powf.
7919         * doc/posix-functions/powf.texi: Mention the new module.
7920
7921         pow: Use a .m4 file.
7922         * m4/pow.m4: New file.
7923         * modules/pow (Files): Add it.
7924         (configure.ac): Just invoke gl_FUNC_POW.
7925
7926 2011-10-08  Bruno Haible  <bruno@clisp.org>
7927
7928         Tests for module 'log10f'.
7929         * modules/log10f-tests: New file.
7930         * tests/test-log10f.c: New file.
7931
7932         New module 'log10f'.
7933         * lib/math.in.h (log10f): New declaration.
7934         * lib/log10f.c: New file.
7935         * m4/log10f.m4: New file.
7936         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7937         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7938         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7939         * modules/log10f: New file.
7940         * tests/test-math-c++.cc: Check the declaration of log10f.
7941         * doc/posix-functions/log10f.texi: Mention the new module.
7942
7943         log10: Use a .m4 file.
7944         * m4/log10.m4: New file.
7945         * modules/log10 (Files): Add it.
7946         (configure.ac): Just invoke gl_FUNC_LOG10.
7947
7948 2011-10-08  Bruno Haible  <bruno@clisp.org>
7949
7950         Tests for module 'logf'.
7951         * modules/logf-tests: New file.
7952         * tests/test-logf.c: New file.
7953
7954         New module 'logf'.
7955         * lib/math.in.h (logf): New declaration.
7956         * lib/logf.c: New file.
7957         * m4/logf.m4: New file.
7958         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7959         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7960         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7961         * modules/logf: New file.
7962         * tests/test-math-c++.cc: Check the declaration of logf.
7963         * doc/posix-functions/logf.texi: Mention the new module.
7964
7965         log: Use a .m4 file.
7966         * m4/log.m4: New file.
7967         * modules/log (Files): Add it.
7968         (configure.ac): Just invoke gl_FUNC_LOG.
7969
7970 2011-10-08  Bruno Haible  <bruno@clisp.org>
7971
7972         Tests for module 'expf'.
7973         * modules/expf-tests: New file.
7974         * tests/test-expf.c: New file.
7975
7976         New module 'expf'.
7977         * lib/math.in.h (expf): New declaration.
7978         * lib/expf.c: New file.
7979         * m4/expf.m4: New file.
7980         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7981         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7982         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7983         * modules/expf: New file.
7984         * tests/test-math-c++.cc: Check the declaration of expf.
7985         * doc/posix-functions/expf.texi: Mention the new module.
7986
7987         exp: Use a .m4 file.
7988         * m4/exp.m4: New file.
7989         * modules/exp (Files): Add it.
7990         (configure.ac): Just invoke gl_FUNC_EXP.
7991
7992 2011-10-08  Bruno Haible  <bruno@clisp.org>
7993
7994         Tests for module 'sqrtf'.
7995         * modules/sqrtf-tests: New file.
7996         * tests/test-sqrtf.c: New file.
7997
7998         New module 'sqrtf'.
7999         * lib/math.in.h (sqrtf): New declaration.
8000         * lib/sqrtf.c: New file.
8001         * m4/sqrtf.m4: New file.
8002         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8003         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8004         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8005         * modules/sqrtf: New file.
8006         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8007         * doc/posix-functions/sqrtf.texi: Mention the new module.
8008
8009 2011-10-08  Bruno Haible  <bruno@clisp.org>
8010
8011         Tests: Avoid link failures w.r.t. libintl.
8012         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8013         $(LIBINTL).
8014         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8015         $(LIBINTL).
8016         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8017         against $(LIBINTL).
8018         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8019         $(LIBINTL).
8020         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8021         $(LIBINTL).
8022         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8023
8024 2011-10-08  Bruno Haible  <bruno@clisp.org>
8025
8026         pow tests: Defeat compiler optimizations.
8027         * tests/test-pow.c (main): Assign arguments to x and y before use.
8028
8029 2011-10-08  Bruno Haible  <bruno@clisp.org>
8030
8031         gnulib-tool: Improve last commit.
8032         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8033         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8034         ignore dependencies that are not among the modules list.
8035
8036 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8037
8038         gnulib-tool: don't follow dependencies to avoided modules
8039         This fixes a bug that is related to the previous one.
8040         * gnulib-tool (func_modules_transitive_closure)
8041         (func_emit_autoconf_snippets):
8042         Check whether a dependency is acceptable before using it.
8043         (--extract-dependencies): Report an error if --avoid is also used,
8044         since this combination of options is not yet supported.
8045
8046         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8047         Problem reported by Peter Dyballa in
8048         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8049         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8050         when echoing "$condition".
8051
8052 2011-10-07  Bruno Haible  <bruno@clisp.org>
8053
8054         Fix documentation about math functions on MacOS X.
8055         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8056         MacOS X 10.5.
8057         * doc/posix-functions/fdim.texi: Likewise.
8058         * doc/posix-functions/feclearexcept.texi: Likewise.
8059         * doc/posix-functions/fegetenv.texi: Likewise.
8060         * doc/posix-functions/fegetround.texi: Likewise.
8061         * doc/posix-functions/feholdexcept.texi: Likewise.
8062         * doc/posix-functions/feraiseexcept.texi: Likewise.
8063         * doc/posix-functions/fesetenv.texi: Likewise.
8064         * doc/posix-functions/fesetround.texi: Likewise.
8065         * doc/posix-functions/fetestexcept.texi: Likewise.
8066         * doc/posix-functions/feupdateenv.texi: Likewise.
8067         * doc/posix-functions/fmax.texi: Likewise.
8068         * doc/posix-functions/fmin.texi: Likewise.
8069         * doc/posix-functions/log2.texi: Likewise.
8070         * doc/posix-functions/modff.texi: Likewise.
8071         * doc/posix-functions/nan.texi: Likewise.
8072         * doc/posix-functions/nanf.texi: Likewise.
8073         * doc/posix-functions/nextafterf.texi: Likewise.
8074         * doc/posix-functions/remquo.texi: Likewise.
8075
8076 2011-10-07  Bruno Haible  <bruno@clisp.org>
8077
8078         modff: Drop assumption about library that defines modff.
8079         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8080         AC_CHECK_FUNCS.
8081         * modules/modff (Files): Add m4/mathfunc.m4.
8082
8083 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8084
8085         raise tests: Avoid a GCC warning.
8086         * tests/test-raise.c (handler): Use _Noreturn.
8087
8088 2011-10-07  Bruno Haible  <bruno@clisp.org>
8089
8090         Tests for module 'ldexpf'.
8091         * modules/ldexpf-tests: New file.
8092         * tests/test-ldexpf.c: New file.
8093
8094         New module 'ldexpf'.
8095         * lib/math.in.h (ldexpf): New declaration.
8096         * lib/ldexpf.c: New file.
8097         * m4/ldexpf.m4: New file.
8098         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8099         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8100         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8101         * modules/ldexpf: New file.
8102         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8103         * doc/posix-functions/ldexpf.texi: Mention the new module.
8104
8105 2011-10-06  Bruno Haible  <bruno@clisp.org>
8106
8107         frexpf: Work around problems on IRIX and mingw.
8108         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8109         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8110         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8111         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8112         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8113         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8114         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8115
8116 2011-10-06  Bruno Haible  <bruno@clisp.org>
8117
8118         fabsf: Drop assumption about library that defines fabsf.
8119         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8120         AC_CHECK_FUNCS.
8121         * modules/fabsf (Files): Add m4/mathfunc.m4.
8122
8123 2011-10-06  Bruno Haible  <bruno@clisp.org>
8124
8125         frexpf: Drop assumption about library that defines frexpf.
8126         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8127         'int *', 'float *', 'long double *', 'float', 'long double'.
8128         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8129         AC_CHECK_FUNCS.
8130         * modules/frexpf (Files): Add m4/mathfunc.m4.
8131
8132         Tests for module 'frexpf'.
8133         * modules/frexpf-tests: New file.
8134         * tests/test-frexpf.c: New file.
8135
8136         New module 'frexpf'.
8137         * lib/math.in.h (frexpf): New declaration.
8138         * lib/frexpf.c: New file.
8139         * m4/frexpf.m4: New file.
8140         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8141         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8142         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8143         * modules/frexpf: New file.
8144         * tests/test-math-c++.cc: Check the declaration of frexpf.
8145         * doc/posix-functions/frexpf.texi: Mention the new module.
8146
8147 2011-10-06  Bruno Haible  <bruno@clisp.org>
8148
8149         math: Sort function declarations of math.in.h.
8150         * lib/math.in.h (frexp, logb): Move declarations.
8151
8152 2011-10-05  Bruno Haible  <bruno@clisp.org>
8153
8154         Tests for module 'modff'.
8155         * modules/modff-tests: New file.
8156         * tests/test-modff.c: New file.
8157
8158         New module 'modff'.
8159         * lib/math.in.h (modff): New declaration.
8160         * lib/modff.c: New file.
8161         * m4/modff.m4: New file.
8162         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8163         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8164         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8165         * modules/modff: New file.
8166         * tests/test-math-c++.cc: Check the declaration of modff.
8167         * doc/posix-functions/modff.texi: Mention the new module.
8168
8169         modf tests: Make test sharper.
8170         * tests/test-modf.c (main): Strengthen upper bound.
8171
8172         modf: Use a .m4 file.
8173         * m4/modf.m4: New file.
8174         * modules/modf (Files): Add it.
8175         (configure.ac): Just invoke gl_FUNC_MODF.
8176
8177 2011-10-05  Bruno Haible  <bruno@clisp.org>
8178
8179         Tests for module 'fmodf'.
8180         * modules/fmodf-tests: New file.
8181         * tests/test-fmodf.c: New file.
8182
8183         New module 'fmodf'.
8184         * lib/math.in.h (fmodf): New declaration.
8185         * lib/fmodf.c: New file.
8186         * m4/fmodf.m4: New file.
8187         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8188         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8189         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8190         * modules/fmodf: New file.
8191         * tests/test-math-c++.cc: Check the declaration of fmodf.
8192         * doc/posix-functions/fmodf.texi: Mention the new module.
8193
8194         fmod: Use a .m4 file.
8195         * m4/fmod.m4: New file.
8196         * modules/fmod (Files): Add it.
8197         (configure.ac): Just invoke gl_FUNC_FMOD.
8198
8199 2011-10-05  Bruno Haible  <bruno@clisp.org>
8200
8201         Tests for module 'fabsf'.
8202         * modules/fabsf-tests: New file.
8203         * tests/test-fabsf.c: New file.
8204
8205         New module 'fabsf'.
8206         * lib/math.in.h (fabsf): New declaration.
8207         * lib/fabsf.c: New file.
8208         * m4/fabsf.m4: New file.
8209         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8211         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8212         * modules/fabsf: New file.
8213         * tests/test-math-c++.cc: Check the declaration of fabsf.
8214         * doc/posix-functions/fabsf.texi: Mention the new module.
8215
8216         fabs: Use a .m4 file.
8217         * m4/fabs.m4: New file.
8218         * modules/fabs (Files): Add it.
8219         (configure.ac): Just invoke gl_FUNC_FABS.
8220
8221 2011-10-05  Jim Meyering  <meyering@redhat.com>
8222
8223         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8224         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8225         ls -lL regression introduced in coreutils-8.12, it does so at the
8226         cost of an additional stat call in the common case.  Besides, now
8227         that the kernel change that prompted commit 95f7c57f has been reverted
8228         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8229         we have no use for commit 95f7c57f, "file-has-acl: use
8230         acl_extended_file_nofollow if available".
8231
8232 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8233
8234         file-has-acl: revert unintended change in behavior of ls -L
8235         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8236         derived from...
8237         (file_has_acl): ...code here.  Call it.
8238         This problem was introduced with 2011-07-22 commit 95f7c57f,
8239         "file-has-acl: use acl_extended_file_nofollow if available".
8240         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8241
8242 2011-10-03  Bruno Haible  <bruno@clisp.org>
8243
8244         poll: Avoid link errors on MSVC.
8245         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8246         * modules/poll (Depends-on): Add sockets.
8247         (Link): New section.
8248         * NEWS: Mention the change.
8249         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8250         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8251         $(LIB_POLL) instead of $(LIBSOCKET).
8252
8253 2011-10-03  Bruno Haible  <bruno@clisp.org>
8254
8255         sys_select tests: Fix link error on MSVC 9.
8256         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8257         with $(LIB_SELECT) instead of $(LIBSOCKET).
8258
8259 2011-10-03  Bruno Haible  <bruno@clisp.org>
8260
8261         sys_select: Fix compilation error on mingw.
8262         * lib/sys_select.in.h: On native Windows, include <io.h>.
8263
8264 2011-10-03  Bruno Haible  <bruno@clisp.org>
8265
8266         wmemset: Support for MSVC.
8267         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8268         whether wmemset() exists.
8269
8270 2011-10-03  Bruno Haible  <bruno@clisp.org>
8271
8272         wmemmove: Support for MSVC.
8273         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8274         whether wmemmove() exists.
8275
8276 2011-10-03  Bruno Haible  <bruno@clisp.org>
8277
8278         wmemcpy: Support for MSVC.
8279         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8280         whether wmemcpy() exists.
8281
8282 2011-10-03  Bruno Haible  <bruno@clisp.org>
8283
8284         wmemcmp: Support for MSVC.
8285         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8286         whether wmemcmp() exists.
8287
8288 2011-10-03  Bruno Haible  <bruno@clisp.org>
8289
8290         wmemchr: Support for MSVC.
8291         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8292         whether wmemchr() exists.
8293
8294 2011-10-03  Bruno Haible  <bruno@clisp.org>
8295
8296         glthread/*, strsignal: Support for MSVC.
8297         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8298         including <winsock.h> on MSVC 9.
8299         * lib/glthread/lock.h: Likewise.
8300         * lib/glthread/thread.h: Likewise.
8301         * lib/glthread/tls.h: Likewise.
8302         * lib/glthread/yield.h: Likewise.
8303         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8304         if HAVE_UNISTD_H is false.
8305         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8306
8307 2011-10-03  Bruno Haible  <bruno@clisp.org>
8308
8309         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8310         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8311         Set to 100000.
8312
8313 2011-10-03  Bruno Haible  <bruno@clisp.org>
8314
8315         acl: Fix specification.
8316         * lib/file-has-acl.c (file_has_acl): Fix specification.
8317
8318 2011-10-03  Bruno Haible  <bruno@clisp.org>
8319
8320         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8321         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8322         (compute_curr_prefix, shared_library_fullname,
8323         find_shared_library_fullname, get_shared_library_fullname, relocate):
8324         Use it together with PIC && INSTALLDIR.
8325         Reported by <jojelino@gmail.com>
8326         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8327
8328 2011-10-01  Jim Meyering  <meyering@redhat.com>
8329
8330         maint.mk: adjust a release-related rule not to require use of gzip
8331         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8332         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8333         projects that build only .tar.xz files.  Also fix an erroneous test.
8334
8335         test-linkat: don't leave behind a temporary file
8336         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8337         Otherwise, coreutils' "make distcheck" would fail with this:
8338           Only in /c/cu/tests/torture/coreutils/test/\
8339             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8340           make[2]: *** [my-distcheck] Error 1
8341
8342         float, math: add omitted file
8343         * lib/itold.c: Add file, required for yesterday's float change.
8344
8345 2011-10-01  Bruno Haible  <bruno@clisp.org>
8346
8347         isinf: Fix for OpenBSD/x86.
8348         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8349         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8350         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8351
8352 2011-10-01  Bruno Haible  <bruno@clisp.org>
8353
8354         isfinite: Fix syntax error in configure test.
8355         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8356
8357         isfinite: Fix typo.
8358         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8359         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8360
8361 2011-10-01  Bruno Haible  <bruno@clisp.org>
8362
8363         nonblocking tests: Fix test failure on Linux/IA-64.
8364         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8365         Set to 270000.
8366
8367 2011-10-01  Bruno Haible  <bruno@clisp.org>
8368
8369         mkfifoat tests: Fix a test failure on mingw.
8370         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8371         with error ENOSYS.
8372
8373 2011-09-30  Bruno Haible  <bruno@clisp.org>
8374
8375         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8376         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8377         'long double'. Set REPLACE_ITOLD.
8378         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8379         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8380         * lib/itold.c: New file.
8381         * modules/float (Files): Add lib/itold.c.
8382         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8383         (Makefile.am): Substitute REPLACE_ITOLD.
8384         * modules/math (Depends-on): Add float.
8385         (Makefile.am): Substitute REPLACE_ITOLD.
8386         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8387         * doc/posix-headers/math.texi: Likewise.
8388         * doc/posix-functions/logl.texi: Likewise.
8389
8390 2011-09-30  Bruno Haible  <bruno@clisp.org>
8391
8392         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8393         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8394         Set to 140000.
8395
8396 2011-09-30  Bruno Haible  <bruno@clisp.org>
8397
8398         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8399         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8400         invocation, say "right after AC_PROG_CC_STDC", not "right after
8401         AC_PROG_CC".
8402         Reported by Gary V. Vaughan <gary@gnu.org>.
8403
8404 2011-09-30  Bruno Haible  <bruno@clisp.org>
8405
8406         Centralize C99 requirement.
8407         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8408         * modules/stdarg (configure.ac-early): Invoke it instead of
8409         AC_PROG_CC_STDC.
8410         Reported by Gary V. Vaughan and Paul Eggert.
8411
8412 2011-09-29  Bruno Haible  <bruno@clisp.org>
8413
8414         float: Fix LDBL_MAX value on Linux/PowerPC.
8415         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8416         on Linux/PowerPC.
8417         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8418         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8419         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8420         platform.
8421         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8422
8423 2011-09-29  Bruno Haible  <bruno@clisp.org>
8424
8425         doc: Improve doc about gl_EARLY.
8426         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8427         AC_PROG_CC_STDC invocation.
8428         Reported by Gary V. Vaughan <gary@gnu.org>.
8429
8430 2011-09-28  Bruno Haible  <bruno@clisp.org>
8431
8432         fgetc, fputc, fread, fwrite tests: Fix link error.
8433         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8434         on non-MSVC platforms.
8435         * tests/test-fputc.c (main): Likewise.
8436         * tests/test-fread.c (main): Likewise.
8437         * tests/test-fwrite.c (main): Likewise.
8438         Reported by Jim Meyering.
8439
8440 2011-09-27  Bruno Haible  <bruno@clisp.org>
8441
8442         fputc, fwrite tests: Avoid test failure on MSVC.
8443         * tests/test-fgetc.c: Include msvc-inval.h.
8444         (main): Invoke gl_msvc_inval_ensure_handler.
8445         * tests/test-fputc.c: Include msvc-inval.h.
8446         (main): Invoke gl_msvc_inval_ensure_handler.
8447         * tests/test-fread.c: Include msvc-inval.h.
8448         (main): Invoke gl_msvc_inval_ensure_handler.
8449         * tests/test-fwrite.c: Include msvc-inval.h.
8450         (main): Invoke gl_msvc_inval_ensure_handler.
8451         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8452         * modules/fputc-tests (Depends-on): Likewise.
8453         * modules/fread-tests (Depends-on): Likewise.
8454         * modules/fwrite-tests (Depends-on): Likewise.
8455
8456 2011-09-27  Bruno Haible  <bruno@clisp.org>
8457
8458         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8459         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8460         (raise): Remove older, duplicated declaration.
8461         (_gl_raise_SIGPIPE): New declaration.
8462         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8463         (rpl_raise): Remove function.
8464         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8465         a gnulib-defined SIGPIPE here.
8466         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8467         'sigprocmask' has detected missing signal-blocking and the module
8468         'sigpipe' is enabled.
8469         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8470
8471 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8472
8473         base64-tests: avoid memory leak
8474         * tests/test-base64.c (main): Plug memory leak.
8475
8476         base32: new module
8477         * modules/base32: New module.
8478         * lib/base32.c: New file.
8479         * lib/base32.h: Likewise.
8480         * m4/base32.m4: Likewise.
8481         * modules/base32-tests: New test.
8482         * tests/test-base32.c: Likewise.
8483         * MODULES.html.sh (Misc): Mention it.
8484
8485 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8486
8487         gnulib: use more-standard license notice wording
8488         * gnulib-tool (func_emit_copyright_notice): When emitting a
8489         license notice into a file, use the standard wording as suggested
8490         by the current information for GNU maintainers, except say "file"
8491         rather than "program".  The new wording gives a license version
8492         number, which addresses an issue raised by Glenn Morris in
8493         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8494         * m4/onceonly.m4: Use that same wording here, too.
8495
8496         dup2: minor simplification
8497         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8498         as lib/dup2.c no longer uses 'inline'.
8499
8500 2011-09-25  Bruno Haible  <bruno@clisp.org>
8501
8502         strings: Fix compilation error on MSVC.
8503         * lib/strings.in.h: Include <stddef.h> for size_t.
8504
8505 2011-09-25  Bruno Haible  <bruno@clisp.org>
8506
8507         fflush et al.: Document limitation on MSVC.
8508         * doc/posix-functions/fflush.texi: Document possible crash in handling
8509         mode other than DEFAULT_HANDLING.
8510         * doc/posix-functions/fgetc.texi: Likewise.
8511         * doc/posix-functions/fputc.texi: Likewise.
8512         * doc/posix-functions/fread.texi: Likewise.
8513         * doc/posix-functions/fwrite.texi: Likewise.
8514
8515 2011-09-25  Bruno Haible  <bruno@clisp.org>
8516
8517         msvc-inval: Allow three invalid parameter handling modes.
8518         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8519         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8520         macros.
8521         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8522         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8523         SANE_LIBRARY_HANDLING as a no-op.
8524         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8525         <stdlib.h>.
8526         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8527
8528 2011-09-25  Bruno Haible  <bruno@clisp.org>
8529
8530         msvc-inval: Make handler multithread-safe.
8531         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8532         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8533         declarations.
8534         (gl_msvc_inval_current): New declaration.
8535         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8536         Operate on the structure returned by gl_msvc_inval_current().
8537         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8538         Remove varaiables.
8539         (tls_index, tls_initialized): New variables.
8540         (not_per_thread): New variable.
8541         (gl_msvc_inval_current): New function.
8542         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8543         returned by gl_msvc_inval_current().
8544
8545 2011-09-25  Bruno Haible  <bruno@clisp.org>
8546
8547         msvc-inval: Install handler globally.
8548         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8549         !_MSC_VER.
8550         (gl_msvc_invalid_parameter_handler): Remove declaration.
8551         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8552         declarations.
8553         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8554         Install the handler globally, don't uninstall it.
8555         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8556         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8557         currently valid, call RaiseException instead.
8558         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8559         for !_MSC_VER.
8560
8561 2011-09-25  Bruno Haible  <bruno@clisp.org>
8562
8563         strerror_r-posix: Fix for MSVC 9.
8564         * lib/strerror_r.c (local_snprintf): New function.
8565         (snprintf): Define to local_snprintf, not to _snprintf.
8566
8567 2011-09-25  Bruno Haible  <bruno@clisp.org>
8568
8569         ftruncate: Support for MSVC 9.
8570         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8571         (chsize_nothrow): New function.
8572         (chsize): Redefine as a macro.
8573         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8574         * modules/ftruncate (Depends-on): Add msvc-inval.
8575
8576 2011-09-25  Bruno Haible  <bruno@clisp.org>
8577
8578         New module 'fstat'.
8579         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8580         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8581         * lib/fchdir.c (rpl_fstat): Remove function.
8582         * m4/fstat.m4: New file.
8583         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8584         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8585         declared.
8586         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8587         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8588         * modules/fstat: New file.
8589         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8590         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8591         is set.
8592         * doc/posix-functions/fstat.texi: Mention the new module and the
8593         problem on MSVC.
8594         * NEWS: Mention the change.
8595         * modules/acl (Depends-on): Add fstat.
8596         * modules/chdir-safer (Depends-on): Likewise.
8597         * modules/chown (Depends-on): Likewise.
8598         * modules/copy-file (Depends-on): Likewise.
8599         * modules/fchdir (Depends-on): Likewise.
8600         * modules/fdopendir (Depends-on): Likewise.
8601         * modules/fopen (Depends-on): Likewise.
8602         * modules/fts (Depends-on): Likewise.
8603         * modules/getcwd (Depends-on): Likewise.
8604         * modules/isapipe (Depends-on): Likewise.
8605         * modules/linkat (Depends-on): Likewise.
8606         * modules/lseek (Depends-on): Likewise.
8607         * modules/mkdir-p (Depends-on): Likewise.
8608         * modules/open (Depends-on): Likewise.
8609         * modules/openat (Depends-on): Likewise.
8610         * modules/read-file (Depends-on): Likewise.
8611         * modules/renameat (Depends-on): Likewise.
8612         * modules/utimens (Depends-on): Likewise.
8613
8614 2011-09-25  Bruno Haible  <bruno@clisp.org>
8615
8616         linkat: Fix compilation on MSVC 9.
8617         * lib/linkat.c: Don't include <stdint.h>.
8618
8619 2011-09-25  Bruno Haible  <bruno@clisp.org>
8620
8621         fclose: Support for MSVC 9.
8622         * lib/fclose.c: Include msvc-inval.h.
8623         (fclose_nothrow): New function.
8624         (rpl_fclose): Use it.
8625         * modules/fclose (Depends-on): Add msvc-inval.
8626         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8627
8628 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8629
8630         dup2: minor simplifications
8631         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8632         that it's a performance win.
8633         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8634         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8635
8636 2011-09-24  Jim Meyering  <meyering@redhat.com>
8637
8638         test-futimens: avoid a warning from gcc -Wshadow
8639         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8640         to avoid a shadowing warning.
8641
8642 2011-09-24  Bruno Haible  <bruno@clisp.org>
8643
8644         fdopen: Support for MSVC 9.
8645         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8646         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8647         * lib/fdopen.c: Include msvc-inval.h.
8648         (fdopen_nothrow): New function.
8649         (rpl_fdopen): Use it.
8650         * modules/fdopen (Depends-on): Add msvc-inval.
8651         * modules/fclose-tests (Depends-on): Add fdopen.
8652         * modules/fflush-tests (Depends-on): Likewise.
8653         * modules/fgetc-tests (Depends-on): Likewise.
8654         * modules/fputc-tests (Depends-on): Likewise.
8655         * modules/fread-tests (Depends-on): Likewise.
8656         * modules/freopen-tests (Depends-on): Likewise.
8657         * modules/fseeko-tests (Depends-on): Likewise.
8658         * modules/ftello-tests (Depends-on): Likewise.
8659         * modules/fwrite-tests  (Depends-on): Likewise.
8660         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8661
8662 2011-09-24  Bruno Haible  <bruno@clisp.org>
8663
8664         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8665         * modules/fgetc-tests (Depends-on): Add unistd.
8666         * modules/fputc-tests (Depends-on): Likewise.
8667         * modules/fread-tests (Depends-on): Likewise.
8668         * modules/fwrite-tests (Depends-on): Likewise.
8669
8670 2011-09-24  Bruno Haible  <bruno@clisp.org>
8671
8672         dup: Simplify autoconf test.
8673         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8674         on gl_MSVC_INVAL's result.
8675
8676 2011-09-24  Bruno Haible  <bruno@clisp.org>
8677
8678         Tests for function fwrite().
8679         * modules/fwrite-tests: New file.
8680         * tests/test-fwrite.c: New file.
8681         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8682
8683         Tests for function fread().
8684         * modules/fread-tests: New file.
8685         * tests/test-fread.c: New file.
8686         * modules/stdio-tests (Depends-on): Add fread-tests.
8687
8688         Activate fputc tests.
8689         * modules/stdio-tests (Depends-on): Add fputc-tests.
8690
8691         Enhance fgetc, fputc tests.
8692         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8693         * tests/test-fputc.c (main): Likewise.
8694
8695 2011-09-24  Bruno Haible  <bruno@clisp.org>
8696
8697         write: Support for MSVC 9.
8698         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8699         is not 1.
8700         * lib/write.c (write_nothrow): New function.
8701         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8702         not 1. Use write_nothrow.
8703         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8704         invalid parameter handler.
8705         (gl_PREREQ_WRITE): New macro.
8706         * modules/write (Depends-on): Add msvc-inval.
8707         (configure.ac): Invoke gl_PREREQ_WRITE.
8708         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8709
8710 2011-09-24  Bruno Haible  <bruno@clisp.org>
8711
8712         read: Fix last commit.
8713         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8714
8715 2011-09-24  Bruno Haible  <bruno@clisp.org>
8716
8717         dup2: Fix last commit.
8718         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8719         (rpl_dup2): Disable fcntl workaround on native Windows.
8720
8721         sigprocmask: Make code safer.
8722         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8723         section that changes macro definitions for this compilation unit.
8724
8725 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8726
8727         dup2: clarify by coalescing Windows-specific material
8728         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8729         "msvc-nothrow.h"' to the Windows-specific section, so that the
8730         Emacs source need not contain these include files.
8731         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8732         Windows-specific fixes into this function rather than just the
8733         nothrow fix, as this shortens and clarifies the code.  Always
8734         define as a function, as that's a bit cleaner than having it be
8735         sometimes a function and sometimes a macro.
8736         (rpl_dup2): Move the Windows-specific stuff out of here and into
8737         ms_windows_dup2.  Don't protect the Haiku-related fix with
8738         "#if !defined __linux__", as the same code also works around
8739         a Linux kernel bug, and it doesn't add any system calls on any
8740         platform.  Add comment about FreeBSD 6.1.
8741
8742         sigprocmask: move #include directive
8743         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8744         Windows-specific section, so that the Emacs source need not
8745         contain msvc-inval.h.
8746
8747 2011-09-23  Bruno Haible  <bruno@clisp.org>
8748
8749         read: Support for MSVC 9.
8750         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8751         is not 1.
8752         * lib/read.c (read_nothrow): New function.
8753         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8754         read_nothrow.
8755         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8756         invalid parameter handler.
8757         (gl_PREREQ_READ): New macro.
8758         * modules/read (Depends-on): Add msvc-inval.
8759         (configure.ac): Invoke gl_PREREQ_READ.
8760         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8761
8762 2011-09-23  Bruno Haible  <bruno@clisp.org>
8763
8764         close: Support for MSVC 9.
8765         * lib/close.c: Include <errno.h>, msvc-inval.h.
8766         (close_nothrow): New function.
8767         (rpl_close): Use it.
8768         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8769         invalid parameter handler.
8770         * modules/close (Depends-on): Add msvc-inval.
8771         * modules/dup2-tests (Depends-on): Add close.
8772         * modules/dup3-tests (Depends-on): Likewise.
8773         * modules/fcntl-tests (Depends-on): Likewise.
8774         * modules/spawn-pipe-tests (Depends-on): Likewise.
8775         * modules/unistd-safer-tests (Depends-on): Likewise.
8776         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8777
8778 2011-09-23  Bruno Haible  <bruno@clisp.org>
8779
8780         New module 'dup'.
8781         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8782         Allow replacement.
8783         * lib/dup.c: New file.
8784         * lib/fchdir.c (rpl_dup): Remove function.
8785         * m4/dup.m4: New file.
8786         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8787         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8788         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8789         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8790         * modules/dup: New file.
8791         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8792         'dup' module is in use.
8793         * modules/fdopendir (Depends-on): Add dup.
8794         * modules/fdutimensat-tests (Depends-on): Likewise.
8795         * modules/fts (Depends-on): Likewise.
8796         * modules/futimens-tests (Depends-on): Likewise.
8797         * modules/posix_spawnp-tests (Depends-on): Likewise.
8798         * modules/unistd-safer-tests (Depends-on): Likewise.
8799         * modules/utimens-tests (Depends-on): Likewise.
8800         * doc/posix-functions/dup.texi: Mention the new module and the problem
8801         on MSVC.
8802
8803 2011-09-23  Bruno Haible  <bruno@clisp.org>
8804
8805         getdtablesize: Support for MSVC 9.
8806         * lib/getdtablesize.c: Include msvc-inval.h.
8807         (_setmaxstdio_nothrow): New function.
8808         (_setmaxstdio): Redefine it.
8809         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8810         * modules/getdtablesize (Depends-on): Add msvc-inval.
8811         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8812
8813 2011-09-23  Bruno Haible  <bruno@clisp.org>
8814
8815         signal-h: Rename from signal.
8816         * modules/signal-h: Renamed from modules/signal.
8817         * modules/pthread_sigmask (Depends-on): Update.
8818         * modules/raise (Depends-on): Likewise.
8819         * modules/sigaction (Depends-on): Likewise.
8820         * modules/sigpipe (Depends-on): Likewise.
8821         * modules/sigprocmask (Depends-on): Likewise.
8822         * modules/sys_select (Depends-on): Likewise.
8823         * modules/signal-h-tests: Renamed from modules/signal-tests.
8824         (Files, Depends-on, Makefile.am): Update.
8825         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8826         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8827         (Files, Makefile.am): Update.
8828         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8829         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8830         * modules/signal: New placeholder file.
8831         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8832         * doc/posix-headers/signal.texi: Update.
8833         * NEWS: Mention the change.
8834
8835 2011-09-23  Bruno Haible  <bruno@clisp.org>
8836
8837         sigprocmask: Avoid crashes through signal() on MSVC 9.
8838         * lib/sigprocmask.c: Include msvc-inval.h.
8839         (signal_nothrow): New function.
8840         (signal): Redefine it.
8841         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8842         * modules/sigprocmask (Depends-on): Add msvc-inval.
8843         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8844
8845 2011-09-23  Bruno Haible  <bruno@clisp.org>
8846
8847         Tests for module 'raise'.
8848         * modules/raise-tests: New file.
8849         * tests/test-raise.c: New file.
8850
8851         raise: Support for MSVC.
8852         * lib/signal.in.h (raise): New declaration.
8853         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8854         for native Windows platforms.
8855         * m4/raise.m4: New file.
8856         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8857         HAVE_RAISE, REPLACE_RAISE.
8858         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8859         REPLACE_RAISE.
8860         * modules/raise (Status, Notice): Remove fields.
8861         (Files): Add m4/raise.m4.
8862         (Depends-on): Add signal, msvc-inval.
8863         (configure.ac): Use the common idioms.
8864         (Maintainer): Add me.
8865         * tests/test-signal-c++.cc: Check the signature of raise.
8866         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8867
8868 2011-09-23  Bruno Haible  <bruno@clisp.org>
8869
8870         pipe2: Fix compilation on pre-C99 compilers.
8871         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8872
8873 2011-09-23  Bruno Haible  <bruno@clisp.org>
8874
8875         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8876         * lib/msvc-nothrow.h: New file.
8877         * lib/msvc-nothrow.c: New file.
8878         * m4/msvc-nothrow.m4: New file.
8879         * modules/msvc-nothrow: New file.
8880         * lib/dup2.c: Include msvc-nothrow.h.
8881         (rpl_dup2): No need to protect _get_osfhandle call here.
8882         * lib/accept4.c: Include msvc-nothrow.h.
8883         * lib/error.c: Likewise.
8884         * lib/fcntl.c: Likewise.
8885         * lib/lseek.c: Likewise.
8886         * lib/nonblocking.c: Likewise.
8887         * lib/poll.c: Likewise.
8888         * lib/read.c: Likewise.
8889         * lib/select.c: Likewise.
8890         * lib/sockets.h: Likewise.
8891         * lib/sockets.c: Likewise.
8892         * lib/stdio-read.c: Likewise.
8893         * lib/stdio-write.c: Likewise.
8894         * lib/write.c: Likewise.
8895         * lib/w32sock.h: Likewise.
8896         * lib/w32spawn.h: Likewise.
8897         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8898         * lib/fsync.c: Likewise.
8899         * lib/isapipe.c: Likewise.
8900         * modules/dup2 (Depends-on): Add msvc-nothrow.
8901         * modules/accept4 (Depends-on): Likewise.
8902         * modules/error (Depends-on): Likewise.
8903         * modules/fcntl (Depends-on): Likewise.
8904         * modules/lseek (Depends-on): Likewise.
8905         * modules/nonblocking (Depends-on): Likewise.
8906         * modules/poll (Depends-on): Likewise.
8907         * modules/read (Depends-on): Likewise.
8908         * modules/select (Depends-on): Likewise.
8909         * modules/sockets (Depends-on): Likewise.
8910         * modules/sigpipe (Depends-on): Likewise.
8911         * modules/write (Depends-on): Likewise.
8912         * modules/accept (Depends-on): Likewise.
8913         * modules/bind (Depends-on): Likewise.
8914         * modules/connect (Depends-on): Likewise.
8915         * modules/gethostname (Depends-on): Likewise.
8916         * modules/getpeername (Depends-on): Likewise.
8917         * modules/getsockname (Depends-on): Likewise.
8918         * modules/getsockopt (Depends-on): Likewise.
8919         * modules/ioctl (Depends-on): Likewise.
8920         * modules/listen (Depends-on): Likewise.
8921         * modules/recv (Depends-on): Likewise.
8922         * modules/recvfrom (Depends-on): Likewise.
8923         * modules/send (Depends-on): Likewise.
8924         * modules/sendto (Depends-on): Likewise.
8925         * modules/setsockopt (Depends-on): Likewise.
8926         * modules/shutdown (Depends-on): Likewise.
8927         * modules/socket (Depends-on): Likewise.
8928         * modules/execute (Depends-on): Likewise.
8929         * modules/spawn-pipe (Depends-on): Likewise.
8930         * modules/flock (Depends-on): Likewise.
8931         * modules/fsync (Depends-on): Likewise.
8932         * modules/isapipe (Depends-on): Likewise.
8933         * tests/test-cloexec.c: Include msvc-nothrow.h.
8934         * tests/test-dup-safer.c: Likewise.
8935         * tests/test-dup2.c: Likewise.
8936         * tests/test-dup3.c: Likewise.
8937         * tests/test-fcntl.c: Likewise.
8938         * tests/test-pipe.c: Likewise.
8939         * tests/test-pipe2.c: Likewise.
8940         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8941         * modules/unistd-safer-tests (Depends-on): Likewise.
8942         * modules/dup2-tests (Depends-on): Likewise.
8943         * modules/dup3-tests (Depends-on): Likewise.
8944         * modules/fcntl-tests (Depends-on): Likewise.
8945         * modules/pipe-posix-tests (Depends-on): Likewise.
8946         * modules/pipe2-tests (Depends-on): Likewise.
8947
8948 2011-09-23  Bruno Haible  <bruno@clisp.org>
8949
8950         dup2: Make code more maintainable.
8951         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8952         (rpl_dup2): Use it.
8953         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8954         * modules/dup2 (configure.ac): Invoke it.
8955         Reported by Paul Eggert.
8956
8957 2011-09-23  Bruno Haible  <bruno@clisp.org>
8958
8959         msvc-inval: Fix compilation error.
8960         * lib/msvc-inval.h: Include <excpt.h>.
8961
8962 2011-09-23  Bruno Haible  <bruno@clisp.org>
8963
8964         mkdir: Tweak for MSVC 9.
8965         * lib/sys_stat.in.h: Update comments.
8966         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8967
8968         Tests for module 'chdir'.
8969         * modules/chdir-tests: New file.
8970         * tests/test-chdir.c: New file.
8971
8972         New module 'chdir'.
8973         * modules/chdir: New file.
8974         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8975         (chdir): New declaration.
8976         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8977         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8978         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8979         * tests/test-unistd-c++.cc: Check signature of chdir.
8980         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8981         * modules/chdir-long (Depends-on): Add chdir.
8982         * modules/fchdir (Depends-on): Likewise.
8983         * modules/rename (Depends-on): Likewise.
8984         * modules/savewd (Depends-on): Likewise.
8985
8986         rmdir: Support for mingw, MSVC 9.
8987         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8988         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8989
8990         getcwd: Tweak for MSVC 9.
8991         * lib/unistd.in.h: Update comments.
8992         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8993
8994 2011-09-22  Bruno Haible  <bruno@clisp.org>
8995
8996         strerror_r-posix: Avoid a link error on MSVC.
8997         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8998         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8999
9000 2011-09-22  Bruno Haible  <bruno@clisp.org>
9001
9002         select: Avoid link errors on MSVC.
9003         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9004         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9005         * modules/pselect (Link): Likewise.
9006         * NEWS: Mention the change.
9007         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9008         test-select-stdin against $(LIB_SELECT).
9009         * modules/pselect-tests (Makefile.am): Link test-pselect against
9010         $(LIB_SELECT).
9011
9012 2011-09-22  Bruno Haible  <bruno@clisp.org>
9013
9014         select: Avoid compilation error on MSVC.
9015         * lib/select.c: Don't include <stdbool.h>.
9016
9017 2011-09-21  Bruno Haible  <bruno@clisp.org>
9018
9019         Consolidate all uses of PATH_MAX in *.m4 files.
9020         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9021         macros.
9022         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9023         and gl_PATHMAX_SNIPPET.
9024         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9025         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9026         * modules/chdir-long (Files): Add m4/pathmax.m4.
9027         * modules/getcwd (Files): Likewise.
9028
9029 2011-09-21  Bruno Haible  <bruno@clisp.org>
9030
9031         ftruncate: Un-deprecate, concentrate on Win32 support.
9032         * modules/ftruncate (Status, Notice): Remove sections.
9033         (Depends-on): Add largefile.
9034         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9035         non-mingw platforms.
9036         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9037         include <io.h>.
9038         * modules/perror-tests (Depends-on): Add ftruncate.
9039         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9040         'ftruncate' module.
9041
9042 2011-09-21  Bruno Haible  <bruno@clisp.org>
9043
9044         Add dependencies to new dirent related modules.
9045         * modules/opendir (Depends-on): Add closedir.
9046         * modules/getcwd (Depends-on): Add opendir, closedir.
9047         * modules/dirent-safer-tests (Depends-on): Likewise.
9048         * modules/fdopendir-tests (Depends-on): Likewise.
9049         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9050         * modules/renameat-tests (Depends-on): Likewise.
9051
9052 2011-09-21  Bruno Haible  <bruno@clisp.org>
9053
9054         opendir: Avoid compilation error on mingw.
9055         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9056         * modules/opendir (Depends-on): Add unistd.
9057
9058 2011-09-21  Bruno Haible  <bruno@clisp.org>
9059
9060         ftruncate tests: Avoid a test failure on mingw.
9061         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9062
9063 2011-09-21  Bruno Haible  <bruno@clisp.org>
9064
9065         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9066         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9067         native Windows.
9068
9069 2011-09-21  Bruno Haible  <bruno@clisp.org>
9070
9071         New module 'fdopen'.
9072         * lib/stdio.in.h (fdopen): New declaration.
9073         * lib/fdopen.c: New file.
9074         * m4/fdopen.m4: New file.
9075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9076         REPLACE_FDOPEN.
9077         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9078         REPLACE_FDOPEN.
9079         * modules/fdopen: New file.
9080         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9081         * tests/test-stdio-c++.cc: Check signature of fdopen.
9082         * doc/posix-functions/fdopen.texi: Mention the new module.
9083
9084 2011-09-21  Bruno Haible  <bruno@clisp.org>
9085
9086         unlockpt tests: Avoid test failure on NetBSD 5.1.
9087         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9088         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9089
9090 2011-09-21  Bruno Haible  <bruno@clisp.org>
9091
9092         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9093         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9094         * tests/test-getlogin_r.c (main): Likewise.
9095
9096 2011-09-20  Bruno Haible  <bruno@clisp.org>
9097
9098         time tests: Don't require pid_t.
9099         * doc/posix-headers/time.texi: Revert last change.
9100         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9101         * tests/test-time.c: Comment out the check for pid_t.
9102
9103 2011-09-20  Bruno Haible  <bruno@clisp.org>
9104
9105         fsync tests: Avoid a test failure on mingw.
9106         * tests/test-fsync.c (main): Allow a failure with EIO.
9107
9108 2011-09-20  Bruno Haible  <bruno@clisp.org>
9109
9110         euidaccess: Update comments.
9111         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9112
9113 2011-09-20  Bruno Haible  <bruno@clisp.org>
9114
9115         Ensure EBADF returns for socket functions on mingw.
9116         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9117         descriptor is invalid.
9118         * lib/bind.c (rpl_bind): Likewise.
9119         * lib/connect.c (rpl_connect): Likewise.
9120         * lib/getpeername.c (rpl_getpeername): Likewise.
9121         * lib/getsockname.c (rpl_getsockname): Likewise.
9122         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9123         * lib/listen.c (rpl_listen): Likewise.
9124         * lib/recv.c (rpl_recv): Likewise.
9125         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9126         * lib/send.c (rpl_send): Likewise.
9127         * lib/sendto.c (rpl_sendto): Likewise.
9128         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9129         * lib/shutdown.c (rpl_shutdown): Likewise.
9130
9131 2011-09-20  Bruno Haible  <bruno@clisp.org>
9132
9133         select tests: EBADF tests.
9134         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9135         test_bad_fd): New functions.
9136         (test_function): Invoke also test_bad_fd.
9137
9138 2011-09-20  Bruno Haible  <bruno@clisp.org>
9139
9140         Tests for module 'posix_spawn_file_actions_addopen.
9141         * modules/posix_spawn_file_actions_addopen-tests: New file.
9142         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9143
9144         Tests for module 'posix_spawn_file_actions_adddup2'.
9145         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9146         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9147
9148         Tests for module 'posix_spawn_file_actions_addclose'.
9149         * modules/posix_spawn_file_actions_addclose-tests: New file.
9150         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9151
9152 2011-09-20  Bruno Haible  <bruno@clisp.org>
9153
9154         Tests for module 'unlockpt'.
9155         * modules/unlockpt-tests: New file.
9156         * tests/test-unlockpt.c: New file.
9157         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9158
9159         Tests for module 'grantpt'.
9160         * modules/grantpt-tests: New file.
9161         * tests/test-grantpt.c: New file.
9162         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9163
9164 2011-09-20  Bruno Haible  <bruno@clisp.org>
9165
9166         freopen tests: EBADF tests.
9167         * tests/test-freopen.c: Include errno.h, unistd.h.
9168         (main): Add tests for EBADF, commented out for the moment.
9169
9170         fclose tests: EBADF tests.
9171         * tests/test-fclose.c (main): Add tests for EBADF.
9172
9173         fflush tests: EBADF tests.
9174         * tests/test-fflush.c: Include errno.h, macros.h.
9175         (main): Add tests for EBADF.
9176
9177         ftello tests: EBADF tests.
9178         * tests/test-ftello4.sh: New file.
9179         * tests/test-ftello4.c: New file.
9180         * modules/ftello-tests (Files): Add them.
9181         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9182
9183         fseeko tests: EBADF tests.
9184         * tests/test-fseeko4.sh: New file.
9185         * tests/test-fseeko4.c: New file.
9186         * modules/fseeko-tests (Files): Add them.
9187         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9188
9189         Tests for function fputc().
9190         * modules/fputc-tests: New file.
9191         * tests/test-fputc.c: New file.
9192         * modules/stdio-tests (Depends-on): Add fputc-tests.
9193
9194         Tests for function fgetc().
9195         * modules/fgetc-tests: New file.
9196         * tests/test-fgetc.c: New file.
9197         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9198
9199         Tests for function fdopen().
9200         * modules/fdopen-tests: New file.
9201         * tests/test-fdopen.c: New file.
9202         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9203
9204         Tests for module 'vdprintf'.
9205         * modules/vdprintf-tests: New file.
9206         * tests/test-vdprintf.c: New file.
9207
9208         Tests for module 'dprintf'.
9209         * modules/dprintf-tests: New file.
9210         * tests/test-dprintf.c: New file.
9211
9212 2011-09-20  Bruno Haible  <bruno@clisp.org>
9213
9214         Tests for module 'ioctl'.
9215         * modules/ioctl-tests: New file.
9216         * tests/test-ioctl.c: New file.
9217
9218 2011-09-20  Bruno Haible  <bruno@clisp.org>
9219
9220         fcntl tests: EBADF tests.
9221         * tests/test-fcntl.c (main): Add more tests for EBADF.
9222
9223 2011-09-20  Bruno Haible  <bruno@clisp.org>
9224
9225         utimensat tests: EBADF tests.
9226         * tests/test-utimensat.c (main): Add tests for EBADF.
9227
9228         renameat tests: EBADF tests.
9229         * tests/test-renameat.c (main): Add tests for EBADF.
9230
9231         mkfifoat tests: EBADF tests.
9232         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9233
9234         readlinkat tests: EBADF tests.
9235         * tests/test-readlinkat.c (main): Add tests for EBADF.
9236
9237         symlinkat tests: EBADF tests.
9238         * tests/test-symlinkat.c (main): Add tests for EBADF.
9239
9240         linkat tests: EBADF tests.
9241         * tests/test-linkat.c (main): Add tests for EBADF.
9242
9243         Tests for module 'faccessat'.
9244         * modules/faccessat-tests: New file.
9245         * tests/test-faccessat.c: New file.
9246
9247         fdopendir tests: EBADF tests.
9248         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9249
9250         openat tests: EBADF tests.
9251         * tests/test-fchownat.c (main): Add tests for EBADF.
9252         * tests/test-fstatat.c (main): Likewise.
9253         * tests/test-mkdirat.c (main): Likewise.
9254         * tests/test-openat.c (main): Likewise.
9255         * tests/test-unlinkat.c (main): Likewise.
9256         * tests/test-fchmodat.c: New file.
9257         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9258         (Makefile.am): Also run 'test-fchmodat'.
9259
9260 2011-09-20  Bruno Haible  <bruno@clisp.org>
9261
9262         utimens, futimens, fdutimensat tests: EBADF tests.
9263         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9264
9265         Tests for function fstat().
9266         * modules/fstat-tests: New file.
9267         * tests/test-fstat.c: New file.
9268         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9269
9270 2011-09-20  Bruno Haible  <bruno@clisp.org>
9271
9272         test-ttyname_r tests: EBADF tests.
9273         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9274
9275         Tests for module 'isatty'.
9276         * modules/isatty-tests: New file.
9277         * tests/test-isatty.c: New file.
9278
9279         Tests for module 'write'.
9280         * modules/write-tests: New file.
9281         * tests/test-write.c: New file.
9282
9283         Tests for module 'read'.
9284         * modules/read-tests: New file.
9285         * tests/test-read.c: New file.
9286
9287         pwrite tests: EBADF tests.
9288         * tests/test-pwrite.c (main): Add tests for EBADF.
9289
9290         pread tests: EBADF tests.
9291         * tests/test-pread.c (main): Add tests for EBADF.
9292
9293         lseek tests: EBADF tests.
9294         * tests/test-lseek.c (main): Add more tests for EBADF.
9295
9296         Tests for module 'ftruncate'.
9297         * modules/ftruncate-tests: New file.
9298         * tests/test-ftruncate.sh: New file.
9299         * tests/test-ftruncate.c: New file.
9300
9301         fsync tests: EBADF tests.
9302         * tests/test-fsync.c (main): Add more tests for EBADF.
9303
9304         fdatasync tests: EBADF tests.
9305         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9306
9307         Tests for module 'fchown'.
9308         * modules/fchown-tests: New file.
9309         * tests/test-fchown.c: New file.
9310
9311         Tests for module 'fchmod'.
9312         * modules/fchmod-tests: New file.
9313         * tests/test-fchmod.c: New file.
9314
9315         fchdir tests: EBADF tests.
9316         * tests/test-fchdir.c (main): Add more tests for EBADF.
9317
9318         dup2 tests: EBADF tests.
9319         * tests/test-dup2.c (main): Add more tests for EBADF.
9320
9321         Tests for module 'dup'.
9322         * modules/dup-tests: New file.
9323         * tests/test-dup.c: New file.
9324
9325         Tests for module 'close'.
9326         * modules/close-tests: New file.
9327         * tests/test-close.c: New file.
9328
9329 2011-09-20  Bruno Haible  <bruno@clisp.org>
9330
9331         Tests for module 'shutdown'.
9332         * modules/shutdown-tests: New file.
9333         * tests/test-shutdown.c: New file.
9334
9335         Tests for module 'setsockopt'.
9336         * modules/setsockopt-tests: New file.
9337         * tests/test-setsockopt.c: New file.
9338
9339         Tests for module 'sendto'.
9340         * modules/sendto-tests: New file.
9341         * tests/test-sendto.c: New file.
9342
9343         Tests for module 'send'.
9344         * modules/send-tests: New file.
9345         * tests/test-send.c: New file.
9346
9347         Tests for module 'recvfrom'.
9348         * modules/recvfrom-tests: New file.
9349         * tests/test-recvfrom.c: New file.
9350
9351         Tests for module 'recv'.
9352         * modules/recv-tests: New file.
9353         * tests/test-recv.c: New file.
9354
9355         Tests for module 'listen'.
9356         * modules/listen-tests: New file.
9357         * tests/test-listen.c: New file.
9358
9359         Tests for module 'getsockopt'.
9360         * modules/getsockopt-tests: New file.
9361         * tests/test-getsockopt.c: New file.
9362
9363         Tests for module 'getsockname'.
9364         * modules/getsockname-tests: New file.
9365         * tests/test-getsockname.c: New file.
9366
9367         Tests for module 'getpeername'.
9368         * modules/getpeername-tests: New file.
9369         * tests/test-getpeername.c: New file.
9370
9371         Tests for module 'connect'.
9372         * modules/connect-tests: New file.
9373         * tests/test-connect.c: New file.
9374
9375         Tests for module 'bind'.
9376         * modules/bind-tests: New file.
9377         * tests/test-bind.c: New file.
9378
9379         accept4 tests: Fix for native Windows.
9380         * tests/test-accept4.c: Include sockets.h.
9381         (main): Invoke gl_sockets_startup.
9382         * modules/accept4-tests (Depends-on): Add sockets.
9383
9384         accept tests: Fix for native Windows.
9385         * tests/test-accept.c: Include sockets.h.
9386         (main): Invoke gl_sockets_startup.
9387         * modules/accept-tests (Depends-on): Add sockets.
9388
9389 2011-09-19  Bruno Haible  <bruno@clisp.org>
9390
9391         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9392         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9393         do...while(0).
9394         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9395         Suggested by Paul Eggert.
9396
9397 2011-09-19  Bruno Haible  <bruno@clisp.org>
9398
9399         sched: Ensure pid_t is defined.
9400         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9401         not define pid_t.
9402         * lib/sched.in.h: Include <sys/types.h>.
9403         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9404         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9405
9406 2011-09-19  Bruno Haible  <bruno@clisp.org>
9407
9408         msvc-inval: Ensure the entire expansion is a single statement.
9409         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9410         of braces.
9411
9412 2011-09-19  Jim Meyering  <meyering@redhat.com>
9413
9414         tests: use printf, not echo in init.sh's warn_ function
9415         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9416         misbehave when given strings containing a backslash or starting
9417         with e.g., -n.  James Youngman suggested setting IFS.
9418
9419 2011-09-19  Eric Blake  <eblake@redhat.com>
9420
9421         futimens: enhance test
9422         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9423         closed non-negative fd.
9424
9425         date: accept 'hence' as opposite of 'ago'
9426         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9427         * tests/test-parse-datetime.c (main): Enhance test.
9428         Suggested by Jesse Wilson.
9429
9430 2011-09-19  Jim Meyering  <meyering@redhat.com>
9431
9432         getcwd: don't fail in a deep directory on a system without openat
9433         Before this change, getcwd would fail when called from a directory
9434         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9435         the non-openat implementation used "..", "../..", "../../..", etc.
9436         to access ancestor directories.  With too many, that string would
9437         be longer than PATH_MAX.
9438         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9439         using gnulib's openat replacement.
9440         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9441         we're using the replacement function.
9442
9443 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9444
9445         maint.mk: avoid warnings from perl about missing files
9446         * top/maint.mk (def_sym_regex): Ignore files listed in
9447         $(gl_other_headers_) that do not exist, say because a project
9448         does not use a corresponding module.
9449
9450 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9451
9452         stat: use pathmax.h only if needed
9453         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9454         This is better for Emacs, which does not have a mingw port and
9455         therefore can avoid the pathmax module.
9456
9457         utimens: remove dependency on dup2
9458         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9459         to work around the Linux kernel bug.
9460         * modules/utimens (Depends-on): Remove dup2.
9461
9462 2011-09-18  Bruno Haible  <bruno@clisp.org>
9463
9464         inet_ntop, inet_pton: Look for it also in libresolv.
9465         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9466         libnsl, search for it in libresolv.
9467         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9468         Needed on Solaris 7.
9469
9470 2011-09-18  Bruno Haible  <bruno@clisp.org>
9471
9472         accept, accept4 tests: Avoid link error on Solaris.
9473         * modules/accept-tests (Makefile.am): Link test-accept against
9474         $(LIBSOCKET).
9475         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9476         $(LIBSOCKET).
9477
9478         accept4: Avoid link error on Solaris.
9479         * modules/accept4 (Link): New section.
9480
9481         socket functions: Avoid link errors on Solaris.
9482         * modules/accept (Depends-on): Add socketlib.
9483         (Link): New section.
9484         * modules/bind (Depends-on): Add socketlib.
9485         (Link): New section.
9486         * modules/connect (Depends-on): Add socketlib.
9487         (Link): New section.
9488         * modules/getpeername (Depends-on): Add socketlib.
9489         (Link): New section.
9490         * modules/getsockname (Depends-on): Add socketlib.
9491         (Link): New section.
9492         * modules/getsockopt (Depends-on): Add socketlib.
9493         (Link): New section.
9494         * modules/listen (Depends-on): Add socketlib.
9495         (Link): New section.
9496         * modules/recv (Depends-on): Add socketlib.
9497         (Link): New section.
9498         * modules/recvfrom (Depends-on): Add socketlib.
9499         (Link): New section.
9500         * modules/send (Depends-on): Add socketlib.
9501         (Link): New section.
9502         * modules/sendto (Depends-on): Add socketlib.
9503         (Link): New section.
9504         * modules/setsockopt (Depends-on): Add socketlib.
9505         (Link): New section.
9506         * modules/shutdown (Depends-on): Add socketlib.
9507         (Link): New section.
9508         * modules/socket (Depends-on): Add socketlib.
9509         (Link): New section.
9510
9511 2011-09-18  Bruno Haible  <bruno@clisp.org>
9512
9513         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9514         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9515         than 5 seconds.
9516         * modules/ptsname-tests (configure.ac): Test for alarm.
9517
9518 2011-09-18  Bruno Haible  <bruno@clisp.org>
9519
9520         posix_spawn_file_actions_add*: Fix module dependencies.
9521         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9522         posix_spawn_file_actions_init.
9523         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9524         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9525
9526 2011-09-18  Bruno Haible  <bruno@clisp.org>
9527
9528         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9529         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9530         * tests/test-renameat.c (main): Likewise.
9531
9532 2011-09-18  Bruno Haible  <bruno@clisp.org>
9533
9534         Tests for module 'accept4'.
9535         * modules/accept4-tests: New file.
9536         * tests/test-accept4.c: New file.
9537
9538 2011-09-18  Bruno Haible  <bruno@clisp.org>
9539
9540         Tests for module 'accept'.
9541         * modules/accept-tests: New file.
9542         * tests/test-accept.c: New file.
9543
9544 2011-09-18  Bruno Haible  <bruno@clisp.org>
9545
9546         dup2: Support for MSVC.
9547         * lib/dup2.c: Include msvc-inval.h.
9548         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9549         _get_osfhandle calls.
9550         * modules/dup2 (Depends-on): Add msvc-inval.
9551         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9552
9553         New module 'msvc-inval'.
9554         * lib/msvc-inval.h: New file.
9555         * lib/msvc-inval.c: New file.
9556         * m4/msvc-inval.m4: New file.
9557         * modules/msvc-inval: New file.
9558
9559 2011-09-17  Bruno Haible  <bruno@clisp.org>
9560
9561         Tests for module 'pclose'.
9562         * modules/pclose-tests: New file.
9563
9564         New module 'pclose'.
9565         * lib/stdio.in.h (pclose): New declaration.
9566         * lib/pclose.c: New file.
9567         * m4/pclose.m4: New file.
9568         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9569         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9570         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9571         * modules/pclose: New file.
9572         * modules/popen-tests (Depends-on): Add pclose.
9573         * modules/popen-safer-tests (Depends-on): Likewise.
9574         * doc/posix-functions/pclose.texi: Mention the new module.
9575
9576 2011-09-17  Bruno Haible  <bruno@clisp.org>
9577
9578         popen: Support for MSVC.
9579         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9580         * lib/popen.c (popen): Provide alternate definition for native Windows.
9581         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9583         * modules/popen (Depends-on, configure.ac): Update condition.
9584         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9585         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9586         fixed.
9587
9588 2011-09-17  Bruno Haible  <bruno@clisp.org>
9589
9590         isnanl, isnand, isnanf: Work around MSVC bug.
9591         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9592
9593 2011-09-17  Bruno Haible  <bruno@clisp.org>
9594
9595         sys_socket tests: Fix recent mistake.
9596         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9597
9598 2011-09-17  Bruno Haible  <bruno@clisp.org>
9599
9600         putenv: Support for MSVC.
9601         * modules/putenv (Depends-on): Add environ.
9602         * lib/putenv.c (environ): Disable declaration.
9603         * lib/unistd.in.h: Update comment.
9604
9605 2011-09-17  Bruno Haible  <bruno@clisp.org>
9606
9607         math: Avoid macro redefinition warnings on MSVC.
9608         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9609         Undefine before redefining.
9610
9611 2011-09-17  Bruno Haible  <bruno@clisp.org>
9612
9613         doc: Mention functions which are declared as macros.
9614         * doc/posix-functions/*[fl].texi: Mention that some functions are
9615         defined as macros with arguments only.
9616
9617 2011-09-17  Bruno Haible  <bruno@clisp.org>
9618
9619         Add dependencies to new dirent related modules.
9620         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9621         * modules/fts (Depends-on): Likewise.
9622         * modules/glob (Depends-on): Likewise.
9623         * modules/savedir (Depends-on): Likewise.
9624         * modules/scandir (Depends-on): Likewise.
9625         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9626         * modules/fdopendir (Depends-on): Add opendir.
9627
9628 2011-09-17  Bruno Haible  <bruno@clisp.org>
9629
9630         inet_pton: Support for MSVC on Windows Vista or newer.
9631         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9632         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9633         HAVE_DECL_INET_PTON is defined.
9634         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9635         On platforms with <winsock2.h>, test whether inet_pton is declared in
9636         <ws2tcpip.h>. If so, arrange to replace it.
9637         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9638         REPLACE_INET_PTON.
9639         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9640         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9641         (Depends-on, configure.ac): Update condition.
9642         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9643
9644 2011-09-17  Bruno Haible  <bruno@clisp.org>
9645
9646         inet_ntop: Support for MSVC on Windows Vista or newer.
9647         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9648         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9649         HAVE_DECL_INET_NTOP is defined.
9650         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9651         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9652         <ws2tcpip.h>. If so, arrange to replace it.
9653         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9654         REPLACE_INET_NTOP.
9655         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9656         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9657         (Depends-on, configure.ac): Update condition.
9658         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9659
9660 2011-09-16  Eric Blake  <eblake@redhat.com>
9661
9662         test-fsync: yet another enhancement
9663         * tests/test-fsync.c (main): Also test behavior on read-only text
9664         file.
9665
9666 2011-09-16  Bruno Haible  <bruno@clisp.org>
9667
9668         Enhance fsync, fdatasync tests.
9669         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9670         * tests/test-fdatasync.c (main): Likewise.
9671
9672 2011-09-16  Bruno Haible  <bruno@clisp.org>
9673
9674         Support for MSVC compiler: Ensure mode_t gets defined.
9675         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9676         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9677         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9678         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9679         * tests/test-fcntl-h.c: Check that mode_t is defined.
9680         * tests/test-sys_stat.c: Likewise.
9681         * tests/test-sys_types.c: Likewise.
9682         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9683         * doc/posix-headers/sys_stat.texi: Likewise.
9684         * doc/posix-headers/sys_types.texi: Likewise.
9685
9686 2011-09-16  Bruno Haible  <bruno@clisp.org>
9687
9688         sys_stat: Support for MSVC.
9689         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9690         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9691         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9692         MSVC.
9693
9694 2011-09-16  Bruno Haible  <bruno@clisp.org>
9695
9696         Support for MSVC compiler: Ensure off_t gets defined.
9697         * lib/unistd.in.h: Include <sys/types.h>.
9698         * tests/test-fcntl-h.c: Check that off_t is defined.
9699         * tests/test-sys_stat.c: Likewise.
9700         * tests/test-sys_types.c: Likewise.
9701
9702 2011-09-16  Eric Blake  <eblake@redhat.com>
9703
9704         fdatasync: port to Solaris
9705         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9706         * modules/fdatasync (Link): Document it.
9707         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9708
9709         fdatasync: port to MacOS X 10.7
9710         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9711         declared.
9712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9713         * modules/unistd (Makefile.am): Substitute it.
9714         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9715         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9716
9717         fdatasync: minor improvements
9718         * modules/fdatasync (Depends-on): Add condition for fsync.
9719         * lib/fdatasync.c (fdatasync): Add comment.
9720         * tests/test-unistd-c++.cc: Test fdatasync.
9721
9722         unistd: update refs to newer POSIX
9723         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9724         Suggested by Bruno Haible.
9725
9726         fdatasync: new module
9727         * modules/fsync (Description): Document difference to fdatasync.
9728         * modules/fdatasync: New module.
9729         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9730         * lib/fdatasync.c (fdatasync): Likewise.
9731         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9732         defaults.
9733         * modules/unistd (Makefile.am): Set witnesses.
9734         * lib/unistd.in.h (fdatasync): Declare.
9735         * MODULES.html.sh: Document it.
9736         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9737         * modules/fdatasync-tests: New test.
9738         * tests/test-fdatasync.c: Likewise.
9739
9740 2011-09-16  Eric Blake  <eblake@redhat.com>
9741
9742         test-fsync: enhance tests
9743         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9744         * tests/test-fsync.c (main): Enhance test.
9745
9746 2011-09-15  Bruno Haible  <bruno@clisp.org>
9747
9748         Support for MSVC compiler: Ensure ssize_t gets defined.
9749         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9750         * doc/posix-headers/stdio.texi: Likewise.
9751         * modules/stdio (Depends-on): Add ssize_t.
9752         * modules/sys_socket (Depends-on): Likewise.
9753         * modules/sys_types (Depends-on): Likewise.
9754         * modules/sys_uio (Depends-on): Likewise.
9755         * modules/unistd (Depends-on): Likewise.
9756         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9757         * tests/test-sys_types.c: Check that ssize_t is defined.
9758
9759 2011-09-14  Bruno Haible  <bruno@clisp.org>
9760
9761         Avoid using #, the m4 comment starter character, near brackets.
9762         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9763         delimiter character in sed expressions.
9764         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9765         Suggested by Eric Blake.
9766
9767         Properly quote AC_CHECK_DECLS' 4th argument.
9768         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9769         argument.
9770         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9771         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9772         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9773         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9774         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9775         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9776         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9777         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9778         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9779         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9780         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9781         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9782         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9783         * m4/isinf.m4 (gl_ISINF): Likewise.
9784         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9785         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9786         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9787         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9788         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9789         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9790         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9791         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9792         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9793         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9794         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9795         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9796         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9797         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9798         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9799         Reported by Eric Blake.
9800
9801         Properly quote AC_CHECK_DECL's 4th argument.
9802         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9803         argument.
9804         * m4/argp.m4 (gl_ARGP): Likewise.
9805         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9806         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9807         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9808         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9809         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9810         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9811         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9812         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9813         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9814         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9815         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9816         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9817         Reported by Eric Blake.
9818
9819 2011-09-14  Eric Blake  <eblake@redhat.com>
9820
9821         opendir: avoid compile warning
9822         * lib/opendir.c (includes): Always include errno.h.
9823         Reported by Tatsuro MATSUOKA.
9824
9825 2011-09-14  Jim Meyering  <meyering@redhat.com>
9826
9827         maint.mk: sc_tight_scope: propagate failure from sub-make
9828         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9829         Reported by Martin von Gagern.
9830
9831 2011-09-13  Bruno Haible  <bruno@clisp.org>
9832
9833         tempname: Support for MSVC.
9834         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9835         MSVC.
9836         * modules/tempname (Depends-on): Add fcntl-h.
9837
9838 2011-09-13  Bruno Haible  <bruno@clisp.org>
9839
9840         sys_time: Support for MSVC.
9841         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9842         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9843         include <winsock2.h>.
9844         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9845         function declarations that collide with POSIX.
9846         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9847         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9848
9849 2011-09-13  Bruno Haible  <bruno@clisp.org>
9850
9851         stat: Support for MSVC.
9852         * lib/stat.c: Include pathmax.h.
9853         * modules/stat (Depends-on): Add pathmax.
9854
9855         pathmax: Support for native Windows.
9856         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9857
9858 2011-09-12  Bruno Haible  <bruno@clisp.org>
9859
9860         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9861         * lib/dirent.in.h (struct dirent): New type.
9862         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9863         DT_WHT): New macros.
9864         (DIR): New type.
9865         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9866         (readdir, rewinddir): New declarations.
9867         * lib/dirent-private.h: New file.
9868         * lib/opendir.c: New file.
9869         * lib/readdir.c: New file.
9870         * lib/rewinddir.c: New file.
9871         * lib/closedir.c: New file.
9872         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9873         * m4/opendir.m4: New file.
9874         * m4/readdir.m4: New file.
9875         * m4/rewinddir.m4: New file.
9876         * m4/closedir.m4: New file.
9877         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9878         REPLACE_CLOSEDIR here.
9879         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9880         readdir, rewinddir are declared.
9881         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9882         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9883         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9884         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9885         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9886         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9887         * modules/opendir: New file.
9888         * modules/readdir: New file.
9889         * modules/rewinddir: New file.
9890         * modules/closedir: New file.
9891         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9892         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9893         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9894         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9895         * NEWS: Mention the 'fchdir' change.
9896
9897 2011-09-11  Bruno Haible  <bruno@clisp.org>
9898
9899         asm-underscore.m4: Support for MSVC.
9900         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9901         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9902
9903 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9904
9905         Doc about crypt functions.
9906         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9907         needing for _GNU_SOURCE to get crypt.
9908         * doc/posix-functions/encrypt.texi: Likewise.
9909         * doc/posix-functions/setkey.texi: Likewise.
9910
9911 2011-09-11  Bruno Haible  <bruno@clisp.org>
9912
9913         doc: Update regarding MSVC 9.
9914         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9915         tested".
9916         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9917         * doc/posix-headers/*.texi: Likewise.
9918         * doc/pastposix-functions/*.texi: Likewise.
9919         * doc/glibc-functions/*.texi: Likewise.
9920         * doc/glibc-headers/*.texi: Likewise.
9921
9922 2011-09-11  Bruno Haible  <bruno@clisp.org>
9923
9924         unistd et al.: Don't assume <unistd.h> exists.
9925         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9926         does not exist.
9927         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9928         exist. But include <stdlib.h>.
9929         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9930         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9931         symlink() does not exist.
9932         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9933         include <io.h> instead.
9934         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9935         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9936         include <direct.h> instead.
9937         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9938         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9939         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9940         <io.h> instead.
9941         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9942         correctly if the system does not have hard links.
9943         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9944         <direct.h> instead.
9945         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9946         it when looking for function declarations.
9947         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9948         <direct.h> and <io.h> instead.
9949         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9950
9951 2011-09-11  Bruno Haible  <bruno@clisp.org>
9952
9953         strcase: Support for MSVC.
9954         * modules/strcase (Status, Notice): Remove obsoletion mark.
9955         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9956         * doc/posix-functions/strncasecmp.texi: Likewise.
9957
9958         strings: Don't assume <strings.h> exists.
9959         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9960         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9961         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9962         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9963
9964 2011-09-11  Bruno Haible  <bruno@clisp.org>
9965
9966         dirent: Don't assume <dirent.h> exists.
9967         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9968         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9969         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9970         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9971
9972 2011-09-11  Bruno Haible  <bruno@clisp.org>
9973
9974         Fix wint_t on MSVC.
9975         * lib/wchar.in.h (wint_t): On MSVC, override it.
9976         * lib/wctype.in.h (wint_t): Likewise.
9977         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9978         MSVC.
9979         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9980         * doc/posix-headers/wctype.texi: Likewise.
9981
9982 2011-09-11  Bruno Haible  <bruno@clisp.org>
9983
9984         sys_types: Fix typo.
9985         * lib/sys_types.in.h: Fix typo in comment.
9986         Reported by Paul Eggert.
9987
9988         Support for MSVC compiler: Ensure size_t gets defined.
9989         * modules/strings (Depends-on): Add 'sys_types'.
9990         * modules/sys_uio (Depends-on): Likewise.
9991         * lib/sys_uio.in.h: Update comment.
9992
9993         C++ tests for module 'sys_types'.
9994         * modules/sys_types-c++-tests: New file.
9995         * tests/test-sys_types-c++.cc: New file.
9996
9997         Tests for module 'sys_types'.
9998         * modules/sys_types-tests: New file.
9999         * tests/test-sys_types.c: New file.
10000
10001         New module 'sys_types'.
10002         * lib/sys_types.in.h: New file.
10003         * m4/sys_types_h.m4: New file.
10004         * modules/sys_types: New file.
10005         * doc/posix-headers/sys_types.texi: Mention the new module and the
10006         size_t problem on MSVC 9.
10007
10008 2011-09-11  Bruno Haible  <bruno@clisp.org>
10009
10010         Support for MSVC compiler: Avoid division by a literal 0.
10011         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10012         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10013         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10014         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10015         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10016         * tests/infinity.h: New file.
10017         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10018         on MSVC.
10019         * tests/test-ceilf1.c: Include infinity.h.
10020         (main): Use Infinityf.
10021         * tests/test-ceil1.c: Include infinity.h.
10022         (main): Use Infinityd.
10023         * tests/test-ceill.c: Include infinity.h.
10024         (main): Use Infinityl.
10025         * tests/test-dprintf-posix.c: Include infinity.h.
10026         (test_function): Use Infinityd.
10027         * tests/test-floorf1.c: Include infinity.h.
10028         (main): Use Infinityf.
10029         * tests/test-floor1.c: Include infinity.h.
10030         (main): Use Infinityd.
10031         * tests/test-floorl.c: Include infinity.h.
10032         (main): Use Infinityl.
10033         * tests/test-fprintf-posix.c: Include infinity.h.
10034         (test_function): Use Infinityd.
10035         * tests/test-frexp.c: Include infinity.h.
10036         (main): Use Infinityd.
10037         * tests/test-frexpl.c: Include infinity.h.
10038         (main): Use Infinityl.
10039         * tests/test-isfinite.c: Include infinity.h.
10040         (test_isfinitef): Use Infinityf.
10041         (test_isfinited): Use Infinityd.
10042         (test_isfinitel): Use Infinityl.
10043         * tests/test-isinf.c: Include infinity.h.
10044         (test_isinff): Use Infinityf.
10045         (test_isinfd): Use Infinityd.
10046         (test_isinfl): Use Infinityl.
10047         * tests/test-isnan.c: Include infinity.h.
10048         (test_float): Use Infinityf.
10049         (test_double): Use Infinityd.
10050         (test_long_double): Use Infinityl.
10051         * tests/test-isnanf.h: Include infinity.h.
10052         (main): Use Infinityf.
10053         * tests/test-isnand.h: Include infinity.h.
10054         (main): Use Infinityd.
10055         * tests/test-isnanl.h: Include infinity.h.
10056         (main): Use Infinityl.
10057         * tests/test-ldexpl.c: Include infinity.h.
10058         (main): Use Infinityl.
10059         * tests/test-printf-posix.h: Include infinity.h.
10060         (test_function): Use Infinityd.
10061         * tests/test-roundf1.c: Include infinity.h.
10062         (main): Use Infinityf.
10063         * tests/test-round1.c: Include infinity.h.
10064         (main): Use Infinityd.
10065         * tests/test-roundl.c: Include infinity.h.
10066         (main): Use Infinityl.
10067         * tests/test-signbit.c: Include infinity.h.
10068         (test_signbitf): Use Infinityf.
10069         (test_signbitd): Use Infinityd.
10070         (test_signbitl): Use Infinityl.
10071         * tests/test-snprintf-posix.h: Include infinity.h.
10072         (test_function): Use Infinityd, Infinityl.
10073         * tests/test-sprintf-posix.h: Include infinity.h.
10074         (test_function): Use Infinityd, Infinityl.
10075         * tests/test-truncf1.c: Include infinity.h.
10076         (main): Use Infinityf.
10077         * tests/test-trunc1.c: Include infinity.h.
10078         (main): Use Infinityd.
10079         * tests/test-truncl.c: Include infinity.h.
10080         (main): Use Infinityl.
10081         * tests/test-vasnprintf-posix.c: Include infinity.h.
10082         (test_function): Use Infinityd, Infinityl.
10083         * tests/test-vasprintf-posix.c: Include infinity.h.
10084         (test_function): Use Infinityd, Infinityl.
10085         * modules/ceilf-tests (Files): Add tests/infinity.h.
10086         * modules/ceil-tests (Files): Likewise.
10087         * modules/ceill-tests (Files): Likewise.
10088         * modules/dprintf-posix-tests (Files): Likewise.
10089         * modules/floorf-tests (Files): Likewise.
10090         * modules/floor-tests (Files): Likewise.
10091         * modules/floorl-tests (Files): Likewise.
10092         * modules/fprintf-posix-tests (Files): Likewise.
10093         * modules/frexp-tests (Files): Likewise.
10094         * modules/frexp-nolibm-tests (Files): Likewise.
10095         * modules/frexpl-tests (Files): Likewise.
10096         * modules/frexpl-nolibm-tests (Files): Likewise.
10097         * modules/isfinite-tests (Files): Likewise.
10098         * modules/isinf-tests (Files): Likewise.
10099         * modules/isnan-tests (Files): Likewise.
10100         * modules/isnanf-tests (Files): Likewise.
10101         * modules/isnanf-nolibm-tests (Files): Likewise.
10102         * modules/isnand-tests (Files): Likewise.
10103         * modules/isnand-nolibm-tests (Files): Likewise.
10104         * modules/isnanl-tests (Files): Likewise.
10105         * modules/isnanl-nolibm-tests (Files): Likewise.
10106         * modules/ldexpl-tests (Files): Likewise.
10107         * modules/printf-posix-tests (Files): Likewise.
10108         * modules/roundf-tests (Files): Likewise.
10109         * modules/round-tests (Files): Likewise.
10110         * modules/roundl-tests (Files): Likewise.
10111         * modules/signbit-tests (Files): Likewise.
10112         * modules/snprintf-posix-tests (Files): Likewise.
10113         * modules/sprintf-posix-tests (Files): Likewise.
10114         * modules/truncf-tests (Files): Likewise.
10115         * modules/trunc-tests (Files): Likewise.
10116         * modules/truncl-tests (Files): Likewise.
10117         * modules/vasnprintf-posix-tests (Files): Likewise.
10118         * modules/vasprintf-posix-tests (Files): Likewise.
10119         * modules/vdprintf-posix-tests (Files): Likewise.
10120         * modules/vfprintf-posix-tests (Files): Likewise.
10121         * modules/vprintf-posix-tests (Files): Likewise.
10122         * modules/vsnprintf-posix-tests (Files): Likewise.
10123         * modules/vsprintf-posix-tests (Files): Likewise.
10124         * modules/xprintf-posix-tests (Files): Likewise.
10125
10126 2011-09-11  Bruno Haible  <bruno@clisp.org>
10127
10128         Ensure pid_t gets defined.
10129         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10130         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10131         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10132         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10133         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10134         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10135         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10136         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10137         * tests/test-fcntl-h.c: Check that pid_t is defined.
10138         * tests/test-sched.c: Likewise.
10139         * tests/test-termios.c: Likewise.
10140         * tests/test-time.c: Likewise.
10141         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10142         * doc/posix-headers/signal.texi: Likewise.
10143         * doc/posix-headers/sys_types.texi: Likewise.
10144         * doc/posix-headers/time.texi: Likewise.
10145
10146 2011-09-11  Bruno Haible  <bruno@clisp.org>
10147
10148         acl: Fix compilation on Solaris 10 (older version).
10149         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10150         of ACE_EVERYONE.
10151         * lib/set-mode-acl.c (qset_acl): Likewise.
10152         Reported by Christian Jullien <eligis@orange.fr>.
10153
10154 2011-09-10  Bruno Haible  <bruno@clisp.org>
10155
10156         iconv, unsetenv: Add support for MSVC compiler.
10157         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10158         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10159
10160 2011-09-10  Bruno Haible  <bruno@clisp.org>
10161
10162         *printf: Add support for MSVC compiler.
10163         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10164         handles the exception caused by the %n directive. When cross-compiling,
10165         guess no on native Windows.
10166         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10167         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10168         emulate it through vsnprintf.
10169         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10170         * doc/posix-functions/dprintf.texi: Update documentation regarding
10171         MSVC 9.
10172         * doc/posix-functions/fprintf.texi: Likewise.
10173         * doc/posix-functions/printf.texi: Likewise.
10174         * doc/posix-functions/snprintf.texi: Likewise.
10175         * doc/posix-functions/sprintf.texi: Likewise.
10176         * doc/posix-functions/swprintf.texi: Likewise.
10177         * doc/posix-functions/vdprintf.texi: Likewise.
10178         * doc/posix-functions/vfprintf.texi: Likewise.
10179         * doc/posix-functions/vprintf.texi: Likewise.
10180         * doc/posix-functions/vsnprintf.texi: Likewise.
10181         * doc/posix-functions/vsprintf.texi: Likewise.
10182         * doc/glibc-functions/asprintf.texi: Likewise.
10183         * doc/glibc-functions/obstack_printf.texi: Likewise.
10184         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10185         * doc/glibc-functions/vasprintf.texi: Likewise.
10186
10187 2011-09-10  Bruno Haible  <bruno@clisp.org>
10188
10189         nocrash: Add support for native Windows.
10190         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10191
10192 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10193             Bruno Haible  <bruno@clisp.org>
10194
10195         absolute-header, include-next: Add support for MSVC compiler.
10196         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10197         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10198         directory separator in #line directives.
10199         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10200         recognize also backslash as directory separator in #line directives.
10201
10202 2011-09-08  Jim Meyering  <meyering@redhat.com>
10203
10204         maint.mk: mark the post-release commit log with "maint: " prefix
10205         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10206         one-line commit-log summary.
10207
10208 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10209             Bruno Haible  <bruno@clisp.org>
10210
10211         Doc about crypt functions.
10212         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10213         systems.
10214         * doc/posix-functions/encrypt.texi: Likewise.
10215         * doc/posix-functions/setkey.texi: Likewise.
10216
10217 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10218
10219         * lib/gc.h: Fix copyright header.
10220
10221 2011-09-07  Bruno Haible  <bruno@clisp.org>
10222
10223         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10224         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10225         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10226
10227 2011-09-07  Bruno Haible  <bruno@clisp.org>
10228
10229         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10230         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10231         * lib/freopen.c: Likewise.
10232         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10233         * lib/lstat.c: Likewise.
10234         * lib/stat.c: Likewise.
10235         * lib/open.c: Use different syntax for include of <fcntl.h>.
10236         * lib/openat.c: Include fcntl.h again, explicitly.
10237
10238 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10239
10240         parse-datetime: document the newly accepted format
10241         * doc/parse-datetime.texi (Combined date and time of day items):
10242         New section.
10243
10244 2011-09-06  Bruno Haible  <bruno@clisp.org>
10245
10246         acl: Fix a test failure on newer Solaris 10 with ZFS.
10247         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10248         ENOSYS as no ACL.
10249         Reported by Jim Meyering.
10250
10251 2011-09-06  Bruno Haible  <bruno@clisp.org>
10252
10253         acl: Update for AIX >= 5.3 with NFS.
10254         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10255         ENOSYS as no ACL.
10256
10257         acl: Fix a test failure on AIX >= 5.3 with NFS.
10258         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10259         as no ACL.
10260
10261 2011-09-06  Bruno Haible  <bruno@clisp.org>
10262
10263         acl: Fix a test failure on IRIX 6.5 with NFS.
10264         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10265         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10266         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10267         * lib/copy-acl.c (qcopy_acl): Likewise.
10268
10269 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10270
10271         openat: port to AIX 7.1 with large files
10272         AIX 7.1 does a "#define openat open64at" if large files are in use,
10273         so we can't simply #undef openat.  Use the orig_openat trick (similar
10274         to orig_open in lib/open.c) to work around the problem.  Problem
10275         reported by Kevin Brott for GNU tar, in the thread containing
10276         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10277         * lib/openat.c (__need_system_fcntl_h): Define first.
10278         Include <fcntl.h> and <sys/types.h> before undefining.
10279         (orig_openat) [HAVE_OPENAT]: New inline function.
10280         (openat) [HAVE_OPENAT]: Do not undef.
10281         (rpl_openat): Use orig_openat, not openat.
10282
10283 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10284             Bruno Haible  <bruno@clisp.org>
10285
10286         acl: Avoid errors on NonStop Kernel.
10287         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10288         ENOTSUP errors.
10289
10290 2011-09-05  Bruno Haible  <bruno@clisp.org>
10291
10292         acl: Clean up Solaris code.
10293         * lib/acl-internal.h: Remove no-op #if.
10294         * lib/file-has-acl.c: Likewise.
10295         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10296         * lib/copy-acl.c (qcopy_acl): Likewise.
10297
10298 2011-09-05  Bruno Haible  <bruno@clisp.org>
10299
10300         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10301         binaries built on the original Solaris 10.
10302         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10303         trivial.
10304
10305 2011-09-05  Bruno Haible  <bruno@clisp.org>
10306
10307         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10308         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10309         10.
10310         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10311         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10312         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10313         instead of acl_get, facl_get, acl_set, facl_set.
10314
10315 2011-09-05  Bruno Haible  <bruno@clisp.org>
10316
10317         copy-file: Try unit tests on more file systems.
10318         * tests/test-copy-file-1.sh: New file.
10319         * tests/test-copy-file-2.sh: New file.
10320         * modules/copy-file-tests (Files): Add them.
10321         (Makefile.am): Add them to TESTS.
10322
10323         acl: Try unit tests on more file systems.
10324         * tests/test-file-has-acl-1.sh: New file.
10325         * tests/test-file-has-acl-2.sh: New file.
10326         * tests/test-set-mode-acl-1.sh: New file.
10327         * tests/test-set-mode-acl-2.sh: New file.
10328         * tests/test-copy-acl-1.sh: New file.
10329         * tests/test-copy-acl-2.sh: New file.
10330         * modules/acl-tests (Files): Add them.
10331         (Makefile.am): Add them to TESTS.
10332
10333 2011-09-04  Bruno Haible  <bruno@clisp.org>
10334
10335         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10336         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10337         10.
10338         (OLD_ALLOW, OLD_DENY): New macros.
10339         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10340         ACE_ACCESS_ALLOWED_ACE_TYPE.
10341         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10342         ACE_ACCESS_DENIED_ACE_TYPE.
10343         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10344         (NEW_ACE_EXECUTE): Fix value.
10345         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10346         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10347         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10348         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10349         NEW_ACE_SYNCHRONIZE): New macros.
10350         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10351         instead of acl_fromtext, acl_set, facl_set.
10352         Fixes a coreutils/tests/cp/perm failure.
10353
10354 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10355
10356         openat: test for fstatat (..., 0) bug
10357         Further testing with tar suggests that fstatat (..., 0)
10358         does not work in general, on AIX 7.1; see
10359         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10360         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10361         replacement fstatat (which is what older AIX releases were using
10362         anyway).
10363         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10364         use is now changed to orig_fstatat.  This was probably the right
10365         thing to do anyway.
10366         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10367         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10368         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10369         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10370         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10371         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10372         if the bug is found.
10373
10374         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10375         This tests for another fstatat bug on AIX 7.1:
10376         fstatat (AT_FDCWD, ..., 0) does not work.  See
10377         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10378         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10379         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10380         (rpl_fstatat): Adjust so that it works around either (or both)
10381         bugs if present.
10382         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10383
10384 2011-09-03  Karl Berry  <karl@gnu.org>
10385
10386         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10387         in index entries.
10388
10389 2011-09-02  Bruno Haible  <bruno@clisp.org>
10390
10391         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10392         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10393         values of AR, ARFLAGS, RANLIB.
10394         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10395
10396 2011-09-02  Bruno Haible  <bruno@clisp.org>
10397
10398         Find 'ar' program that fits with --host argument.
10399         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10400
10401 2011-09-02  Bruno Haible  <bruno@clisp.org>
10402
10403         tests: init.sh: Support any non-GNU diff.
10404         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10405         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10406         Solaris 8.
10407
10408 2011-09-02  Bruno Haible  <bruno@clisp.org>
10409
10410         tests: init.sh: work also with any non-GNU diff that supports -u
10411         * tests/init.sh: Relax check for diff -u support.
10412         Rather than checking for GNU diff via --version, simply check
10413         for support for -u itself.  Useful at least on OpenBSD 4.9,
10414         AIX 7.1, IRIX 6.5, and Solaris 10.
10415
10416 2011-09-01  Bruno Haible  <bruno@clisp.org>
10417
10418         strtoimax, strtoumax: Document problem on HP-UX 11.
10419         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10420         * doc/posix-functions/strtoumax.texi: Likewise.
10421
10422 2011-09-01  Bruno Haible  <bruno@clisp.org>
10423
10424         strtoumax: Avoid link error on OSF/1 with DTK cc.
10425         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10426         defined as a function.
10427         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10428         strtoumax is defined, not whether it is declared.
10429
10430 2011-09-01  Bruno Haible  <bruno@clisp.org>
10431
10432         strtoimax: Avoid link error on OSF/1 with DTK cc.
10433         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10434         defined as a function.
10435         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10436         strtoimax is defined, not whether it is declared.
10437
10438 2011-09-01  Bruno Haible  <bruno@clisp.org>
10439
10440         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10441         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10442         as a function.
10443         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10444         whether it is declared.
10445
10446 2011-09-01  Bruno Haible  <bruno@clisp.org>
10447
10448         imaxabs: Avoid link error on OSF/1 with DTK cc.
10449         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10450         as a function.
10451         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10452         whether it is declared.
10453
10454 2011-09-01  Bruno Haible  <bruno@clisp.org>
10455
10456         Tests for module 'strtoumax'.
10457         * modules/strtoumax-tests: New file.
10458         * tests/test-strtoumax.c: New file.
10459
10460         Tests for module 'strtoimax'.
10461         * modules/strtoimax-tests: New file.
10462         * tests/test-strtoimax.c: New file.
10463
10464         Tests for module 'imaxdiv'.
10465         * modules/imaxdiv-tests: New file.
10466         * tests/test-imaxdiv.c: New file.
10467
10468         Tests for module 'imaxabs'.
10469         * modules/imaxabs-tests: New file.
10470         * tests/test-imaxabs.c: New file.
10471
10472 2011-09-01  Bruno Haible  <bruno@clisp.org>
10473
10474         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10475         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10476         pthread_create.
10477
10478 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10479
10480         openat: work around AIX 7.1 fstatat issue
10481         This should fix the problem that was not properly fixed
10482         in the previous change, dated 2011-08-30.
10483         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10484         __need_system_stat_h defined.
10485         (orig_fstatat) [HAVE_FSTATAT]: New function.
10486         (rpl_fstatat): Go back to the old way of doing things,
10487         except call orig_fstatat instead of fstatat.
10488         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10489         Remove unnecessary check whether fstatat fills in st_size etc.
10490
10491 2011-09-01  Bruno Haible  <bruno@clisp.org>
10492
10493         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10494         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10495         just include the system's header.
10496
10497 2011-08-31  Jim Meyering  <meyering@redhat.com>
10498
10499         tests: avoid spurious assertion failure in test-float.c on ppc64
10500         * tests/test-float.c (test_long_double): Comment out an assertion,
10501         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10502         with gcc-4.4.4.
10503
10504         maint: indent with spaces, not TABs
10505         I need to get in the habit of running gnulib's "make check".
10506         Both of these would have been caught.
10507         * m4/largefile.m4: Indent with spaces, not TABs.
10508         * lib/parse-datetime.y (iso_8601_time): Likewise.
10509         Spotted by Pádraig Brady.
10510
10511         test-parse-datetime.c: accommodate a relatively strict gcc warning
10512         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10513         to avoid a warning from gcc's -Werror=missing-declarations.
10514         Insert a few spaces-before-funcall-parenthesis.
10515
10516 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10517
10518         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10519         The parser now accepts ISO 8601 date-time strings with "T" as the
10520         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10521         with a space between the date and time strings.  Now it also parses
10522         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10523         variants like "2004-02-29T16:21:42.333-07:00"
10524         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10525         of day representation using the 'T' separator character.
10526         * doc/parse-datetime.texi (General date syntax): replace use of
10527         deprecated --iso-8601 option with --rfc-3339 in example of date
10528         command output formats that can be parsed.
10529         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10530         lib/parse-datetime.y.
10531         (gmt_offset): New function.
10532         (main): Add additional test cases to validate ISO8601 extended
10533         date and time of day parsing.
10534
10535 2011-08-31  Bruno Haible  <bruno@clisp.org>
10536
10537         freopen: Documentation.
10538         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10539         name.
10540         Reported by Claudio Bley <claudio.bley@gmail.com>.
10541
10542 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10543
10544         freopen: Don't crash if the filename argument is NULL.
10545         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10546         NULL.
10547
10548 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10549
10550         openat: work around AIX 7.1 fstatat bug
10551         Problem reported by Kevin Brott for GNU tar, in the thread containing
10552         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10553         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10554         FSTATAT_ST_SIZE_ETC_BROKEN.
10555         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10556         rpl_fstatat.
10557         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10558         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10559         AC_CHECK_FUNCS_ONCE for fstatat.
10560         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10561         fchmodat, mkdirat, openat and unlinkat.
10562
10563 2011-08-30  Bruno Haible  <bruno@clisp.org>
10564
10565         Avoid endless recursions if config.h includes some header files.
10566         * lib/fopen.c (__need_FILE): Define already before including config.h.
10567         * lib/freopen.c (__need_FILE): Likewise.
10568         * lib/open.c (__need_system_fcntl_h): Likewise.
10569         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10570         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10571         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10572
10573 2011-08-25  Karl Berry  <karl@gnu.org>
10574
10575         * config/srclist.txt (ylwrap): new try.
10576         * build-aux/ylwrap: new file.
10577
10578 2011-08-23  Bruno Haible  <bruno@clisp.org>
10579
10580         tmpdir: Use a good default directory on native Windows.
10581         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10582         (P_tmpdir): Default to _P_tmpdir on native Windows.
10583         (path_search): On native Windows, try the value returned by GetTempPath
10584         before trying P_tmpdir.
10585         * modules/tmpdir (Depends-on): Add pathmax.
10586         Suggested by John Darrington <john@darrington.wattle.id.au>.
10587
10588 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10589
10590         doc: fix typo in README-release
10591         * top/README-release: Capitalize first word of a sentence.
10592
10593 2011-08-19  Jim Meyering  <meyering@redhat.com>
10594
10595         fts: do not exhaust memory when processing million-entry directories
10596         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10597         directory would require about 256*N bytes of memory.  Thus, it was
10598         easy to construct a directory too large to be processed by any of
10599         those tools.  With this change, fts' maximum memory utilization is
10600         now limited to around 30MB.
10601         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10602         (fts_read): When we've processed the final entry (i.e., when
10603         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10604         using the parent entry to read any remaining entries.  Dispatch
10605         depending on what fts_build returns:
10606         - NULL+stop, aka failure: stop
10607         - NULL otherwise: move up in the dir hierarchy
10608         - non-NULL: handle this new entry
10609         (fts_build): Declare and use new local, continue_readdir.
10610         Prepare to be called from fts_read, when the entries
10611         from a partially-read directory have just been exhausted.
10612         In that case, we'll skip the opendir and instead use the parent's
10613         fts_dirp and derive dir_fd from that.
10614         Finally, in the readdir loop, if we read max_entries entries,
10615         exit the loop ensuring *not* to call closedir.  This is required
10616         so that fts_dirp can be reused on a subsequent call.
10617         Prompted by Ben England's report of memory exhaustion in find
10618         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10619
10620         maint: fts: move decl of `dp' down into while loop; split a long line
10621         * lib/fts.c (fts_build): No semantic change.
10622
10623         fts: add/use new struct member, fts_dirp
10624         We are about to use this to manage any directory with
10625         too many entries to read all of them into memory at once.
10626         To do that, we'll need to save the DIR* pointer in each
10627         affected FTSENT struct.
10628         * lib/fts_.h: Include <dirent.h>.
10629         (struct FTSENT) [fts_dirp]: New member.
10630         * lib/fts.c (closedir_and_clear): Define.
10631         Use it in place of closedir so that we are sure to
10632         clear the new fts_dirp member when done with it.
10633         (fts_alloc): Initialize the new member.
10634         (fts_lfree): Free, if needed.
10635
10636         maint: fts: give __opendir2 a new parameter and rename
10637         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10638         than surreptitiously using sole caller's "dir_fd".
10639         (fts_opendir): Rename from __opendir2.
10640
10641         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10642         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10643
10644         maint: fts.c: correct off-by-one indentation
10645         * lib/fts.c (fts_build): Correct indentation, change style
10646         of a couple of block comments, and bracing style.
10647
10648         maint: fts.c: move __opendir2 #define "up" out of function body
10649         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10650
10651         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10652         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10653         out for a long time and besides was useful only on BSD systems.
10654
10655 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10656
10657         regex: port to Stratus OpenVOS
10658         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10659         define to empty, rather than attempting nonportable optimizations.
10660         Problem reported by Paul Green in:
10661         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10662         and fix suggested by Eric Blake in:
10663         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10664
10665 2011-08-17  Eric Blake  <eblake@redhat.com>
10666
10667         getcwd: fix test failures on mingw
10668         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10669         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10670         test if long directory cannot be created, and allow mingw errno.
10671
10672         getcwd-lgpl: fix m4 to match relaxed test for BSD
10673         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10674         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10675         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10676         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10677         signature problem.
10678
10679         getcwd: fix compilation on mingw64
10680         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10681         getcwd.
10682         Reported by Marc-André Lureau.
10683
10684         pipe2: silence compiler warning
10685         * lib/pipe2.c (pipe2): Hide label if it is not used.
10686
10687 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10688
10689         relocatable-prog: fix link error
10690         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10691         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10692         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10693         into modules/relocatable-lib without noticing that
10694         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10695         also needs to build relocatable.c.
10696
10697 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10698
10699         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10700         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10701         shell code: it contained a 'break' that was not in a loop.
10702         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10703         via a shell-language loop; this may have been true in old Autoconf
10704         versions, but it's not true in Autoconf 2.68.  I found this bug
10705         when testing coreutils git on Solaris 8, whose shell complains
10706         about the syntax error.
10707
10708 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10709
10710         * lib/base64.c: Fix comment to reference RFC 4648.
10711         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10712         <gvtulder@gmail.com>.
10713
10714 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10715
10716         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10717
10718         po/Makefile.in.in: fix make -q problem
10719         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10720         rule, since there's no file named 'check-macro-version' and its
10721         use as a file breaks make -q.
10722         (all): Don't depend on check-macro-version.
10723         (CHECK_MACRO_VERSION): New macro.
10724         (stamp-po): Use it.
10725
10726         configmake: fix make -q problem
10727         * modules/configmake (configmake.h): Update configmake.h's time stamp
10728         even if the file does not change.  Otherwise, 'make -q' fails.
10729         Problem reported by Simon Josefsson in
10730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10731
10732 2011-08-11  Jim Meyering  <meyering@redhat.com>
10733
10734         git-version-gen: correct the advice in a comment
10735         * build-aux/git-version-gen: Correct comment.
10736         Don't recommend to list .tarball-version in .gitignore.
10737
10738 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10739
10740         base64: fix off-by-one buffer size bug
10741         Problem and (trivial) fix reported by Gijs van Tulder in
10742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10743         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10744         * tests/test-base64.c (main): Catch the bug.
10745
10746 2011-08-10  Eric Blake  <eblake@redhat.com>
10747
10748         closein: correct comments
10749         * lib/closein.c (close_stdin): Improve comments.
10750
10751 2011-08-09  Bruno Haible  <bruno@clisp.org>
10752
10753         More tests for 'fseeko'.
10754         * tests/test-fseeko3.c: New file, from Eric Blake.
10755         * tests/test-fseeko3.sh: New file.
10756         * modules/fseeko-tests (Files): Add them.
10757         (TESTS): Add test-fseeko3.sh.
10758         (check_PROGRAMS): Add test-fseeko3.
10759
10760 2011-08-09  Eric Blake  <eblake@redhat.com>
10761
10762         fseeko: remove unneeded hack
10763         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10764
10765         fseeko: fix bug on glibc
10766         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10767         Reported by John W. Eaton.
10768
10769 2011-08-08  Bruno Haible  <bruno@clisp.org>
10770
10771         unictype/base: Fix interoperability with preinstalled libunistring.
10772         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10773         Reported by Simon Josefsson.
10774
10775 2011-08-08  Bruno Haible  <bruno@clisp.org>
10776
10777         iswblank: Detect declaration correctly.
10778         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10779         AC_CHECK_DECLS invocation.
10780
10781 2011-08-08  Bruno Haible  <bruno@clisp.org>
10782
10783         tcgetsid: Detect declaration correctly.
10784         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10785         AC_CHECK_DECLS invocation.
10786         Reported by Simon Josefsson.
10787
10788 2011-08-08  Eric Blake  <eblake@redhat.com>
10789
10790         largefile: fix typo that regressed large file support
10791         * modules/largefile (configure.ac-early): Fix section name.
10792
10793 2011-08-06  Karl Berry  <karl@gnu.org>
10794
10795         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10796         a separate module.
10797
10798 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10799
10800         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10801         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10802         get prototype for free.
10803
10804 2011-08-04  Bruno Haible  <bruno@clisp.org>
10805
10806         Tests for module 'pathmax'.
10807         * modules/pathmax-tests: New file.
10808         * tests/test-pathmax.c: New file.
10809
10810         canonicalize-lgpl: Support larger filenames on the Hurd.
10811         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10812         Reported by Paul Eggert.
10813
10814         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10815         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10816         * lib/chdir-long.h: Include pathmax.h.
10817         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10818         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10819         (PATH_MAX): Remove code that is done by pathmax.h.
10820         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10821         * lib/tmpfile.c: Add a comment.
10822         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10823         * modules/chdir-long (Depends-on): Add pathmax.
10824         * modules/getcwd (Depends-on): Add pathmax.
10825         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10826         is not defined.
10827         * doc/posix-headers/limits.texi: Mention the pathmax module.
10828         * NEWS: Mention the change.
10829
10830 2011-08-02  Bruno Haible  <bruno@clisp.org>
10831
10832         pthread_sigmask: Actually use results of gl_THREADLIB.
10833         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10834         gl_THREADLIB, not gl_[]THREADLIB.
10835         Reported by Eric Blake.
10836
10837 2011-08-02  Jim Meyering  <meyering@redhat.com>
10838
10839         maint.mk: relax the default _gl_TS_function_match regexp
10840         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10841         space between function name and "(" in an "extern" declaration.
10842         That would fail to match a decl with no space there: extern void foo();
10843
10844 2011-07-31  Iain Nicol  <iain@thenicols.net>
10845
10846         git-version-gen: document that EXTRA_DIST must include .version
10847         * build-aux/git-version-gen: In the how-to-use comment, document
10848         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10849         will fail when run from an unpacked distribution tarball.
10850
10851 2011-08-01  Bruno Haible  <bruno@clisp.org>
10852
10853         wctype-h: Fix last change.
10854         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10855         REPLACE_TOWLOWER to 0.
10856         Reported by Sam Steingold <sds@gnu.org>.
10857
10858 2011-07-31  Bruno Haible  <bruno@clisp.org>
10859
10860         frexpl: Update autoconf test.
10861         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10862         according to changes of 2011-06-20.
10863
10864 2011-07-31  Bruno Haible  <bruno@clisp.org>
10865
10866         sys_utsname: Add support for Minix.
10867         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10868         <sys/utsname.h>.
10869         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10870         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10871
10872 2011-07-31  Bruno Haible  <bruno@clisp.org>
10873
10874         strings: Add support for Minix.
10875         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10876         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10877         * doc/posix-headers/strings.texi: Document the Minix problem.
10878
10879 2011-07-31  Bruno Haible  <bruno@clisp.org>
10880
10881         wctype-h: Add support for Minix.
10882         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10883         REPLACE_TOWLOWER.
10884         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10885         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10886         REPLACE_ISWCNTRL.
10887
10888 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10889
10890         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10891         This is a performance improvement for 64-bit hosts: it causes the
10892         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10893
10894 2011-07-31  Bruno Haible  <bruno@clisp.org>
10895
10896         stdioext: Add support for Minix.
10897         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10898         * lib/fpurge.c (fpurge): Likewise.
10899         * lib/freadahead.c (freadahead): Likewise.
10900         * lib/freadable.c (freadable): Likewise.
10901         * lib/freading.c (freading): Likewise.
10902         * lib/freadptr.c (freadptr): Likewise.
10903         * lib/freadseek.c (freadptrinc): Likewise.
10904         * lib/fseeko.c (rpl_fseeko): Likewise.
10905         * lib/fseterr.c (fseterr): Likewise.
10906         * lib/fwritable.c (fwritable): Likewise.
10907         * lib/fwriting.c (fwriting): Likewise.
10908         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10909         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10910
10911 2011-07-31  Bruno Haible  <bruno@clisp.org>
10912
10913         errno: Port to Minix.
10914         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10915         ECONNABORTED are defined.
10916         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10917         GNULIB_defined_ECONNABORTED): New macros.
10918         * lib/strerror-override.h (strerror_override): Test also
10919         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10920         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10921         ECONNABORTED.
10922         * doc/posix-headers/errno.texi: Mention the Minix problem.
10923
10924 2011-07-31  Bruno Haible  <bruno@clisp.org>
10925
10926         Work around declaration collisions on Minix.
10927         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10928         defined, set REPLACE_MBSINIT.
10929         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10930         defined, set REPLACE_MBRTOWC.
10931         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10932         set REPLACE_MBRLEN.
10933         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10934         defined, set REPLACE_MBSRTOWCS.
10935         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10936         defined, set REPLACE_WCRTOMB.
10937         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10938         defined, set REPLACE_WCSRTOMBS.
10939
10940 2011-07-31  Bruno Haible  <bruno@clisp.org>
10941
10942         Add support for Minix with ACK compiler.
10943         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10944         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10945         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10946
10947 2011-07-31  Bruno Haible  <bruno@clisp.org>
10948
10949         Documentation about Minix.
10950         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10951         * doc/glibc-headers/*.texi: Likewise.
10952         * doc/posix-functions/*.texi: Likewise.
10953         * doc/glibc-functions/*.texi: Likewise.
10954
10955 2011-07-31  Bruno Haible  <bruno@clisp.org>
10956
10957         snippet/warn-on-use: Fix indentation.
10958         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10959
10960 2011-07-25  Jim Meyering  <meyering@redhat.com>
10961
10962         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10963         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10964         commands.
10965
10966 2011-07-27  Jim Meyering  <meyering@redhat.com>
10967
10968         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10969         * top/maint.mk (gl_extract_significant_defines_): Now that
10970         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10971         gnulib/lib/signal.in.h, and now that we recommend to
10972         define-if-undefined those two symbols in application code,
10973         we must filter them out of the "significant" list.
10974         This avoids a "make syntax-check" failure in coreutils.
10975
10976 2011-07-26  Eric Blake  <eblake@redhat.com>
10977
10978         warnings: add comments about previous patch
10979         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10980         * m4/include_next.m4: Likewise.
10981         * m4/warn-on-use.m4: Likewise.
10982         * m4/warnings.m4: Likewise, and simplify use.
10983         Suggested by Stefano Lattarini.
10984
10985         include-next, warnings: support older autoconf
10986         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10987         AS_VAR_PUSHDEF in a way that works with older autoconf.
10988         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10989         Reported by Daniel P. Berrange.
10990
10991 2011-07-25  Bruno Haible  <bruno@clisp.org>
10992
10993         fseek, ftell: Fix doc.
10994         * doc/posix-functions/fseek.texi: Reword statement about
10995         AC_SYS_LARGEFILE.
10996         * doc/posix-functions/ftell.texi: Likewise.
10997
10998 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10999             Bruno Haible  <bruno@clisp.org>
11000
11001         Add dependencies to the 'largefile' module.
11002         * modules/fopen (Depends-on): Add 'largefile'.
11003         * modules/freopen (Depends-on): Likewise.
11004         * modules/fseeko (Depends-on): Likewise.
11005         * modules/ftello (Depends-on): Likewise.
11006         * modules/glob (Depends-on): Likewise.
11007         * modules/lseek (Depends-on): Likewise.
11008         * modules/lstat (Depends-on): Likewise.
11009         * modules/mkostemp (Depends-on): Likewise.
11010         * modules/mkostemps (Depends-on): Likewise.
11011         * modules/mkstemp (Depends-on): Likewise.
11012         * modules/mkstemps (Depends-on): Likewise.
11013         * modules/open (Depends-on): Likewise.
11014         * modules/openat (Depends-on): Likewise.
11015         * modules/pread (Depends-on): Likewise.
11016         * modules/pwrite (Depends-on): Likewise.
11017         * modules/scandir (Depends-on): Likewise.
11018         * modules/stat (Depends-on): Likewise.
11019         * modules/tmpfile (Depends-on): Likewise.
11020         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11021         since the containing module now depends on the largefile module.
11022         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11023         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11024         off_t is fixed by gnulib.
11025         * doc/posix-functions/freopen.texi: Likewise.
11026         * doc/posix-functions/fseeko.texi: Likewise.
11027         * doc/posix-functions/fstatat.texi: Likewise.
11028         * doc/posix-functions/ftello.texi: Likewise.
11029         * doc/posix-functions/glob.texi: Likewise.
11030         * doc/posix-functions/lseek.texi: Likewise.
11031         * doc/posix-functions/lstat.texi: Likewise.
11032         * doc/posix-functions/mkstemp.texi: Likewise.
11033         * doc/posix-functions/open.texi: Likewise.
11034         * doc/posix-functions/openat.texi: Likewise.
11035         * doc/posix-functions/pread.texi: Likewise.
11036         * doc/posix-functions/pwrite.texi: Likewise.
11037         * doc/posix-functions/scandir.texi: Likewise.
11038         * doc/posix-functions/stat.texi: Likewise.
11039         * doc/posix-functions/tmpfile.texi: Likewise.
11040         * doc/glibc-functions/mkostemp.texi: Likewise.
11041         * doc/glibc-functions/mkostemps.texi: Likewise.
11042         * doc/glibc-functions/mkstemps.texi: Likewise.
11043
11044 2011-07-25  Bruno Haible  <bruno@clisp.org>
11045
11046         fcntl: Move AC_LIBOBJ invocation to module description.
11047         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11048         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11049
11050         fcntl: Remove call-in from fchdir.m4.
11051         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11052         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11053
11054         dup3: Remove potential call-in from fchdir.m4.
11055         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11056         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11057
11058         dup2: Move AC_LIBOBJ invocation to module description.
11059         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11060         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11061         Don't invoke AC_LIBOBJ.
11062         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11063
11064         dup2: Remove call-in from fchdir.m4.
11065         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11066         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11067
11068         fclose: Move AC_LIBOBJ invocation to module description.
11069         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11070         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11071         to 1.
11072         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11073
11074         fclose: Remove call-in from close.m4.
11075         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11076         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11077
11078         close: Move AC_LIBOBJ invocation to module description.
11079         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11080         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11081         1.
11082         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11083
11084         close: Remove call-in from fchdir.m4.
11085         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11086         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11087
11088         open: Move AC_LIBOBJ invocation to module description.
11089         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11090         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11091         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11092
11093         open: Remove call-in from fchdir.m4.
11094         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11095         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11096
11097         fchdir: Start to remove gl_REPLACE_* idiom.
11098         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11099         (gl_FUNC_FCHDIR): Invoke it.
11100
11101 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11102
11103         * lib/ftell.c (ftell): Comment out cast.
11104
11105         close: use gl_REPLACE_FCLOSE only if defined
11106         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11107         is defined.  The close module doesn't depend on the fclose module
11108         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11110         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11111
11112 2011-07-24  Jim Meyering  <meyering@redhat.com>
11113
11114         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11115         * tests/test-select.h (test_function): Declare as "static".
11116
11117 2011-07-24  Bruno Haible  <bruno@clisp.org>
11118
11119         doc: Mention the effects of AC_SYS_LARGEFILE.
11120         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11121         on this function.
11122         * doc/posix-functions/aio_error.texi: Likewise.
11123         * doc/posix-functions/aio_fsync.texi: Likewise.
11124         * doc/posix-functions/aio_read.texi: Likewise.
11125         * doc/posix-functions/aio_return.texi: Likewise.
11126         * doc/posix-functions/aio_suspend.texi: Likewise.
11127         * doc/posix-functions/aio_write.texi: Likewise.
11128         * doc/posix-functions/fgetpos.texi: Likewise.
11129         * doc/posix-functions/fopen.texi: Likewise.
11130         * doc/posix-functions/freopen.texi: Likewise.
11131         * doc/posix-functions/fsetpos.texi: Likewise.
11132         * doc/posix-functions/fstatvfs.texi: Likewise.
11133         * doc/posix-functions/ftruncate.texi: Likewise.
11134         * doc/posix-functions/ftw.texi: Likewise.
11135         * doc/posix-functions/getrlimit.texi: Likewise.
11136         * doc/posix-functions/glob.texi: Likewise.
11137         * doc/posix-functions/lio_listio.texi: Likewise.
11138         * doc/posix-functions/lockf.texi: Likewise.
11139         * doc/posix-functions/mkstemp.texi: Likewise.
11140         * doc/posix-functions/mmap.texi: Likewise.
11141         * doc/posix-functions/nftw.texi: Likewise.
11142         * doc/posix-functions/openat.texi: Likewise.
11143         * doc/posix-functions/opendir.texi: Likewise.
11144         * doc/posix-functions/posix_fadvise.texi: Likewise.
11145         * doc/posix-functions/posix_fallocate.texi: Likewise.
11146         * doc/posix-functions/pread.texi: Likewise.
11147         * doc/posix-functions/pwrite.texi: Likewise.
11148         * doc/posix-functions/readdir.texi: Likewise.
11149         * doc/posix-functions/readdir_r.texi: Likewise.
11150         * doc/posix-functions/rewinddir.texi: Likewise.
11151         * doc/posix-functions/scandir.texi: Likewise.
11152         * doc/posix-functions/seekdir.texi: Likewise.
11153         * doc/posix-functions/setrlimit.texi: Likewise.
11154         * doc/posix-functions/statvfs.texi: Likewise.
11155         * doc/posix-functions/telldir.texi: Likewise.
11156         * doc/posix-functions/tmpfile.texi: Likewise.
11157         * doc/posix-functions/truncate.texi: Likewise.
11158         * doc/glibc-functions/fallocate.texi: Likewise.
11159         * doc/glibc-functions/fstatfs.texi: Likewise.
11160         * doc/glibc-functions/fts_children.texi: Likewise.
11161         * doc/glibc-functions/fts_read.texi: Likewise.
11162         * doc/glibc-functions/getdirentries.texi: Likewise.
11163         * doc/glibc-functions/mkostemp.texi: Likewise.
11164         * doc/glibc-functions/mkostemps.texi: Likewise.
11165         * doc/glibc-functions/mkstemps.texi: Likewise.
11166         * doc/glibc-functions/preadv.texi: Likewise.
11167         * doc/glibc-functions/pwritev.texi: Likewise.
11168         * doc/glibc-functions/sendfile.texi: Likewise.
11169         * doc/glibc-functions/statfs.texi: Likewise.
11170
11171 2011-07-24  Bruno Haible  <bruno@clisp.org>
11172
11173         doc: Fix typo.
11174         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11175
11176 2011-07-24  Bruno Haible  <bruno@clisp.org>
11177
11178         doc: Mention fsusage.
11179         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11180
11181 2011-07-24  Bruno Haible  <bruno@clisp.org>
11182
11183         doc: Mention new glibc headers and functions.
11184         * doc/glibc-headers/gshadow.texi: New file.
11185         * doc/glibc-functions/endsgent.texi: New file.
11186         * doc/glibc-functions/fgetsgent.texi: New file.
11187         * doc/glibc-functions/fgetsgent_r.texi: New file.
11188         * doc/glibc-functions/getsgent.texi: New file.
11189         * doc/glibc-functions/getsgent_r.texi: New file.
11190         * doc/glibc-functions/getsgnam.texi: New file.
11191         * doc/glibc-functions/getsgnam_r.texi: New file.
11192         * doc/glibc-functions/putsgent.texi: New file.
11193         * doc/glibc-functions/setsgent.texi: New file.
11194         * doc/glibc-functions/sgetsgent.texi: New file.
11195         * doc/glibc-functions/sgetsgent_r.texi: New file.
11196         * doc/glibc-functions/malloc_info.texi: New file.
11197         * doc/glibc-functions/preadv.texi: New file.
11198         * doc/glibc-functions/pwritev.texi: New file.
11199         * doc/glibc-functions/register_printf_modifier.texi: New file.
11200         * doc/glibc-functions/register_printf_specifier.texi: New file.
11201         * doc/glibc-functions/register_printf_type.texi: New file.
11202         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11203         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11204         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11205         * doc/glibc-functions/pthread_getname_np.texi: New file.
11206         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11207         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11208         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11209         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11210         * doc/glibc-functions/pthread_setname_np.texi: New file.
11211         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11212         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11213         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11214         * doc/glibc-functions/qsort_r.texi: New file.
11215         * doc/glibc-functions/quick_exit.texi: New file.
11216         * doc/glibc-functions/syncfs.texi: New file.
11217         * doc/gnulib.texi: Include them.
11218         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11219         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11220         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11221         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11222         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11223         * doc/glibc-functions/execvpe.texi: Likewise.
11224
11225 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11226
11227         ftell: don't include <unistd.h>
11228         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11229         guaranteed to define off_t, and the ftell module depends on the
11230         stdio module.
11231
11232         ftell: do not assume wraparound signed arithmetic
11233         * lib/ftell.c: Include <limits.h>.
11234         (ftell): Don't assume wraparound signed arithmetic.
11235
11236 2011-07-24  Bruno Haible  <bruno@clisp.org>
11237
11238         close: No longer depend on module 'fclose'.
11239         * modules/close (Depends-on): Remove fclose.
11240         * NEWS: Mention the change.
11241         Suggested by Sam Steingold <sds@gnu.org>.
11242
11243 2011-07-24  Bruno Haible  <bruno@clisp.org>
11244
11245         fsusage: Enable large volume support on AIX >= 5.2.
11246         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11247         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11248         instead of STAT_STATVFS.
11249         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11250
11251         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11252         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11253         f_blocks field only on MacOS X.
11254
11255         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11256         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11257         * modules/fsusage (Depends-on): Add largefile.
11258
11259 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11260
11261         * README: Modernize discussion of signed integers.
11262         Assuming overflow wraparound is no longer safe.
11263         Mention ones' complement and signed magnitude.
11264
11265 2011-07-22  Bruno Haible  <bruno@clisp.org>
11266
11267         select tests, pselect tests: Refactor.
11268         * tests/test-select.h: New file, extracted from tests/test-select.c.
11269         (select_fn): New type.
11270         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11271         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11272         test_pipe): Add my_select argument.
11273         (test_function): Renamed from main. Add my_select argument.
11274         * tests/test-select.c: Move most code to tests/test-select.h. Include
11275         test-select.h.
11276         * modules/select-tests (Files): Add tests/test-select.h.
11277         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11278         (my_select, main): New functions.
11279         * modules/pselect-tests (Files): Add tests/test-select.h,
11280         tests/macros.h, tests/signature.h.
11281         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11282         (configure.ac): Check for <sys/wait.h>.
11283
11284 2011-07-22  Bruno Haible  <bruno@clisp.org>
11285
11286         sys_select tests: Check the signature of FD_*.
11287         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11288         signature tests from here...
11289         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11290         here.
11291         * modules/sys_select-tests (Files): Add tests/signature.h.
11292
11293 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11294
11295         largefile: new module, replacing large-inode
11296         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11297         * MODULES.html.sh: Add largefile, remove large-inode.
11298         * modules/largefile, m4/largefile.m4: New files.
11299         * modules/large-inode, m4/large-inode.m4: Remove.
11300
11301         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11302         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11303         implementations that use only 32 bits to count blocks.
11304         On typical hosts with 1024-byte blocks, this fails with file
11305         systems as small as 4 TiB.  Problem reported by Herb Wartens
11306         <http://debbugs.gnu.org/9140> and this should also fix a similar
11307         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11308
11309         large-inode: New module
11310         * MODULES.html.sh: Add it.
11311         * modules/large-inode, m4/large-inode.m4: New files.
11312
11313         extensions: Enable extensions on MacOS X 10.5 and later.
11314         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11315
11316 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11317
11318         file-has-acl: use acl_extended_file_nofollow if available
11319         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11320         (acl_extended_file): New macro.
11321         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11322         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11323
11324 2011-07-21  Bruno Haible  <bruno@clisp.org>
11325
11326         Declare system functions in a way that works with C++.
11327         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11328         declare fdopendir as extern "C".
11329         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11330         declare frexpl as extern "C".
11331         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11332         declare gai_strerror as extern "C".
11333         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11334         programs, declare gai_strerror as extern "C".
11335         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11336         declare getlogin_r as extern "C".
11337         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11338         as extern "C".
11339         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11340         declare ldexpl as extern "C".
11341         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11342         as extern "C".
11343         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11344         program, declare getmntinfo as extern "C".
11345         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11346         stpncpy as extern "C".
11347         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11348         program, declare __xpg_strerror_r as extern "C".
11349         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11350         strndup as extern "C".
11351         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11352         declare memset and bzero as extern "C".
11353         Reported by Sam Steingold <sds@gnu.org>.
11354
11355 2011-07-12  Jim Meyering  <meyering@redhat.com>
11356
11357         maint.mk: prohibit inclusion of "verify.h" without use
11358         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11359
11360 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11361
11362         timer-time: A new module to check for timer_settime()
11363         * m4/timer_time.m4: Check for the posix function.
11364         * modules/timer-time: Add the new module.
11365         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11366         Mention it.
11367
11368 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11369             Bruno Haible  <bruno@clisp.org>
11370
11371         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11372         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11373         not defined, assume POSIX threads and look for pthread_sigmask in
11374         $LIBS, without changing $CPPFLAGS.
11375
11376 2011-07-19  Bruno Haible  <bruno@clisp.org>
11377
11378         strstr: Update cross-compilation guess.
11379         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11380         CPUs, guess no, in view of glibc
11381         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11382         Suggested by Eric Blake. Reported by Reuben Thomas.
11383
11384 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11385
11386         getopt-gnu: suppress core dumps from detection code
11387         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11388         to suppress core dumps that may well occur on glibc systems.
11389         * modules/getopt-gnu: Depend on nocrash.
11390
11391 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11392
11393         pthread_sigmask: ensure usleep is declared
11394         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11395         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11396
11397 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11398
11399         doc: Document NonStop portability issues.
11400         * doc/posix-functions/sigaction.texi (sigaction):
11401         * doc/posix-headers/signal.texi (signal.h):
11402         Document NonStop.  See Joachim Schmitz in
11403         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11404
11405 2011-07-15  Bruno Haible  <bruno@clisp.org>
11406
11407         ffsl, ffsll: Avoid unportable behaviour.
11408         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11409
11410 2011-07-15  Bruno Haible  <bruno@clisp.org>
11411
11412         ffs: More tests.
11413         * tests/test-ffs.c (NBITS): New macro.
11414         (main): Add more tests.
11415         * tests/test-ffsl.c (NBITS): New macro.
11416         (main): Add more tests.
11417         * tests/test-ffsll.c (NBITS): New macro.
11418         (main): Add more tests.
11419
11420 2011-07-15  Eric Blake  <eblake@redhat.com>
11421
11422         ffsl, ffsll: new modules
11423         * modules/ffsl: New file.
11424         * modules/ffsll: Likewise.
11425         * m4/ffsl.m4: Likewise.
11426         * m4/ffsll.m4: Likewise.
11427         * lib/ffsl.c: Likewise.
11428         * lib/ffsl.h: Likewise.
11429         * lib/ffsll.c: Likewise.
11430         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11431         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11432         * modules/string (Makefile.am): Substitute witnesses.
11433         * lib/strings.in.h (ffsl, ffsll): Declare.
11434         * modules/ffsl-tests: New test file.
11435         * modules/ffsll-tests: Likewise.
11436         * tests/test-ffsl.c: Likewise.
11437         * tests/test-ffsll.c: Likewise.
11438         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11439         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11440         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11441
11442         ffs: fix m4 prerequisite
11443         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11444
11445         ffs: avoid undefined behavior
11446         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11447         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11448         Reported by Bruno Haible.
11449
11450 2011-07-12  Bruno Haible  <bruno@clisp.org>
11451
11452         pthread_sigmask: Rely on module 'threadlib'.
11453         * modules/pthread_sigmask (Depends-on): Add threadlib.
11454         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11455         is defined.
11456
11457 2011-07-12  Bruno Haible  <bruno@clisp.org>
11458
11459         regex: Depend on module 'strcase'.
11460         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11461
11462 2011-07-12  Jim Meyering  <meyering@redhat.com>
11463
11464         warn-on-use: fix typo in file name
11465         * modules/snippet/warn-on-use (Files): Correct file name:
11466         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11467
11468 2011-07-12  Bruno Haible  <bruno@clisp.org>
11469
11470         strings: Document module.
11471         * doc/posix-headers/strings.texi: Mention module 'strings'.
11472
11473 2011-07-12  Bruno Haible  <bruno@clisp.org>
11474
11475         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11476         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11477         (Files, Makefile.am): Update.
11478         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11479         * modules/stdlib (Depends-on): Update.
11480
11481 2011-07-12  Bruno Haible  <bruno@clisp.org>
11482
11483         * NEWS: Mention the changes.
11484
11485         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11486         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11487         (Files, Makefile.am): Update.
11488         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11489         * modules/arpa_inet (Depends-on): Update.
11490         * modules/ctype (Depends-on): Update.
11491         * modules/dirent (Depends-on): Update.
11492         * modules/fcntl-h (Depends-on): Update.
11493         * modules/glob (Depends-on): Update.
11494         * modules/iconv-h (Depends-on): Update.
11495         * modules/inttypes-incomplete (Depends-on): Update.
11496         * modules/langinfo (Depends-on): Update.
11497         * modules/locale (Depends-on): Update.
11498         * modules/math (Depends-on): Update.
11499         * modules/netdb (Depends-on): Update.
11500         * modules/poll-h (Depends-on): Update.
11501         * modules/pty (Depends-on): Update.
11502         * modules/search (Depends-on): Update.
11503         * modules/signal (Depends-on): Update.
11504         * modules/spawn (Depends-on): Update.
11505         * modules/stdio (Depends-on): Update.
11506         * modules/stdlib (Depends-on): Update.
11507         * modules/string (Depends-on): Update.
11508         * modules/strings (Depends-on): Update.
11509         * modules/sys_file (Depends-on): Update.
11510         * modules/sys_ioctl (Depends-on): Update.
11511         * modules/sys_select (Depends-on): Update.
11512         * modules/sys_socket (Depends-on): Update.
11513         * modules/sys_stat (Depends-on): Update.
11514         * modules/sys_time (Depends-on): Update.
11515         * modules/sys_times (Depends-on): Update.
11516         * modules/sys_utsname (Depends-on): Update.
11517         * modules/sys_wait (Depends-on): Update.
11518         * modules/termios (Depends-on): Update.
11519         * modules/time (Depends-on): Update.
11520         * modules/unistd (Depends-on): Update.
11521         * modules/wchar (Depends-on): Update.
11522         * modules/wctype-h (Depends-on): Update.
11523         * MODULES.html.sh (Support for building libraries and executables):
11524         Update.
11525
11526         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11527         * modules/snippet/unused-parameter: Renamed from
11528         modules/unused-parameter.
11529         (Files, Makefile.am): Update.
11530         * build-aux/snippet/unused-parameter.h: Renamed from
11531         build-aux/unused-parameter.h.
11532         * modules/selinux-h (Depends-on): Update.
11533         * modules/unistr/base (Depends-on): Update.
11534         * MODULES.html.sh (Core language properties): Update.
11535
11536         Rename module 'link-warning' to 'snippet/link-warning'.
11537         * modules/snippet/link-warning: Renamed from modules/link-warning.
11538         (Files, Makefile.am): Update.
11539         * build-aux/snippet/link-warning.h: Renamed from
11540         build-aux/link-warning.h.
11541         * MODULES.html.sh (Support for building libraries and executables):
11542         Update.
11543
11544         Rename module 'c++defs' to 'snippet/c++defs'.
11545         * modules/snippet/c++defs: Renamed from modules/c++defs.
11546         (Files, Makefile.am): Update.
11547         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11548         * modules/arpa_inet (Depends-on): Update.
11549         * modules/ctype (Depends-on): Update.
11550         * modules/dirent (Depends-on): Update.
11551         * modules/fcntl-h (Depends-on): Update.
11552         * modules/glob (Depends-on): Update.
11553         * modules/iconv-h (Depends-on): Update.
11554         * modules/langinfo (Depends-on): Update.
11555         * modules/locale (Depends-on): Update.
11556         * modules/math (Depends-on): Update.
11557         * modules/netdb (Depends-on): Update.
11558         * modules/poll-h (Depends-on): Update.
11559         * modules/pty (Depends-on): Update.
11560         * modules/search (Depends-on): Update.
11561         * modules/signal (Depends-on): Update.
11562         * modules/spawn (Depends-on): Update.
11563         * modules/stdio (Depends-on): Update.
11564         * modules/stdlib (Depends-on): Update.
11565         * modules/string (Depends-on): Update.
11566         * modules/strings (Depends-on): Update.
11567         * modules/sys_ioctl (Depends-on): Update.
11568         * modules/sys_select (Depends-on): Update.
11569         * modules/sys_socket (Depends-on): Update.
11570         * modules/sys_stat (Depends-on): Update.
11571         * modules/sys_time (Depends-on): Update.
11572         * modules/sys_wait (Depends-on): Update.
11573         * modules/termios (Depends-on): Update.
11574         * modules/time (Depends-on): Update.
11575         * modules/unistd (Depends-on): Update.
11576         * modules/wchar (Depends-on): Update.
11577         * modules/wctype-h (Depends-on): Update.
11578
11579         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11580         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11581         (Files, Makefile.am): Update.
11582         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11583         * modules/argv-iter (Depends-on): Update.
11584         * modules/arpa_inet (Depends-on): Update.
11585         * modules/dirent (Depends-on): Update.
11586         * modules/fcntl-h (Depends-on): Update.
11587         * modules/fnmatch (Depends-on): Update.
11588         * modules/getopt-posix (Depends-on): Update.
11589         * modules/glob (Depends-on): Update.
11590         * modules/iconv-h (Depends-on): Update.
11591         * modules/inttypes-incomplete (Depends-on): Update.
11592         * modules/locale (Depends-on): Update.
11593         * modules/math (Depends-on): Update.
11594         * modules/netdb (Depends-on): Update.
11595         * modules/search (Depends-on): Update.
11596         * modules/signal (Depends-on): Update.
11597         * modules/spawn (Depends-on): Update.
11598         * modules/stdio (Depends-on): Update.
11599         * modules/stdlib (Depends-on): Update.
11600         * modules/string (Depends-on): Update.
11601         * modules/strings (Depends-on): Update.
11602         * modules/sys_socket (Depends-on): Update.
11603         * modules/sys_stat (Depends-on): Update.
11604         * modules/sys_time (Depends-on): Update.
11605         * modules/sys_times (Depends-on): Update.
11606         * modules/sys_utsname (Depends-on): Update.
11607         * modules/time (Depends-on): Update.
11608         * modules/unistd (Depends-on): Update.
11609         * modules/wchar (Depends-on): Update.
11610         * MODULES.html.sh (Support for building libraries and executables):
11611         Update.
11612
11613 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11614
11615         Improvements on _Noreturn and related modules.
11616
11617         modules/_Exit-tests: test _Noreturn too
11618         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11619         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11620         (main): Use them.
11621
11622         stdnoreturn, stdnoreturn-tests: remove modules
11623         They're not needed here and a bit premature for use elsewhere.  See
11624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11625         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11626         * tests/test-stdnoreturn.c: Remove files.
11627         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11628         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11629         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11630         and using noreturn.
11631         * modules/openat, modules/sigpipe-die, modules/xalloc:
11632         * modules/xmemdup0, modules/xstrtol:
11633         Remove dependency on stdnoreturn.
11634
11635         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11636         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11637         Reparenthesize to avoid GCC warning.
11638         Support Microsoft's syntax.
11639         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11640
11641         _Noreturn-tests: remove module
11642         * modules/_Noreturn-tests: Remove.
11643         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11644         * tests/test-_Noreturn.c: Remove.
11645         * tests/test-stdnoreturn.c: Merge from the old
11646         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11647
11648 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11649
11650         _Noreturn, stdnoreturn, and related modules.
11651
11652         * top/maint.mk: Adjust to new noreturn support.
11653         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11654         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11655
11656         xalloc: use stdnoreturn.h
11657         * lib/xalloc.h: Include <stdnoreturn.h>.
11658         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11659         * modules/xalloc (Depends-on): Add stdnoreturn.
11660
11661         xstrtol: use stdnoreturn.h
11662         * lib/xstrtol.h: Include <stdnoreturn.h>.
11663         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11664         * modules/xstrtol (Depends-on): Add stdnoreturn.
11665
11666         xmemdup0: use stdnoreturn.h
11667         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11668         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11669         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11670
11671         sigpipe-die: use stdnoreturn.h
11672         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11673         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11674         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11675
11676         openat: use stdnoreturn.h
11677         * lib/openat.h: Include <stdnoreturn.h>.
11678         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11679         * modules/openat (Depends-on): Add stdnoreturn.
11680
11681         * lib/openat-die.c (openat_save_fail): Modernize comment.
11682
11683         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11684
11685         * lib/glthread/thread.h: Modernize comment.
11686
11687         obstack: use _Noreturn
11688         * lib/obstack.c (__attribute__): Remove macro.
11689         (print_and_abort): Use _Noreturn.
11690
11691         c-stack: use _Noreturn
11692         * lib/c-stack.c (die, overflow_handler, segv_handler):
11693         Use _Noreturn rather than __attribute__((noreturn)).
11694
11695         argmatch-tests, exclude_tests: use _Noreturn
11696         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11697         Remove.
11698         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11699
11700         stdlib: use _Noreturn
11701         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11702         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11703         * modules/stdlib (Depends-on): Add _Noreturn.
11704         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11705
11706         stdnoreturn-tests: new module
11707         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11708
11709         stdnoreturn: new module
11710         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11711         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11712
11713         _Noreturn-tests: new module
11714         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11715
11716         _Noreturn: new module
11717         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11718         New section, mentioning it.
11719         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11720
11721         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11722
11723 2011-07-11  Eric Blake  <eblake@redhat.com>
11724
11725         ffs: new module
11726         * modules/ffs: New file.
11727         * m4/ffs.m4: Likewise.
11728         * lib/ffs.c: Likewise.
11729         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11730         * modules/strings (Makefile.am): Substitute witness.
11731         (Depends-on): Add c++defs.
11732         * lib/strings.in.h (ffs): Declare.
11733         * modules/ffs-tests: New test file.
11734         * tests/test-ffs.c: Test new module.
11735         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11736         * doc/posix-functions/ffs.texi (ffs): Likewise.
11737
11738         regex: avoid compiler warning
11739         * lib/regex.c (includes): Include <strings.h>, for use of
11740         strcasecmp in regcomp.c.
11741         Reported by Joachim Schmitz.
11742
11743 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11744
11745         stdint: respect system's intmax_t if INTMAX_MAX
11746         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11747         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11748         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11749         long but int64_t is long long, and where we will clash with the
11750         system intmax_t if we override it.  See
11751         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11752         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11753         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11754         similarly for UINTMAX_C.
11755
11756 2011-07-08  Bruno Haible  <bruno@clisp.org>
11757
11758         pthread_sigmask tests: Avoid a compiler warning.
11759         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11760         non-zero.
11761
11762         sigprocmask tests: A better way to avoid a compiler warning.
11763         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11764         (main): Complain if system() returns non-zero.
11765         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11766
11767 2011-07-08  Bruno Haible  <bruno@clisp.org>
11768
11769         pthread_sigmask: Work around IRIX bug.
11770         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11771         bug.
11772         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11773         there may be unblocked pending signals.
11774         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11775
11776 2011-07-08  Bruno Haible  <bruno@clisp.org>
11777
11778         pthread_sigmask: Work around Cygwin bug.
11779         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11780         bug.
11781         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11782         the system's pthread_sigmask function.
11783         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11784
11785 2011-07-08  Bruno Haible  <bruno@clisp.org>
11786
11787         pthread_sigmask: Work around bug in single-threaded implementation.
11788         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11789         FreeBSD, HP-UX, Solaris bug.
11790         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11791         * lib/pthread_sigmask.c: Include <stddef.h>.
11792         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11793         the system's pthread_sigmask function.
11794         * modules/pthread_sigmask (configure.ac): Invoke
11795         gl_PREREQ_PTHREAD_SIGMASK.
11796         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11797         HP-UX, Solaris.
11798
11799 2011-07-08  Eric Blake  <eblake@redhat.com>
11800
11801         test-sigprocmask: avoid compiler warning
11802         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11803         * tests/test-sigprocmask.c (main): Use it to silence warning.
11804         Reported by Jim Meyering.
11805
11806         test-snprintf: avoid compiler warning
11807         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11808         * tests/test-vsnprintf.c (main): Likewise.
11809         Reported by Jim Meyering.
11810
11811 2011-07-08  Bruno Haible  <bruno@clisp.org>
11812
11813         Tests for module 'pthread_sigmask'.
11814         * modules/pthread_sigmask-tests: New file.
11815         * tests/test-pthread_sigmask1.c: New file, based on
11816         tests/test-sigprocmask.c.
11817         * tests/test-pthread_sigmask2.c: New file.
11818
11819 2011-07-08  Jim Meyering  <meyering@redhat.com>
11820
11821         test-getopt.h: avoid warning about an unused variable
11822         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11823
11824 2011-07-07  Jim Meyering  <meyering@redhat.com>
11825
11826         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11827         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11828         now that it no longer contains leading TABs.
11829         Remove unused "url=FIXME" statement.
11830
11831 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11832
11833         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11834         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11835         When gl_THREADLIB is not in use, assume that the POSIX sematics
11836         are desired.  This is better for Emacs, which uses POSIX semantics
11837         on GNUish and/or POSIXish platforms, and does not use threads at
11838         all otherwise.
11839
11840         pthread_sigmask: fix typo when testing for libraries
11841         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11842         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11843
11844 2011-07-08  Eric Blake  <eblake@redhat.com>
11845
11846         fts: introduce FTS_NOATIME
11847         * lib/fts_.h (FTS_NOATIME): New bit flag.
11848         (FTS_OPTIONMASK): Adjust.
11849         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11850         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11851
11852 2011-07-08  Bruno Haible  <bruno@clisp.org>
11853
11854         Tests for module 'thread'.
11855         * modules/thread-tests: New file.
11856         * tests/test-thread_self.c: New file.
11857         * tests/test-thread_create.cc: New file.
11858
11859 2011-07-08  Bruno Haible  <bruno@clisp.org>
11860
11861         thread: Avoid gcc warnings when using gl_thread_self().
11862         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11863         'void *'.
11864         (gl_thread_self_pointer): Update.
11865
11866 2011-07-07  Bruno Haible  <bruno@clisp.org>
11867
11868         signal-c++-tests: Check declaration of pthread_sigmask.
11869         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11870         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11871         $(LIB_PTHREAD_SIGMASK).
11872
11873 2011-07-07  Bruno Haible  <bruno@clisp.org>
11874
11875         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11876         * lib/signal.in.h (pthread_sigmask): Override if
11877         REPLACE_PTHREAD_SIGMASK is 1.
11878         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11879         REPLACE_PTHREAD_SIGMASK.
11880         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11881         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11882         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11883         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11884         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11885
11886 2011-07-07  Bruno Haible  <bruno@clisp.org>
11887
11888         pthread_sigmask: Ensure declaration in <signal.h>.
11889         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11890         include <pthread.h>.
11891         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11892         problem.
11893
11894 2011-07-07  Bruno Haible  <bruno@clisp.org>
11895
11896         pthread_sigmask: Document the module.
11897         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11898
11899 2011-07-07  Bruno Haible  <bruno@clisp.org>
11900
11901         pthread_sigmask: Follow gnulib conventions.
11902         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11903         gl_PTHREAD_SIGMASK.
11904         * modules/pthread_sigmask (configure.ac): Update.
11905
11906 2011-07-07  Bruno Haible  <bruno@clisp.org>
11907
11908         pthread_sigmask: Make declaration C++ safe.
11909         * lib/signal.in.h: In two special conditions, just do an #include_next.
11910         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11911         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11912         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11913         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11914         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11915         not REPLACE_PTHREAD_MASK.
11916         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11917         not REPLACE_PTHREAD_MASK.
11918         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11919
11920 2011-07-07  Bruno Haible  <bruno@clisp.org>
11921
11922         pthread_sigmask: Fix return value.
11923         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11924         * lib/pthread_sigmask.c: New file.
11925         * modules/pthread_sigmask (Files): Add it.
11926         (configure.ac): Invoke AC_LIBOBJ.
11927
11928 2011-07-07  Eric Blake  <eblake@redhat.com>
11929
11930         getopt: more portable argv creation
11931         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11932         const, use char arrays rather than strings.
11933         Suggested by Paul Eggert.
11934
11935 2011-07-07  Bruno Haible  <bruno@clisp.org>
11936
11937         Tests for module 'sigprocmask'.
11938         * modules/sigprocmask-tests: New file.
11939         * tests/test-sigprocmask.c: New file.
11940
11941 2011-07-07  Bruno Haible  <bruno@clisp.org>
11942
11943         float tests: Tweak.
11944         * tests/test-float.c (main): Tweak skip message.
11945
11946 2011-07-07  Eric Blake  <eblake@redhat.com>
11947
11948         getopt: avoid compiler warning during configure
11949         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11950         assigning string literals to non-const pointer.
11951
11952         getopt-gnu: avoid crash in glibc getopt
11953         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11954         * tests/test-getopt.h (test_getopt): Enhance test.
11955         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11956         * doc/posix-functions/getopt.texi (getopt): Document it.
11957         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11958         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11959         Likewise.
11960
11961 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11962
11963         getopt: handle W; without long options in getopt [BZ #12922]
11964         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11965         but no long options are defined, just return 'W'.
11966
11967 2011-07-07  Bruno Haible  <bruno@clisp.org>
11968
11969         Avoid literal tabs.
11970         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11971         variable containing a tab instead of a literal tab.
11972         Reported by Jim Meyering.
11973
11974 2011-07-07  Bruno Haible  <bruno@clisp.org>
11975
11976         Comments.
11977         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11978
11979 2011-07-06  Bruno Haible  <bruno@clisp.org>
11980
11981         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11982         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11983         <winsock2.h>.
11984         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11985         lib/sys_socket.in.h.
11986         (close, gethostname): Hide declarations from <winsock2.h>.
11987         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11988         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11989         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11990         (select): Don't override if gnulib's <sys/select.h> was already
11991         included.
11992         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11993         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11994         setsockopt, shutdown, select): Tweak indentation.
11995
11996 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11997
11998         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11999         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12000         in an application that does not use the sys_select module.
12001
12002 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12003
12004         poll: do not return 0 on timeout=-1
12005         * lib/poll.c: Loop with yield if no events occured
12006
12007 2011-07-06  Eric Blake  <eblake@redhat.com>
12008
12009         pthread_sigmask: always replace when not using pthread
12010         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12011         replacement when using some threading other than pthread.  Fix
12012         logic bug.
12013
12014 2011-07-06  Bruno Haible  <bruno@clisp.org>
12015
12016         Comments.
12017         * m4/printf.m4: Update comments about mingw.
12018
12019 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12020
12021         sys_select: define sigset_t more portably
12022         * lib/sys_select.in.h: Always include <sys/types.h>, since
12023         we now need sigset_t and mingw defines it there.
12024         Include <signal.h> before split inclusion guard, to avoid
12025         mishaps on Solaris, whose <signal.h> eventually includes us.
12026         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12027         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12028         which come from ...
12029         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12030         gl_CHECK_TYPE_SIGSET_T.
12031         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12032         does the real work.
12033         * modules/sys_select (Depends-on): Add 'signal'.
12034
12035         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12036         Suggested by Bruno Haible.
12037
12038         pselect: Use pthread_sigmask, not sigprocmask.
12039         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12040         multithreaded apps better than sigprocmask does.
12041         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12042         sigprocmask directly.
12043
12044 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12045
12046         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12047         Don't #undef,  since we don't need any underlying pselect.
12048         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12049         (Depends-on): Add select.
12050         (Link): Add $(LIBSOCKET).
12051         These changes suggested by Bruno Haible.
12052
12053         pselect: document better
12054         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12055         * doc/posix-functions/pselect.texi (pselect): Document new module.
12056
12057         pthread_sigmask: new module
12058         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12059         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12060         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12061         This is done only as a macro; I don't know how well that'll
12062         work for C++.  Move <sys/types.h> include before the include_next,
12063         to avoid mishap on Solaris.
12064         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12065         * modules/signal (Makefile.am): Substitute the check's results.
12066         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12067
12068         test-pselect: new module
12069         * modules/pselect-tests, tests/test-pselect.c: New files.
12070         * tests/test-select.c, tests/test-sys_select-c++.cc:
12071         If TEST_PSELECT is defined, test pselect instead of testing select.
12072
12073         * tests/test-sys_select.c (sigset_t): Test for it, too.
12074         Suggested by Bruno Haible.
12075
12076 2011-07-05  Eric Blake  <eblake@redhat.com>
12077
12078         snprintf: guarantee %1$d, for libintl
12079         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12080         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12081         * doc/posix-functions/snprintf.texi (snprintf): Update.
12082         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12083         * tests/test-snprintf.c (main): Enhance test.
12084         * tests/test-vsnprintf.c (main): Likewise.
12085
12086 2011-07-05  Jim Meyering  <meyering@redhat.com>
12087
12088         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12089         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12090         per Bruno's request, to accommodate this idiom (no space after "#")
12091         even when the function is inside an #if block:
12092         char *
12093         gets (char *s)
12094         #undef gets
12095         {
12096           ...
12097         }
12098
12099 2011-07-04  Jim Meyering  <meyering@redhat.com>
12100
12101         maint: indent with spaces, not TABs, and add a rule to check this
12102         * tests/test-userspec.c: Indent with spaces, not TABs.
12103         * tests/test-argp.c: Likewise.
12104         * tests/test-c-stack2.sh: Likewise.
12105         * tests/test-parse-duration.sh: Likewise
12106         * m4/strtod.m4: Likewise.
12107         * m4/alloca.m4: Likewise.
12108         * m4/pselect.m4: Likewise.
12109         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12110
12111 2011-07-03  Jim Meyering  <meyering@redhat.com>
12112
12113         maint.mk: correct omissions in prohibit_argmatch_without_use check
12114         This rule would mistakenly report that argmatch.h is included without
12115         use even when both the argmatch and invalid_arg macro were used.
12116         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12117         of argmatch and invalid_arg.
12118
12119 2011-07-03  Bruno Haible  <bruno@clisp.org>
12120
12121         Comments about EINTR.
12122         * lib/safe-read.h: Explain the purpose of this module.
12123         * lib/safe-write.h: Likewise.
12124         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12125         module.
12126         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12127         module.
12128         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12129
12130 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12131
12132         xnanosleep: Rewrite to use new dtotimespec module.
12133         It has the conversion code that used to be in xnanosleep.
12134         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12135         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12136         (TIME_T_MAX): Remove.
12137         (xnanosleep): Rewrite in terms of dtotimespec.
12138         * modules/xnanosleep (Depends-on): Add dtotimespec.
12139         Remove intprops, stdbool.
12140
12141         timespec-add, timespec-sub: new modules
12142         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12143         * lib/timespec-add.c, lib/timespec-sub.c:
12144         * modules/timespec-add, modules/timespec-sub: New files.
12145
12146         dtotimespec: new module
12147         * lib/timespec.h (dtotimespec): New decl.
12148         * lib/dtotimespec.c, modules/dtotimespec: New files.
12149
12150         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12151
12152         pselect: new module
12153         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12154         (pselect): New decls.
12155         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12156         since the standard pselect decl uses 'restrict'.
12157         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12158         HAVE_PSELECT, REPLACE_PSELECT.
12159         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12160         HAVE_PSELECT, REPLACE_PSELECT.
12161         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12162
12163         sys_select: don't depend on sys_socket
12164         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12166         This fix works on GNU and GNU-like platforms, but has not been tested
12167         on native Windows.
12168         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12169         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12170         gl_HEADER_SYS_SOCKET.
12171         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12172         gl_PREREQ_SYS_H_WINSOCK2.
12173
12174 2011-06-29  Eric Blake  <eblake@redhat.com>
12175
12176         pipe2: fix C89 compile problem
12177         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12178         Reported by Bruno Haible.
12179
12180         pipe, pipe2: don't corrupt fd on error
12181         * lib/pipe.c (pipe): Leave fd unchanged on error.
12182         * lib/pipe2.c (pipe2): Likewise.
12183         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12184         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12185
12186 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12187
12188         mmap-anon: do not use regular expressions inadvertently
12189         * m4/mmap-anon.m4: Remove trailing period from strings sought
12190         in the output.
12191
12192 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12193
12194         nanosleep: fix integer overflow problem
12195         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12196         arithmetic wraps around on overflow.
12197
12198         nanosleep: simplify carrying
12199         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12200         first call to the underyling nanosleep, not for the last one.
12201         This doesn't fix any bugs, but it simplifies the computation of
12202         the remaining delay.  Found while auditing integer overflow issues.
12203
12204         dup2: remove test for existence of fcntl
12205         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12206         "#if HAVE_FCNTL", in the configure-time test program.
12207         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12208         and therefore speeds up "configure" a bit.  Found while
12209         adding the dup2 module to Emacs.
12210
12211 2011-06-24  Eric Blake  <eblake@redhat.com>
12212
12213         maint.mk: enhance useless header checks
12214         * top/maint.mk (_sc_header_without_use): Check both include
12215         styles.
12216         (sc_prohibit_assert_without_use)
12217         (sc_prohibit_close_stream_without_use)
12218         (sc_prohibit_getopt_without_use)
12219         (sc_prohibit_quotearg_without_use)
12220         (sc_prohibit_quote_without_use)
12221         (sc_prohibit_long_options_without_use)
12222         (sc_prohibit_inttostr_without_use)
12223         (sc_prohibit_ignore_value_without_use)
12224         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12225         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12226         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12227         (sc_prohibit_hash_pjw_without_use)
12228         (sc_prohibit_safe_read_without_use)
12229         (sc_prohibit_argmatch_without_use)
12230         (sc_prohibit_canonicalize_without_use)
12231         (sc_prohibit_root_dev_ino_without_use)
12232         (sc_prohibit_openat_without_use)
12233         (sc_prohibit_c_ctype_without_use)
12234         (sc_prohibit_signal_without_use)
12235         (sc_prohibit_stdio--_without_use)
12236         (sc_prohibit_stdio-safer_without_use)
12237         (sc_prohibit_strings_without_use)
12238         (sc_prohibit_intprops_without_use)
12239         (sc_prohibit_stddef_without_use)
12240         (sc_prohibit_xfreopen_without_use): Update clients.
12241
12242 2011-06-24  Jim Meyering  <meyering@redhat.com>
12243
12244         syntax-check: keep one maint.mk rule in sync with its header
12245         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12246         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12247         I prefer to avoid temporary files here, so use <(...), but that
12248         is not supported by /bin/sh, so...
12249         (SHELL): Define to /bin/bash.
12250
12251 2011-06-24  Eric Blake  <eblake@redhat.com>
12252
12253         maint.mk: update sc_prohibit_intprops_without_use
12254         * top/maint.mk (_intprops_names): Match recent changes.
12255
12256 2011-06-24  Bruno Haible  <bruno@clisp.org>
12257
12258         strerror-override: No-op tweak.
12259         * lib/strerror-override.h (strerror_override): Reorder conditions,
12260         for consistency with lib/strerror-override.c.
12261
12262 2011-06-23  Eric Blake  <eblake@redhat.com>
12263
12264         maint.mk: test further PATH_MAX issues
12265         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12266         (sc_prohibit_path_max_allocation): ...and also test alloca.
12267         Suggested by Jim Meyering.
12268
12269 2011-06-22  Eric Blake  <eblake@redhat.com>
12270
12271         maint.mk: add syntax-check to avoid char[PATH_MAX]
12272         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12273
12274         stat: be robust to PATH_MAX definition
12275         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12276         * modules/stat (Depends-on): Add verify.
12277
12278         link: work around IRIX bug
12279         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12280         * lib/link.c (rpl_link): Work around it.
12281         * tests/test-link.h (test_link): Enhance test.
12282         * doc/posix-functions/link.texi (link): Document the bug.
12283
12284         getopt: silence clang warning
12285         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12286         dereference.
12287         Reported by Gustavo Martin Domato.
12288
12289 2011-06-22  Jim Meyering  <meyering@redhat.com>
12290
12291         bootstrap: do not insert a blank line into each .gitignore file
12292         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12293
12294 2011-06-21  Eric Blake  <eblake@redhat.com>
12295
12296         perror: test for output mismatch
12297         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12298         perror on IRIX.
12299
12300         strerror_r: fix OpenBSD behavior on out-of-range
12301         * lib/strerror_r.c (strerror_r): Always use maximal string.
12302         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12303
12304         strerror_r: fix OpenBSD behavior on 0
12305         * lib/strerror-override.c (strerror_override): Also override 0
12306         when needed.
12307         * lib/strerror-override.h (strerror_override): Likewise.
12308         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12309         earlier.
12310         * lib/strerror_r.c (strerror_r): Likewise.
12311         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12312         behavior...
12313         (gl_FUNC_STRERROR_0): ...into new macro.
12314         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12315         is overridden.
12316         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12317         * modules/strerror-override (Files): Add strerror.m4.
12318         (configure.ac): Also provide override for 0 when needed.
12319         * doc/posix-functions/strerror.texi (strerror): Document this.
12320         * doc/posix-functions/perror.texi (perror): Likewise.
12321
12322         perror: adjust array size
12323         * modules/perror (Depends-on): Add strerror-override.
12324         * lib/perror.c (perror): Use it to avoid magic number.
12325
12326         strerror-override: reduce size
12327         * lib/strerror-override.c (strerror_override): Use fewer lines.
12328
12329 2011-06-20  Bruno Haible  <bruno@clisp.org>
12330
12331         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12332         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12333
12334 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12335
12336         alloca: port to compilers that can optimize like GCC 4.6.0
12337         * lib/alloca.c (find_stack_direction): New signature, taken from
12338         Autoconf git.  This works with GCC 4.6.0.  This code should never
12339         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12340         be used with other compilers that optimize as well as GCC 4.6.0 does.
12341         (alloca): Adjust to new signature.
12342         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12343         New macro, which patches Autoconf in a similar way.
12344
12345         c-stack: stop worrying about stack direction
12346         * lib/c-stack.c (find_stack_direction): Remove.
12347         (segv_handler): Don't worry about stack direction growth, as it's
12348         too much of a pain to configure this correctly, given how compilers
12349         are optimizing-away our stack-growth detection code.  Instead, assume
12350         that any access to just before or just after the stack is OK.
12351         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12352         Don't require AC_FUNC_ALLOCA; no longer needed.
12353
12354 2011-06-20  Eric Blake  <eblake@redhat.com>
12355
12356         test-stat: don't allocate PATH_MAX bytes
12357         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12358         PATH_MAX-sized buffer.
12359         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12360         * modules/stat-tests (Depends-on): Likewise.
12361         * tests/test-fstatat.c (includes): Drop pathmax.h.
12362         * tests/test-stat.c (includes): Likewise.
12363         Reported by Bruno Haible.
12364
12365 2011-06-20  Bruno Haible  <bruno@clisp.org>
12366
12367         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12368         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12369         * lib/float.c: New file.
12370         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12371         REPLACE_FLOAT_LDBL.
12372         * modules/float (Files): Add lib/float.c.
12373         (configure.ac): Invoke AC_LIBOBJ.
12374         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12375
12376 2011-06-20  Bruno Haible  <bruno@clisp.org>
12377
12378         Tests for module 'float'.
12379         * modules/float-tests: New file.
12380         * tests/test-float.c: New file.
12381
12382 2011-06-19  Bruno Haible  <bruno@clisp.org>
12383
12384         isinf: Coding style.
12385         * lib/isinf.c: Use GNU coding style.
12386
12387 2011-06-19  Bruno Haible  <bruno@clisp.org>
12388
12389         linkat test: Avoid test failure on AIX 7.1.
12390         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12391         * tests/test-link.h (test_link): Likewise.
12392
12393 2011-06-19  Bruno Haible  <bruno@clisp.org>
12394
12395         pread test: Avoid test failure on OpenBSD 4.9.
12396         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12397
12398 2011-06-19  Bruno Haible  <bruno@clisp.org>
12399
12400         sprintf-posix: Fix test failure on AIX 7.1.
12401         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12402         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12403         on AIX.
12404         * doc/posix-functions/fprintf.texi: Likewise.
12405         * doc/posix-functions/printf.texi: Likewise.
12406         * doc/posix-functions/snprintf.texi: Likewise.
12407         * doc/posix-functions/sprintf.texi: Likewise.
12408         * doc/posix-functions/vdprintf.texi: Likewise.
12409         * doc/posix-functions/vfprintf.texi: Likewise.
12410         * doc/posix-functions/vprintf.texi: Likewise.
12411         * doc/posix-functions/vsnprintf.texi: Likewise.
12412         * doc/posix-functions/vsprintf.texi: Likewise.
12413
12414 2011-06-19  Bruno Haible  <bruno@clisp.org>
12415
12416         roundl-ieee: Fix test failure on AIX 7.1.
12417         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12418         * doc/posix-functions/roundl.texi: Mention problem with negative
12419         arguments.
12420
12421 2011-06-19  Bruno Haible  <bruno@clisp.org>
12422
12423         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12424         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12425         * doc/posix-functions/round.texi: Mention problem with negative
12426         arguments.
12427         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12428
12429 2011-06-19  Bruno Haible  <bruno@clisp.org>
12430
12431         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12432         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12433         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12434         * doc/posix-functions/roundf.texi: Mention problem with negative
12435         arguments.
12436         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12437
12438 2011-06-19  Bruno Haible  <bruno@clisp.org>
12439
12440         ceilf-ieee: Work around bug on MacOS X 10.5.
12441         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12442
12443         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12444         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12445         IEEE compliant, avoid compiler optimizations.
12446         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12447         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12448         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12449         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12450         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12451         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12452         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12453         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12454         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12455         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12456
12457 2011-06-19  Bruno Haible  <bruno@clisp.org>
12458
12459         ceilf-ieee: Work around bug on AIX 7.1.
12460         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12461         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12462
12463 2011-06-19  Bruno Haible  <bruno@clisp.org>
12464
12465         ceil-ieee: Work around bug on AIX 7.1.
12466         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12467         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12468
12469 2011-06-18  Bruno Haible  <bruno@clisp.org>
12470
12471         fsync test: Avoid test failure on MacOS X and AIX.
12472         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12473         EINVAL.
12474
12475 2011-06-18  Bruno Haible  <bruno@clisp.org>
12476
12477         openat, fdopendir tests: Fix link errors.
12478         * modules/openat-tests (Depends-on): Add progname.
12479         * modules/fdopendir-tests (Depends-on): Likewise.
12480         * tests/test-fchownat.c: Include progname.h.
12481         (main): Call set_program_name.
12482         * tests/test-fstatat.c: Include progname.h.
12483         (main): Call set_program_name.
12484         * tests/test-mkdirat.c: Include progname.h.
12485         (main): Call set_program_name.
12486         * tests/test-openat.c: Include progname.h.
12487         (main): Call set_program_name.
12488         * tests/test-unlinkat.c: Include progname.h.
12489         (main): Call set_program_name.
12490         * tests/test-fdopendir.c: Include progname.h.
12491         (main): Call set_program_name.
12492
12493 2011-06-18  Bruno Haible  <bruno@clisp.org>
12494
12495         Doc update.
12496         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12497         HP-UX.
12498         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12499
12500 2011-06-18  Bruno Haible  <bruno@clisp.org>
12501
12502         getcwd tests: Avoid compilation error on HP-UX 11.31.
12503         * modules/getcwd-tests (Depends-on): Add pathmax.
12504         * tests/test-getcwd.c: Include pathmax.h.
12505
12506 2011-06-18  Bruno Haible  <bruno@clisp.org>
12507
12508         isfinite, isinf: Fix link error on AIX 6 and 7.
12509         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12510         needed, also test the macro with a 'float' argument.
12511         * m4/isinf.m4 (gl_ISINF): Likewise.
12512
12513 2011-06-18  Bruno Haible  <bruno@clisp.org>
12514
12515         getloadavg: Don't clobber LIBS. Regression from previous commit.
12516         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12517         AC_CHECK_LIB from here...
12518         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12519         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12520         gl_func_getloadavg_done.
12521         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12522
12523 2011-06-18  Bruno Haible  <bruno@clisp.org>
12524
12525         clean-temp: Improve documentation.
12526         * lib/clean-temp.h: Explain better how to use this module.
12527         Reported by John Darrington <john@darrington.wattle.id.au>.
12528
12529 2011-06-17  Bruno Haible  <bruno@clisp.org>
12530
12531         pread, pwrite: Avoid cc warning on AIX.
12532         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12533         (pwrite): Likewise.
12534
12535 2011-06-17  Bruno Haible  <bruno@clisp.org>
12536
12537         spawn-pipe tests: Fix link error.
12538         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12539         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12540
12541 2011-06-17  Bruno Haible  <bruno@clisp.org>
12542
12543         Tests: Remove unnecessary dependency.
12544         * modules/canonicalize-tests (Depends-on): Remove progname.
12545         * modules/chown-tests (Depends-on): Likewise.
12546         * modules/dirname-tests (Depends-on): Likewise.
12547         * modules/fdopendir-tests (Depends-on): Likewise.
12548         * modules/fdutimensat-tests (Depends-on): Likewise.
12549         * modules/hash-tests (Depends-on): Likewise.
12550         * modules/lchown-tests (Depends-on): Likewise.
12551         * modules/linkat-tests (Depends-on): Likewise.
12552         * modules/renameat-tests (Depends-on): Likewise.
12553         * modules/spawn-pipe-tests (Depends-on): Likewise.
12554         * modules/utimensat-tests (Depends-on): Likewise.
12555
12556 2011-06-17  Bruno Haible  <bruno@clisp.org>
12557
12558         spawn-pipe tests: Fix link error.
12559         * tests/test-spawn-pipe-child.c: Undefine fflush.
12560
12561 2011-06-17  Bruno Haible  <bruno@clisp.org>
12562
12563         Fix tests link errors.
12564         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12565         * modules/chown-tests (Makefile.am): Don't link test-chown with
12566         LIBINTL.
12567         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12568         LIBINTL.
12569         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12570         LIBINTL.
12571         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12572         LIBINTL.
12573
12574 2011-06-16  Bruno Haible  <bruno@clisp.org>
12575
12576         crypto/gc-sha1: Fix recent regression.
12577         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12578         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12579
12580         crypto/gc-md5: Fix recent regression.
12581         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12582
12583         crypto/gc-md4: Fix recent regression.
12584         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12585         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12586
12587         crypto/gc-arctwo: Fix recent regression.
12588         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12589         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12590
12591         crypto/gc-rijndael: Fix recent regression.
12592         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12593         (configure.ac): Invoke AC_LIBOBJ here.
12594         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12595         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12596
12597         crypto/gc-hmac-sha1: Fix recent regression.
12598         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12599         (configure.ac): Invoke AC_LIBOBJ here.
12600         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12601         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12602
12603         crypto/gc-hmac-md5: Fix recent regression.
12604         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12605         (configure.ac): Invoke AC_LIBOBJ here.
12606         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12607         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12608
12609         crypto/gc-des: Fix recent regression.
12610         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12611         (configure.ac): Invoke AC_LIBOBJ here.
12612         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12613         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12614
12615         crypto/gc-arcfour: Fix recent regression.
12616         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12617         (configure.ac): Invoke AC_LIBOBJ here.
12618         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12619         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12620
12621 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12622
12623         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12624         After the 2011-05-21 change, this macro requires
12625         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12626         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12627
12628 2011-06-16  Bruno Haible  <bruno@clisp.org>
12629
12630         fprintftime: Move AC_LIBOBJ invocations to module description.
12631         * m4/fprintftime.m4: Remove file.
12632         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12633         (configure.ac): Remove gl_FPRINTFTIME call.
12634         (Makefile.am): Augment lib_SOURCES.
12635         Reported by Jim Meyering.
12636
12637 2011-06-16  Bruno Haible  <bruno@clisp.org>
12638
12639         tmpfile-safer: Finish 2011-05-23 commit.
12640         * m4/stdio-safer.m4: Really remove file.
12641         Reported by Jim Meyering.
12642
12643 2011-06-16  Bruno Haible  <bruno@clisp.org>
12644
12645         syntax-check: Fix typo.
12646         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12647         printf-posix.m4.
12648         Reported by Jim Meyering.
12649
12650 2011-06-13  Jim Meyering  <meyering@redhat.com>
12651
12652         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12653         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12654
12655 2011-05-23  Bruno Haible  <bruno@clisp.org>
12656
12657         yesno: Move AC_LIBOBJ invocations to module description.
12658         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12659         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12660
12661 2011-05-23  Bruno Haible  <bruno@clisp.org>
12662
12663         xstrtol: Move AC_LIBOBJ invocations to module description.
12664         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12665         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12666
12667 2011-05-23  Bruno Haible  <bruno@clisp.org>
12668
12669         xstrtold: Move AC_LIBOBJ invocations to module description.
12670         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12671         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12672
12673 2011-05-23  Bruno Haible  <bruno@clisp.org>
12674
12675         xstrtod: Move AC_LIBOBJ invocations to module description.
12676         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12677         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12678
12679 2011-05-23  Bruno Haible  <bruno@clisp.org>
12680
12681         xnanosleep: Move AC_LIBOBJ invocations to module description.
12682         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12683         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12684
12685 2011-05-23  Bruno Haible  <bruno@clisp.org>
12686
12687         xgetcwd: Move AC_LIBOBJ invocations to module description.
12688         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12689         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12690
12691 2011-05-23  Bruno Haible  <bruno@clisp.org>
12692
12693         xalloc: Move AC_LIBOBJ invocations to module description.
12694         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12695         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12696
12697 2011-05-23  Bruno Haible  <bruno@clisp.org>
12698
12699         write-any-file: Move AC_LIBOBJ invocations to module description.
12700         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12701         invocation.
12702         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12703
12704 2011-05-23  Bruno Haible  <bruno@clisp.org>
12705
12706         utimens: Move AC_LIBOBJ invocations to module description.
12707         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12708         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12709
12710 2011-05-23  Bruno Haible  <bruno@clisp.org>
12711
12712         utimecmp: Move AC_LIBOBJ invocations to module description.
12713         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12714         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12715
12716 2011-05-23  Bruno Haible  <bruno@clisp.org>
12717
12718         userspec: Move AC_LIBOBJ invocations to module description.
12719         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12720         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12721
12722 2011-05-23  Bruno Haible  <bruno@clisp.org>
12723
12724         unlinkdir: Move AC_LIBOBJ invocations to module description.
12725         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12726         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12727
12728 2011-05-23  Bruno Haible  <bruno@clisp.org>
12729
12730         unistd-safer: Move AC_LIBOBJ invocations to module description.
12731         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12732         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12733
12734 2011-05-23  Bruno Haible  <bruno@clisp.org>
12735
12736         tempname: Move AC_LIBOBJ invocations to module description.
12737         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12738         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12739
12740 2011-05-23  Bruno Haible  <bruno@clisp.org>
12741
12742         strftime: Move AC_LIBOBJ invocations to module description.
12743         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12744         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12745
12746 2011-05-23  Bruno Haible  <bruno@clisp.org>
12747
12748         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12749         * m4/stdlib-safer.m4: Remove file.
12750         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12751         (configure.ac): Remove gl_STDLIB_SAFER call.
12752         (Makefile.am): Augment lib_SOURCES.
12753
12754 2011-05-23  Bruno Haible  <bruno@clisp.org>
12755
12756         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12757         * m4/stdio-safer.m4: Remove file.
12758         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12759         (configure.ac): Remove gl_TMPFILE_SAFER call.
12760         (Makefile.am): Augment lib_SOURCES.
12761
12762 2011-05-23  Bruno Haible  <bruno@clisp.org>
12763
12764         popen-safer: Move AC_LIBOBJ invocations to module description.
12765         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12766         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12767         (configure.ac): Remove gl_POPEN_SAFER call.
12768         (Makefile.am): Augment lib_SOURCES.
12769
12770 2011-05-23  Bruno Haible  <bruno@clisp.org>
12771
12772         freopen-safer: Move AC_LIBOBJ invocations to module description.
12773         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12774         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12775         (configure.ac): Remove gl_FREOPEN_SAFER call.
12776         (Makefile.am): Augment lib_SOURCES.
12777
12778 2011-05-23  Bruno Haible  <bruno@clisp.org>
12779
12780         fopen-safer: Move AC_LIBOBJ invocations to module description.
12781         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12782         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12783         (configure.ac): Remove gl_FOPEN_SAFER call.
12784         (Makefile.am): Augment lib_SOURCES.
12785
12786 2011-05-23  Bruno Haible  <bruno@clisp.org>
12787
12788         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12789         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12790         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12791
12792 2011-05-23  Bruno Haible  <bruno@clisp.org>
12793
12794         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12795         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12796         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12797
12798 2011-05-23  Bruno Haible  <bruno@clisp.org>
12799
12800         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12801         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12802         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12803
12804 2011-05-23  Bruno Haible  <bruno@clisp.org>
12805
12806         settime: Move AC_LIBOBJ invocations to module description.
12807         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12808         * modules/settime (Makefile.am): Augment lib_SOURCES.
12809
12810 2011-05-23  Bruno Haible  <bruno@clisp.org>
12811
12812         savedir: Move AC_LIBOBJ invocations to module description.
12813         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12814         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12815
12816 2011-05-23  Bruno Haible  <bruno@clisp.org>
12817
12818         save-cwd: Move AC_LIBOBJ invocations to module description.
12819         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12820         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12821
12822 2011-05-23  Bruno Haible  <bruno@clisp.org>
12823
12824         same: Move AC_LIBOBJ invocations to module description.
12825         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12826         * modules/same (Makefile.am): Augment lib_SOURCES.
12827
12828 2011-05-23  Bruno Haible  <bruno@clisp.org>
12829
12830         safe-write: Move AC_LIBOBJ invocations to module description.
12831         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12832         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12833         instead of gl_SAFE_WRITE.
12834         (Makefile.am): Augment lib_SOURCES.
12835
12836 2011-05-23  Bruno Haible  <bruno@clisp.org>
12837
12838         safe-read: Move AC_LIBOBJ invocations to module description.
12839         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12840         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12841         of gl_SAFE_READ.
12842         (Makefile.am): Augment lib_SOURCES.
12843
12844 2011-05-23  Bruno Haible  <bruno@clisp.org>
12845
12846         safe-alloc: Move AC_LIBOBJ invocations to module description.
12847         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12848         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12849
12850 2011-05-23  Bruno Haible  <bruno@clisp.org>
12851
12852         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12853         * m4/rijndael.m4: Remove file.
12854         * modules/crypto/rijndael (Files): Remove it.
12855         (configure.ac): Remove gl_RIJNDAEL call.
12856         (Makefile.am): Augment lib_SOURCES.
12857
12858 2011-05-23  Bruno Haible  <bruno@clisp.org>
12859
12860         readtokens: Move AC_LIBOBJ invocations to module description.
12861         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12862         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12863
12864 2011-05-23  Bruno Haible  <bruno@clisp.org>
12865
12866         read-file: Move AC_LIBOBJ invocations to module description.
12867         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12868         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12869         of gl_FUNC_READ_FILE.
12870         (Makefile.am): Augment lib_SOURCES.
12871
12872 2011-05-23  Bruno Haible  <bruno@clisp.org>
12873
12874         quotearg: Move AC_LIBOBJ invocations to module description.
12875         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12876         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12877
12878 2011-05-23  Bruno Haible  <bruno@clisp.org>
12879
12880         quote: Move AC_LIBOBJ invocations to module description.
12881         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12882         * modules/quote (Makefile.am): Augment lib_SOURCES.
12883
12884 2011-05-23  Bruno Haible  <bruno@clisp.org>
12885
12886         posixver: Move AC_LIBOBJ invocations to module description.
12887         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12888         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12889
12890 2011-05-23  Bruno Haible  <bruno@clisp.org>
12891
12892         posixtm: Move AC_LIBOBJ invocations to module description.
12893         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12894         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12895
12896 2011-05-23  Bruno Haible  <bruno@clisp.org>
12897
12898         physmem: Move AC_LIBOBJ invocations to module description.
12899         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12900         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12901
12902 2011-05-23  Bruno Haible  <bruno@clisp.org>
12903
12904         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12905         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12906         invocation.
12907         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12908
12909 2011-05-23  Bruno Haible  <bruno@clisp.org>
12910
12911         mpsort: Move AC_LIBOBJ invocations to module description.
12912         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12913         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12914
12915 2011-05-23  Bruno Haible  <bruno@clisp.org>
12916
12917         modechange: Move AC_LIBOBJ invocations to module description.
12918         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12919         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12920
12921 2011-05-23  Bruno Haible  <bruno@clisp.org>
12922
12923         mkdir-p: Move AC_LIBOBJ invocations to module description.
12924         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12925         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12926
12927 2011-05-23  Bruno Haible  <bruno@clisp.org>
12928
12929         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12930         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12931         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12932
12933 2011-05-23  Bruno Haible  <bruno@clisp.org>
12934
12935         mgetgroups: Move AC_LIBOBJ invocations to module description.
12936         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12937         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12938
12939 2011-05-23  Bruno Haible  <bruno@clisp.org>
12940
12941         memxor: Move AC_LIBOBJ invocations to module description.
12942         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12943         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12944
12945 2011-05-23  Bruno Haible  <bruno@clisp.org>
12946
12947         memcoll: Move AC_LIBOBJ invocations to module description.
12948         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12949         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12950
12951 2011-05-23  Bruno Haible  <bruno@clisp.org>
12952
12953         memcasecmp: Move AC_LIBOBJ invocations to module description.
12954         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12955         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12956
12957 2011-05-23  Bruno Haible  <bruno@clisp.org>
12958
12959         crypto/md5: Move AC_LIBOBJ invocations to module description.
12960         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12961         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12962
12963 2011-05-23  Bruno Haible  <bruno@clisp.org>
12964
12965         crypto/md4: Move AC_LIBOBJ invocations to module description.
12966         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12967         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12968
12969 2011-05-23  Bruno Haible  <bruno@clisp.org>
12970
12971         crypto/md2: Move AC_LIBOBJ invocations to module description.
12972         * m4/md2.m4: Remove file.
12973         * modules/crypto/md2 (Files): Remove it.
12974         (configure.ac): Remove gl_MD2 call.
12975         (Makefile.am): Augment lib_SOURCES.
12976
12977 2011-05-23  Bruno Haible  <bruno@clisp.org>
12978
12979         long-options: Move AC_LIBOBJ invocations to module description.
12980         * m4/long-options.m4: Remove file.
12981         * modules/long-options (Files): Remove it.
12982         (configure.ac): Remove gl_LONG_OPTIONS call.
12983         (Makefile.am): Augment lib_SOURCES.
12984
12985 2011-05-23  Bruno Haible  <bruno@clisp.org>
12986
12987         i-ring: Move AC_LIBOBJ invocations to module description.
12988         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12989         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12990
12991 2011-05-23  Bruno Haible  <bruno@clisp.org>
12992
12993         idcache: Move AC_LIBOBJ invocations to module description.
12994         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12995         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12996
12997 2011-05-23  Bruno Haible  <bruno@clisp.org>
12998
12999         human: Move AC_LIBOBJ invocations to module description.
13000         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13001         * modules/human (Makefile.am): Augment lib_SOURCES.
13002
13003 2011-05-23  Bruno Haible  <bruno@clisp.org>
13004
13005         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13006         * m4/hmac-sha1.m4: Remove file.
13007         * modules/crypto/hmac-sha1 (Files): Remove it.
13008         (configure.ac): Remove gl_HMAC_SHA1 call.
13009         (Makefile.am): Augment lib_SOURCES.
13010
13011 2011-05-23  Bruno Haible  <bruno@clisp.org>
13012
13013         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13014         * m4/hmac-md5.m4: Remove file.
13015         * modules/crypto/hmac-md5 (Files): Remove it.
13016         (configure.ac): Remove gl_HMAC_MD5 call.
13017         (Makefile.am): Augment lib_SOURCES.
13018
13019 2011-05-23  Bruno Haible  <bruno@clisp.org>
13020
13021         hash: Move AC_LIBOBJ invocations to module description.
13022         * m4/hash.m4: Remove file.
13023         * modules/hash (Files): Remove it.
13024         (configure.ac): Remove gl_HASH call.
13025         (Makefile.am): Augment lib_SOURCES.
13026
13027 2011-05-23  Bruno Haible  <bruno@clisp.org>
13028
13029         hard-locale: Move AC_LIBOBJ invocations to module description.
13030         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13031         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13032
13033 2011-05-23  Bruno Haible  <bruno@clisp.org>
13034
13035         getugroups: Move AC_LIBOBJ invocations to module description.
13036         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13037         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13038
13039 2011-05-23  Bruno Haible  <bruno@clisp.org>
13040
13041         gettime: Move AC_LIBOBJ invocations to module description.
13042         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13043         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13044
13045 2011-05-23  Bruno Haible  <bruno@clisp.org>
13046
13047         getndelim2: Move AC_LIBOBJ invocations to module description.
13048         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13049         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13050
13051 2011-05-23  Bruno Haible  <bruno@clisp.org>
13052
13053         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13054         * m4/gc-pbkdf2-sha1.m4: Remove file.
13055         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13056         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13057         (Makefile.am): Augment lib_SOURCES.
13058
13059 2011-05-23  Bruno Haible  <bruno@clisp.org>
13060
13061         fts: Move AC_LIBOBJ invocations to module description.
13062         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13063         * modules/fts (configure.ac): ... to here.
13064
13065 2011-05-23  Bruno Haible  <bruno@clisp.org>
13066
13067         file-type: Move AC_LIBOBJ invocations to module description.
13068         * m4/file-type.m4: Remove file.
13069         * modules/file-type (Files): Remove it.
13070         (configure.ac): Remove gl_FILE_TYPE call.
13071         (Makefile.am): Augment lib_SOURCES.
13072
13073 2011-05-23  Bruno Haible  <bruno@clisp.org>
13074
13075         filenamecat*: Respect rules for use of AC_LIBOBJ.
13076         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13077         Remove AC_LIBOBJ invocation.
13078         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13079         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13080
13081 2011-05-23  Bruno Haible  <bruno@clisp.org>
13082
13083         filemode: Move AC_LIBOBJ invocations to module description.
13084         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13085         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13086
13087 2011-05-23  Bruno Haible  <bruno@clisp.org>
13088
13089         openat-safer: Move AC_LIBOBJ invocations to module description.
13090         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13091         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13092
13093 2011-05-23  Bruno Haible  <bruno@clisp.org>
13094
13095         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13096         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13097         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13098
13099 2011-05-23  Bruno Haible  <bruno@clisp.org>
13100
13101         exclude: Move AC_LIBOBJ invocations to module description.
13102         * m4/exclude.m4: Remove file.
13103         * modules/exclude (Files): Remove it.
13104         (configure.ac): Remove gl_EXCLUDE call.
13105         (Makefile.am): Augment lib_SOURCES.
13106
13107 2011-05-23  Bruno Haible  <bruno@clisp.org>
13108
13109         dirname*: Respect rules for use of AC_LIBOBJ.
13110         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13111         invocations.
13112         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13113         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13114
13115 2011-05-23  Bruno Haible  <bruno@clisp.org>
13116
13117         dirent-safer: Move AC_LIBOBJ invocations to module description.
13118         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13119         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13120
13121 2011-05-23  Bruno Haible  <bruno@clisp.org>
13122
13123         crypto/des: Move AC_LIBOBJ invocations to module description.
13124         * m4/des.m4: Remove file.
13125         * modules/crypto/des (Files): Remove it.
13126         (configure.ac): Remove gl_DES call.
13127         (Makefile.am): Augment lib_SOURCES.
13128
13129 2011-05-23  Bruno Haible  <bruno@clisp.org>
13130
13131         cycle-check: Move AC_LIBOBJ invocations to module description.
13132         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13133         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13134
13135 2011-05-23  Bruno Haible  <bruno@clisp.org>
13136
13137         c-strtold: Move AC_LIBOBJ invocations to module description.
13138         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13139         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13140
13141 2011-05-23  Bruno Haible  <bruno@clisp.org>
13142
13143         c-strtod: Move AC_LIBOBJ invocations to module description.
13144         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13145         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13146
13147 2011-05-23  Bruno Haible  <bruno@clisp.org>
13148
13149         crc: Move AC_LIBOBJ invocations to module description.
13150         * m4/crc.m4: Remove file.
13151         * modules/crc (Files): Remove it.
13152         (configure.ac): Remove gl_CRC call.
13153         (Makefile.am): Augment lib_SOURCES.
13154
13155 2011-05-23  Bruno Haible  <bruno@clisp.org>
13156
13157         close-stream: Move AC_LIBOBJ invocations to module description.
13158         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13159         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13160
13161 2011-05-23  Bruno Haible  <bruno@clisp.org>
13162
13163         closeout: Move AC_LIBOBJ invocations to module description.
13164         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13165         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13166
13167 2011-05-23  Bruno Haible  <bruno@clisp.org>
13168
13169         closein: Move AC_LIBOBJ invocations to module description.
13170         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13171         * modules/closein (Makefile.am): Augment lib_SOURCES.
13172
13173 2011-05-23  Bruno Haible  <bruno@clisp.org>
13174
13175         cloexec: Move AC_LIBOBJ invocations to module description.
13176         * m4/cloexec.m4: Remove file.
13177         * modules/cloexec (Files): Remove it.
13178         (configure.ac): Remove gl_CLOEXEC call.
13179         (Makefile.am): Augment lib_SOURCES.
13180
13181 2011-05-23  Bruno Haible  <bruno@clisp.org>
13182
13183         check-version: Move AC_LIBOBJ invocations to module description.
13184         * m4/check-version.m4: Remove file.
13185         * modules/check-version (Files): Remove it.
13186         (configure.ac): Remove gl_CHECK_VERSION call.
13187         (Makefile.am): Augment lib_SOURCES.
13188
13189 2011-05-23  Bruno Haible  <bruno@clisp.org>
13190
13191         chdir-safer: Move AC_LIBOBJ invocations to module description.
13192         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13193         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13194
13195 2011-05-23  Bruno Haible  <bruno@clisp.org>
13196
13197         canonicalize: Move AC_LIBOBJ invocations to module description.
13198         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13199         AC_LIBOBJ invocation.
13200         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13201
13202 2011-05-23  Bruno Haible  <bruno@clisp.org>
13203
13204         canon-host: Move AC_LIBOBJ invocations to module description.
13205         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13206         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13207         instead of gl_CANON_HOST.
13208         (Makefile.am): Augment lib_SOURCES.
13209
13210 2011-05-23  Bruno Haible  <bruno@clisp.org>
13211
13212         backupfile: Move AC_LIBOBJ invocations to module description.
13213         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13214         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13215
13216 2011-05-23  Bruno Haible  <bruno@clisp.org>
13217
13218         argmatch: Move AC_LIBOBJ invocations to module description.
13219         * m4/argmatch.m4: Remove file.
13220         * modules/argmatch (Files): Remove it.
13221         (configure.ac): Remove gl_ARGMATCH call.
13222         (Makefile.am): Augment lib_SOURCES.
13223
13224 2011-05-23  Bruno Haible  <bruno@clisp.org>
13225
13226         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13227         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13228         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13229
13230 2011-05-23  Bruno Haible  <bruno@clisp.org>
13231
13232         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13233         * m4/arcfour.m4: Remove file.
13234         * modules/crypto/arcfour (Files): Remove it.
13235         (configure.ac): Remove gl_ARCFOUR call.
13236         (Makefile.am): Augment lib_SOURCES.
13237
13238 2011-05-22  Bruno Haible  <bruno@clisp.org>
13239
13240         write: Move AC_LIBOBJ invocations to module description.
13241         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13242         * modules/write (configure.ac): ... to here.
13243
13244 2011-05-22  Bruno Haible  <bruno@clisp.org>
13245
13246         wmemset: Move AC_LIBOBJ invocations to module description.
13247         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13248         here...
13249         * modules/wmemset (configure.ac): ... to here.
13250
13251 2011-05-22  Bruno Haible  <bruno@clisp.org>
13252
13253         wmemmove: Move AC_LIBOBJ invocations to module description.
13254         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13255         here...
13256         * modules/wmemmove (configure.ac): ... to here.
13257
13258 2011-05-22  Bruno Haible  <bruno@clisp.org>
13259
13260         wmemcpy: Move AC_LIBOBJ invocations to module description.
13261         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13262         here...
13263         * modules/wmemcpy (configure.ac): ... to here.
13264
13265 2011-05-22  Bruno Haible  <bruno@clisp.org>
13266
13267         wmemcmp: Move AC_LIBOBJ invocations to module description.
13268         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13269         here...
13270         * modules/wmemcmp (configure.ac): ... to here.
13271
13272 2011-05-22  Bruno Haible  <bruno@clisp.org>
13273
13274         wmemchr: Move AC_LIBOBJ invocations to module description.
13275         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13276         here...
13277         * modules/wmemchr (configure.ac): ... to here.
13278
13279 2011-05-22  Bruno Haible  <bruno@clisp.org>
13280
13281         wcswidth: Move AC_LIBOBJ invocations to module description.
13282         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13283         here...
13284         * modules/wcswidth (configure.ac): ... to here.
13285
13286 2011-05-22  Bruno Haible  <bruno@clisp.org>
13287
13288         wcwidth: Respect rules for use of AC_LIBOBJ.
13289         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13290         invocation from here...
13291         * modules/wcwidth (configure.ac): ... to here.
13292         (Depends-on): Update conditions.
13293
13294 2011-05-22  Bruno Haible  <bruno@clisp.org>
13295
13296         wctype: Move AC_LIBOBJ invocations to module description.
13297         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13298         invocation from here...
13299         * modules/wctype (configure.ac): ... to here.
13300         (Depends-on): Update conditions.
13301
13302 2011-05-22  Bruno Haible  <bruno@clisp.org>
13303
13304         wctrans: Move AC_LIBOBJ invocations to module description.
13305         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13306         invocation from here...
13307         * modules/wctrans (configure.ac): ... to here.
13308
13309 2011-05-22  Bruno Haible  <bruno@clisp.org>
13310
13311         wctomb: Move AC_LIBOBJ invocations to module description.
13312         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13313         invocations from here...
13314         * modules/wctomb (configure.ac): ... to here.
13315
13316 2011-05-22  Bruno Haible  <bruno@clisp.org>
13317
13318         wctob: Move AC_LIBOBJ invocations to module description.
13319         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13320         gl_PREREQ_WCTOB invocations from here...
13321         * modules/wctob (configure.ac): ... to here.
13322         (Depends-on): Update conditions.
13323
13324 2011-05-22  Bruno Haible  <bruno@clisp.org>
13325
13326         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13327         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13328         here...
13329         * modules/wcsxfrm (configure.ac): ... to here.
13330
13331 2011-05-22  Bruno Haible  <bruno@clisp.org>
13332
13333         wcstok: Move AC_LIBOBJ invocations to module description.
13334         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13335         * modules/wcstok (configure.ac): ... to here.
13336
13337 2011-05-22  Bruno Haible  <bruno@clisp.org>
13338
13339         wcsstr: Move AC_LIBOBJ invocations to module description.
13340         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13341         * modules/wcsstr (configure.ac): ... to here.
13342
13343 2011-05-22  Bruno Haible  <bruno@clisp.org>
13344
13345         wcsspn: Move AC_LIBOBJ invocations to module description.
13346         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13347         * modules/wcsspn (configure.ac): ... to here.
13348
13349 2011-05-22  Bruno Haible  <bruno@clisp.org>
13350
13351         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13352         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13353         gl_PREREQ_WCSRTOMBS invocations from here...
13354         * modules/wcsrtombs (configure.ac): ... to here.
13355
13356 2011-05-22  Bruno Haible  <bruno@clisp.org>
13357
13358         wcsrchr: Move AC_LIBOBJ invocations to module description.
13359         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13360         here...
13361         * modules/wcsrchr (configure.ac): ... to here.
13362
13363 2011-05-22  Bruno Haible  <bruno@clisp.org>
13364
13365         wcspbrk: Move AC_LIBOBJ invocations to module description.
13366         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13367         here...
13368         * modules/wcspbrk (configure.ac): ... to here.
13369
13370 2011-05-22  Bruno Haible  <bruno@clisp.org>
13371
13372         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13373         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13374         gl_PREREQ_WCSNRTOMBS invocations from here...
13375         * modules/wcsnrtombs (configure.ac): ... to here.
13376
13377 2011-05-22  Bruno Haible  <bruno@clisp.org>
13378
13379         wcsnlen: Move AC_LIBOBJ invocations to module description.
13380         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13381         here...
13382         * modules/wcsnlen (configure.ac): ... to here.
13383
13384 2011-05-22  Bruno Haible  <bruno@clisp.org>
13385
13386         wcsncpy: Move AC_LIBOBJ invocations to module description.
13387         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13388         here...
13389         * modules/wcsncpy (configure.ac): ... to here.
13390
13391 2011-05-22  Bruno Haible  <bruno@clisp.org>
13392
13393         wcsncmp: Move AC_LIBOBJ invocations to module description.
13394         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13395         here...
13396         * modules/wcsncmp (configure.ac): ... to here.
13397
13398 2011-05-22  Bruno Haible  <bruno@clisp.org>
13399
13400         wcsncat: Move AC_LIBOBJ invocations to module description.
13401         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13402         here...
13403         * modules/wcsncat (configure.ac): ... to here.
13404
13405 2011-05-22  Bruno Haible  <bruno@clisp.org>
13406
13407         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13408         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13409         from here...
13410         * modules/wcsncasecmp (configure.ac): ... to here.
13411
13412 2011-05-22  Bruno Haible  <bruno@clisp.org>
13413
13414         wcslen: Move AC_LIBOBJ invocations to module description.
13415         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13416         * modules/wcslen (configure.ac): ... to here.
13417
13418 2011-05-22  Bruno Haible  <bruno@clisp.org>
13419
13420         wcsdup: Move AC_LIBOBJ invocations to module description.
13421         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13422         * modules/wcsdup (configure.ac): ... to here.
13423
13424 2011-05-22  Bruno Haible  <bruno@clisp.org>
13425
13426         wcscspn: Move AC_LIBOBJ invocations to module description.
13427         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13428         here...
13429         * modules/wcscspn (configure.ac): ... to here.
13430
13431 2011-05-22  Bruno Haible  <bruno@clisp.org>
13432
13433         wcscpy: Move AC_LIBOBJ invocations to module description.
13434         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13435         * modules/wcscpy (configure.ac): ... to here.
13436
13437 2011-05-22  Bruno Haible  <bruno@clisp.org>
13438
13439         wcscoll: Move AC_LIBOBJ invocations to module description.
13440         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13441         here...
13442         * modules/wcscoll (configure.ac): ... to here.
13443
13444 2011-05-22  Bruno Haible  <bruno@clisp.org>
13445
13446         wcscmp: Move AC_LIBOBJ invocations to module description.
13447         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13448         * modules/wcscmp (configure.ac): ... to here.
13449
13450 2011-05-22  Bruno Haible  <bruno@clisp.org>
13451
13452         wcschr: Move AC_LIBOBJ invocations to module description.
13453         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13454         * modules/wcschr (configure.ac): ... to here.
13455
13456 2011-05-22  Bruno Haible  <bruno@clisp.org>
13457
13458         wcscat: Move AC_LIBOBJ invocations to module description.
13459         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13460         * modules/wcscat (configure.ac): ... to here.
13461
13462 2011-05-22  Bruno Haible  <bruno@clisp.org>
13463
13464         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13465         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13466         here...
13467         * modules/wcscasecmp (configure.ac): ... to here.
13468
13469 2011-05-22  Bruno Haible  <bruno@clisp.org>
13470
13471         wcrtomb: Move AC_LIBOBJ invocations to module description.
13472         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13473         invocations from here...
13474         * modules/wcrtomb (configure.ac): ... to here.
13475
13476 2011-05-22  Bruno Haible  <bruno@clisp.org>
13477
13478         wcpncpy: Move AC_LIBOBJ invocations to module description.
13479         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13480         here...
13481         * modules/wcpncpy (configure.ac): ... to here.
13482
13483 2011-05-22  Bruno Haible  <bruno@clisp.org>
13484
13485         wcpcpy: Move AC_LIBOBJ invocations to module description.
13486         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13487         * modules/wcpcpy (configure.ac): ... to here.
13488
13489 2011-05-22  Bruno Haible  <bruno@clisp.org>
13490
13491         waitpid: Move AC_LIBOBJ invocations to module description.
13492         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13493         invocation from here...
13494         * modules/waitpid (configure.ac): ... to here.
13495
13496 2011-05-22  Bruno Haible  <bruno@clisp.org>
13497
13498         utimensat: Move AC_LIBOBJ invocations to module description.
13499         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13500         here...
13501         * modules/utimensat (configure.ac): ... to here.
13502
13503 2011-05-22  Bruno Haible  <bruno@clisp.org>
13504
13505         usleep: Move AC_LIBOBJ invocations to module description.
13506         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13507         here...
13508         * modules/usleep (configure.ac): ... to here.
13509
13510 2011-05-22  Bruno Haible  <bruno@clisp.org>
13511
13512         unlockpt: Move AC_LIBOBJ invocations to module description.
13513         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13514         gl_PREREQ_UNLOCKPT invocations from here...
13515         * modules/unlockpt (configure.ac): ... to here.
13516
13517 2011-05-22  Bruno Haible  <bruno@clisp.org>
13518
13519         unlink: Respect rules for use of AC_LIBOBJ.
13520         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13521         * modules/unlink (configure.ac): ... to here.
13522
13523 2011-05-22  Bruno Haible  <bruno@clisp.org>
13524
13525         uname: Move AC_LIBOBJ invocations to module description.
13526         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13527         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13528         here...
13529         * modules/uname (configure.ac): ... to here.
13530
13531 2011-05-22  Bruno Haible  <bruno@clisp.org>
13532
13533         ttyname_r: Move AC_LIBOBJ invocations to module description.
13534         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13535         gl_PREREQ_TTYNAME_R invocations from here...
13536         * modules/ttyname_r (configure.ac): ... to here.
13537
13538 2011-05-22  Bruno Haible  <bruno@clisp.org>
13539
13540         tsearch: Move AC_LIBOBJ invocations to module description.
13541         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13542         invocations from here...
13543         * modules/tsearch (configure.ac): ... to here.
13544
13545 2011-05-22  Bruno Haible  <bruno@clisp.org>
13546
13547         towctrans: Move AC_LIBOBJ invocations to module description.
13548         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13549         AC_LIBOBJ invocation from here...
13550         * modules/towctrans (configure.ac): ... to here.
13551
13552 2011-05-22  Bruno Haible  <bruno@clisp.org>
13553
13554         tmpfile: Move AC_LIBOBJ invocations to module description.
13555         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13556         invocations from here...
13557         * modules/tmpfile (configure.ac): ... to here.
13558
13559 2011-05-22  Bruno Haible  <bruno@clisp.org>
13560
13561         times: Move AC_LIBOBJ invocations to module description.
13562         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13563         * modules/times (configure.ac): ... to here.
13564
13565 2011-05-22  Bruno Haible  <bruno@clisp.org>
13566
13567         time_r: Move AC_LIBOBJ invocations to module description.
13568         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13569         invocations from here...
13570         * modules/time_r (configure.ac): ... to here.
13571
13572 2011-05-22  Bruno Haible  <bruno@clisp.org>
13573
13574         timegm: Move AC_LIBOBJ invocations to module description.
13575         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13576         invocations from here...
13577         * modules/timegm (configure.ac): ... to here.
13578
13579 2011-05-22  Bruno Haible  <bruno@clisp.org>
13580
13581         tcgetsid: Move AC_LIBOBJ invocations to module description.
13582         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13583         and gl_PREREQ_TCGETSID invocations from here...
13584         * modules/tcgetsid (configure.ac): ... to here.
13585         (Depends-on): Update conditions.
13586
13587 2011-05-22  Bruno Haible  <bruno@clisp.org>
13588
13589         symlinkat: Move AC_LIBOBJ invocations to module description.
13590         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13591         here...
13592         * modules/symlinkat (configure.ac): ... to here.
13593
13594 2011-05-22  Bruno Haible  <bruno@clisp.org>
13595
13596         symlink: Move AC_LIBOBJ invocations to module description.
13597         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13598         here...
13599         * modules/symlink (configure.ac): ... to here.
13600
13601 2011-05-22  Bruno Haible  <bruno@clisp.org>
13602
13603         strverscmp: Move AC_LIBOBJ invocations to module description.
13604         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13605         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13606         from here...
13607         * modules/strverscmp (configure.ac): ... to here.
13608
13609 2011-05-22  Bruno Haible  <bruno@clisp.org>
13610
13611         strtok_r: Move AC_LIBOBJ invocations to module description.
13612         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13613         and gl_PREREQ_STRTOK_R invocations from here...
13614         * modules/strtok_r (configure.ac): ... to here.
13615         (Depends-on): Update conditions.
13616
13617 2011-05-22  Bruno Haible  <bruno@clisp.org>
13618
13619         strtoumax: Move AC_LIBOBJ invocations to module description.
13620         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13621         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13622         from here...
13623         * modules/strtoumax (configure.ac): ... to here.
13624
13625 2011-05-22  Bruno Haible  <bruno@clisp.org>
13626
13627         strtoimax: Move AC_LIBOBJ invocations to module description.
13628         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13629         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13630         from here...
13631         * modules/strtoimax (configure.ac): ... to here.
13632
13633 2011-05-22  Bruno Haible  <bruno@clisp.org>
13634
13635         strtoull: Move AC_LIBOBJ invocations to module description.
13636         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13637         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13638         from here...
13639         * modules/strtoull (configure.ac): ... to here.
13640
13641 2011-05-22  Bruno Haible  <bruno@clisp.org>
13642
13643         strtoll: Move AC_LIBOBJ invocations to module description.
13644         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13645         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13646         here...
13647         * modules/strtoll (configure.ac): ... to here.
13648
13649 2011-05-22  Bruno Haible  <bruno@clisp.org>
13650
13651         strtoul: Move AC_LIBOBJ invocations to module description.
13652         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13653         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13654         * modules/strtoul (configure.ac): ... to here.
13655
13656 2011-05-22  Bruno Haible  <bruno@clisp.org>
13657
13658         strtol: Move AC_LIBOBJ invocations to module description.
13659         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13660         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13661         * modules/strtol (configure.ac): ... to here.
13662
13663 2011-05-22  Bruno Haible  <bruno@clisp.org>
13664
13665         strtod: Move AC_LIBOBJ invocations to module description.
13666         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13667         invocations from here...
13668         * modules/strtod (configure.ac): ... to here.
13669
13670 2011-05-22  Bruno Haible  <bruno@clisp.org>
13671
13672         strstr*: Move AC_LIBOBJ invocations to module description.
13673         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13674         invocations from here...
13675         * modules/strstr-simple (configure.ac): ... to here.
13676         * modules/strstr (configure.ac): ... and here.
13677
13678 2011-05-22  Bruno Haible  <bruno@clisp.org>
13679
13680         strsignal: Move AC_LIBOBJ invocations to module description.
13681         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13682         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13683         * modules/strsignal (configure.ac): ... to here.
13684         (Depends-on): Update conditions.
13685
13686 2011-05-22  Bruno Haible  <bruno@clisp.org>
13687
13688         strsep: Move AC_LIBOBJ invocations to module description.
13689         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13690         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13691         here...
13692         * modules/strsep (configure.ac): ... to here.
13693
13694 2011-05-22  Bruno Haible  <bruno@clisp.org>
13695
13696         strptime: Move AC_LIBOBJ invocations to module description.
13697         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13698         gl_PREREQ_STRPTIME invocations from here...
13699         * modules/strptime (configure.ac): ... to here.
13700
13701 2011-05-22  Bruno Haible  <bruno@clisp.org>
13702
13703         strpbrk: Move AC_LIBOBJ invocations to module description.
13704         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13705         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13706         here...
13707         * modules/strpbrk (configure.ac): ... to here.
13708
13709 2011-05-22  Bruno Haible  <bruno@clisp.org>
13710
13711         strnlen: Move AC_LIBOBJ invocations to module description.
13712         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13713         invocations from here...
13714         * modules/strnlen (configure.ac): ... to here.
13715
13716 2011-05-22  Bruno Haible  <bruno@clisp.org>
13717
13718         strndup: Move AC_LIBOBJ invocations to module description.
13719         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13720         invocations from here...
13721         * modules/strndup (configure.ac): ... to here.
13722         (Depends-on): Update conditions.
13723
13724 2011-05-22  Bruno Haible  <bruno@clisp.org>
13725
13726         strncat: Move AC_LIBOBJ invocations to module description.
13727         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13728         invocations from here...
13729         * modules/strncat (configure.ac): ... to here.
13730
13731 2011-05-22  Bruno Haible  <bruno@clisp.org>
13732
13733         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13734         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13735         invocations from here...
13736         * modules/strdup (configure.ac): ... to here.
13737         * modules/strdup-posix (configure.ac): ... and here.
13738
13739 2011-05-22  Bruno Haible  <bruno@clisp.org>
13740
13741         strcspn: Move AC_LIBOBJ invocations to module description.
13742         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13743         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13744         here...
13745         * modules/strcspn (configure.ac): ... to here.
13746
13747 2011-05-22  Bruno Haible  <bruno@clisp.org>
13748
13749         strchrnul: Move AC_LIBOBJ invocations to module description.
13750         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13751         gl_PREREQ_STRCHRNUL invocations from here...
13752         * modules/strchrnul (configure.ac): ... to here.
13753
13754 2011-05-22  Bruno Haible  <bruno@clisp.org>
13755
13756         strcasestr*: Move AC_LIBOBJ invocations to module description.
13757         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13758         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13759         * modules/strcasestr-simple (configure.ac): ... to here.
13760         * modules/strcasestr (configure.ac): ... and here.
13761
13762 2011-05-22  Bruno Haible  <bruno@clisp.org>
13763
13764         strcase: Move AC_LIBOBJ invocations to module description.
13765         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13766         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13767         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13768         gl_PREREQ_STRNCASECMP invocations from here...
13769         * modules/strcase (configure.ac): ... to here.
13770
13771 2011-05-22  Bruno Haible  <bruno@clisp.org>
13772
13773         stpncpy: Move AC_LIBOBJ invocations to module description.
13774         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13775         here...
13776         * modules/stpncpy (configure.ac): ... to here.
13777
13778 2011-05-22  Bruno Haible  <bruno@clisp.org>
13779
13780         stpcpy: Move AC_LIBOBJ invocations to module description.
13781         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13782         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13783         here...
13784         * modules/stpcpy (configure.ac): ... to here.
13785
13786 2011-05-21  Bruno Haible  <bruno@clisp.org>
13787
13788         stat: Move AC_LIBOBJ invocations to module description.
13789         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13790         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13791         here...
13792         * modules/stat (configure.ac): ... to here.
13793
13794 2011-05-21  Bruno Haible  <bruno@clisp.org>
13795
13796         sleep: Move AC_LIBOBJ invocations to module description.
13797         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13798         * modules/sleep (configure.ac): ... to here.
13799
13800 2011-05-21  Bruno Haible  <bruno@clisp.org>
13801
13802         signbit: Move AC_LIBOBJ invocations to module description.
13803         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13804         * modules/signbit (configure.ac): ... to here.
13805
13806 2011-05-21  Bruno Haible  <bruno@clisp.org>
13807
13808         sigprocmask: Move AC_LIBOBJ invocations to module description.
13809         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13810         gl_PREREQ_SIGPROMASK invocations from here...
13811         * modules/sigprocmask (configure.ac): ... to here.
13812
13813 2011-05-21  Bruno Haible  <bruno@clisp.org>
13814
13815         sigaction: Move AC_LIBOBJ invocations to module description.
13816         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13817         gl_PREREQ_SIGACTION invocations from here...
13818         * modules/sigaction (configure.ac): ... to here.
13819
13820 2011-05-21  Bruno Haible  <bruno@clisp.org>
13821
13822         sig2str: Move AC_LIBOBJ invocations to module description.
13823         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13824         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13825         here...
13826         * modules/sig2str (configure.ac): ... to here.
13827
13828 2011-05-21  Bruno Haible  <bruno@clisp.org>
13829
13830         setlocale: Move AC_LIBOBJ invocations to module description.
13831         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13832         gl_PREREQ_SETLOCALE invocations from here...
13833         * modules/setlocale (configure.ac): ... to here.
13834
13835 2011-05-21  Bruno Haible  <bruno@clisp.org>
13836
13837         unsetenv: Move AC_LIBOBJ invocations to module description.
13838         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13839         and gl_PREREQ_UNSETENV invocations from here...
13840         * modules/unsetenv (configure.ac): ... to here.
13841         (Depends-on): Update.
13842
13843 2011-05-21  Bruno Haible  <bruno@clisp.org>
13844
13845         setenv: Move AC_LIBOBJ invocations to module description.
13846         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13847         here...
13848         * modules/setenv (configure.ac): ... to here.
13849
13850 2011-05-21  Bruno Haible  <bruno@clisp.org>
13851
13852         selinux-h: Move AC_LIBOBJ invocations to module description.
13853         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13854         AC_LIBOBJ invocation from here...
13855         * modules/selinux-h (configure.ac): ... to here.
13856
13857 2011-05-21  Bruno Haible  <bruno@clisp.org>
13858
13859         select: Respect rules for use of AC_LIBOBJ.
13860         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13861         here...
13862         * modules/select (configure.ac): ... to here.
13863
13864 2011-05-21  Bruno Haible  <bruno@clisp.org>
13865
13866         scandir: Move AC_LIBOBJ invocations to module description.
13867         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13868         invocations from here...
13869         * modules/scandir (configure.ac): ... to here.
13870
13871 2011-05-21  Bruno Haible  <bruno@clisp.org>
13872
13873         rpmatch: Move AC_LIBOBJ invocations to module description.
13874         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13875         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13876         here...
13877         * modules/rpmatch (configure.ac): ... to here.
13878
13879 2011-05-21  Bruno Haible  <bruno@clisp.org>
13880
13881         rmdir: Respect rules for use of AC_LIBOBJ.
13882         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13883         * modules/rmdir (configure.ac): ... to here.
13884
13885 2011-05-21  Bruno Haible  <bruno@clisp.org>
13886
13887         renameat: Move AC_LIBOBJ invocations to module description.
13888         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13889         here...
13890         * modules/renameat (configure.ac): ... to here.
13891
13892 2011-05-21  Bruno Haible  <bruno@clisp.org>
13893
13894         rename: Respect rules for use of AC_LIBOBJ.
13895         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13896         here...
13897         * modules/rename (configure.ac): ... to here.
13898
13899 2011-05-21  Bruno Haible  <bruno@clisp.org>
13900
13901         remove: Move AC_LIBOBJ invocations to module description.
13902         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13903         here...
13904         * modules/remove (configure.ac): ... to here.
13905
13906 2011-05-21  Bruno Haible  <bruno@clisp.org>
13907
13908         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13909         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13910         macro.
13911         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13912         * modules/relocatable-lib (configure.ac): ... to here.
13913         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13914         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13915
13916 2011-05-21  Bruno Haible  <bruno@clisp.org>
13917
13918         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13919         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13920         here...
13921         * modules/relocatable-prog (configure.ac): ... to here.
13922
13923 2011-05-21  Bruno Haible  <bruno@clisp.org>
13924
13925         regex: Move AC_LIBOBJ invocations to module description.
13926         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13927         invocations from here...
13928         * modules/regex (configure.ac): ... to here.
13929
13930 2011-05-21  Bruno Haible  <bruno@clisp.org>
13931
13932         realloc-*: Move AC_LIBOBJ invocations to module description.
13933         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13934         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13935         AC_LIBOBJ invocations from here...
13936         * modules/realloc-gnu (configure.ac): ... to here.
13937         * modules/realloc-posix (configure.ac): ... and here.
13938
13939 2011-05-21  Bruno Haible  <bruno@clisp.org>
13940
13941         readutmp: Move AC_LIBOBJ invocations to module description.
13942         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13943         * modules/readutmp (configure.ac): ... to here.
13944
13945 2011-05-21  Bruno Haible  <bruno@clisp.org>
13946
13947         readlinkat: Move AC_LIBOBJ invocations to module description.
13948         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13949         here...
13950         * modules/readlinkat (configure.ac): ... to here.
13951
13952 2011-05-21  Bruno Haible  <bruno@clisp.org>
13953
13954         readlink: Move AC_LIBOBJ invocations to module description.
13955         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13956         gl_PREREQ_READLINK invocations from here...
13957         * modules/readlink (configure.ac): ... to here.
13958
13959 2011-05-21  Bruno Haible  <bruno@clisp.org>
13960
13961         readline: Move AC_LIBOBJ invocations to module description.
13962         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13963         gl_PREREQ_READLINE invocations from here...
13964         * modules/readline (configure.ac): ... to here.
13965
13966 2011-05-21  Bruno Haible  <bruno@clisp.org>
13967
13968         read: Move AC_LIBOBJ invocations to module description.
13969         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13970         * modules/read (configure.ac): ... to here.
13971
13972 2011-05-21  Bruno Haible  <bruno@clisp.org>
13973
13974         rawmemchr: Move AC_LIBOBJ invocations to module description.
13975         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13976         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13977         from here...
13978         * modules/rawmemchr (configure.ac): ... to here.
13979
13980 2011-05-21  Bruno Haible  <bruno@clisp.org>
13981
13982         random_r: Move AC_LIBOBJ invocations to module description.
13983         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13984         gl_PREREQ_RANDOM_R invocations from here...
13985         * modules/random_r (configure.ac): ... to here.
13986
13987 2011-05-21  Bruno Haible  <bruno@clisp.org>
13988
13989         pwrite: Move AC_LIBOBJ invocations to module description.
13990         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13991         * modules/pwrite (configure.ac): ... to here.
13992
13993 2011-05-21  Bruno Haible  <bruno@clisp.org>
13994
13995         putenv: Move AC_LIBOBJ invocations to module description.
13996         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13997         * modules/putenv (configure.ac): ... to here.
13998
13999 2011-05-21  Bruno Haible  <bruno@clisp.org>
14000
14001         login_tty: Move AC_LIBOBJ invocations to module description.
14002         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14003         * modules/login_tty (configure.ac): ... to here.
14004
14005 2011-05-21  Bruno Haible  <bruno@clisp.org>
14006
14007         openpty: Move AC_LIBOBJ invocations to module description.
14008         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14009         * modules/openpty (configure.ac): ... to here.
14010
14011 2011-05-21  Bruno Haible  <bruno@clisp.org>
14012
14013         forkpty: Move AC_LIBOBJ invocations to module description.
14014         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14015         * modules/forkpty (configure.ac): ... to here.
14016
14017 2011-05-21  Bruno Haible  <bruno@clisp.org>
14018
14019         ptsname: Move AC_LIBOBJ invocations to module description.
14020         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14021         invocations from here...
14022         * modules/ptsname (configure.ac): ... to here.
14023
14024 2011-05-21  Bruno Haible  <bruno@clisp.org>
14025
14026         pread: Move AC_LIBOBJ invocations to module description.
14027         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14028         * modules/pread (configure.ac): ... to here.
14029
14030 2011-05-21  Bruno Haible  <bruno@clisp.org>
14031
14032         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14033         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14034         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14035         * modules/posix_spawn (configure.ac): ... to here.
14036         * modules/posix_spawnp (configure.ac): ... and here.
14037
14038 2011-05-21  Bruno Haible  <bruno@clisp.org>
14039
14040         popen: Move AC_LIBOBJ invocations to module description.
14041         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14042         invocations from here...
14043         * modules/popen (configure.ac): ... to here.
14044
14045 2011-05-21  Bruno Haible  <bruno@clisp.org>
14046
14047         poll: Move AC_LIBOBJ invocations to module description.
14048         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14049         invocations from here...
14050         * modules/poll (configure.ac): ... to here.
14051
14052 2011-05-21  Bruno Haible  <bruno@clisp.org>
14053
14054         pipe-posix: Move AC_LIBOBJ invocations to module description.
14055         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14056         * modules/pipe-posix (configure.ac): ... to here.
14057
14058 2011-05-21  Bruno Haible  <bruno@clisp.org>
14059
14060         openat: Respect rules for use of AC_LIBOBJ.
14061         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14062         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14063         * modules/openat (configure.ac): ... to here.
14064
14065 2011-05-21  Bruno Haible  <bruno@clisp.org>
14066
14067         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14068         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14069         invocation from here...
14070         * modules/obstack-printf (configure.ac): ... to here.
14071         * modules/obstack-printf-posix (configure.ac): ... and here.
14072
14073 2011-05-21  Bruno Haible  <bruno@clisp.org>
14074
14075         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14076         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14077         from here...
14078         * modules/nl_langinfo (configure.ac): ... to here.
14079
14080 2011-05-21  Bruno Haible  <bruno@clisp.org>
14081
14082         nanosleep: Move AC_LIBOBJ invocations to module description.
14083         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14084         gl_PREREQ_NANOSLEEP invocations from here...
14085         * modules/nanosleep (configure.ac): ... to here.
14086
14087 2011-05-21  Bruno Haible  <bruno@clisp.org>
14088
14089         mountlist: Move AC_LIBOBJ invocations to module description.
14090         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14091         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14092         * modules/mountlist (configure.ac): ... to here.
14093
14094 2011-05-21  Bruno Haible  <bruno@clisp.org>
14095
14096         mktime: Respect rules for use of AC_LIBOBJ.
14097         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14098         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14099         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14100         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14101         * modules/mktime (configure.ac): ... to here.
14102         * modules/mktime-internal (configure.ac): ... and here.
14103         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14104
14105 2011-05-21  Bruno Haible  <bruno@clisp.org>
14106
14107         mkstemps: Move AC_LIBOBJ invocations to module description.
14108         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14109         here...
14110         * modules/mkstemps (configure.ac): ... to here.
14111
14112 2011-05-21  Bruno Haible  <bruno@clisp.org>
14113
14114         mkstemp: Move AC_LIBOBJ invocations to module description.
14115         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14116         gl_PREREQ_MKSTEMP invocations from here...
14117         * modules/mkstemp (configure.ac): ... to here.
14118
14119 2011-05-21  Bruno Haible  <bruno@clisp.org>
14120
14121         mkostemps: Move AC_LIBOBJ invocations to module description.
14122         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14123         here...
14124         * modules/mkostemps (configure.ac): ... to here.
14125
14126 2011-05-21  Bruno Haible  <bruno@clisp.org>
14127
14128         mkostemp: Move AC_LIBOBJ invocations to module description.
14129         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14130         gl_PREREQ_MKOSTEMP invocations from here...
14131         * modules/mkostemp (configure.ac): ... to here.
14132
14133 2011-05-21  Bruno Haible  <bruno@clisp.org>
14134
14135         mknod: Move AC_LIBOBJ invocations to module description.
14136         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14137         * modules/mknod (configure.ac): ... to here.
14138
14139 2011-05-21  Bruno Haible  <bruno@clisp.org>
14140
14141         mkfifoat: Move AC_LIBOBJ invocations to module description.
14142         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14143         here...
14144         * modules/mkfifoat (configure.ac): ... to here.
14145
14146 2011-05-21  Bruno Haible  <bruno@clisp.org>
14147
14148         mkfifo: Respect rules for use of AC_LIBOBJ.
14149         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14150         here...
14151         * modules/mkfifo (configure.ac): ... to here.
14152
14153 2011-05-21  Bruno Haible  <bruno@clisp.org>
14154
14155         mkdtemp: Move AC_LIBOBJ invocations to module description.
14156         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14157         invocations from here...
14158         * modules/mkdtemp (configure.ac): ... to here.
14159
14160 2011-05-21  Bruno Haible  <bruno@clisp.org>
14161
14162         mkdir: Move AC_LIBOBJ invocations to module description.
14163         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14164         * modules/mkdir (configure.ac): ... to here.
14165
14166 2011-05-21  Bruno Haible  <bruno@clisp.org>
14167
14168         memset: Move AC_LIBOBJ invocations to module description.
14169         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14170         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14171         here...
14172         * modules/memset (configure.ac): ... to here.
14173
14174 2011-05-21  Bruno Haible  <bruno@clisp.org>
14175
14176         memrchr: Move AC_LIBOBJ invocations to module description.
14177         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14178         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14179         here...
14180         * modules/memrchr (configure.ac): ... to here.
14181
14182 2011-05-21  Bruno Haible  <bruno@clisp.org>
14183
14184         mempcpy: Move AC_LIBOBJ invocations to module description.
14185         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14186         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14187         here...
14188         * modules/mempcpy (configure.ac): ... to here.
14189
14190 2011-05-21  Bruno Haible  <bruno@clisp.org>
14191
14192         memmove: Move AC_LIBOBJ invocations to module description.
14193         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14194         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14195         here...
14196         * modules/memmove (configure.ac): ... to here.
14197
14198 2011-05-21  Bruno Haible  <bruno@clisp.org>
14199
14200         memmem*: Move AC_LIBOBJ invocations to module description.
14201         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14202         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14203         here...
14204         (gl_FUNC_MEMMEM): ... and here...
14205         * modules/memmem-simple (configure.ac): ... to here.
14206         * modules/memmem (configure.ac): ... and here.
14207
14208 2011-05-21  Bruno Haible  <bruno@clisp.org>
14209
14210         memcpy: Move AC_LIBOBJ invocations to module description.
14211         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14212         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14213         here...
14214         * modules/memcpy (configure.ac): ... to here.
14215
14216 2011-05-21  Bruno Haible  <bruno@clisp.org>
14217
14218         memcmp: Simplify autoconf macro.
14219         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14220         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14221         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14222
14223 2011-05-21  Bruno Haible  <bruno@clisp.org>
14224
14225         memcmp: Move AC_LIBOBJ invocations to module description.
14226         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14227         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14228         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14229         * modules/memcmp (configure.ac): ... to here.
14230         (Depends-on): Update conditions.
14231
14232 2011-05-21  Bruno Haible  <bruno@clisp.org>
14233
14234         memchr: Respect rules for use of AC_LIBOBJ.
14235         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14236         invocations from here...
14237         * modules/memchr (configure.ac): ... to here.
14238
14239 2011-05-21  Bruno Haible  <bruno@clisp.org>
14240
14241         mbtowc: Move AC_LIBOBJ invocations to module description.
14242         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14243         invocations from here...
14244         * modules/mbtowc (configure.ac): ... to here.
14245
14246 2011-05-21  Bruno Haible  <bruno@clisp.org>
14247
14248         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14249         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14250         gl_PREREQ_MBSRTOWCS invocations from here...
14251         * modules/mbsrtowcs (configure.ac): ... to here.
14252
14253 2011-05-21  Bruno Haible  <bruno@clisp.org>
14254
14255         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14256         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14257         gl_PREREQ_MBSNRTOWCS invocations from here...
14258         * modules/mbsnrtowcs (configure.ac): ... to here.
14259
14260 2011-05-21  Bruno Haible  <bruno@clisp.org>
14261
14262         mbsinit: Move AC_LIBOBJ invocations to module description.
14263         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14264         invocations from here...
14265         * modules/mbsinit (configure.ac): ... to here.
14266
14267 2011-05-21  Bruno Haible  <bruno@clisp.org>
14268
14269         mbrlen: Move AC_LIBOBJ invocations to module description.
14270         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14271         invocations from here...
14272         * modules/mbrlen (configure.ac): ... to here.
14273
14274 2011-05-21  Bruno Haible  <bruno@clisp.org>
14275
14276         mbrtowc: Respect rules for use of AC_LIBOBJ.
14277         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14278         invocations from here...
14279         * modules/mbrtowc (configure.ac): ... to here.
14280
14281 2011-05-21  Bruno Haible  <bruno@clisp.org>
14282
14283         malloc-*: Move AC_LIBOBJ invocations to module description.
14284         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14285         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14286         AC_LIBOBJ invocations from here...
14287         * modules/malloc-gnu (configure.ac): ... to here.
14288         * modules/malloc-posix (configure.ac): ... and here.
14289
14290 2011-05-21  Bruno Haible  <bruno@clisp.org>
14291
14292         lstat, openat: Respect rules for use of AC_LIBOBJ.
14293         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14294         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14295         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14296         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14297         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14298         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14299         here.
14300         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14301
14302 2011-05-21  Bruno Haible  <bruno@clisp.org>
14303
14304         lseek: Move AC_LIBOBJ invocations to module description.
14305         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14306         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14307         * modules/lseek (configure.ac): ... to here.
14308
14309 2011-05-21  Bruno Haible  <bruno@clisp.org>
14310
14311         linkat: Move AC_LIBOBJ invocations to module description.
14312         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14313         here...
14314         * modules/linkat (configure.ac): ... to here.
14315
14316 2011-05-21  Bruno Haible  <bruno@clisp.org>
14317
14318         link: Respect rules for use of AC_LIBOBJ.
14319         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14320         * modules/link (configure.ac): ... to here.
14321
14322 2011-05-21  Bruno Haible  <bruno@clisp.org>
14323
14324         lchown: Move AC_LIBOBJ invocations to module description.
14325         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14326         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14327         * modules/lchown (configure.ac): ... to here.
14328
14329 2011-05-21  Bruno Haible  <bruno@clisp.org>
14330
14331         iswctype: Move AC_LIBOBJ invocations to module description.
14332         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14333         here...
14334         * modules/iswctype (configure.ac): ... to here.
14335
14336 2011-05-21  Bruno Haible  <bruno@clisp.org>
14337
14338         iswblank: Move AC_LIBOBJ invocations to module description.
14339         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14340         here...
14341         * modules/iswblank (configure.ac): ... to here.
14342
14343 2011-05-21  Bruno Haible  <bruno@clisp.org>
14344
14345         atanl: Move AC_LIBOBJ invocations to module description.
14346         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14347         * modules/atanl (configure.ac): ... to here.
14348
14349 2011-05-21  Bruno Haible  <bruno@clisp.org>
14350
14351         acosl: Move AC_LIBOBJ invocations to module description.
14352         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14353         * modules/acosl (configure.ac): ... to here.
14354
14355 2011-05-21  Bruno Haible  <bruno@clisp.org>
14356
14357         asinl: Respect rules for use of AC_LIBOBJ.
14358         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14359         * modules/asinl (configure.ac): ... to here.
14360
14361 2011-05-21  Bruno Haible  <bruno@clisp.org>
14362
14363         tanl: Move AC_LIBOBJ invocations to module description.
14364         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14365         * modules/tanl (configure.ac): ... to here.
14366
14367 2011-05-21  Bruno Haible  <bruno@clisp.org>
14368
14369         cosl: Move AC_LIBOBJ invocations to module description.
14370         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14371         * modules/cosl (configure.ac): ... to here.
14372
14373 2011-05-21  Bruno Haible  <bruno@clisp.org>
14374
14375         sinl: Move AC_LIBOBJ invocations to module description.
14376         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14377         * modules/sinl (configure.ac): ... to here.
14378
14379 2011-05-21  Bruno Haible  <bruno@clisp.org>
14380
14381         logl: Move AC_LIBOBJ invocations to module description.
14382         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14383         * modules/logl (configure.ac): ... to here.
14384
14385 2011-05-21  Bruno Haible  <bruno@clisp.org>
14386
14387         expl: Move AC_LIBOBJ invocations to module description.
14388         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14389         * modules/expl (configure.ac): ... to here.
14390
14391 2011-05-21  Bruno Haible  <bruno@clisp.org>
14392
14393         roundl: Move AC_LIBOBJ invocations to module description.
14394         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14395         * modules/roundl (configure.ac): ... to here.
14396
14397 2011-05-21  Bruno Haible  <bruno@clisp.org>
14398
14399         round: Move AC_LIBOBJ invocations to module description.
14400         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14401         * modules/round (configure.ac): ... to here.
14402
14403 2011-05-21  Bruno Haible  <bruno@clisp.org>
14404
14405         roundf: Move AC_LIBOBJ invocations to module description.
14406         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14407         * modules/roundf (configure.ac): ... to here.
14408
14409 2011-05-21  Bruno Haible  <bruno@clisp.org>
14410
14411         truncl: Move AC_LIBOBJ invocations to module description.
14412         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14413         * modules/truncl (configure.ac): ... to here.
14414
14415 2011-05-21  Bruno Haible  <bruno@clisp.org>
14416
14417         trunc: Move AC_LIBOBJ invocations to module description.
14418         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14419         * modules/trunc (configure.ac): ... to here.
14420
14421 2011-05-21  Bruno Haible  <bruno@clisp.org>
14422
14423         truncf: Move AC_LIBOBJ invocations to module description.
14424         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14425         * modules/truncf (configure.ac): ... to here.
14426
14427 2011-05-21  Bruno Haible  <bruno@clisp.org>
14428
14429         ceill: Move AC_LIBOBJ invocations to module description.
14430         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14431         * modules/ceill (configure.ac): ... to here.
14432
14433 2011-05-21  Bruno Haible  <bruno@clisp.org>
14434
14435         ceil: Move AC_LIBOBJ invocations to module description.
14436         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14437         * modules/ceil (configure.ac): ... to here.
14438
14439 2011-05-21  Bruno Haible  <bruno@clisp.org>
14440
14441         ceilf: Move AC_LIBOBJ invocations to module description.
14442         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14443         * modules/ceilf (configure.ac): ... to here.
14444
14445 2011-05-21  Bruno Haible  <bruno@clisp.org>
14446
14447         floorl: Respect rules for use of AC_LIBOBJ.
14448         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14449         * modules/floorl (configure.ac): ... to here.
14450
14451 2011-05-21  Bruno Haible  <bruno@clisp.org>
14452
14453         floor: Respect rules for use of AC_LIBOBJ.
14454         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14455         * modules/floor (configure.ac): ... to here.
14456
14457 2011-05-21  Bruno Haible  <bruno@clisp.org>
14458
14459         floorf: Move AC_LIBOBJ invocations to module description.
14460         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14461         * modules/floorf (configure.ac): ... to here.
14462
14463 2011-05-20  Bruno Haible  <bruno@clisp.org>
14464
14465         sqrtl: Respect rules for use of AC_LIBOBJ.
14466         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14467         * modules/sqrtl (configure.ac): ... to here.
14468
14469 2011-05-20  Bruno Haible  <bruno@clisp.org>
14470
14471         ldexpl: Respect rules for use of AC_LIBOBJ.
14472         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14473         * modules/ldexpl (configure.ac): ... to here.
14474
14475 2011-05-20  Bruno Haible  <bruno@clisp.org>
14476
14477         frexpl*: Respect rules for use of AC_LIBOBJ.
14478         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14479         invocation from here...
14480         * modules/frexpl (configure.ac): ... to here.
14481         * modules/frexpl-nolibm (configure.ac): ... and here.
14482
14483 2011-05-20  Bruno Haible  <bruno@clisp.org>
14484
14485         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14486         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14487         invocation from here...
14488         * modules/frexp (configure.ac): ... to here.
14489         * modules/frexp-nolibm (configure.ac): ... and here.
14490
14491 2011-05-20  Bruno Haible  <bruno@clisp.org>
14492
14493         isnan: Respect rules for use of AC_LIBOBJ.
14494         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14495         invocations here.
14496         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14497         REPLACE_ISNAN.
14498         * modules/isnand (configure.ac): Likewise.
14499         * modules/isnanl (configure.ac): Likewise.
14500
14501 2011-05-20  Bruno Haible  <bruno@clisp.org>
14502
14503         isnanl*: Respect rules for use of AC_LIBOBJ.
14504         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14505         invocation from here...
14506         * modules/isnanl (configure.ac): ... to here.
14507         * modules/isnanl-nolibm (configure.ac): ... and here.
14508
14509 2011-05-20  Bruno Haible  <bruno@clisp.org>
14510
14511         isnand*: Move AC_LIBOBJ invocations to module description.
14512         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14513         invocation from here...
14514         * modules/isnand (configure.ac): ... to here.
14515         * modules/isnand-nolibm (configure.ac): ... and here.
14516
14517 2011-05-20  Bruno Haible  <bruno@clisp.org>
14518
14519         isnanf*: Move AC_LIBOBJ invocations to module description.
14520         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14521         invocation from here...
14522         * modules/isnanf (configure.ac): ... to here.
14523         * modules/isnanf-nolibm (configure.ac): ... and here.
14524
14525 2011-05-20  Bruno Haible  <bruno@clisp.org>
14526
14527         isnan*: Separate the AC_LIBOBJ invocations.
14528         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14529         AC_LIBOBJ invocation.
14530         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14531         here.
14532         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14533         AC_LIBOBJ invocation.
14534         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14535         here.
14536         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14537         AC_LIBOBJ invocation.
14538         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14539         here.
14540         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14541
14542 2011-05-08  Bruno Haible  <bruno@clisp.org>
14543
14544         isinf: Move AC_LIBOBJ invocations to module description.
14545         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14546         * modules/isinf (configure.ac): ... to here.
14547
14548 2011-05-08  Bruno Haible  <bruno@clisp.org>
14549
14550         isfinite: Move AC_LIBOBJ invocations to module description.
14551         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14552         * modules/isfinite (configure.ac): ... to here.
14553
14554 2011-05-08  Bruno Haible  <bruno@clisp.org>
14555
14556         isblank: Move AC_LIBOBJ invocations to module description.
14557         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14558         here...
14559         * modules/isblank (configure.ac): ... to here.
14560
14561 2011-05-08  Bruno Haible  <bruno@clisp.org>
14562
14563         isapipe: Move AC_LIBOBJ invocations to module description.
14564         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14565         gl_PREREQ_ISAPIPE invocations from here...
14566         * modules/isapipe (configure.ac): ... to here.
14567         (Depends-on): Update condition.
14568
14569 2011-05-08  Bruno Haible  <bruno@clisp.org>
14570
14571         ioctl: Move AC_LIBOBJ invocations to module description.
14572         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14573         invocations from here...
14574         * modules/ioctl (configure.ac): ... to here.
14575         (Depends-on): Update condition.
14576
14577 2011-05-08  Bruno Haible  <bruno@clisp.org>
14578
14579         imaxdiv: Move AC_LIBOBJ invocations to module description.
14580         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14581         invocations from here...
14582         * modules/imaxdiv (configure.ac): ... to here.
14583
14584 2011-05-08  Bruno Haible  <bruno@clisp.org>
14585
14586         imaxabs: Move AC_LIBOBJ invocations to module description.
14587         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14588         invocations from here...
14589         * modules/imaxabs (configure.ac): ... to here.
14590
14591 2011-05-08  Bruno Haible  <bruno@clisp.org>
14592
14593         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14594         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14595         AC_LIBOBJ invocations from here...
14596         * modules/getaddrinfo (configure.ac): ... to here.
14597         (Depends-on): Add conditions.
14598
14599 2011-05-08  Bruno Haible  <bruno@clisp.org>
14600
14601         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14602         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14603         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14604         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14605         (gl_PREREQ_INET_PTON): ... from here.
14606         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14607         gl_PREREQ_INET_PTON here.
14608         (Depends-on): Update condition.
14609
14610 2011-05-08  Bruno Haible  <bruno@clisp.org>
14611
14612         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14613         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14614         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14615         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14616         (gl_PREREQ_INET_NTOP): ... from here.
14617         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14618         gl_PREREQ_INET_NTOP here.
14619         (Depends-on): Update condition.
14620
14621 2011-05-08  Bruno Haible  <bruno@clisp.org>
14622
14623         iconv_open: Move AC_LIBOBJ invocations to module description.
14624         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14625         AC_LIBOBJ invocations from here...
14626         * modules/iconv_open (configure.ac): ... to here.
14627
14628 2011-05-08  Bruno Haible  <bruno@clisp.org>
14629
14630         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14631         If module 'iconv_open' is among the main modules and module
14632         'iconv_open-utf' is among the tests dependencies, then
14633         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14634         return the special iconv_t values. Therefore iconv() and iconv_close()
14635         must support these special iconv_t values, already in lib, not only in
14636         tests.
14637         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14638         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14639         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14640         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14641         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14642         (Depends-on): Add the dependencies of iconv_open-utf.
14643         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14644         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14645         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14646
14647 2011-05-08  Bruno Haible  <bruno@clisp.org>
14648
14649         group-member: Move AC_LIBOBJ invocations to module description.
14650         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14651         gl_PREREQ_GROUP_MEMBER invocations from here...
14652         * modules/group-member (configure.ac): ... to here.
14653
14654 2011-05-08  Bruno Haible  <bruno@clisp.org>
14655
14656         grantpt: Move AC_LIBOBJ invocations to module description.
14657         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14658         invocations from here...
14659         * modules/grantpt (configure.ac): ... to here.
14660
14661 2011-05-08  Bruno Haible  <bruno@clisp.org>
14662
14663         glob: Move AC_LIBOBJ invocations to module description.
14664         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14665         from here...
14666         * modules/glob (configure.ac): ... to here.
14667
14668 2011-05-08  Bruno Haible  <bruno@clisp.org>
14669
14670         getusershell: Move AC_LIBOBJ invocations to module description.
14671         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14672         Move AC_LIBOBJ invocation from here...
14673         * modules/getusershell (configure.ac): ... to here.
14674         (Depends-on): Update condition.
14675
14676 2011-05-08  Bruno Haible  <bruno@clisp.org>
14677
14678         gettimeofday: Move AC_LIBOBJ invocations to module description.
14679         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14680         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14681         gl_PREREQ_GETTIMEOFDAY invocations from here...
14682         * modules/gettimeofday (configure.ac): ... to here.
14683
14684 2011-05-08  Bruno Haible  <bruno@clisp.org>
14685
14686         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14687         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14688         just gl_FUNC_TZSET.
14689         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14690         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14691         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14692         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14693
14694 2011-05-08  Bruno Haible  <bruno@clisp.org>
14695
14696         getsubopt: Move AC_LIBOBJ invocations to module description.
14697         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14698         gl_PREREQ_GETSUBOPT invocations from here...
14699         * modules/getsubopt (configure.ac): ... to here.
14700
14701 2011-05-08  Bruno Haible  <bruno@clisp.org>
14702
14703         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14704         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14705         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14706         * modules/getpass-gnu (configure.ac): ... to here.
14707
14708 2011-05-08  Bruno Haible  <bruno@clisp.org>
14709
14710         getpass: Move AC_LIBOBJ invocations to module description.
14711         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14712         gl_PREREQ_GETPASS invocations from here...
14713         * modules/getpass (configure.ac): ... to here.
14714
14715 2011-05-08  Bruno Haible  <bruno@clisp.org>
14716
14717         getpagesize: Move AC_LIBOBJ invocations to module description.
14718         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14719         from here...
14720         * modules/getpagesize (configure.ac): ... to here.
14721
14722 2011-05-08  Bruno Haible  <bruno@clisp.org>
14723
14724         getopt: Move AC_LIBOBJ invocations to module description.
14725         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14726         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14727         invocations from here...
14728         * modules/getopt-gnu (configure.ac): ... to here.
14729         * modules/getopt-posix (configure.ac): ... and here.
14730         (Depends-on): Update condition.
14731
14732 2011-05-08  Bruno Haible  <bruno@clisp.org>
14733
14734         getopt, argp: Respect rules for use of AC_LIBOBJ.
14735         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14736         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14737         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14738         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14739
14740 2011-05-08  Bruno Haible  <bruno@clisp.org>
14741
14742         getlogin_r: Move AC_LIBOBJ invocations to module description.
14743         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14744         gl_PREREQ_GETLOGIN_R invocations from here...
14745         * modules/getlogin_r (configure.ac): ... to here.
14746
14747 2011-05-08  Bruno Haible  <bruno@clisp.org>
14748
14749         getlogin: Move AC_LIBOBJ invocations to module description.
14750         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14751         here...
14752         * modules/getlogin (configure.ac): ... to here.
14753
14754 2011-05-08  Bruno Haible  <bruno@clisp.org>
14755
14756         getloadavg: Move AC_LIBOBJ invocations to module description.
14757         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14758         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14759         * modules/getloadavg (configure.ac): ... to here.
14760
14761 2011-05-08  Bruno Haible  <bruno@clisp.org>
14762
14763         gethrxtime: Move AC_LIBOBJ invocations to module description.
14764         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14765         LIB_GETHRXTIME from here...
14766         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14767         invocations from here...
14768         * modules/gethrxtime (configure.ac): ... to here.
14769
14770 2011-05-08  Bruno Haible  <bruno@clisp.org>
14771
14772         gethostname: Move AC_LIBOBJ invocations to module description.
14773         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14774         gl_PREREQ_GETHOSTNAME invocations from here...
14775         * modules/gethostname (configure.ac): ... to here.
14776
14777 2011-05-08  Bruno Haible  <bruno@clisp.org>
14778
14779         getgroups: Move AC_LIBOBJ invocations to module description.
14780         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14781         here...
14782         * modules/getgroups (configure.ac): ... to here.
14783
14784 2011-05-08  Bruno Haible  <bruno@clisp.org>
14785
14786         getdtablesize: Move AC_LIBOBJ invocations to module description.
14787         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14788         invocation from here...
14789         * modules/getdtablesize (configure.ac): ... to here.
14790
14791 2011-05-08  Bruno Haible  <bruno@clisp.org>
14792
14793         getdomainname: Move AC_LIBOBJ invocations to module description.
14794         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14795         gl_PREREQ_GETDOMAINNAME invocations from here...
14796         * modules/getdomainname (configure.ac): ... to here.
14797
14798 2011-05-08  Bruno Haible  <bruno@clisp.org>
14799
14800         getline: Move AC_LIBOBJ invocations to module description.
14801         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14802         invocations from here...
14803         * modules/getline (configure.ac): ... to here.
14804
14805 2011-05-08  Bruno Haible  <bruno@clisp.org>
14806
14807         getline: Simplify.
14808         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14809         It's already handled through the module dependency.
14810
14811 2011-05-08  Bruno Haible  <bruno@clisp.org>
14812
14813         getdelim: Move AC_LIBOBJ invocations to module description.
14814         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14815         and gl_PREREQ_GETDELIM invocations from here...
14816         * modules/getdelim (configure.ac): ... to here.
14817         (Depends-on): Fix condition.
14818
14819 2011-05-08  Bruno Haible  <bruno@clisp.org>
14820
14821         getcwd: Move AC_LIBOBJ invocations to module description.
14822         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14823         invocations from here...
14824         * modules/getcwd (configure.ac): ... to here.
14825
14826 2011-05-08  Bruno Haible  <bruno@clisp.org>
14827
14828         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14829         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14830         here...
14831         * modules/getcwd-lgpl (configure.ac): ... to here.
14832
14833 2011-05-07  Bruno Haible  <bruno@clisp.org>
14834
14835         crypto/gc: Move AC_LIBOBJ invocations to module description.
14836         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14837         * modules/crypto/gc (configure.ac): ... to here.
14838
14839 2011-05-07  Bruno Haible  <bruno@clisp.org>
14840
14841         fwriting: Move AC_LIBOBJ invocations to module description.
14842         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14843         here...
14844         * modules/fwriting (configure.ac): ... to here.
14845
14846 2011-05-07  Bruno Haible  <bruno@clisp.org>
14847
14848         fwritable: Move AC_LIBOBJ invocations to module description.
14849         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14850         here...
14851         * modules/fwritable (configure.ac): ... to here.
14852
14853 2011-05-07  Bruno Haible  <bruno@clisp.org>
14854
14855         futimens: Move AC_LIBOBJ invocations to module description.
14856         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14857         here...
14858         * modules/futimens (configure.ac): ... to here.
14859
14860 2011-05-07  Bruno Haible  <bruno@clisp.org>
14861
14862         ftruncate: Move AC_LIBOBJ invocations to module description.
14863         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14864         gl_PREREQ_FTRUNCATE invocations from here...
14865         * modules/ftruncate (configure.ac): ... to here.
14866
14867 2011-05-07  Bruno Haible  <bruno@clisp.org>
14868
14869         fsync: Move AC_LIBOBJ invocations to module description.
14870         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14871         invocations from here...
14872         * modules/fsync (configure.ac): ... to here.
14873
14874 2011-05-07  Bruno Haible  <bruno@clisp.org>
14875
14876         fsusage: Move AC_LIBOBJ invocations to module description.
14877         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14878         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14879         * modules/fsusage (configure.ac): ... to here.
14880
14881 2011-05-07  Bruno Haible  <bruno@clisp.org>
14882
14883         freopen: Move AC_LIBOBJ invocations to module description.
14884         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14885         invocations from here...
14886         * modules/freopen (configure.ac): ... to here.
14887
14888 2011-05-07  Bruno Haible  <bruno@clisp.org>
14889
14890         free: Move AC_LIBOBJ invocations to module description.
14891         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14892         invocations from here...
14893         * modules/free (configure.ac): ... to here.
14894
14895 2011-05-07  Bruno Haible  <bruno@clisp.org>
14896
14897         freadable: Move AC_LIBOBJ invocations to module description.
14898         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14899         here...
14900         * modules/freadable (configure.ac): ... to here.
14901
14902 2011-05-07  Bruno Haible  <bruno@clisp.org>
14903
14904         fpurge: Move AC_LIBOBJ invocations to module description.
14905         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14906         invocations from here...
14907         * modules/fpurge (configure.ac): ... to here.
14908
14909 2011-05-07  Bruno Haible  <bruno@clisp.org>
14910
14911         fpending: Move AC_LIBOBJ invocations to module description.
14912         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14913         gl_FUNC_FPENDING.
14914         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14915         invocations from here...
14916         * modules/fpending (configure.ac): ... to here.
14917
14918 2011-05-07  Bruno Haible  <bruno@clisp.org>
14919
14920         fopen: Move AC_LIBOBJ invocations to module description.
14921         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14922         invocations from here...
14923         * modules/fopen (configure.ac): ... to here.
14924
14925 2011-05-07  Bruno Haible  <bruno@clisp.org>
14926
14927         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14928         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14929         gl_FUNC_FNMATCH_POSIX.
14930         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14931         invocations from here...
14932         * modules/fnmatch (configure.ac): ... to here.
14933         * modules/fnmatch-gnu (configure.ac): ... and here.
14934
14935 2011-05-07  Bruno Haible  <bruno@clisp.org>
14936
14937         flock: Move AC_LIBOBJ invocations to module description.
14938         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14939         invocations from here...
14940         * modules/flock (configure.ac): ... to here.
14941
14942 2011-05-07  Bruno Haible  <bruno@clisp.org>
14943
14944         fileblocks: Move AC_LIBOBJ invocations to module description.
14945         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14946         gl_PREREQ_FILEBLOCKS invocations from here...
14947         * modules/fileblocks (configure.ac): ... to here.
14948
14949 2011-05-06  Bruno Haible  <bruno@clisp.org>
14950
14951         fflush: Move AC_LIBOBJ invocations to module description.
14952         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14953         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14954         invocations from here...
14955         * modules/fflush (configure.ac): ... to here.
14956
14957 2011-05-06  Bruno Haible  <bruno@clisp.org>
14958
14959         fdopendir: Move AC_LIBOBJ invocations to module description.
14960         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14961         here...
14962         * modules/fdopendir (configure.ac): ... to here.
14963         (Depends-on): Improve conditions.
14964
14965 2011-05-06  Bruno Haible  <bruno@clisp.org>
14966
14967         _Exit: Move AC_LIBOBJ invocations to module description.
14968         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14969         invocations from here...
14970         * modules/_Exit (configure.ac): ... to here.
14971
14972 2011-05-21  Bruno Haible  <bruno@clisp.org>
14973
14974         euidaccess: Respect rules for use of AC_LIBOBJ.
14975         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14976         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14977         from here...
14978         * modules/euidaccess (configure.ac): ... to here.
14979
14980 2011-05-06  Bruno Haible  <bruno@clisp.org>
14981
14982         error: Move AC_LIBOBJ invocations to module description.
14983         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14984         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14985         invocations from here...
14986         * modules/error (configure.ac): ... to here.
14987
14988 2011-05-06  Bruno Haible  <bruno@clisp.org>
14989
14990         duplocale: Move AC_LIBOBJ invocations to module description.
14991         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14992         gl_PREREQ_DUPLOCALE invocations from here...
14993         * modules/duplocale (configure.ac): ... to here.
14994
14995 2011-05-05  Bruno Haible  <bruno@clisp.org>
14996
14997         dirfd: Move AC_LIBOBJ invocations to module description.
14998         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14999         gl_FUNC_DIRFD.
15000         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15001         here...
15002         * modules/dirfd (configure.ac): ... to here.
15003         (Depends-on): Fix condition.
15004
15005 2011-05-05  Bruno Haible  <bruno@clisp.org>
15006
15007         chown: Respect rules for use of AC_LIBOBJ.
15008         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15009         * modules/chown (configure.ac): ... to here.
15010
15011 2011-05-05  Bruno Haible  <bruno@clisp.org>
15012
15013         chdir-long: Move AC_LIBOBJ invocations to module description.
15014         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15015         gl_PREREQ_CHDIR_LONG invocations from here...
15016         * modules/chdir-long (configure.ac): ... to here.
15017
15018 2011-05-05  Bruno Haible  <bruno@clisp.org>
15019
15020         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15021         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15022         from here...
15023         * modules/canonicalize-lgpl (configure.ac): ... to here.
15024
15025 2011-05-05  Bruno Haible  <bruno@clisp.org>
15026
15027         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15028         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15029         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15030         REPLACE_CALLOC.
15031         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15032         * modules/calloc-gnu (configure.ac): Likewise.
15033
15034 2011-05-05  Bruno Haible  <bruno@clisp.org>
15035
15036         btowc: Move AC_LIBOBJ invocations to module description.
15037         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15038         invocations from here...
15039         * modules/btowc (configure.ac): ... to here.
15040
15041 2011-05-21  Bruno Haible  <bruno@clisp.org>
15042
15043         atexit: Move AC_LIBOBJ invocations to module description.
15044         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15045         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15046         here...
15047         * modules/atexit (configure.ac): ... to here.
15048
15049 2011-05-05  Bruno Haible  <bruno@clisp.org>
15050
15051         atoll: Move AC_LIBOBJ invocations to module description.
15052         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15053         invocations from here...
15054         * modules/atoll (configure.ac): ... to here.
15055
15056 2011-05-05  Bruno Haible  <bruno@clisp.org>
15057
15058         argz: Move AC_LIBOBJ invocations to module description.
15059         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15060         * modules/argz (configure.ac): ... to here.
15061
15062 2011-05-05  Bruno Haible  <bruno@clisp.org>
15063
15064         alphasort: Move AC_LIBOBJ invocations to module description.
15065         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15066         gl_PREREQ_ALPHASORT invocations from here...
15067         * modules/alphasort (configure.ac): ... to here.
15068
15069 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15070
15071         verify: new macro verify_expr; verify_true deprecated
15072         * NEWS: Mention this.
15073         * doc/verify.texi (Compile-time Assertions): Document this.
15074         * lib/verify.h (verify_true): Deprecate.
15075         (verify_expr): New macro.
15076         * tests/test-verify.c (function): Test verify_expr.
15077
15078 2011-06-14  Jim Meyering  <meyering@redhat.com>
15079
15080         init.sh: give more portable redirection-related advice in a comment
15081         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15082         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15083         for lots of discussion.  Stefano Lattarini suggested the solution
15084         of putting "9>&2" after the command.  Reported by Bruno Haible.
15085
15086 2011-06-13  Bruno Haible  <bruno@clisp.org>
15087
15088         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15089         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15090         'none'.
15091
15092 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15093
15094         ftoastr: use strtof only if HAVE_STRTOF
15095         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15097         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15098         * modules/ftoastr (configure.ac): Check for strtof.
15099
15100 2011-06-13  Bruno Haible  <bruno@clisp.org>
15101
15102         gnulib-tool: Addendum to 2011-06-08 commit.
15103         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15104         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15105
15106 2011-06-13  Bruno Haible  <bruno@clisp.org>
15107
15108         fseeko: Provide a non-inline replacement of fseek().
15109         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15110         * modules/fseeko (Depends-on): Add fseek.
15111         * modules/fseek (License): Change to LGPLv2+.
15112
15113 2011-06-13  Bruno Haible  <bruno@clisp.org>
15114
15115         ftello: Provide a non-inline replacement of ftell().
15116         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15117         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15118         not have ftello() (such as on mingw).
15119         * modules/ftello (Depends-on): Add ftell.
15120         * modules/ftell (License): Change to LGPLv2+.
15121
15122 2011-05-07  Bruno Haible  <bruno@clisp.org>
15123
15124         ftell: Move AC_LIBOBJ invocations to module description.
15125         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15126         * modules/ftell (configure.ac): ... to here.
15127
15128 2011-05-07  Bruno Haible  <bruno@clisp.org>
15129
15130         ftello: Respect rules for use of AC_LIBOBJ.
15131         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15132         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15133         here...
15134         * modules/ftello (configure.ac): ... to here.
15135
15136 2011-05-07  Bruno Haible  <bruno@clisp.org>
15137
15138         fseeko: Simplify.
15139         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15140         (gl_FUNC_FSEEKO): Inline it here.
15141
15142 2011-05-07  Bruno Haible  <bruno@clisp.org>
15143
15144         fseek: Move AC_LIBOBJ invocations to module description.
15145         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15146         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15147         * modules/fseek (configure.ac): ... to here.
15148
15149 2011-05-07  Bruno Haible  <bruno@clisp.org>
15150
15151         fseek: Respect rules for use of AC_LIBOBJ.
15152         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15153         here...
15154         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15155
15156 2011-05-07  Bruno Haible  <bruno@clisp.org>
15157
15158         fseeko: Respect rules for use of AC_LIBOBJ.
15159         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15160         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15161         here...
15162         * modules/fseeko (configure.ac): ... to here.
15163
15164 2011-06-13  Bruno Haible  <bruno@clisp.org>
15165
15166         gnulib-tool: Allow comments in the 'Depends-on' section.
15167         * doc/gnulib.texi (Module description): Mention comment syntax in the
15168         Depends-on section.
15169         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15170
15171 2011-06-13  Bruno Haible  <bruno@clisp.org>
15172
15173         file-set.h: guard __attibute__ use, now that it's not always defined
15174         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15175         versions that support it.  This fixes a coreutils build failure with
15176         the vendor cc on HP-UX 11.31.
15177
15178 2011-06-12  Bruno Haible  <bruno@clisp.org>
15179
15180         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15181         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15182         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15183         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15184         (acl, aclsort): New declarations.
15185         (aclv_nontrivial): New declaration.
15186         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15187         (file_has_acl): Read also the second kind of HP-UX ACLs.
15188         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15189         kind of HP-UX ACLs if the first kind fails.
15190         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15191         second kind of HP-UX ACLs.
15192         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15193         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15194         agree.
15195         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15196         hpuxjfs.
15197         Handle hpuxjfs.
15198         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15199         hpuxjfs.
15200         Handle hpuxjfs.
15201         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15202         (func_test_same_acls): Use both lsacl and getacl.
15203         Handle hpuxjfs.
15204         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15205         (func_test_same_acls): Use both lsacl and getacl.
15206         Handle hpuxjfs.
15207
15208 2011-06-12  Bruno Haible  <bruno@clisp.org>
15209
15210         acl: Complete the 2010-08-10 fix.
15211         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15212         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15213         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15214         explicitly.
15215         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15216         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15217
15218 2011-06-12  Bruno Haible  <bruno@clisp.org>
15219
15220         spawn-pipe tests: Comments.
15221         * tests/test-spawn-pipe-child.c (main): Update comment.
15222         Reported by James Youngman <jay@gnu.org>.
15223
15224 2011-06-11  James Youngman  <jay@gnu.org>
15225
15226         New module 'stat-size'.
15227         * modules/stat-size: New module.  Provides macros for accessing
15228         file size information in instances of struct stat.  Depends on the
15229         fileblocks module because it calls st_blocks.
15230         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15231         * doc/gnulib.texi: Include stat-size.texi.
15232         * doc/stat-size.texi: Documentation for this module.
15233         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15234         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15235         AC_STRUCT_ST_BLOCKS.
15236
15237 2011-06-09  Bruno Haible  <bruno@clisp.org>
15238
15239         thread: Support pthreads-win32.
15240         * lib/glthread/thread.h (gl_thread_self): Define differently on
15241         pthreads-win32.
15242         (gl_null_thread): New declaration.
15243         (gl_thread_self_pointer): New macro.
15244         * lib/glthread/thread.c (gl_null_thread): New constant.
15245         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15246         gl_thread_self.
15247         * tests/test-tls.c: Likewise.
15248         Suggested by Paul Eggert. Reported by Eric Blake.
15249
15250 2011-06-09  Bruno Haible  <bruno@clisp.org>
15251
15252         thread: Fix confusion between NULL and 0.
15253         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15254         Reported by Paul Eggert.
15255
15256 2011-06-09  Bruno Haible  <bruno@clisp.org>
15257
15258         spawn-pipe tests: Avoid test failure on HP-UX 11.
15259         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15260         is closed.
15261
15262 2011-06-09  Bruno Haible  <bruno@clisp.org>
15263
15264         acl tests: Fix compilation error on HP-UX 11.
15265         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15266
15267 2011-06-09  Bruno Haible  <bruno@clisp.org>
15268
15269         rmdir: Avoid test failure on HP-UX 10.20.
15270         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15271         EEXIST.
15272
15273 2011-06-08  Eric Blake  <eblake@redhat.com>
15274
15275         perror: fix test on mingw
15276         * modules/perror-tests (Depends-on): Add dup2.
15277
15278         strerror_r-posix: fix on MacOS
15279         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15280         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15281         logic bug.
15282         * lib/strerror_r.c (strerror_r): Fix the bug.
15283         * lib/strerror.c (strerror): Likewise.
15284         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15285         problem.
15286         * doc/posix-functions/strerror.texi (strerror): Likewise.
15287         * doc/posix-functions/perror.texi (perror): Likewise.
15288         * tests/test-strerror.c (main): Enhance test.
15289         * tests/test-strerror_r.c (main): Likewise.
15290
15291 2011-06-08  Bruno Haible  <bruno@clisp.org>
15292
15293         gnulib-tool: Better isolation between different gnulib-tool invocations.
15294         * gnulib-tool: New option --witness-c-macro.
15295         (witness_c_macro): New variable.
15296         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15297         AM_CPPFLAGS define it as a C macro.
15298         (func_emit_tests_Makefile_am): Likewise.
15299         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15300         read it from there.
15301         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15302         m4_define, not AC_DEFUN.
15303         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15304         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15305         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15306         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15307         s|...|...|, to substitute the values of the GNULIB_* module indicator
15308         variables.
15309         * modules/dirent (Makefile.am): Likewise.
15310         * modules/fcntl-h (Makefile.am): Likewise.
15311         * modules/iconv-h (Makefile.am): Likewise.
15312         * modules/langinfo (Makefile.am): Likewise.
15313         * modules/locale (Makefile.am): Likewise.
15314         * modules/math (Makefile.am): Likewise.
15315         * modules/netdb (Makefile.am): Likewise.
15316         * modules/poll-h (Makefile.am): Likewise.
15317         * modules/pty (Makefile.am): Likewise.
15318         * modules/search (Makefile.am): Likewise.
15319         * modules/signal (Makefile.am): Likewise.
15320         * modules/spawn (Makefile.am): Likewise.
15321         * modules/stdio (Makefile.am): Likewise.
15322         * modules/stdlib (Makefile.am): Likewise.
15323         * modules/string (Makefile.am): Likewise.
15324         * modules/sys_ioctl (Makefile.am): Likewise.
15325         * modules/sys_select (Makefile.am): Likewise.
15326         * modules/sys_socket (Makefile.am): Likewise.
15327         * modules/sys_stat (Makefile.am): Likewise.
15328         * modules/sys_times (Makefile.am): Likewise.
15329         * modules/sys_utsname (Makefile.am): Likewise.
15330         * modules/sys_wait (Makefile.am): Likewise.
15331         * modules/termios (Makefile.am): Likewise.
15332         * modules/time (Makefile.am): Likewise.
15333         * modules/unistd (Makefile.am): Likewise.
15334         * modules/wchar (Makefile.am): Likewise.
15335
15336 2011-06-08  Eric Blake  <eblake@redhat.com>
15337
15338         strerror: simplify replacement
15339         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15340         * modules/strerror (configure.ac): No prereqs needed here...
15341         * modules/strerror-override (configure.ac): ...but this needs it.
15342         (Files): Add file for needed prereq macro.
15343
15344 2011-06-08  Bruno Haible  <bruno@clisp.org>
15345
15346         strerror_r-posix: Tweaks.
15347         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15348         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15349         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15350         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15351         (gl_FUNC_STRERROR_R): ... to here.
15352         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15353
15354 2011-06-07  Eric Blake  <eblake@redhat.com>
15355
15356         perror: document fixed bugs
15357         * doc/posix-functions/perror.texi (perror): Document recent
15358         patches.
15359
15360 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15361
15362         stat-time: get_stat_birthtime failure is better-defined
15363         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15364         return a timestamp whose tv_sec and tv_nsec values are both -1.
15365         Previously, the spec said only that the tv_nsec value was negative.
15366         This upward-compatible change simplifies GNU tar a bit.
15367
15368 2011-06-07  Eric Blake  <eblake@redhat.com>
15369
15370         strerror_r-posix: work around cygwin 1.7.9
15371         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15372         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15373         bug without replacing strerror_r.
15374         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15375         strerror_r is buggy, but without requiring strerror_r compilation.
15376         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15377
15378         test-perror: relax test to ignore cygwin bug
15379         * tests/test-perror2.c (main): Relax test on requiring detection
15380         of stream errors, and use unbuffered stream.
15381         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15382         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15383         * doc/posix-functions/fputc.texi (fputc): Likewise.
15384         * doc/posix-functions/fputs.texi (fputs): Likewise.
15385         * doc/posix-functions/fputws.texi (fputws): Likewise.
15386         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15387         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15388         * doc/posix-functions/getopt.texi (getopt): Likewise.
15389         * doc/posix-functions/perror.texi (perror): Likewise.
15390         * doc/posix-functions/printf.texi (printf): Likewise.
15391         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15392         * doc/posix-functions/psignal.texi (psignal): Likewise.
15393         * doc/posix-functions/putc.texi (putc): Likewise.
15394         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15395         Likewise.
15396         * doc/posix-functions/putchar.texi (putchar): Likewise.
15397         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15398         Likewise.
15399         * doc/posix-functions/puts.texi (puts): Likewise.
15400         * doc/posix-functions/putwc.texi (putwc): Likewise.
15401         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15402         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15403         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15404         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15405         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15406         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15407         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15408         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15409
15410 2011-05-22  Bruno Haible  <bruno@clisp.org>
15411
15412         strerror: Move AC_LIBOBJ invocations to module description.
15413         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15414         gl_PREREQ_STRERROR invocations from here...
15415         * modules/strerror (configure.ac): ... to here.
15416
15417 2011-05-21  Bruno Haible  <bruno@clisp.org>
15418
15419         perror: Use common idiom.
15420         * modules/perror (configure.ac): Reorder statements.
15421
15422 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15423
15424         tests: fix usage message in 'mktempd_'
15425         * tests/init.sh (mktempd_): In the usage message, use literal
15426         'mktempd_', not '$ME' (which is even undefined), as the name of
15427         the subroutine.
15428
15429 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15430
15431         tests init: new function 'fatal_', for hard errors
15432         Before this patch, the only way offered by tests/init.sh to
15433         properly signal a hard error was the `framework_failure_'
15434         function.  But the error message issued by that function,
15435         as its name would suggest, refers to a set-up failure in the
15436         testsuite, while hard errors can obviously also be due to
15437         other reasons.  The best way to fix this inconsistency is to
15438         introduce a new function with a more general error message.
15439         * tests/init.sh (fatal_): New function.
15440
15441 2011-06-06  Eric Blake  <eblake@redhat.com>
15442
15443         canonicalize-lgpl: use common idiom
15444         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15445         over newer POSIX -Rf.
15446         Reported by Bruno Haible.
15447
15448         canonicalize-lgpl: work around AIX realpath bug
15449         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15450         * doc/posix-functions/realpath.texi (realpath): Document it.
15451         Reported by Bruno Haible.
15452
15453         strerror: work around FreeBSD bug
15454         * lib/strerror.c (strerror): Special case 0.
15455         Reported by Bruno Haible.
15456
15457         strerror-override: avoid bloating errno module
15458         * modules/errno (Files, configure.ac): Move replacement strings...
15459         * modules/strerror-override: ...to new module.
15460         * modules/strerror (Depends-on): Add strerror-override.
15461         * modules/strerror_r-posix (Depends-on): Likewise.
15462         * MODULES.html.sh: Document new module.
15463         Reported by Bruno Haible.
15464
15465 2011-06-06  Bruno Haible  <bruno@clisp.org>
15466
15467         spawn-pipe tests: Rename program.
15468         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15469         * tests/test-spawn-pipe-child.c: Update comment.
15470         * tests/test-spawn-pipe.sh: Update.
15471         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15472
15473         spawn-pipe tests: Link the child program only against libc.
15474         * tests/test-spawn-pipe-child.c: New file, extracted from
15475         tests/test-spawn-pipe.c.
15476         (main): Expect only one argument.
15477         (is_open): New function, copied from tests/test-pipe.c.
15478         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15479         (child_main): Remove function.
15480         (test_pipe): Pass only one argument to the child program.
15481         (main): Remove child process code. Expect the child program's name as
15482         first argument.
15483         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15484         argument.
15485         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15486         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15487         test-spawn-pipe-child against no libraries.
15488
15489 2011-06-06  Bruno Haible  <bruno@clisp.org>
15490
15491         careadlinkat: Avoid mismatch between ssize_t and int.
15492         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15493         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15494
15495 2011-06-06  Jim Meyering  <meyering@redhat.com>
15496
15497         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15498         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15499         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15500
15501 2011-06-05  Bruno Haible  <bruno@clisp.org>
15502
15503         ansi-c++-opt: Interoperability with libtool.
15504         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15505         set the variable to "no", not to ":".
15506         * NEWS: Mention the change.
15507
15508 2011-06-05  Bruno Haible  <bruno@clisp.org>
15509
15510         acl: Fix test failure on AIX 7.
15511         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15512         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15513
15514 2011-06-05  Bruno Haible  <bruno@clisp.org>
15515
15516         pipe-filter-ii: Fix test failure on AIX and IRIX.
15517         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15518         with EAGAIN, retry with a smaller buffer size.
15519
15520 2011-06-05  Bruno Haible  <bruno@clisp.org>
15521
15522         localename: Fix link dependencies.
15523         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15524         * modules/localename-tests (Makefile.am): Link test-localename with
15525         $(LIBTHREAD).
15526
15527 2011-06-05  Bruno Haible  <bruno@clisp.org>
15528
15529         error: Avoid gcc warning.
15530         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15531
15532 2011-06-05  Bruno Haible  <bruno@clisp.org>
15533
15534         unsetenv: Avoid gcc warning.
15535         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15536
15537 2011-06-05  Bruno Haible  <bruno@clisp.org>
15538
15539         setenv: Avoid gcc warning.
15540         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15541
15542 2011-06-05  Bruno Haible  <bruno@clisp.org>
15543
15544         sys_select: Ensure memset is declared also on AIX 7.
15545         * lib/sys_select.in.h: Include <string.h> also on AIX.
15546         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15547         self-contained also on AIX 7.1.
15548
15549 2011-06-04  Jim Meyering  <meyering@redhat.com>
15550
15551         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15552         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15553         function name, "error".
15554         (_gl_translatable_diag_func_re): New configurable variable.
15555
15556 2011-06-04  Bruno Haible  <bruno@clisp.org>
15557
15558         getopt: Avoid gcc warning.
15559         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15560
15561 2011-06-04  Bruno Haible  <bruno@clisp.org>
15562
15563         strerror_r: Fix comments.
15564         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15565         commit.
15566
15567 2011-06-04  Bruno Haible  <bruno@clisp.org>
15568
15569         perror: Fix compilation error.
15570         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15571         Undefine fprintf, not sprintf.
15572         * modules/perror (Depends-on): Remove intprops, verify.
15573
15574 2011-06-04  Bruno Haible  <bruno@clisp.org>
15575
15576         setlocale: Enable replacement on Cygwin 1.5.
15577         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15578         Cygwin 1.5.x.
15579         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15580         LC_CTYPE category also exists on Cygwin 1.5.x.
15581
15582 2011-06-04  Bruno Haible  <bruno@clisp.org>
15583
15584         strerror-override: Don't disable symbol renamings.
15585         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15586         * lib/strerror-override.c: Include config.h.
15587         (strerror_override): Don't undefine.
15588
15589 2011-06-03  Bruno Haible  <bruno@clisp.org>
15590
15591         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15592         * lib/localename.h: Update copyright header.
15593         * lib/localename.c: Likewise.
15594         * lib/relocatable.h: Likewise.
15595         * lib/relocatable.c: Likewise.
15596
15597 2011-06-02  Bruno Haible  <bruno@clisp.org>
15598
15599         doc: Fix a module name.
15600         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15601
15602 2011-06-02  Bruno Haible  <bruno@clisp.org>
15603
15604         pipe2: Remove dependency on 'nonblocking' module.
15605         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15606         O_NONBLOCK is defined by gnulib.
15607         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15608         is zero.
15609         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15610         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15611         defined by gnulib.
15612         (get_nonblocking_flag): New function.
15613         (main): Test O_NONBLOCK flag only if it is nonzero.
15614         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15615
15616 2011-06-03  Jim Meyering  <meyering@redhat.com>
15617
15618         maint: three new prohibit-header-without-use rules
15619         Prohibit use of cloexec.h, posixver.h, same.h without use.
15620         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15621         (sc_prohibit_posixver_without_use): Likewise.
15622         (sc_prohibit_same_without_use): Likewise.
15623
15624 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15625
15626         allocator: 'die' routine is now given requested size
15627         * lib/allocator.h (struct allocator.die): New size arg.
15628         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15629         If the actual problem is an ssize_t limitation, not a size_t or
15630         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15631
15632 2011-06-01  Eric Blake  <eblake@redhat.com>
15633
15634         strerror: drop strerror_r dependency
15635         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15636         * lib/strerror-override.c (strerror_override): ...to new file.
15637         * lib/strerror-override.h: Add prototype.
15638         * lib/strerror-impl.h: Delete.
15639         * lib/strerror.c (strerror): New implementation.
15640         * modules/errno (Files): Add new files.
15641         (configure.ac): Compile new file as appropriate.
15642         * modules/strerror (Files): Drop unused file.
15643         (Depends-on): Drop strerror_r-posix.
15644         * MODULES.html.sh: Document strerror_r-posix.
15645         Requested by Sam Steingold.
15646
15647         perror: call strerror_r directly
15648         * modules/perror (Files): Drop strerror-impl.h.
15649         * lib/perror.c (perror): Use our own stack buffer, rather than
15650         calling a wrapper that uses static storage.
15651         * doc/posix-functions/perror.texi (perror): Document a limitation
15652         of our replacement.
15653
15654         strerror_r: fix includes for FreeBSD
15655         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15656         since we use abort on some platforms.
15657         Reported by Matthias Bolte.
15658
15659 2011-05-31  Bruno Haible  <bruno@clisp.org>
15660
15661         Fix link errors in tests: openat-die uses gettext-h.
15662         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15663         against $(LIBINTL).
15664         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15665         against $(LIBINTL).
15666         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15667         $(LIBINTL).
15668         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15669         against $(LIBINTL).
15670         * modules/linkat-tests (Makefile.am): Link test-linkat against
15671         $(LIBINTL).
15672         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15673         $(LIBINTL).
15674         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15675         against $(LIBINTL).
15676         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15677         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15678         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15679         $(LIBINTL).
15680         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15681         $(LIBINTL).
15682         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15683         $(LIBINTL).
15684         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15685
15686 2011-05-31  Bruno Haible  <bruno@clisp.org>
15687
15688         Fix link errors in tests: wait-process uses gettext-h.
15689         * modules/nonblocking-pipe-tests (Makefile.am): Set
15690         test_nonblocking_pipe_main_LDADD.
15691         * modules/nonblocking-socket-tests (Makefile.am): Link
15692         test-nonblocking-socket-main against $(LIBINTL).
15693         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15694
15695 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15696
15697         assert-h: work around 'verify' incompatibility
15698         * lib/verify.h: Use @...@ directives, not ifdef.
15699         * modules/assert-h (assert.h): Implement the directives.
15700         (assert.h): Substitute the symbol-prefix more consistently.
15701
15702 2011-05-29  Jim Meyering  <meyering@redhat.com>
15703
15704         trim: remove three superfluous assignments
15705         * lib/trim.c (trim2): Remove three superfluous assignments
15706         and correct brace positioning.
15707
15708 2011-05-29  Bruno Haible  <bruno@clisp.org>
15709
15710         wctype-h: Avoid namespace pollution on Solaris 2.6.
15711         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15712         identifiers.
15713         * doc/posix-headers/wctype.texi: Mention the problem.
15714         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15715
15716 2011-05-28  Jim Meyering  <meyering@redhat.com>
15717
15718         parse-datetime.y: accommodate -Wstrict-overflow
15719         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15720         placate -Wstrict-overflow.
15721
15722         trim: avoid a warning from -O2 -Wstrict-overflow
15723         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15724
15725 2011-05-29  Bruno Haible  <bruno@clisp.org>
15726
15727         gnulib-tool: Fix bug in yesterday's commit.
15728         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15729         twice.
15730
15731 2011-05-29  Bruno Haible  <bruno@clisp.org>
15732
15733         Allow multiple gnulib generated include files to be combined.
15734         * gnulib-tool (func_compute_include_guard_prefix): New function.
15735         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15736         ${gl_include_guard_prefix} references.
15737         (func_import, func_create_testdir): Invoke
15738         func_compute_include_guard_prefix.
15739         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15740         * lib/ctype.in.h: Likewise.
15741         * lib/dirent.in.h: Likewise.
15742         * lib/errno.in.h: Likewise.
15743         * lib/fcntl.in.h: Likewise.
15744         * lib/float.in.h: Likewise.
15745         * lib/getopt.in.h: Likewise.
15746         * lib/iconv.in.h: Likewise.
15747         * lib/langinfo.in.h: Likewise.
15748         * lib/locale.in.h: Likewise.
15749         * lib/math.in.h: Likewise.
15750         * lib/netdb.in.h: Likewise.
15751         * lib/netinet_in.in.h: Likewise.
15752         * lib/poll.in.h: Likewise.
15753         * lib/pthread.in.h: Likewise.
15754         * lib/pty.in.h: Likewise.
15755         * lib/sched.in.h: Likewise.
15756         * lib/se-selinux.in.h: Likewise.
15757         * lib/search.in.h: Likewise.
15758         * lib/signal.in.h: Likewise.
15759         * lib/spawn.in.h: Likewise.
15760         * lib/stdarg.in.h: Likewise.
15761         * lib/stddef.in.h: Likewise.
15762         * lib/stdint.in.h: Likewise.
15763         * lib/stdio.in.h: Likewise.
15764         * lib/stdlib.in.h: Likewise.
15765         * lib/string.in.h: Likewise.
15766         * lib/strings.in.h: Likewise.
15767         * lib/sys_file.in.h: Likewise.
15768         * lib/sys_ioctl.in.h: Likewise.
15769         * lib/sys_select.in.h: Likewise.
15770         * lib/sys_socket.in.h: Likewise.
15771         * lib/sys_stat.in.h: Likewise.
15772         * lib/sys_time.in.h: Likewise.
15773         * lib/sys_times.in.h: Likewise.
15774         * lib/sys_uio.in.h: Likewise.
15775         * lib/sys_utsname.in.h: Likewise.
15776         * lib/sys_wait.in.h: Likewise.
15777         * lib/sysexits.in.h: Likewise.
15778         * lib/termios.in.h: Likewise.
15779         * lib/time.in.h: Likewise.
15780         * lib/unistd.in.h: Likewise.
15781         * lib/wchar.in.h: Likewise.
15782         * lib/wctype.in.h: Likewise.
15783         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15784         * modules/ctype (Makefile.am): Likewise.
15785         * modules/dirent (Makefile.am): Likewise.
15786         * modules/errno (Makefile.am): Likewise.
15787         * modules/fcntl-h (Makefile.am): Likewise.
15788         * modules/float (Makefile.am): Likewise.
15789         * modules/getopt-posix (Makefile.am): Likewise.
15790         * modules/iconv-h (Makefile.am): Likewise.
15791         * modules/langinfo (Makefile.am): Likewise.
15792         * modules/locale (Makefile.am): Likewise.
15793         * modules/math (Makefile.am): Likewise.
15794         * modules/netdb (Makefile.am): Likewise.
15795         * modules/netinet_in (Makefile.am): Likewise.
15796         * modules/poll-h (Makefile.am): Likewise.
15797         * modules/pthread (Makefile.am): Likewise.
15798         * modules/pty (Makefile.am): Likewise.
15799         * modules/sched (Makefile.am): Likewise.
15800         * modules/search (Makefile.am): Likewise.
15801         * modules/selinux-h (Makefile.am): Likewise.
15802         * modules/signal (Makefile.am): Likewise.
15803         * modules/spawn (Makefile.am): Likewise.
15804         * modules/stdarg (Makefile.am): Likewise.
15805         * modules/stddef (Makefile.am): Likewise.
15806         * modules/stdint (Makefile.am): Likewise.
15807         * modules/stdio (Makefile.am): Likewise.
15808         * modules/stdlib (Makefile.am): Likewise.
15809         * modules/string (Makefile.am): Likewise.
15810         * modules/strings (Makefile.am): Likewise.
15811         * modules/sys_file (Makefile.am): Likewise.
15812         * modules/sys_ioctl (Makefile.am): Likewise.
15813         * modules/sys_select (Makefile.am): Likewise.
15814         * modules/sys_socket (Makefile.am): Likewise.
15815         * modules/sys_stat (Makefile.am): Likewise.
15816         * modules/sys_time (Makefile.am): Likewise.
15817         * modules/sys_times (Makefile.am): Likewise.
15818         * modules/sys_uio (Makefile.am): Likewise.
15819         * modules/sys_utsname (Makefile.am): Likewise.
15820         * modules/sys_wait (Makefile.am): Likewise.
15821         * modules/sysexits (Makefile.am): Likewise.
15822         * modules/termios (Makefile.am): Likewise.
15823         * modules/time (Makefile.am): Likewise.
15824         * modules/unistd (Makefile.am): Likewise.
15825         * modules/wchar (Makefile.am): Likewise.
15826         * modules/wctype-h (Makefile.am): Likewise.
15827         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15828
15829 2011-05-29  Bruno Haible  <bruno@clisp.org>
15830
15831         assert-h: Allow multiple gnulib generated replacements to coexist.
15832         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15833
15834 2011-05-29  Bruno Haible  <bruno@clisp.org>
15835
15836         argp: Allow coexistence with strerror_r-posix module.
15837         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15838         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15839         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15840         not the glibc signature.
15841
15842 2011-05-28  Bruno Haible  <bruno@clisp.org>
15843
15844         gnulib-tool: Alternative structure of testdirs, similar to --import.
15845         * gnulib-tool: New option --single-configure.
15846         (func_usage): Document it.
15847         (single_configure): New variable.
15848         (func_modules_transitive_closure_separately,
15849         func_modules_transitive_closure_separately,
15850         func_determine_use_libtests, func_modules_add_dummy_separately,
15851         func_modules_to_filelist_separately): New functions, extracted from
15852         func_import.
15853         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15854         (func_import): Use the new functions.
15855         (func_create_testdir): Set final_modules. Handle $single_configure =
15856         true case.
15857
15858 2011-05-28  Bruno Haible  <bruno@clisp.org>
15859
15860         getloadavg: Remove an unreliable safety check.
15861         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15862         getloadavg.c is in place.
15863         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15864         Reported by Sam Steingold <sds@gnu.org>.
15865
15866 2011-05-28  Bruno Haible  <bruno@clisp.org>
15867
15868         doc: Cleanup yet another file produced by texinfo.tex.
15869         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15870
15871 2011-05-28  Bruno Haible  <bruno@clisp.org>
15872
15873         Finish the conditional dependencies mechanism.
15874         * gnulib-tool: New option --no-conditional-dependencies.
15875         (func_usage): Document it. Don't mark --conditional-dependencies as
15876         experimental.
15877         (cond_dependencies): The possible values can now be true, false, empty.
15878         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15879         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15880         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15881
15882 2011-05-28  Bruno Haible  <bruno@clisp.org>
15883
15884         doc: Use a recent texinfo.tex.
15885         * doc/Makefile (tex_opts): New variable.
15886         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15887
15888 2011-05-28  Jim Meyering  <meyering@redhat.com>
15889
15890         intprops.h: adjust comment to match code change
15891         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15892         only once, it *may* have side effects.  Also fix an unrelated typo.
15893         (_GL_INT_SIGNED): Likewise.
15894
15895 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15896
15897         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15898
15899 2011-05-26  Bruno Haible  <bruno@clisp.org>
15900
15901         mbsrchr: Avoid collision with system function on Interix.
15902         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15903         Reported by Markus Duft <mduft@gentoo.org>.
15904
15905 2011-05-15  James Youngman  <jay@gnu.org>
15906
15907         getopt: for ambiguous options, enumerate the possibilities.
15908         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15909         the ambiguous options when an ambiguous prefix is given. This was
15910         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15911         glibc change was
15912         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15913
15914 2011-05-25  Eric Blake  <eblake@redhat.com>
15915
15916         getcwd: work around mingw bug
15917         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15918         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15919         Reported by Matthias Bolte.
15920
15921 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15922
15923         test-intprops: disable -Wtype-limits diagnostics
15924         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15925         diagnostics.  Otherwise, the integer overflow macros generate many
15926         diagnostics.  Reported by Jim Meyering in
15927         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15928
15929         intprops: shorten, to pacify gcc -Woverlength-strings
15930         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15931         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15932         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15933         likely to run afoul of C compiler limits for string constant lengths.
15934         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15935
15936 2011-05-24  Eric Blake  <eblake@redhat.com>
15937
15938         docs: document recently fixed glibc printf bug
15939         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15940         * doc/posix-functions/printf.texi (printf): Likewise.
15941         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15942         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15943
15944         closein-tests: convert to init.sh
15945         * modules/closein-tests (Files): Add init.sh
15946         * tests/test-closein.sh Use it.
15947
15948         yesno-tests: convert to init.sh
15949         * modules/yesno-tests (Files): Add init.sh.
15950         * tests/test-yesno.sh: Use it.
15951
15952         atexit-tests: ensure reliable exit status
15953         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15954         Reported by Bruno Haible.
15955
15956 2011-05-24  Bruno Haible  <bruno@clisp.org>
15957
15958         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15959         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15960         gl_PREREQ_STRERROR_R invocations from here...
15961         * modules/strerror_r-posix (configure.ac): ... to here.
15962
15963 2011-05-24  Eric Blake  <eblake@redhat.com>
15964
15965         strerror_r: fix missing header
15966         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15967
15968         strerror_r: fix AIX test failures
15969         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15970         ERANGE failure.
15971
15972         strerror_r: fix Solaris test failures
15973         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15974         failures.
15975         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15976
15977         strerror_r: enforce POSIX recommendations
15978         * lib/strerror_r.c (safe_copy): New helper method.
15979         (strerror_r): Guarantee a non-empty string.
15980         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15981         recent POSIX rulings and to match our strerror guarantees.
15982         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15983
15984 2011-05-24  Jim Meyering  <meyering@redhat.com>
15985
15986         test-perror2.c: avoid warning about unused variable
15987         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15988
15989 2011-05-24  Eric Blake  <eblake@redhat.com>
15990
15991         perror: avoid spurious test failure on HP-UX
15992         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15993
15994         tests: fix logic bug in init.sh
15995         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15996         shell.
15997
15998 2011-05-24  Jim Meyering  <meyering@redhat.com>
15999
16000         utimensat: do not reference an out-of-scope buffer
16001         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16002         declared in an inner scope, yet "times" would be dereferenced outside
16003         the scope in which "ts" was valid.
16004         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16005         of ts[2] "out/up", so that the use of aliased "times" (via
16006         "times = ts;") does not end up referencing an out-of-scope "ts"
16007
16008         opendir-safer.c: don't clobber errno; don't close negative FD
16009         * lib/opendir-safer.c (opendir_safer):
16010         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16011         file descriptor, and more importantly, don't clobber the
16012         offending errno value with EINVAL.  Before, upon failure
16013         of dup_safer, we would pass the negative file descriptor to
16014         fdopendir, which would clobber errno.
16015
16016 2011-05-23  Bruno Haible  <bruno@clisp.org>
16017
16018         idcache: Fix module description.
16019         * modules/idcache (Include): Set to "idcache.h".
16020
16021 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16022
16023         gnulib-tool: fix portability problem with MacOS sed
16024         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16025         before the "}".  Problem reported by Leo in
16026         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16027         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16028         sed_extract_condition1, sed_extract_condition2.
16029
16030 2011-05-23  Bruno Haible  <bruno@clisp.org>
16031
16032         hash: Simplify autoconf macro.
16033         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16034
16035 2011-05-23  Bruno Haible  <bruno@clisp.org>
16036
16037         getugroups: Fix module description.
16038         * modules/getugroups (Include): Set to "getugroups.h".
16039
16040 2011-05-23  Bruno Haible  <bruno@clisp.org>
16041
16042         linkat: Simplify autoconf macro.
16043         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16044
16045 2011-05-23  Bruno Haible  <bruno@clisp.org>
16046             Eric Blake  <eblake@redhat.com>
16047
16048         linkat, renameat: Update dependencies.
16049         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16050         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16051         symlinkat.
16052
16053 2011-05-23  Jim Meyering  <meyering@redhat.com>
16054
16055         maint.mk: more tight_scope improvements
16056         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16057         (_gl_TS_headers): Define only in if-0'd block.
16058         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16059         sometimes we must *not* use it.  Adjust uses accordingly.
16060         (sc_tight_scope): Use much simpler grep-based test to determine
16061         whether we skip this rule.
16062
16063         maint.mk: generalize/improve the tight-scope rule
16064         * top/maint.mk: Emit a warning when the test is skipped.
16065         (_gl_TS_dir): Add $(srcdir)/ prefix.
16066         (_gl_TS_function_match): Simplify, rather than trying
16067         to enumerate common types.  Otherwise, it would fail to match an
16068         "extern unsigned char const *" declaration in idutils.
16069         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16070         a way to support use of that type of macro.
16071         (_gl_TS_var_match): Simplify regexp.
16072         (_gl_TS_obj_files): New configurable variable.
16073         (_gl_TS_headers): Likewise.
16074
16075 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16076
16077         verify: fix bug when gnulib <assert.h> is also included
16078         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16079         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16080         Perhaps there's a better way, but this fixes the immediate problem.
16081         Problem reported by Bruno Haible in
16082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16083
16084 2011-05-22  Bruno Haible  <bruno@clisp.org>
16085
16086         xgetcwd: Simplify autoconf macro.
16087         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16088
16089 2011-05-22  Bruno Haible  <bruno@clisp.org>
16090
16091         New module 'mktime-internal'.
16092         * modules/mktime-internal: New file.
16093         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16094         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16095         mktime_internal as a C macro if libc has __mktime_internal.
16096         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16097         conditions.
16098         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16099
16100 2011-05-22  Bruno Haible  <bruno@clisp.org>
16101
16102         timegm: Correct mktime replacement statements.
16103         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16104         defining mktime as a C macro. This completes a 2009-07-28 commit.
16105
16106 2011-05-22  Bruno Haible  <bruno@clisp.org>
16107
16108         timegm: Simplify autoconf macro.
16109         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16110
16111 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16112
16113         clock-time: change to LGPLv2+.
16114         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16115         BSD-like but we have no mark for that; this is good enough for now.
16116
16117 2011-05-21  Bruno Haible  <bruno@clisp.org>
16118
16119         strerror_r: Fix comments.
16120         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16121
16122 2011-05-21  Bruno Haible  <bruno@clisp.org>
16123
16124         relocatable-prog-wrapper: Fix possible link error.
16125         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16126         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16127         (gl_FUNC_SETENV): ... to here.
16128         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16129         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16130
16131 2011-05-21  Bruno Haible  <bruno@clisp.org>
16132
16133         relocatable-prog-wrapper: Assume strerror() exists.
16134         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16135         m4/strerror.m4.
16136         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16137         * lib/relocwrapper.c: Remove mention of strerror module.
16138         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16139         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16140         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16141         C macro.
16142
16143 2011-05-21  Bruno Haible  <bruno@clisp.org>
16144
16145         select: Simplify replacement idiom.
16146         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16147         Win32 platforms.
16148         * lib/sys_select.in.h (select): Simplify accordingly.
16149         * modules/select (Depends-on): Likewise.
16150
16151 2011-05-21  Bruno Haible  <bruno@clisp.org>
16152
16153         mkdir-p: Simplify autoconf macro.
16154         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16155         gl_FUNC_LCHOWN.
16156
16157 2011-05-21  Eric Blake  <eblake@redhat.com>
16158
16159         strerror_r: avoid clobbering strerror on cygwin
16160         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16161         fall back instead to sys_errlist.
16162         * modules/strerror (configure.ac): Add witness.
16163         * tests/test-strerror_r.c (main): Enhance test.
16164         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16165         * tests/test-perror2.c (main): Free memory before exit.
16166
16167 2011-05-21  Bruno Haible  <bruno@clisp.org>
16168
16169         mkdtemp: Use gnulib naming conventions.
16170         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16171         * modules/mkdtemp (configure.ac): Update.
16172
16173 2011-05-20  Eric Blake  <eblake@redhat.com>
16174
16175         strerror_r: avoid corrupting errno on Solaris
16176         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16177         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16178
16179         strerror_r: avoid compiler warning
16180         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16181
16182         strerror_r: simplify AIX code
16183         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16184
16185         test-perror: avoid spurious failure on FreeBSD
16186         * modules/perror-tests (Depends-on): Add strerror, now that
16187         strerror_r no longer pulls it in.
16188
16189 2011-05-20  Bruno Haible  <bruno@clisp.org>
16190
16191         strerror_r-posix: Remove unused dependencies.
16192         * modules/strerror_r-posix (Depends-on): Remove strerror.
16193         Reported by Eric Blake.
16194
16195 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16196
16197         intprops: remove assumption about A|B representation
16198         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16199         is a valid integer if both A and B are.  Although this is true for
16200         all known practical hosts, the C standard doesn't guarantee it,
16201         and the code need not assume it.  Also, this change may work around
16202         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16204
16205 2011-05-20  Eric Blake  <eblake@redhat.com>
16206
16207         perror: work around FreeBSD bug
16208         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16209         is broken.  Move AC_LIBOBJ...
16210         * modules/perror (configure.ac): Here.
16211         * doc/posix-functions/perror.texi (perror): Document this.
16212         * tests/test-perror2.c (main): Enhance test.
16213
16214         test-perror: check for strerror interactions
16215         * tests/macros.h (STREQ): Add macro.
16216         * modules/perror-tests (Files): Add second test.
16217         * tests/test-perror2.c (main): New file.
16218         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16219
16220         test-perror: rewrite to use init script
16221         * modules/perror-tests (Files): Add init.sh.
16222         * tests/test-perror.sh: Use temporary directory.
16223
16224 2011-05-20  Jim Meyering  <meyering@redhat.com>
16225
16226         maint: replace misused "a" with "an"
16227         * doc/intprops.texi: "a integer"
16228         * doc/regex.texi: "a explanation"
16229         * lib/alignof.h: "a object"
16230         * lib/argmatch.h: "a explanation"
16231         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16232         * lib/stdint.in.h: "a integer"
16233         * lib/userspec.c: "a owner"
16234         * doc/gnulib.texi: Fix "a idea", and reword.
16235
16236 2011-05-19  Jim Meyering  <meyering@redhat.com>
16237
16238         maint: correct misuse of "a" and "an"
16239         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16240         * lib/argp-help.c: "an docum...": s/an/a/
16241         * lib/argp-parse.c: "An vector": s/An/A/
16242         * lib/execute.c: "an native": s/an/a/
16243         * lib/spawn-pipe.c: Likewise.
16244         * lib/gc.h: "an Gc_rc": s/an/a/
16245         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16246         * lib/fts.c: "an stat.st_dev": s/an/a/
16247
16248 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16249
16250         intprops-tests: work around HP-UX 11.23 cc bug with constants
16251         * tests/test-intprops.c (VERIFY): New macro.
16252         (main): Use it, instead of verify, to work around the compiler bug; see
16253         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16254
16255         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16256         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16257         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16258         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16259         (_GL_REMAINDER_OVERFLOW): Use it.
16260
16261         intprops-tests: revert unsigned part of previous change
16262         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16263         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16264         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16266
16267 2011-05-19  Bruno Haible  <bruno@clisp.org>
16268
16269         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16270         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16271         strerror_r() returned without filling the buffer.
16272         Reported by Eric Blake.
16273
16274 2011-05-19  Eric Blake  <eblake@redhat.com>
16275
16276         strerror_r: guarantee unchanged errno
16277         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16278         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16279         failure.
16280         * tests/test-strerror_r.c (main): Enhance test.
16281
16282 2011-05-19  Bruno Haible  <bruno@clisp.org>
16283
16284         strerror_r: Reorder #if blocks.
16285         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16286         for consistency with the previous commit.
16287
16288 2011-05-19  Bruno Haible  <bruno@clisp.org>
16289
16290         perror: Avoid clobbering the strerror buffer when possible.
16291         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16292         * lib/strerror.c: Include it.
16293         * modules/strerror (Files): Add lib/strerror-impl.h.
16294         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16295         (my_strerror): New function, defined through lib/strerror-impl.h.
16296         (perror): Use it instead of strerror.
16297         * modules/perror (Files): Add lib/strerror-impl.h.
16298         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16299
16300 2011-05-19  Eric Blake  <eblake@redhat.com>
16301
16302         strerror_r: fix on newer cygwin
16303         * lib/strerror_r.c (strerror_r): Cygwin now has
16304         __xpg_strerror_r, use it.
16305
16306 2011-05-19  Bruno Haible  <bruno@clisp.org>
16307
16308         strerror_r: Avoid clobbering the strerror buffer when possible.
16309         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16310         (sys_nerr, sys_errlist): New declarations.
16311         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16312         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16313         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16314
16315 2011-05-19  Bruno Haible  <bruno@clisp.org>
16316
16317         strerror_r: Fix test failure on mingw.
16318         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16319         EXTEND_STRERROR_R.
16320         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16321         macros from errno.in.h instead.
16322
16323 2011-05-19  Eric Blake  <eblake@redhat.com>
16324
16325         strerror: relax test for Solaris
16326         * tests/test-strerror.c (main): Permit Solaris behavior.
16327         * tests/test-strerror_r.c (main): Likewise.
16328
16329         strerror: enforce POSIX ruling on strerror(0)
16330         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16331         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16332         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16333         * doc/posix-functions/strerror.texi (strerror): Document it.
16334         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16335         * tests/test-strerror.c (main): Strengthen test.
16336         * tests/test-strerror_r.c (main): Likewise.
16337
16338 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16339
16340         intprop-tests: port to older and more-pedantic compilers
16341         * modules/intprops-tests (Files): Add tests/macros.h.
16342         * tests/test-intprops.c: Include macros.h.
16343         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16344         it's no longer documented to expand to an integer constant expression.
16345         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16346         argument is floating point, as it's no longer documented to expand
16347         to an integer constant expression in that case.
16348         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16349         compiler bugs reported by Bruno Haible.  See
16350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16351         (U0, U1): New constants, to work around the same bugs.  Also,
16352         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16353
16354         intprops: work around C compiler bugs
16355         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16356         bug in Sun C 5.11 2010/08/13 and other compilers; see
16357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16358
16359         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16360         * doc/intprops.texi (Integer Type Determination): Fix
16361         documentation for TYPE_IS_INTEGER: it returns an constant
16362         expression, not an integer constant expression.  Fix doc for
16363         TYPE_SIGNED: it returns an integer constant expression only if its
16364         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16365         hardly worth documented that way....)
16366
16367 2011-05-18  Bruno Haible  <bruno@clisp.org>
16368
16369         strerror_r: Avoid clobbering the strerror buffer when possible.
16370         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16371         Handle gnulib defined errno values here. When strerror() returns NULL
16372         or an empty string, return EINVAL.
16373         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16374         gnulib defined errno values here.
16375         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16376
16377 2011-05-18  Eric Blake  <eblake@redhat.com>
16378
16379         fnmatch: avoid compiler warning
16380         * lib/fnmatch_loop.c (FCT): Use correct type.
16381         Reported by Matthias Bolte.
16382
16383 2011-05-13  Jim Meyering  <meyering@redhat.com>
16384
16385         maint.mk: three new prohibit_<HDR>_without_use rules
16386         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16387         (sc_prohibit_stdio-safer_without_use): Likewise.
16388         (sc_prohibit_xfreopen_without_use): Likewise.
16389
16390 2011-05-17  Jim Meyering  <meyering@redhat.com>
16391
16392         announce-gen: fail if the NEWS delta is empty
16393         If there's nothing noteworthy in NEWS, then either you forgot
16394         or you shouldn't be releasing.
16395         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16396
16397 2011-05-17  Pádraig Brady <P@draigBrady.com>
16398
16399         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16400         reserved symbols starting with double underscore from the check.
16401
16402 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16403
16404         intprops: add doc
16405         * doc/intprops.texi: New file, documenting intprops.
16406         * doc/gnulib.texi (Particular Modules): Include it.
16407
16408         verify: add doc to gnulib manual and fix example
16409         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16410         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16411         (Compile-time Assertions): Fix example so it can't overflow.
16412
16413 2011-05-17  Jim Meyering  <meyering@redhat.com>
16414
16415         warnings.m4: don't usurp save_CPPFLAGS variable name
16416         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16417
16418         doc: fix typo
16419         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16420
16421 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16422             Bruno Haible  <bruno@clisp.org>
16423
16424         doc: Tweak recent change.
16425         * README (Portability guidelines): Tweak new text.
16426         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16427         Interix 6.1.
16428
16429 2011-05-16  Eric Blake  <eblake@redhat.com>
16430
16431         inttypes: avoid autoconf warning
16432         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16433         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16434
16435 2011-05-16  Sam Steingold <sds@gnu.org>
16436         and Eric Blake  <eblake@redhat.com>
16437
16438         vc-list-files: accept multiple directory operands
16439         * build-aux/vc-list-files: Iterate over all remaining operands.
16440
16441 2011-05-16  Bruno Haible  <bruno@clisp.org>
16442
16443         Fix confusion regarding deprecated modules.
16444         * modules/calloc (Status, Notice): Mark module as deprecated, not
16445         obsolete.
16446         * modules/fnmatch-posix (Status, Notice): Likewise.
16447         * modules/getdate (Status, Notice): Likewise.
16448         * modules/getopt (Status, Notice): Likewise.
16449         * modules/malloc (Status, Notice): Likewise.
16450         * modules/pipe (Status, Notice): Likewise.
16451         * modules/realloc (Status, Notice): Likewise.
16452         * modules/rename-dest-slash (Status, Notice): Likewise.
16453         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16454         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16455         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16456         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16457         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16458
16459 2011-05-16  Bruno Haible  <bruno@clisp.org>
16460
16461         doc: List the target platforms.
16462         * doc/gnulib-intro.texi (Target Platforms): New section.
16463         * doc/gnulib.texi (Introduction): Update menu.
16464         * README (Portability guidelines): Refer to the new section. Update
16465         statement about oldest supported environment. Remove rationale why
16466         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16467         unportable C89 function.
16468         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16469         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16470
16471 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16472
16473         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16474
16475 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16476
16477         intprops-tests: new module
16478         * modules/intprops-tests, tests/test-intprops.c: New files.
16479
16480         intprops: add safe, portable integer overflow checking
16481         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16482         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16483         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16484         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16485         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16486         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16487         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16488         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16489         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16490         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16491         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16492
16493 2011-05-12  James Youngman  <jay@gnu.org>
16494
16495         Add a test for glibc's Bugzilla bug #12378.
16496         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16497         doesn't allow the literal matching of a lone "[" (which is
16498         required by POSIX).
16499         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16500
16501 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16502
16503         Sync glibc change fixing Bugzilla bug #12378.
16504         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16505         beginning and fall back to matching as normal character if the
16506         string ends before the matching ']' is found.  This is what POSIX
16507         requires.
16508
16509 2011-05-13  Eric Blake  <eblake@redhat.com>
16510
16511         getcwd-lgpl: relax test for FreeBSD
16512         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16513         issue.
16514         * tests/test-getcwd-lgpl.c (main): Relax test.
16515         Reported by Matthias Bolte.
16516
16517 2011-05-11  Eric Blake  <eblake@redhat.com>
16518
16519         test-fflush: silence compiler warning
16520         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16521
16522 2011-05-11  Bruno Haible  <bruno@clisp.org>
16523
16524         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16525         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16526         * modules/canonicalize (Depends-on): Add 'nocrash'.
16527         * modules/canonicalize-lgpl (Depends-on): Likewise.
16528         * doc/posix-functions/realpath.texi: Update platforms list.
16529         Reported by Ryan Schmidt <ryandesign@macports.org>.
16530
16531 2011-05-11  Bruno Haible  <bruno@clisp.org>
16532
16533         group-member: Declare function in <unistd.h>.
16534         * lib/unistd.in.h (group_member): New declaration.
16535         * lib/group-member.h: Remove file.
16536         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16537         * tests/test-unistd-c++.cc: Check signature of group_member.
16538         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16539         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16540         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16541         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16542         HAVE_GROUP_MEMBER.
16543         * modules/group-member (Files): Remove lib/group-member.h.
16544         (Depends-on): Add unistd. Specify conditions.
16545         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16546         (Include): Change to <unistd.h>.
16547         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16548         HAVE_GROUP_MEMBER.
16549         * NEWS: Mention the change.
16550         * lib/euidaccess.c: Don't include group-member.h.
16551
16552 2011-05-11  Bruno Haible  <bruno@clisp.org>
16553
16554         group-member: Document module.
16555         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16556         module.
16557
16558 2011-05-11  Bruno Haible  <bruno@clisp.org>
16559
16560         fclose: Fix mistake earlier today.
16561         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16562
16563 2011-05-11  Eric Blake  <eblake@redhat.com>
16564
16565         fclose: preserve fflush errors
16566         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16567         Reported by Jim Meyering.
16568
16569         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16570         * build-aux/bootstrap (check_versions): When no specific version
16571         is required, merely check that the app produces an exit status
16572         that indicates its existence.
16573
16574         maint.mk: drop redundant check
16575         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16576         the same but better.
16577
16578 2011-05-11  Bruno Haible  <bruno@clisp.org>
16579
16580         fclose: Fix possible link error.
16581         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16582         unregister_shadow_fd. Improve comments.
16583         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16584         Eric Blake.
16585
16586 2011-05-11  Jim Meyering  <meyering@redhat.com>
16587
16588         maint.mk: improve "can not" detection and generalize rule name
16589         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16590         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16591         Use the same technique as in sc_prohibit_doubled_word, so that
16592         we recognize "can not" also when the words are separated by a newline.
16593         Suggested by Eric Blake.
16594         (perl_filename_lineno_text_): Define.  Factored out of...
16595         (prohibit_doubled_word_): ...here.  Use the new definition.
16596         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16597         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16598         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16599
16600 2011-05-10  Eric Blake  <eblake@redhat.com>
16601
16602         fclose: avoid double close race when possible
16603         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16604         all but WINDOWS_SOCKETS.
16605
16606 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16607
16608         openat: correct new comment
16609         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16610
16611 2011-05-10  Jim Meyering  <meyering@redhat.com>
16612
16613         openat: add comments
16614         * lib/openat-proc.c (openat_proc_name): Add comments,
16615         mostly from Eric Blake.
16616
16617 2011-05-09  Eric Blake  <eblake@redhat.com>
16618
16619         openat: reduce syscalls in first probe of /proc
16620         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16621         be a directory.  Simplify the probe for .. bugs.
16622         * modules/openat (Depends-on): Drop same-inode.
16623         Reported by Bastien ROUCARIES.
16624
16625 2011-05-09  Jim Meyering  <meyering@redhat.com>
16626
16627         maint.mk: change semantics/name of tight_scope variables
16628         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16629         Rename variables to align with semantics that make them more useful.
16630
16631         maint.mk: tweak new rule's name not to impinge
16632         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16633         (sc_tight_scope): Use new rule name rather than $@-0.
16634
16635         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16636         * top/maint.mk (sc_tight_scope): New rule.
16637         (sc_tight_scope-0): New rule, ifdef'd out.
16638         (_gl_TS_dir): Default.
16639         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16640         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16641
16642 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16643
16644         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16645         Haible <bruno@clisp.org>.
16646
16647 2011-05-08  Bruno Haible  <bruno@clisp.org>
16648
16649         Comments.
16650         * m4/isnanf.m4: Add comment.
16651         * m4/isnanl.m4: Likewise.
16652
16653 2011-05-08  Bruno Haible  <bruno@clisp.org>
16654
16655         glob: Remove obsolete macro.
16656         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16657
16658 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16659
16660         intprops: Sun C 5.11 supports __typeof__
16661         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16662         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16663         which is new.
16664         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16665
16666         intprops: switch to usual gnulib indenting and naming
16667         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16668         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16669
16670         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16671
16672 2011-05-08  Jim Meyering  <meyering@redhat.com>
16673
16674         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16675         * top/maint.mk (release-prep): Use make's --no-print-directory
16676         option when generating the announcement.  This eliminates the
16677         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16678         generated announcement template.
16679
16680 2011-05-08  Bruno Haible  <bruno@clisp.org>
16681
16682         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16683         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16684         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16685
16686 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16687
16688         ignore-value, verify: Omit include files from lib_SOURCES.
16689         * modules/ignore-value, modules/verify (Makefile.am):
16690         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16691         that leads Automake to duplicate use of am__objects_... variables
16692         in Makefile.in.  See
16693         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16694
16695 2011-05-07  Bruno Haible  <bruno@clisp.org>
16696
16697         fclose: Simplify autoconf macro.
16698         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16699         defined.
16700
16701 2011-05-07  Bruno Haible  <bruno@clisp.org>
16702
16703         canonicalize-lgpl: Fix autoconf macro ordering bug.
16704         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16705         gl_STDLIB_H_DEFAULTS.
16706
16707 2011-05-06  Eric Blake  <eblake@redhat.com>
16708
16709         maintainer-makefile: make sc_po_check easier to tune
16710         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16711         to probe for strings, such as an alternate location for gnulib.
16712
16713         fclose: guarantee behavior on seekable stdin
16714         * modules/fclose (Depends-on): Add fflush.
16715         * doc/posix-functions/fclose.texi (fclose): Document this.
16716         * tests/test-fclose.c (main): Make test for this unconditional.
16717
16718 2011-05-06  Bruno Haible  <bruno@clisp.org>
16719
16720         fflush, fpurge: Relicense under LGPLv2+.
16721         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16722         * modules/fpurge (License): Likewise.
16723         With permission from Eric Blake and Jim Meyering.
16724         Suggested by Eric Blake.
16725
16726 2011-05-06  Karl Berry  <karl@gnu.org>
16727
16728         * MODULES.html.sh (func_all_modules): remove exit.
16729
16730 2011-05-06  Jim Meyering  <meyering@redhat.com>
16731
16732         maint.mk: use info-gnu@ as the default only for a stable release
16733         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16734         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16735         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16736         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16737
16738 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16739
16740         assert-h: new module, which supports C1X-style static_assert
16741         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16742         * lib/verify.h: Revamp so that this can be copied into assert.h,
16743         while retaining the ability to use it standalone as before.
16744         Rename private identifiers so as not to encroach on the
16745         standard C namespace, since this is now used by assert.h.
16746         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16747         the old verify_true.
16748         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16749         the old verify_true.  Use _GL_VERIFY_TYPE.
16750         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16751         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16752         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16753         defined when this file is copied into the replacement assert.h.
16754         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16755         and _Static_assert is not built in.
16756         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16757         defined, and use the new macros mentioned above.
16758         * doc/posix-headers/assert.texi: Document this.
16759
16760 2011-05-05  Bruno Haible  <bruno@clisp.org>
16761
16762         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16763         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16764         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16765         gl_REPLACE_FCLOSE here.
16766         * modules/fflush (Depends-on): Remove fclose.
16767         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16768         combination with module 'fclose'.
16769
16770 2011-05-05  Bruno Haible  <bruno@clisp.org>
16771
16772         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16773         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16774         gl_FUNC_FFLUSH.
16775         (gl_FUNC_FFLUSH): Use it.
16776         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16777         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16778         gl_REPLACE_FSEEKO here.
16779
16780 2011-05-05  Bruno Haible  <bruno@clisp.org>
16781
16782         tzset: Relicense under LGPL.
16783         * modules/tzset (License): Change to LGPL.
16784         No agreement needed; it's a no-op.
16785
16786         strtoimax, strtoumax: Relicense under LGPL.
16787         * modules/strtoimax (License): Change to LGPL.
16788         * modules/strtoumax (License): Likewise.
16789         With permission from Jim Meyering, Paul Eggert:
16790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16792
16793         getgroups: Relicense under LGPL.
16794         * modules/getgroups (License): Change to LGPL.
16795         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16798         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16799
16800         nanosleep: Relicense under LGPL.
16801         * modules/nanosleep (License): Change to LGPL.
16802         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16803         Haible:
16804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16807         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16808
16809         futimens: Relicense under LGPL.
16810         * modules/futimens (License): Change to LGPL.
16811         With permission from Eric Blake:
16812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16813
16814         fflush: Relicense under LGPL.
16815         * modules/fflush (License): Change to LGPL.
16816         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16817         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16818         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16820
16821         tmpfile: Relicense under LGPL.
16822         * modules/tmpfile (License): Change to LGPL.
16823         With permission from Ben Pfaff:
16824         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16825
16826         isfinite: Relicense under LGPL.
16827         * modules/isfinite (License): Change to LGPL.
16828         With permission from Ben Pfaff, Bruno Haible:
16829         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16831
16832         acosl..tanl: Relicense under LGPL.
16833         * modules/acosl (License): Change to LGPL.
16834         * modules/asinl (License): Likewise.
16835         * modules/atanl (License): Likewise.
16836         * modules/cosl (License): Likewise.
16837         * modules/expl (License): Likewise.
16838         * modules/logl (License): Likewise.
16839         * modules/sinl (License): Likewise.
16840         * modules/sqrtl (License): Likewise.
16841         * modules/tanl (License): Likewise.
16842         Source code originally from glibc and Paolo Bonzini. Agreements:
16843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16844         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16845
16846 2011-05-05  Bruno Haible  <bruno@clisp.org>
16847
16848         signal: Define sighandler_t.
16849         * lib/signal.in.h (sighandler_t): New type.
16850         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16851         whether sighandler_t is defined.
16852         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16853         * modules/signal (Depends-on): Add extensions.
16854         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16855         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16856         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16857
16858 2011-05-05  Eric Blake  <eblake@redhat.com>
16859
16860         maint: remove useless REPLACE_*_H macros
16861         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16862         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16863         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16864         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16865         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16866         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16867         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16868         * m4/btowc.m4: Update callers.
16869         * m4/dirfd.m4: Likewise.
16870         * m4/duplocale.m4: Likewise.
16871         * m4/fchdir.m4: Likewise.
16872         * m4/fdopendir.m4: Likewise.
16873         * m4/inet_ntop.m4: Likewise.
16874         * m4/inet_pton.m4: Likewise.
16875         * m4/ioctl.m4: Likewise.
16876         * m4/mbrlen.m4: Likewise.
16877         * m4/mbrtowc.m4: Likewise.
16878         * m4/mbsinit.m4: Likewise.
16879         * m4/mbsnrtowcs.m4: Likewise.
16880         * m4/mbsrtowcs.m4: Likewise.
16881         * m4/poll.m4: Likewise.
16882         * m4/setlocale.m4: Likewise.
16883         * m4/wcrtomb.m4: Likewise.
16884         * m4/wcsnrtombs.m4: Likewise.
16885         * m4/wcsrtombs.m4: Likewise.
16886         * m4/wctob.m4: Likewise.
16887         * m4/wcwidth.m4: Likewise.
16888         * modules/posix_spawn: Likewise.
16889         * modules/posix_spawn_file_actions_addclose: Likewise.
16890         * modules/posix_spawn_file_actions_adddup2: Likewise.
16891         * modules/posix_spawn_file_actions_addopen: Likewise.
16892         * modules/posix_spawn_file_actions_destroy: Likewise.
16893         * modules/posix_spawn_file_actions_init: Likewise.
16894         * modules/posix_spawnattr_destroy: Likewise.
16895         * modules/posix_spawnattr_getflags: Likewise.
16896         * modules/posix_spawnattr_getpgroup: Likewise.
16897         * modules/posix_spawnattr_getschedparam: Likewise.
16898         * modules/posix_spawnattr_getschedpolicy: Likewise.
16899         * modules/posix_spawnattr_getsigdefault: Likewise.
16900         * modules/posix_spawnattr_getsigmask: Likewise.
16901         * modules/posix_spawnattr_init: Likewise.
16902         * modules/posix_spawnattr_setflags: Likewise.
16903         * modules/posix_spawnattr_setpgroup: Likewise.
16904         * modules/posix_spawnattr_setschedparam: Likewise.
16905         * modules/posix_spawnattr_setschedpolicy: Likewise.
16906         * modules/posix_spawnattr_setsigdefault: Likewise.
16907         * modules/posix_spawnattr_setsigmask: Likewise.
16908         * modules/posix_spawnp: Likewise.
16909
16910 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16911
16912         Add option to do-release-commit-and-tag to specify branch.
16913         * build-aux/do-release-commit-and-tag: Add --branch.
16914
16915 2011-05-03  Bruno Haible  <bruno@clisp.org>
16916
16917         Avoid unnecessary compilation units, through conditional dependencies.
16918         * modules/accept (Depends-on): Add conditions to the dependencies.
16919         * modules/acosl (Depends-on): Likewise.
16920         * modules/argz (Depends-on): Likewise.
16921         * modules/asinl (Depends-on): Likewise.
16922         * modules/atanl (Depends-on): Likewise.
16923         * modules/atoll (Depends-on): Likewise.
16924         * modules/bind (Depends-on): Likewise.
16925         * modules/btowc (Depends-on): Likewise.
16926         * modules/canonicalize-lgpl (Depends-on): Likewise.
16927         * modules/ceil (Depends-on): Likewise.
16928         * modules/ceilf (Depends-on): Likewise.
16929         * modules/ceill (Depends-on): Likewise.
16930         * modules/chdir-long (Depends-on): Likewise.
16931         * modules/chown (Depends-on): Likewise.
16932         * modules/close (Depends-on): Likewise.
16933         * modules/connect (Depends-on): Likewise.
16934         * modules/cosl (Depends-on): Likewise.
16935         * modules/dirfd (Depends-on): Likewise.
16936         * modules/dprintf (Depends-on): Likewise.
16937         * modules/dprintf-posix (Depends-on): Likewise.
16938         * modules/error (Depends-on): Likewise.
16939         * modules/euidaccess (Depends-on): Likewise.
16940         * modules/expl (Depends-on): Likewise.
16941         * modules/faccessat (Depends-on): Likewise.
16942         * modules/fchdir (Depends-on): Likewise.
16943         * modules/fclose (Depends-on): Likewise.
16944         * modules/fcntl (Depends-on): Likewise.
16945         * modules/fdopendir (Depends-on): Likewise.
16946         * modules/fflush (Depends-on): Likewise.
16947         * modules/floor (Depends-on): Likewise.
16948         * modules/floorf (Depends-on): Likewise.
16949         * modules/floorl (Depends-on): Likewise.
16950         * modules/fnmatch (Depends-on): Likewise.
16951         * modules/fopen (Depends-on): Likewise.
16952         * modules/fprintf-posix (Depends-on): Likewise.
16953         * modules/frexp (Depends-on): Likewise.
16954         * modules/frexp-nolibm (Depends-on): Likewise.
16955         * modules/frexpl (Depends-on): Likewise.
16956         * modules/frexpl-nolibm (Depends-on): Likewise.
16957         * modules/fseek (Depends-on): Likewise.
16958         * modules/fsusage (Depends-on): Likewise.
16959         * modules/ftell (Depends-on): Likewise.
16960         * modules/ftello (Depends-on): Likewise.
16961         * modules/futimens (Depends-on): Likewise.
16962         * modules/getcwd (Depends-on): Likewise.
16963         * modules/getcwd-lgpl (Depends-on): Likewise.
16964         * modules/getdelim (Depends-on): Likewise.
16965         * modules/getdomainname (Depends-on): Likewise.
16966         * modules/getgroups (Depends-on): Likewise.
16967         * modules/gethostname (Depends-on): Likewise.
16968         * modules/getline (Depends-on): Likewise.
16969         * modules/getlogin_r (Depends-on): Likewise.
16970         * modules/getopt-posix (Depends-on): Likewise.
16971         * modules/getpeername (Depends-on): Likewise.
16972         * modules/getsockname (Depends-on): Likewise.
16973         * modules/getsockopt (Depends-on): Likewise.
16974         * modules/getsubopt (Depends-on): Likewise.
16975         * modules/getusershell (Depends-on): Likewise.
16976         * modules/glob (Depends-on): Likewise.
16977         * modules/grantpt (Depends-on): Likewise.
16978         * modules/iconv_open (Depends-on): Likewise.
16979         * modules/iconv_open-utf (Depends-on): Likewise.
16980         * modules/inet_ntop (Depends-on): Likewise.
16981         * modules/inet_pton (Depends-on): Likewise.
16982         * modules/ioctl (Depends-on): Likewise.
16983         * modules/isapipe (Depends-on): Likewise.
16984         * modules/isfinite (Depends-on): Likewise.
16985         * modules/isinf (Depends-on): Likewise.
16986         * modules/lchown (Depends-on): Likewise.
16987         * modules/ldexpl (Depends-on): Likewise.
16988         * modules/link (Depends-on): Likewise.
16989         * modules/linkat (Depends-on): Likewise.
16990         * modules/listen (Depends-on): Likewise.
16991         * modules/logl (Depends-on): Likewise.
16992         * modules/lstat (Depends-on): Likewise.
16993         * modules/mbrlen (Depends-on): Likewise.
16994         * modules/mbrtowc (Depends-on): Likewise.
16995         * modules/mbsinit (Depends-on): Likewise.
16996         * modules/mbsnrtowcs (Depends-on): Likewise.
16997         * modules/mbsrtowcs (Depends-on): Likewise.
16998         * modules/mbtowc (Depends-on): Likewise.
16999         * modules/memcmp (Depends-on): Likewise.
17000         * modules/mkdir (Depends-on): Likewise.
17001         * modules/mkdtemp (Depends-on): Likewise.
17002         * modules/mkfifo (Depends-on): Likewise.
17003         * modules/mkfifoat (Depends-on): Likewise.
17004         * modules/mknod (Depends-on): Likewise.
17005         * modules/mkostemp (Depends-on): Likewise.
17006         * modules/mkostemps (Depends-on): Likewise.
17007         * modules/mkstemp (Depends-on): Likewise.
17008         * modules/mkstemps (Depends-on): Likewise.
17009         * modules/mktime (Depends-on): Likewise.
17010         * modules/nanosleep (Depends-on): Likewise.
17011         * modules/open (Depends-on): Likewise.
17012         * modules/openat (Depends-on): Likewise.
17013         * modules/perror (Depends-on): Likewise.
17014         * modules/poll (Depends-on): Likewise.
17015         * modules/popen (Depends-on): Likewise.
17016         * modules/posix_spawn (Depends-on): Likewise.
17017         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17018         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17019         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17020         * modules/posix_spawnp (Depends-on): Likewise.
17021         * modules/pread (Depends-on): Likewise.
17022         * modules/printf-posix (Depends-on): Likewise.
17023         * modules/ptsname (Depends-on): Likewise.
17024         * modules/putenv (Depends-on): Likewise.
17025         * modules/pwrite (Depends-on): Likewise.
17026         * modules/readline (Depends-on): Likewise.
17027         * modules/readlink (Depends-on): Likewise.
17028         * modules/readlinkat (Depends-on): Likewise.
17029         * modules/recv (Depends-on): Likewise.
17030         * modules/recvfrom (Depends-on): Likewise.
17031         * modules/regex (Depends-on): Likewise.
17032         * modules/remove (Depends-on): Likewise.
17033         * modules/rename (Depends-on): Likewise.
17034         * modules/renameat (Depends-on): Likewise.
17035         * modules/rmdir (Depends-on): Likewise.
17036         * modules/round (Depends-on): Likewise.
17037         * modules/roundf (Depends-on): Likewise.
17038         * modules/roundl (Depends-on): Likewise.
17039         * modules/rpmatch (Depends-on): Likewise.
17040         * modules/select (Depends-on): Likewise.
17041         * modules/send (Depends-on): Likewise.
17042         * modules/sendto (Depends-on): Likewise.
17043         * modules/setenv (Depends-on): Likewise.
17044         * modules/setlocale (Depends-on): Likewise.
17045         * modules/setsockopt (Depends-on): Likewise.
17046         * modules/shutdown (Depends-on): Likewise.
17047         * modules/sigaction (Depends-on): Likewise.
17048         * modules/signbit (Depends-on): Likewise.
17049         * modules/sigprocmask (Depends-on): Likewise.
17050         * modules/sinl (Depends-on): Likewise.
17051         * modules/sleep (Depends-on): Likewise.
17052         * modules/snprintf (Depends-on): Likewise.
17053         * modules/snprintf-posix (Depends-on): Likewise.
17054         * modules/socket (Depends-on): Likewise.
17055         * modules/sprintf-posix (Depends-on): Likewise.
17056         * modules/sqrtl (Depends-on): Likewise.
17057         * modules/stat (Depends-on): Likewise.
17058         * modules/strchrnul (Depends-on): Likewise.
17059         * modules/strdup-posix (Depends-on): Likewise.
17060         * modules/strerror (Depends-on): Likewise.
17061         * modules/strerror_r-posix (Depends-on): Likewise.
17062         * modules/strndup (Depends-on): Likewise.
17063         * modules/strnlen (Depends-on): Likewise.
17064         * modules/strptime (Depends-on): Likewise.
17065         * modules/strsep (Depends-on): Likewise.
17066         * modules/strsignal (Depends-on): Likewise.
17067         * modules/strstr-simple (Depends-on): Likewise.
17068         * modules/strtod (Depends-on): Likewise.
17069         * modules/strtoimax (Depends-on): Likewise.
17070         * modules/strtok_r (Depends-on): Likewise.
17071         * modules/strtoumax (Depends-on): Likewise.
17072         * modules/symlink (Depends-on): Likewise.
17073         * modules/symlinkat (Depends-on): Likewise.
17074         * modules/tanl (Depends-on): Likewise.
17075         * modules/tcgetsid (Depends-on): Likewise.
17076         * modules/tmpfile (Depends-on): Likewise.
17077         * modules/trunc (Depends-on): Likewise.
17078         * modules/truncf (Depends-on): Likewise.
17079         * modules/truncl (Depends-on): Likewise.
17080         * modules/uname (Depends-on): Likewise.
17081         * modules/unlink (Depends-on): Likewise.
17082         * modules/unlockpt (Depends-on): Likewise.
17083         * modules/unsetenv (Depends-on): Likewise.
17084         * modules/usleep (Depends-on): Likewise.
17085         * modules/utimensat (Depends-on): Likewise.
17086         * modules/vasprintf (Depends-on): Likewise.
17087         * modules/vdprintf (Depends-on): Likewise.
17088         * modules/vdprintf-posix (Depends-on): Likewise.
17089         * modules/vfprintf-posix (Depends-on): Likewise.
17090         * modules/vprintf-posix (Depends-on): Likewise.
17091         * modules/vsnprintf (Depends-on): Likewise.
17092         * modules/vsnprintf-posix (Depends-on): Likewise.
17093         * modules/vsprintf-posix (Depends-on): Likewise.
17094         * modules/wcrtomb (Depends-on): Likewise.
17095         * modules/wcscasecmp (Depends-on): Likewise.
17096         * modules/wcscspn (Depends-on): Likewise.
17097         * modules/wcsdup (Depends-on): Likewise.
17098         * modules/wcsncasecmp (Depends-on): Likewise.
17099         * modules/wcsnrtombs (Depends-on): Likewise.
17100         * modules/wcspbrk (Depends-on): Likewise.
17101         * modules/wcsrtombs (Depends-on): Likewise.
17102         * modules/wcsspn (Depends-on): Likewise.
17103         * modules/wcsstr (Depends-on): Likewise.
17104         * modules/wcstok (Depends-on): Likewise.
17105         * modules/wcswidth (Depends-on): Likewise.
17106         * modules/wctob (Depends-on): Likewise.
17107         * modules/wctomb (Depends-on): Likewise.
17108         * modules/wctype (Depends-on): Likewise.
17109         * modules/wcwidth (Depends-on): Likewise.
17110         * modules/write (Depends-on): Likewise.
17111
17112 2011-05-03  Bruno Haible  <bruno@clisp.org>
17113
17114         Support for conditional dependencies.
17115         * doc/gnulib.texi (Module description): Document the syntax of
17116         conditional dependencies.
17117         * gnulib-tool: New option --conditional-dependencies.
17118         (func_usage): Document it.
17119         (cond_dependencies): New variable.
17120         (func_get_automake_snippet_conditional,
17121         func_get_automake_snippet_unconditional): New functions, extracted from
17122         func_get_automake_snippet.
17123         (func_get_automake_snippet): Use them.
17124         (sed_first_32_chars): New variable.
17125         (func_module_shellfunc_name): New function.
17126         (func_module_shellvar_name): New function.
17127         (func_module_conditional_name): New function.
17128         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17129         func_cond_module_condition): New functions.
17130         (func_modules_transitive_closure): Add support for conditional
17131         dependencies.
17132         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17133         conditional automake snippet in an automake conditional.
17134         (func_emit_autoconf_snippets): Emit shell functions that contain the
17135         code for conditional modules.
17136         (func_import, func_create_testdir): Update specification.
17137
17138 2011-05-03  Eric Blake  <eblake@redhat.com>
17139
17140         test-getaddrinfo: report error information
17141         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17142
17143 2011-05-03  Jim Meyering  <meyering@redhat.com>
17144
17145         bootstrap: avoid build failure when $GZIP is set
17146         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17147         program name.  If defined at all, it is supposed to list gzip options.
17148         Reported by Alan Curry in http://debbugs.gnu.org/8609
17149
17150 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17151
17152         readme-release: new module with release instructions
17153         * modules/readme-release: New module.
17154         * top/README-release: New file, from coreutils, grep, diffutils.
17155         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17156
17157 2011-05-02  Eric Blake  <eblake@redhat.com>
17158
17159         fflush: also replace fclose when fixing fflush
17160         * modules/fflush (Depends-on): Add fclose.
17161         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17162         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17163         memstreams with no backing fd.
17164         * doc/posix-functions/fclose.texi (fclose): Document the use of
17165         fflush module to fix the bug.
17166         * tests/test-fclose.c (main): Relax test when fclose is used in
17167         isolation.
17168
17169         fclose: add some tests
17170         * modules/fclose-tests: New test module.
17171         * tests/test-fclose.c: New file.
17172         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17173
17174         fclose: reduced dependencies
17175         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17176         simpler lseek.
17177         * lib/fclose.c (rpl_fclose): Likewise.
17178         Reported by Simon Josefsson.
17179
17180         exit: drop remaining clients
17181         * modules/argmatch (Depends-on): Replace exit with stdlib.
17182         * modules/copy-file (Depends-on): Likewise.
17183         * modules/execute (Depends-on): Likewise.
17184         * modules/exitfail (Depends-on): Likewise.
17185         * modules/obstack (Depends-on): Likewise.
17186         * modules/pagealign_alloc (Depends-on): Likewise.
17187         * modules/pipe-filter-gi (Depends-on): Likewise.
17188         * modules/pipe-filter-ii (Depends-on): Likewise.
17189         * modules/savewd (Depends-on): Likewise.
17190         * modules/spawn-pipe (Depends-on): Likewise.
17191         * modules/wait-process (Depends-on): Likewise.
17192         * modules/xsetenv (Depends-on): Likewise.
17193         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17194         * modules/git-merge-changelog (Depends-on): Likewise.
17195         * modules/long-options (Depends-on): Likewise.
17196         * modules/pt_chown (Depends-on): Likewise.
17197         * modules/sysexits (Depends-on): Likewise.
17198
17199         freading: relax license from LGPLv3+ to LGPLv2+
17200         * modules/freading (License): Relax LGPL version.
17201
17202 2011-05-02  Bruno Haible  <bruno@clisp.org>
17203
17204         fchdir: Remove unused dependencies.
17205         * modules/fchdir (Depends-on): Remove include_next.
17206
17207 2011-05-02  Bruno Haible  <bruno@clisp.org>
17208
17209         gnulib-tool: Refactor.
17210         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17211         from func_emit_autoconf_snippets.
17212         (func_emit_autoconf_snippets): Use it.
17213
17214 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17215
17216         * NEWS: Document removal of 'exit'.
17217         * modules/exit: Remove file.
17218
17219 2011-05-01  Bruno Haible  <bruno@clisp.org>
17220
17221         Update DEPENDENCIES.
17222         * DEPENDENCIES (gettext): Recommend the newest release.
17223         Reported by Simon Josefsson.
17224
17225 2011-05-01  Bruno Haible  <bruno@clisp.org>
17226
17227         gnulib-tool: Reduce code duplication.
17228         * gnulib-tool (func_emit_autoconf_snippets): New function.
17229         (func_import, func_create_testdir): Use it.
17230
17231 2011-04-30  Eric Blake  <eblake@redhat.com>
17232
17233         fclose: don't fail on non-seekable input stream
17234         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17235         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17236         since fflush is allowed to fail in that case.
17237
17238 2011-04-30  Bruno Haible  <bruno@clisp.org>
17239
17240         dup3: cleanup
17241         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17242
17243 2011-04-30  Bruno Haible  <bruno@clisp.org>
17244
17245         netdb: Make it work in C++ mode.
17246         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17247         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17248         module.
17249         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17250         gl_MODULE_INDICATOR_FOR_TESTS.
17251         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17252         * modules/netdb-c++-tests: New file.
17253         * tests/test-netdb-c++.cc: New file.
17254
17255 2011-04-30  Bruno Haible  <bruno@clisp.org>
17256
17257         New modules 'vfscanf', 'vscanf'.
17258         * modules/vfscanf: New file.
17259         * modules/vscanf: New file.
17260         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17261         here.
17262         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17263         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17264
17265 2011-04-30  Bruno Haible  <bruno@clisp.org>
17266
17267         passfd: Add comments.
17268         * lib/passfd.c: Add comments about platforms.
17269
17270 2011-04-30  Bruno Haible  <bruno@clisp.org>
17271
17272         sys_uio: Make <sys/uio.h> self-contained.
17273         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17274         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17275
17276 2011-04-30  Bruno Haible  <bruno@clisp.org>
17277
17278         sys_socket: Ensure 'struct iovec' definition.
17279         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17280         <sys/socket.h>.
17281         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17282
17283 2011-04-30  Bruno Haible  <bruno@clisp.org>
17284
17285         sys_uio: Protect definition of 'struct iovec'.
17286         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17287         it as a C struct.
17288
17289 2011-04-30  Bruno Haible  <bruno@clisp.org>
17290
17291         manywarnings: fix indentation
17292         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17293
17294 2011-04-30  Pádraig Brady <P@draigBrady.com>
17295
17296         manywarnings: add -Wno-missing-field-initializers if needed.
17297         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17298         option if it's needed to allow initialization with { 0, }
17299
17300 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17301
17302         announce-gen: cosmetic improvement
17303         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17304
17305 2011-04-29  Jim Meyering  <meyering@redhat.com>
17306
17307         vc-list-files: indent with spaces, not TABs
17308         * build-aux/vc-list-files: Convert leading TABs to spaces,
17309         to match the style of most other files in gnulib.
17310
17311         announce-gen: indent with spaces, not TABs
17312         * build-aux/announce-gen: Convert all TABs to spaces, to match
17313         the style of most other files in gnulib.
17314
17315 2011-04-29  Eric Blake  <eblake@redhat.com>
17316
17317         quotearg: avoid uninitialized variable use
17318         * lib/quotearg.c (quoting_options_from_style): Initialize
17319         remaining fields, and ensure that custom styles are only used via
17320         quoting_options rather than quoting_style.
17321
17322 2011-04-29  Jim Meyering  <meyering@redhat.com>
17323
17324         maint.mk: remove unused VC-tag variable
17325         * top/maint.mk (VC-tag): Remove unused variable.
17326
17327 2011-04-29  Bruno Haible  <bruno@clisp.org>
17328
17329         netdb: fix gai_strerror replacements
17330         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17331         * modules/netdb: Substitute it.
17332
17333 2011-04-29  Jim Meyering  <meyering@redhat.com>
17334
17335         test-getcwd.c: avoid new set-but-not-used warning
17336         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17337         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17338         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17339         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17340
17341         test-hash.c: avoid a new shadowing warning
17342         * tests/test-hash.c (main): Don't shadow "dup".
17343
17344 2011-04-28  Eric Blake  <eblake@redhat.com>
17345
17346         getaddrinfo: fix gai_strerror signature
17347         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17348         and work around mingw with UNICODE defined.
17349         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17350         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17351         * modules/netdb (Makefile.am): Substitute it.
17352         * lib/netdb.in.h (gai_strerror): Declare replacement.
17353         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17354         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17355         the fix.
17356
17357         getsockopt: avoid compiler warning
17358         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17359         Reported by Matthias Bolte.
17360
17361         tests: drop unused link dependency
17362         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17363         * modules/dirent-safer-tests (Makefile.am): Likewise.
17364         * modules/fdopendir-tests (Makefile.am): Likewise.
17365         * modules/mkfifoat-tests (Makefile.am): Likewise.
17366         * modules/openat-safer-tests (Makefile.am): Likewise.
17367         * modules/openat-tests (Makefile.am): Likewise.
17368         * modules/readlinkat-tests (Makefile.am): Likewise.
17369         * modules/symlinkat-tests (Makefile.am): Likewise.
17370         * modules/linkat-tests (Makefile.am): Likewise.
17371         (Depends-on): Switch to filenamecat-lgpl.
17372         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17373         LIBINTL.
17374         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17375         * tests/test-linkat.c (main): Don't require xalloc.
17376
17377         hash, mgetgroups: drop xalloc dependency
17378         * lib/hash.c (includes): Adjust includes.
17379         * lib/mgetgroups.c (includes): Likewise.
17380         (xgetgroups): Move...
17381         * lib/xgetgroups.c: ...to new file.
17382         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17383         * modules/xgetgroups: New file, split from...
17384         * modules/mgetgroups: ...here.
17385         (Depends-on): Add xalloc-oversized.
17386         * modules/hash (Depends-on): Likewise.
17387         * modules/hash-tests (Depends-on): Drop xalloc.
17388         (test_hash_LDADD): Drop unused library.
17389         * tests/test-hash.c (main): Break xalloc dependency.
17390         (includes): Drop unused include.
17391
17392         xalloc-oversized: new module
17393         * modules/xalloc-oversized: New module.
17394         * modules/xalloc (Depends-on): Add it.
17395         * lib/xalloc.h (xalloc_oversized): Move...
17396         * lib/xalloc-oversized.h: ...into new file.
17397
17398         utimecmp: drop dependency on xmalloc
17399         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17400         due to memory pressure.
17401         * modules/utimecmp (Depends-on): Drop xalloc.
17402
17403 2011-04-27  Eric Blake  <eblake@redhat.com>
17404
17405         getcwd: fix mingw bugs
17406         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17407         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17408         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17409
17410 2011-04-27  Bruno Haible  <bruno@clisp.org>
17411
17412         mkstemps: Ensure declaration on MacOS X 10.5.
17413         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17414         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17415         MacOS X.
17416
17417 2011-04-27  Bruno Haible  <bruno@clisp.org>
17418
17419         mkstemp: More documentation.
17420         * doc/posix-functions/mkstemp.texi: Document header file problem on
17421         MacOS X.
17422
17423 2011-04-27  Bruno Haible  <bruno@clisp.org>
17424
17425         mkstemp: Tweak configure message when cross-compiling.
17426         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17427         result as a guess.
17428
17429 2011-04-27  Bruno Haible  <bruno@clisp.org>
17430
17431         clean-temp: Clarify what it does.
17432         * lib/clean-temp.h: Add more comments.
17433         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17434         module.
17435         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17436         * doc/glibc-functions/mkstemps.texi: Likewise.
17437         * doc/glibc-functions/mkostemps.texi: Likewise.
17438
17439 2011-04-27  Eric Blake  <eblake@redhat.com>
17440
17441         fchdir: avoid extra chdir and fix test
17442         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17443         getcwd-lgpl.
17444         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17445         have to be canonical.
17446         (canonicalize_file_name): Drop unused macro.
17447         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17448
17449         filenamecat-lgpl: fix licence
17450         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17451         when it was first created.
17452
17453         linkat, renameat: add missing dependency
17454         * modules/linkat (Depends-on): Require getcwd-lgpl.
17455         * modules/renameat (Depends-on): Likewise.
17456
17457         tests: reduce dependencies
17458         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17459         * tests/test-renameat.c (main): Likewise.
17460         * modules/linkat-tests (Depends-on): Relax dependency.
17461         * modules/renameat-tests (Depends-on): Likewise.
17462         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17463         dependency explicit.
17464
17465         save-cwd: reduce default dependency
17466         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17467         * lib/save-cwd.c: Update comments.
17468         * NEWS: Document the semantic change.
17469
17470         getcwd: enhance tests
17471         * tests/test-getcwd-lgpl.c: New file, taken from...
17472         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17473         repeat long path stress tests from m4 probe.
17474         * modules/getcwd-lgpl-tests: New module.
17475         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17476         * m4/getcwd-abort-bug.m4: Update comment.
17477         * m4/getcwd-path-max.m4: Likewise.
17478
17479         getcwd-lgpl: new module
17480         * modules/getcwd-lgpl: New module.
17481         * lib/getcwd-lgpl.c: New file.
17482         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17483         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17484         * modules/getcwd (configure.ac): Set C witness.
17485         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17486
17487         getcwd: tweak comments
17488         * m4/getcwd-abort-bug.m4: Fix comments.
17489         * m4/getcwd-path-max.m4: Likewise.
17490         * m4/getcwd.m4: Likewise.
17491
17492 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17493         and Eric Blake  <eblake@redhat.com>
17494
17495         mkstemp: replace if system version uses wrong permissions
17496         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17497         read/write mode bits set in file created by mkstemp.
17498         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17499
17500 2011-04-27  Eric Blake  <eblake@redhat.com>
17501
17502         passfd: avoid compiler warning
17503         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17504         Reported by Laine Stump.
17505
17506 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17507
17508         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17509         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17510
17511 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17512         and Eric Blake  <eblake@redhat.com>
17513
17514         mkstemp: mention clean-temp module
17515         * lib/mkstemp.c: Add comment.
17516         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17517
17518 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17519
17520         inttypes: also provide default values for 32-bit tests
17521         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17522         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17523
17524 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17525
17526         strtoumax: remove dependency on strtoimax
17527         This is like the strtoull change of yesterday.
17528         * modules/strtoumax (Files): Add lib/strtoimax.c.
17529         (Depends-on): Remove strtoimax and add verify.
17530
17531         inttypes-incomplete: new module
17532         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17533         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17534         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17535         of gl_INTTYPES_H.
17536         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17537         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17538         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17539         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17540         * modules/strtoumax, modules/xstrtol (Depends-on):
17541         Depend on inttypes-incomplete, not inttypes.
17542         * modules/inttypes-incomplete: New module, containing the contents
17543         of the old modules/inttypes module, except that the Files: section
17544         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17545         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17546         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17547         (Depends-on): Depend only on inttypes-incomplete.
17548         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17549
17550         inttypes: omit now-redundant strtoimax and strtoumax work
17551         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17552         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17553
17554         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17555         This supports apps that need pointers to strtoimax and strtoumax,
17556         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17557         nonexistent functions.  See
17558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17559         et seq.
17560         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17561         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17562         a macro.
17563         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17564
17565 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17566
17567         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17568
17569 2011-04-25  Bruno Haible  <bruno@clisp.org>
17570
17571         strtol, strtoul: Mark modules as obsolete.
17572         * modules/strtol (Status, Notice): New sections.
17573         * modules/strtoul (Status, Notice): New sections.
17574
17575 2011-04-25  Bruno Haible  <bruno@clisp.org>
17576
17577         strtod: Remove check for strtod, unless supporting old platforms.
17578         * modules/strtod-obsolete: New file.
17579         * m4/strtod-obsolete.m4: New file.
17580         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17581         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17582         * modules/strtod (Depends-on): Add strtod-obsolete.
17583         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17584
17585 2011-04-25  Bruno Haible  <bruno@clisp.org>
17586
17587         strcase: Make module obsolete.
17588         * modules/strcase (Status, Notice): New sections.
17589
17590 2011-04-25  Bruno Haible  <bruno@clisp.org>
17591
17592         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17593         * modules/dup2-obsolete: New file.
17594         * m4/dup2-obsolete.m4: New file.
17595         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17596         gl_FUNC_DUP2_OBSOLETE is not also defined.
17597         * modules/dup2 (Depends-on): Add dup2-obsolete.
17598         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17599
17600 2011-04-25  Bruno Haible  <bruno@clisp.org>
17601
17602         strnlen: Avoid memchr related link error on old obsolete platforms.
17603         * modules/memchr-obsolete: New file.
17604         * m4/memchr-obsolete.m4: New file.
17605         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17606         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17607         * modules/memchr (Depends-on): Add memchr-obsolete.
17608         * modules/strnlen (Depends-on): Likewise.
17609         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17610
17611 2011-04-25  Jim Meyering  <meyering@redhat.com>
17612
17613         maint.mk: makefile_at_at_check extend and clean up
17614         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17615         in addition to */Makefile.am.
17616         Exempt legitimate uses of @VAR@ notation, e.g.,
17617         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17618         Remove obsolete coreutils-specific comment.
17619         Prompted by discussion here:
17620         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17621
17622 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17623
17624         strtoul: remove dependency on strtol
17625         This is so that 'configure' need not check for strtol merely because
17626         the application needs strtoul.
17627         * modules/strtoul (Files): Add lib/strtol.c.
17628         (Depends-on): Remove strtol.
17629
17630         strtoull: remove dependency on strtoul
17631         This is like the strtoll change.
17632         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17633         (Depends-on): Remove strtoul.
17634
17635         strtoll: remove dependency on strtol
17636         This is so that 'configure' need not check for strtol merely because
17637         the application needs strtoll.
17638         * modules/strtoll (Files): Add lib/strtol.c.
17639         (Depends-on): Remove strtol.
17640
17641 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17642
17643         inttypes: Move some configure check to module 'imaxdiv'.
17644         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17645         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17646         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17647
17648 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17649
17650         inttypes: Move some configure check to module 'imaxabs'.
17651         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17652         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17653         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17654
17655 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17656
17657         inttypes: Remove configure tests that are not needed since 2009-12-31.
17658         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17659         gl_cv_header_working_inttypes_h.
17660
17661 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17662
17663         * modules/strnlen (Depends-on): Remove memchr.
17664         The strnlen implementation doesn't need the memchr module's fixes; see
17665         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17666
17667         strtol: remove dependency on wchar
17668         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17669         * modules/strtol (Depends-on): Remove wchar.
17670
17671 2011-04-21  Eric Blake  <eblake@redhat.com>
17672
17673         passfd: fix test regression on Linux
17674         * modules/passfd-tests (configure.ac): Correct socketpair check.
17675
17676         passfd: speed up configure and drop unused code
17677         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17678         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17679         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17680         Instead of probing at configure for unix_scm_rights_bsd44_way,
17681         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17682         check to a struct member probe.
17683         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17684         (sendfd, recvfd): Update preprocessor checks.
17685         * modules/passfd (Files): Reflect rename, and drop unused file.
17686         (Depends-on): Drop unused dependency.
17687
17688         passfd: allow compilation on mingw
17689         * modules/sys_socket (Depends-on): Add sys_uio.
17690         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17691         iovec and a minimal struct msghdr.
17692         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17693         * tests/test-sys_socket.c (main): Enhance test.
17694         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17695         guaranteed to provide what we need.
17696         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17697         * modules/passfd-tests (Depends-on): Add sys_wait.
17698         * tests/test-passfd.c (main): Skip test on mingw, for now.
17699         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17700         partial 'struct msghdr' implementation.
17701
17702         sys_uio: new module
17703         * modules/sys_uio: New module.
17704         * modules/sys_uio-tests: Likewise.
17705         * lib/sys_uio.in.h: New file.
17706         * m4/sys_uio_h.m4: Likewise.
17707         * tests/test-sys_uio.c: Likewise.
17708         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17709         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17710
17711 2011-04-20  Jim Meyering  <meyering@redhat.com>
17712
17713         useless-if-before-free: avoid false-positive
17714         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17715         disjunct so that it too requires a terminating ";".  Without that,
17716         this script would identify as useless one statement from gcc that
17717         was not:
17718           if (aligned_ptr)
17719             free (((void **) aligned_ptr) [-1]);
17720
17721 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17722
17723         doc: update users.txt.
17724         * users.txt: Add barcode.
17725
17726 2011-04-19  Bruno Haible  <bruno@clisp.org>
17727
17728         ioctl: Remove link dependency on native Windows.
17729         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17730         (gl_close_fn, gl_ioctl_fn): New types.
17731         (struct fd_hook): Renamed from struct close_hook. Change type of
17732         private_close_fn field. Add private_ioctl_fn field.
17733         (close_hook_fn): Add parameter for primary close method.
17734         (execute_close_hooks, execute_all_close_hooks): Likewise.
17735         (ioctl_hook_fn): New type.
17736         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17737         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17738         argument.
17739         (unregister_fd_hook): Renamed from unregister_close_hook.
17740         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17741         Don't include <unistd.h>.
17742         (close): Remove undef.
17743         (anchor): Update.
17744         (execute_close_hooks): Add argument for primary close method.
17745         (execute_all_close_hooks): Likewise.
17746         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17747         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17748         argument. Allow each argument to be NULL.
17749         (unregister_fd_hook): Renamed from unregister_close_hook.
17750         * lib/close.c (rpl_close): Pass 'close' function pointer to
17751         execute_all_close_hooks.
17752         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17753         (primary_ioctl): New function.
17754         (ioctl): Don't call ioctlsocket here. Instead, call
17755         execute_all_ioctl_hooks.
17756         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17757         close method.
17758         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17759         (fd_sockets_hook): Renamed from close_sockets_hook.
17760         (gl_sockets_startup, gl_sockets_cleanup): Update.
17761         * modules/fd-hook: Renamed from modules/close-hook. Update.
17762         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17763         * modules/sockets (Depends-on): Likewise.
17764         * modules/ioctl (Depends-on): Add fd-hook.
17765         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17766         GNULIB_SOCKET.
17767
17768 2011-04-19  Bruno Haible  <bruno@clisp.org>
17769
17770         Move the support of O_NONBLOCK in open() to the 'open' module.
17771         * modules/nonblocking (Depends-on): Remove 'open'.
17772         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17773         gl_cv_have_open_O_NONBLOCK.
17774         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17775         O_NONBLOCK support.
17776         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17777
17778 2011-04-17  Bruno Haible  <bruno@clisp.org>
17779
17780         pipe2: Simplify code.
17781         * lib/pipe2.c (pipe2): Reduce code duplication.
17782
17783 2011-04-17  Bruno Haible  <bruno@clisp.org>
17784
17785         nonblocking: Add comment.
17786         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17787
17788 2011-04-17  Bruno Haible  <bruno@clisp.org>
17789
17790         nonblocking: Add tests for sockets.
17791         * tests/test-nonblocking-socket.sh: New file.
17792         * tests/test-nonblocking-socket-main.c: New file.
17793         * tests/test-nonblocking-socket-child.c: New file.
17794         * tests/test-nonblocking-socket.h: New file.
17795         * tests/socket-server.h: New file.
17796         * tests/socket-client.h: New file.
17797         * modules/nonblocking-socket-tests: New file.
17798         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17799
17800 2011-04-17  Bruno Haible  <bruno@clisp.org>
17801
17802         nonblocking: Add tests for pipes.
17803         * tests/test-nonblocking-pipe.sh: New file.
17804         * tests/test-nonblocking-pipe-main.c: New file.
17805         * tests/test-nonblocking-pipe-child.c: New file.
17806         * tests/test-nonblocking-pipe.h: New file.
17807         * tests/test-nonblocking-writer.h: New file.
17808         * tests/test-nonblocking-reader.h: New file.
17809         * tests/test-nonblocking-misc.h: New file.
17810         * modules/nonblocking-pipe-tests: New file.
17811         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17812
17813 2011-04-16  Bruno Haible  <bruno@clisp.org>
17814
17815         gettext: Clarify the needed programmer actions.
17816         * modules/gettext (Notice): New field.
17817         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17818
17819 2011-04-16  Bruno Haible  <bruno@clisp.org>
17820
17821         strchrnul: Tweak last commit.
17822         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17823         bug.
17824         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17825         as in _GL_FUNCDECL_SYS.
17826         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17827         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17828
17829 2011-04-15  Eric Blake  <eblake@redhat.com>
17830
17831         strchrnul: work around cygwin bug
17832         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17833         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17834         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17835         * modules/string (Makefile.am): Substitute it.
17836         * lib/string.in.h (strchrnul): Use it.
17837
17838 2011-04-15  Bruno Haible  <bruno@clisp.org>
17839
17840         Don't require lib/stdio-write.c when only module 'stdio' is used.
17841         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17842         invocation.
17843         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17844
17845 2011-04-14  Bruno Haible  <bruno@clisp.org>
17846
17847         Support non-blocking pipe I/O in read() on native Windows.
17848         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17849         (read): New declaration.
17850         * lib/read.c: New file.
17851         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17852         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17853         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17854         vscanf): New declarations.
17855         * lib/stdio-read.c: New file.
17856         * m4/read.m4: New file.
17857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17858         REPLACE_READ.
17859         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17860         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17861         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17862         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17863         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17864         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17865         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17866         * modules/read: New file.
17867         * modules/nonblocking (Files): Add lib/stdio-read.c.
17868         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17869         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17870         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17871         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17872         * modules/pread (Depends-on): Add read.
17873         * modules/safe-read (Depends-on): Likewise.
17874         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17875         gets, scanf, vfscanf, vscanf): Verify signatures.
17876         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17877         problem with non-blocking pipes.
17878         * doc/posix-functions/fgetc.texi: Likewise.
17879         * doc/posix-functions/fgets.texi: Likewise.
17880         * doc/posix-functions/fread.texi: Likewise.
17881         * doc/posix-functions/fscanf.texi: Likewise.
17882         * doc/posix-functions/getc.texi: Likewise.
17883         * doc/posix-functions/getchar.texi: Likewise.
17884         * doc/posix-functions/gets.texi: Likewise.
17885         * doc/posix-functions/scanf.texi: Likewise.
17886         * doc/posix-functions/vfscanf.texi: Likewise.
17887         * doc/posix-functions/vscanf.texi: Likewise.
17888
17889 2011-04-14  Bruno Haible  <bruno@clisp.org>
17890
17891         Support non-blocking pipe I/O in write() on native Windows.
17892         * lib/write.c (rpl_write): Split a write request that failed merely
17893         because the byte count was larger than the pipe buffer's size.
17894         * doc/posix-functions/write.texi: Mention the problem with large byte
17895         counts.
17896
17897 2011-04-14  Bruno Haible  <bruno@clisp.org>
17898
17899         wchar: Ensure that wchar_t gets defined on uClibc.
17900         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17901         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17902
17903 2011-04-13  Bruno Haible  <bruno@clisp.org>
17904
17905         safe-write, full-read: Avoid unnecessary compilation units.
17906         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17907         (Depends-on): Remove safe-read. Add ssize_t.
17908         * modules/full-read (Files): Add lib/full-write.c.
17909         (Depends-on): Add full-write.
17910
17911 2011-04-13  Bruno Haible  <bruno@clisp.org>
17912
17913         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17914         * modules/pwrite (Depends-on): Add 'write'.
17915
17916 2011-04-13  Bruno Haible  <bruno@clisp.org>
17917
17918         Support non-blocking pipe I/O in write() on native Windows.
17919         * lib/unistd.in.h (write): Enable replacement also if
17920         GNULIB_UNISTD_H_NONBLOCKING is 1.
17921         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17922         (rpl_write): When failing to write on a non-blocking pipe, change
17923         errno from ENOSPC to EAGAIN.
17924         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17925         putchar, puts, vfprintf, vprintf): Enable replacement also if
17926         GNULIB_STDIO_H_NONBLOCKING is 1.
17927         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17928         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17929         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17930         CALL_WITH_SIGPIPE_EMULATION.
17931         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17932         * m4/nonblocking.m4: New file.
17933         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17934         for non-blocking I/O support.
17935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17936         GNULIB_UNISTD_H_NONBLOCKING.
17937         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17938         required for non-blocking I/O support.
17939         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17940         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17941         lib/stdio-write.c, m4/asm-underscore.m4.
17942         (Depends-on): Add stdio, unistd.
17943         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17944         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17945         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17946         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17947         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17948         problem with non-blocking pipes.
17949         * doc/posix-functions/fputc.texi: Likewise.
17950         * doc/posix-functions/fputs.texi: Likewise.
17951         * doc/posix-functions/fwrite.texi: Likewise.
17952         * doc/posix-functions/printf.texi: Likewise.
17953         * doc/posix-functions/putc.texi: Likewise.
17954         * doc/posix-functions/putchar.texi: Likewise.
17955         * doc/posix-functions/puts.texi: Likewise.
17956         * doc/posix-functions/vfprintf.texi: Likewise.
17957         * doc/posix-functions/vprintf.texi: Likewise.
17958         * doc/posix-functions/write.texi: Likewise.
17959
17960 2011-04-10  Jim Meyering  <meyering@redhat.com>
17961
17962         maint.mk: prohibit doubled words
17963         Detect them also when they're separated by a newline.
17964         There are 3 ways to customize it:
17965           - disable the test on a per file basis, as usual with rules using
17966             $(VC_LIST_EXCEPT)
17967           - replace the default doubled-word-selecting regexp (affects all files)
17968           - ignore a particular file-vs-doubled-word match
17969         I nearly used that last one to ignore the "is is" match in
17970         coreutils' NEWS file, since the text was "ls -is is ..."
17971         To do that, I would have added this line to cfg.mk:
17972           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17973         but it would have ignored any "is is" match in NEWS.
17974         Low probability, but still...
17975         Instead, I changed the text, slightly:
17976           -  ls -is is now consistent with ls -lis in ignoring values returned
17977           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17978         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17979         (prohibit_doubled_word_): Define.
17980         (sc_prohibit_doubled_word): New rule.
17981         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17982
17983 2011-04-10  Jim Meyering  <meyering@redhat.com>
17984
17985         maint: fix doubled-word typo in comment
17986         * m4/gethostname.m4: s/is is/it is/
17987         * m4/getdomainname.m4: Likewise.
17988
17989 2011-04-10  Jim Meyering  <meyering@redhat.com>
17990
17991         maint: remove doubled word: s/it it/it/
17992         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17993
17994 2011-04-10  Jim Meyering  <meyering@redhat.com>
17995
17996         maint.mk: remove useless semicolon and backslash
17997         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17998         semicolon and backslash.
17999
18000 2011-04-10  Bruno Haible  <bruno@clisp.org>
18001
18002         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18003         * modules/stdint-tests (Depends-on): Add wchar.
18004
18005 2011-04-10  Jim Meyering  <meyering@redhat.com>
18006
18007         maint: remove doubled words in comments, e.g., s/a a/a/
18008         * lib/strptime.c (day_of_the_week): s/the the/the/
18009         * tests/test-chown.h (test_chown): s/a a/a/
18010
18011         test-chown.h: correct a cast
18012         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18013         when the destination is a stat.st_gid.
18014
18015 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18016
18017         getaddrinfo: Fix test for sa_len member.
18018         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18019         include <sys/types.h> before <sys/socket.h>.
18020
18021 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18022
18023         maint: change "can not" to "cannot"
18024         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18025         boundaries.
18026
18027 2011-04-09  Jim Meyering  <meyering@redhat.com>
18028
18029         maint: change "a a" to "a"
18030         * tests/test-lchown.h (test_lchown): s/a a/a/
18031
18032         maint.mk: prohibit \<the the\>
18033         * top/maint.mk (sc_prohibit_the_the): New rule.
18034
18035         maint: fix "the the" in comment
18036         * lib/count-one-bits.h: s/the the/the/
18037
18038         maint: change "can not" to "cannot"
18039         But do not change the occurrences in maintain.texi or in
18040         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18041         * doc/gnulib-tool.texi: s/can not/cannot/
18042         * doc/posix-functions/accept.texi (accept): Likewise.
18043         * doc/posix-functions/socket.texi (socket): Likewise.
18044         * lib/mbrtowc.c: Likewise.
18045
18046         maint.mk: prohibit use of "can not"
18047         * top/maint.mk (sc_prohibit_can_not): New rule.
18048         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18049
18050 2011-04-09  Bruno Haible  <bruno@clisp.org>
18051
18052         careadlinkat: Guard against misuse of careadlinkatcwd.
18053         * lib/careadlinkat.c: Include <stdlib.h>.
18054         (careadlinkatcwd): Check that the fd argument is as expected.
18055
18056 2011-04-09  Bruno Haible  <bruno@clisp.org>
18057
18058         careadlinkat: Use common coding style.
18059         * lib/careadlinkat.c: Move gnulib includes after system includes.
18060
18061 2011-04-09  Bruno Haible  <bruno@clisp.org>
18062
18063         careadlinkat: Clarify specification.
18064         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18065         (careadlinkatcwd): Add comment.
18066         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18067
18068 2011-04-09  Bruno Haible  <bruno@clisp.org>
18069
18070         areadlinkat: Avoid link error on many platforms.
18071         * modules/areadlinkat (Depends-on): Add areadlink.
18072
18073 2011-04-09  Bruno Haible  <bruno@clisp.org>
18074
18075         allocator, careadlinkat: Fix double-inclusion guard.
18076         * lib/allocator.h: Fix double-inclusion guard.
18077         * lib/careadlinkat.h: Likewise.
18078
18079 2011-04-09  Bruno Haible  <bruno@clisp.org>
18080
18081         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18082         * lib/relocwrapper.c: Update dependencies hierarchy.
18083         * build-aux/install-reloc: Update list of files to be compiled.
18084         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18085         lib/allocator.[hc].
18086
18087 2011-04-08  Eric Blake  <eblake@redhat.com>
18088
18089         strftime: silence gnulib-tool warning
18090         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18091
18092 2011-04-08  Bruno Haible  <bruno@clisp.org>
18093
18094         verify: Fix syntax error with GCC 4.6 in C++ mode.
18095         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18096         (HAVE_STATIC_ASSERT): New macro.
18097         (verify_true, verify): Use 'static_assert' if it is supported and
18098         '_Static_assert' is not supported.
18099
18100 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18101
18102         allocator: New module.
18103         * modules/allocator, lib/allocator.c: New files.
18104         * lib/allocator.h (stdlib_allocator): New decl.
18105         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18106         Remove.  Do not include <stdlib.h>.
18107         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18108         * modules/careadlinkat (Files): Remove lib/allocator.h.
18109         (Depends-on): Add allocator.
18110
18111         stdlib: let modules use system malloc, realloc
18112         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18113         if !_GL_USE_STDLIB_ALLOC.
18114         (malloc, realloc): Limit this change to a smaller scope.
18115
18116         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18117         (malloc, realloc): Don't #undef; no longer needed.
18118         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18119         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18120         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18121         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18122         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18123         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18124         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18125         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18126
18127         careadlinkat: rename members to avoid problem
18128         * lib/allocator.h (struct allocator): Rename members from
18129         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18130         and realloc are #define'd.  Reported by Eric Blake in
18131         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18132         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18133
18134 2011-04-08  Eric Blake  <eblake@redhat.com>
18135
18136         nonblocking: reduce dependency
18137         * tests/test-nonblocking.c: Only test sockets when in use.
18138         * modules/nonblocking-tests (Depends-on): Drop socket.
18139         (Makefile.am): Link even if sockets are not present.
18140         * modules/pipe2-tests (Makefile.am): Likewise.
18141         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18142
18143         pipe2: fix O_NONBLOCK support on mingw
18144         * modules/pipe2 (Depends-on): Add nonblocking.
18145         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18146         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18147         * tests/test-nonblocking.c (main): Likewise.
18148         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18149
18150         fcntl-h: fix O_ACCMODE on cygwin
18151         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18152         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18153
18154         pipe-filter: drop O_NONBLOCK workarounds
18155         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18156         * modules/pipe-filter-ii (Depends-on): Likewise.
18157         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18158
18159         nonblocking: provide O_NONBLOCK for mingw
18160         * modules/nonblocking (Depends-on): Add open.
18161         (configure.ac): Set new witness macro.
18162         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18163         * modules/fcntl-h (Makefile.am): Substitute it.
18164         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18165         nonblocking module is in use.
18166         * lib/nonblocking.c: Adjust portability test.
18167         * lib/open.c (open): Don't let native open see gnulib flag.
18168         * tests/test-fcntl-h.c (main): Enhance test.
18169         * tests/test-open.h (test_open): Likewise.
18170         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18171
18172         careadlinkat: fix compilation error on mingw
18173         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18174         within struct allocator.
18175
18176 2011-04-06  Eric Blake  <eblake@redhat.com>
18177
18178         binary-io: relicense under LGPLv2+
18179         * modules/binary-io (License): Relax to LGPLv2+.
18180         Requested for libvirt, and required by pipe2.
18181
18182 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18183
18184         verify: use _Static_assert if available
18185         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18186         (verify_true, verify): Use it if available.  This generates better
18187         diagnostics with GCC 4.6.0 and later.
18188
18189 2011-04-05  Bruno Haible  <bruno@clisp.org>
18190
18191         Remove leftover generated .h files after config.status changed.
18192
18193         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18194         GL_GENERATE_ALLOCA_H.
18195         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18196         GL_GENERATE_ALLOCA_H evaluates to false.
18197
18198         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18199         GL_GENERATE_ARGZ_H.
18200         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18201         evaluates to false.
18202
18203         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18204         GL_GENERATE_BYTESWAP_H.
18205         * modules/byteswap (Makefile.am): Remove byteswap.h if
18206         GL_GENERATE_BYTESWAP_H evaluates to false.
18207
18208         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18209         GL_GENERATE_ERRNO_H.
18210         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18211         evaluates to false.
18212
18213         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18214         GL_GENERATE_FLOAT_H.
18215         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18216         evaluates to false.
18217
18218         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18219         GL_GENERATE_FNMATCH_H.
18220         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18221         GL_GENERATE_FNMATCH_H evaluates to false.
18222
18223         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18224         GL_GENERATE_GLOB_H.
18225         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18226         evaluates to false.
18227
18228         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18229         automake conditional GL_GENERATE_ICONV_H.
18230         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18231         evaluates to false.
18232
18233         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18234         GL_GENERATE_NETINET_IN_H.
18235         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18236         GL_GENERATE_NETINET_IN_H evaluates to false.
18237
18238         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18239         conditional GL_GENERATE_PTHREAD_H.
18240         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18241         * modules/pthread (Makefile.am): Remove pthread.h if
18242         GL_GENERATE_PTHREAD_H evaluates to false.
18243
18244         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18245         GL_GENERATE_SCHED_H.
18246         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18247         evaluates to false.
18248
18249         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18250         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18251         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18252         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18253
18254         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18255         GL_GENERATE_STDARG_H.
18256         * modules/stdarg (Makefile.am): Remove stdarg.h if
18257         GL_GENERATE_STDARG_H evaluates to false.
18258
18259         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18260         GL_GENERATE_STDBOOL_H.
18261         * modules/stdbool (Makefile.am): Remove stdbool.h if
18262         GL_GENERATE_STDBOOL_H evaluates to false.
18263
18264         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18265         conditional GL_GENERATE_STDDEF_H.
18266         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18267         * modules/stddef (Makefile.am): Remove stddef.h if
18268         GL_GENERATE_STDDEF_H evaluates to false.
18269
18270         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18271         GL_GENERATE_STDINT_H.
18272         * modules/stdint (Makefile.am): Remove stdint.h if
18273         GL_GENERATE_STDINT_H evaluates to false.
18274
18275         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18276         GL_GENERATE_SYSEXITS_H.
18277         * modules/sysexits (Makefile.am): Remove sysexits.h if
18278         GL_GENERATE_SYSEXITS_H evaluates to false.
18279
18280         Reported by Karl Berry and Ralf Wildenhues.
18281
18282 2011-04-05  Bruno Haible  <bruno@clisp.org>
18283
18284         Ensure to rebuild generated .h files when config.status has changed.
18285         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18286         config.status.
18287         * modules/ctype (Makefile.am): Likewise.
18288         * modules/dirent (Makefile.am): Likewise.
18289         * modules/errno (Makefile.am): Likewise.
18290         * modules/fcntl-h (Makefile.am): Likewise.
18291         * modules/float (Makefile.am): Likewise.
18292         * modules/getopt-posix (Makefile.am): Likewise.
18293         * modules/glob (Makefile.am): Likewise.
18294         * modules/iconv-h (Makefile.am): Likewise.
18295         * modules/inttypes (Makefile.am): Likewise.
18296         * modules/langinfo (Makefile.am): Likewise.
18297         * modules/locale (Makefile.am): Likewise.
18298         * modules/math (Makefile.am): Likewise.
18299         * modules/netdb (Makefile.am): Likewise.
18300         * modules/netinet_in (Makefile.am): Likewise.
18301         * modules/poll-h (Makefile.am): Likewise.
18302         * modules/pthread (Makefile.am): Likewise.
18303         * modules/pty (Makefile.am): Likewise.
18304         * modules/sched (Makefile.am): Likewise.
18305         * modules/search (Makefile.am): Likewise.
18306         * modules/selinux-h (Makefile.am): Likewise.
18307         * modules/signal (Makefile.am): Likewise.
18308         * modules/spawn (Makefile.am): Likewise.
18309         * modules/stdarg (Makefile.am): Likewise.
18310         * modules/stdbool (Makefile.am): Likewise.
18311         * modules/stddef (Makefile.am): Likewise.
18312         * modules/stdint (Makefile.am): Likewise.
18313         * modules/stdio (Makefile.am): Likewise.
18314         * modules/stdlib (Makefile.am): Likewise.
18315         * modules/string (Makefile.am): Likewise.
18316         * modules/strings (Makefile.am): Likewise.
18317         * modules/sys_file (Makefile.am): Likewise.
18318         * modules/sys_ioctl (Makefile.am): Likewise.
18319         * modules/sys_select (Makefile.am): Likewise.
18320         * modules/sys_socket (Makefile.am): Likewise.
18321         * modules/sys_stat (Makefile.am): Likewise.
18322         * modules/sys_time (Makefile.am): Likewise.
18323         * modules/sys_times (Makefile.am): Likewise.
18324         * modules/sys_utsname (Makefile.am): Likewise.
18325         * modules/sys_wait (Makefile.am): Likewise.
18326         * modules/sysexits (Makefile.am): Likewise.
18327         * modules/termios (Makefile.am): Likewise.
18328         * modules/time (Makefile.am): Likewise.
18329         * modules/unistd (Makefile.am): Likewise.
18330         * modules/wchar (Makefile.am): Likewise.
18331         * modules/wctype-h (Makefile.am): Likewise.
18332         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18333
18334 2011-04-05  Bruno Haible  <bruno@clisp.org>
18335
18336         pipe2: Relicense under LGPLv2+.
18337         * modules/pipe2 (License): Change to LGPLv2+.
18338         Requested by Eric Blake, for libvirt.
18339
18340 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18341
18342         bootstrap: compute gnulib_extra_files after updating build_aux
18343         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18344         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18345
18346 2011-04-05  Eric Blake  <eblake@redhat.com>
18347
18348         bootstrap: preserve git whitelist item sorting
18349         * build-aux/bootstrap (sort_patterns): New function.
18350         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18351
18352 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18353
18354         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18355         sc_space_tab check.
18356
18357 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18358
18359         areadlink, areadlinkat: rewrite in terms of careadlinkat
18360         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18361         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18362         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18363         (malloc, realloc): Remove #undefs.
18364         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18365         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18366         readlink, ssize_t, stdint, unistd.
18367         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18368         areadlink, stdint.
18369
18370         careadlinkat: new module
18371         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18372         * modules/careadlinkat: New files, written by me with
18373         a review and feedback from Ben Pfaff in
18374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18375
18376 2011-04-01  Bruno Haible  <bruno@clisp.org>
18377
18378         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18379         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18380         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18381         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18382         Reported by Bruce Korb <bruce.korb@gmail.com>.
18383
18384 2011-04-01  Bruno Haible  <bruno@clisp.org>
18385
18386         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18387         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18388         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18389         * modules/wcpcpy (Depends-on): Add extensions.
18390         * modules/wcpncpy (Depends-on): Likewise.
18391         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18392         systems.
18393         * doc/posix-functions/wcpncpy.texi: Likewise.
18394         * doc/posix-functions/wcwidth.texi: Likewise.
18395
18396 2011-03-31  Eric Blake  <eblake@redhat.com>
18397
18398         nonblocking: fix mingw test failures
18399         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18400         non-blocking flag on regular file.
18401         (get_nonblocking_flag): Set errno on invalid fd.
18402         * tests/test-nonblocking.c (main): Avoid test failure on
18403         directories if fchdir is not active.
18404         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18405
18406 2011-03-31  Bruno Haible  <bruno@clisp.org>
18407
18408         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18409         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18410         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18411         Reported by Simon Josefsson <simon@josefsson.org>.
18412
18413 2011-03-31  Bruno Haible  <bruno@clisp.org>
18414         and Eric Blake  <eblake@redhat.com>
18415
18416         nonblocking: new module
18417         * modules/nonblocking: New module.
18418         * modules/nonblocking-tests: Likewise.
18419         * lib/nonblocking.h: New file.
18420         * lib/nonblocking.c: Likewise.
18421         * tests/test-nonblocking.c: New test.
18422         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18423
18424 2011-03-30  Bruno Haible  <bruno@clisp.org>
18425
18426         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18427         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18428         instead of 'printf' format for GCC >= 4.4.
18429         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18430         (fprintf, printf, vfprintf, vprintf): Declare with
18431         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18432         the system's vfprintf() function.
18433         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18434
18435 2011-03-30  Eric Blake  <eblake@redhat.com>
18436
18437         passfd: fix scoping bug
18438         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18439         before sendmsg/recvmsg.
18440
18441         passfd: standardize coding conventions
18442         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18443         can be learned at compile time.
18444         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18445         ifdefs.
18446         (sendfd, recvfd): Follow gnulib code conventions.
18447
18448         passfd: fix incorrect sendmsg arguments
18449         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18450         incorrect msg_controllen value.
18451         * modules/passfd-tests (Depends-on): Check for alarm.
18452         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18453         Reported by Bastien ROUCARIES.
18454
18455 2011-03-30  Bruno Haible  <bruno@clisp.org>
18456
18457         c-strcasestr: Relicense under LGPLv2+.
18458         * modules/c-strcasestr (License): Change to LGPLv2+.
18459         Requested by Eric Blake, for libvirt.
18460
18461 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18462
18463         * users.txt: Add libidn2.  Fix libtasn1 link.
18464
18465 2011-03-30  Jim Meyering  <meyering@redhat.com>
18466
18467         tests: readlink* ("",... fails with EINVAL on newer kernels
18468         readlink and readlinkat have typically failed with ENOENT for
18469         the invalid, empty file name,  "".  However, with the advent
18470         of linux-2.6.39, they fail with EINVAL.
18471         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18472         when operating on the empty file name.
18473         * tests/test-readlink.h (test_readlink): Likewise.
18474
18475 2011-03-29  Bruno Haible  <bruno@clisp.org>
18476
18477         Relicense some modules under LGPLv2+, for libidn2.
18478         * modules/array-mergesort (License): Change to LGPLv2+.
18479         * modules/c-strcaseeq (License): Likewise.
18480         * modules/striconveh (License): Likewise.
18481         * modules/striconveha (License): Likewise.
18482         * modules/uniconv/base (License): Likewise.
18483         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18484         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18485         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18486         * modules/unictype/base (License): Likewise.
18487         * modules/unictype/bidiclass-of (License): Likewise.
18488         * modules/unictype/category-M (License): Likewise.
18489         * modules/unictype/category-none (License): Likewise.
18490         * modules/unictype/category-of (License): Likewise.
18491         * modules/unictype/category-test (License): Likewise.
18492         * modules/unictype/category-test-withtable (License): Likewise.
18493         * modules/unictype/combining-class (License): Likewise.
18494         * modules/unictype/joiningtype-of (License): Likewise.
18495         * modules/unictype/scripts (License): Likewise.
18496         * modules/uninorm/base (License): Likewise.
18497         * modules/uninorm/canonical-decomposition (License): Likewise.
18498         * modules/uninorm/composition (License): Likewise.
18499         * modules/uninorm/decompose-internal (License): Likewise.
18500         * modules/uninorm/decomposition-table (License): Likewise.
18501         * modules/uninorm/nfc (License): Likewise.
18502         * modules/uninorm/nfd (License): Likewise.
18503         * modules/uninorm/u32-normalize (License): Likewise.
18504         * modules/unistr/base (License): Likewise.
18505         * modules/unistr/u32-cpy (License): Likewise.
18506         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18507         * modules/unistr/u32-to-u8 (License): Likewise.
18508         * modules/unistr/u32-uctomb (License): Likewise.
18509         * modules/unistr/u8-check (License): Likewise.
18510         * modules/unistr/u8-mblen (License): Likewise.
18511         * modules/unistr/u8-mbtouc (License): Likewise.
18512         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18513         * modules/unistr/u8-mbtoucr (License): Likewise.
18514         * modules/unistr/u8-prev (License): Likewise.
18515         * modules/unistr/u8-strlen (License): Likewise.
18516         * modules/unistr/u8-to-u32 (License): Likewise.
18517         * modules/unistr/u8-uctomb (License): Likewise.
18518         * modules/unitypes (License): Likewise.
18519         Requested by Simon Josefsson.
18520
18521 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18522
18523         lib-symbol-visibility: Add a notice.
18524         * modules/lib-symbol-visibility (Notice): New field.
18525
18526 2011-03-29  Bruno Haible  <bruno@clisp.org>
18527
18528         getaddrinfo: Doc fix.
18529         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18530         section "fixed in Gnulib".
18531
18532 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18533
18534         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18535         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18536
18537 2011-03-26  Bruno Haible  <bruno@clisp.org>
18538
18539         unictype/property-byname: Reduce the number of load-time relocations.
18540         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18541         (UC_PROPERTY_INDEX_*): New enumeration values.
18542         (uc_property_byname): Convert an index from the lookup table to an
18543         uc_property_t.
18544         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18545         values.
18546
18547 2011-03-26  Bruno Haible  <bruno@clisp.org>
18548
18549         unictype/property-byname: Allow omitted word separators and aliases.
18550         * lib/unictype/pr_byname.gperf: Add property names without word
18551         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18552         for 'space'.
18553
18554 2011-03-26  Bruno Haible  <bruno@clisp.org>
18555
18556         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18557         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18558         also hyphens to space.
18559         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18560         without spaces.
18561         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18562
18563 2011-03-26  Bruno Haible  <bruno@clisp.org>
18564
18565         unictype/joiningtype-byname: Recognize long names as well.
18566         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18567         a long name.
18568         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18569         unictype/joiningtype_byname.h.
18570         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18571         * lib/unictype/joiningtype_byname.gperf: New file.
18572         * modules/unictype/joiningtype-byname (Files): Add
18573         lib/unictype/joiningtype_byname.gperf.
18574         (Depends-on): Add gperf.
18575         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18576         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18577         long names.
18578
18579         Tests for module 'unictype/joiningtype-longname'.
18580         * modules/unictype/joiningtype-longname-tests: New file.
18581         * tests/unictype/test-joiningtype_longname.c: New file.
18582
18583         New module 'unictype/joiningtype-longname'.
18584         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18585         * lib/unictype/joiningtype_longname.c: New file.
18586         * modules/unictype/joiningtype-longname: New file.
18587         * modules/unictype/joiningtype-all (Depends-on): Add
18588         unictype/joiningtype-longname.
18589
18590 2011-03-26  Bruno Haible  <bruno@clisp.org>
18591
18592         unictype/bidiclass-byname: Recognize long names as well.
18593         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18594         name.
18595         * lib/unictype/bidi_byname.c: Include <string.h>,
18596         unictype/bidi_byname.h.
18597         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18598         * lib/unictype/bidi_byname.gperf: New file.
18599         * modules/unictype/bidiclass-byname (Files): Add
18600         lib/unictype/bidi_byname.gperf.
18601         (Depends-on): Add gperf.
18602         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18603         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18604         long names.
18605
18606         Tests for module 'unictype/bidiclass-longname'.
18607         * modules/unictype/bidiclass-longname-tests: New file.
18608         * tests/unictype/test-bidi_longname.c: New file.
18609
18610         New module 'unictype/bidiclass-longname'.
18611         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18612         * lib/unictype/bidi_longname.c: New file.
18613         * modules/unictype/bidiclass-longname: New file.
18614         * modules/unictype/bidiclass-all (Depends-on): Add
18615         unictype/bidiclass-longname.
18616
18617 2011-03-26  Bruno Haible  <bruno@clisp.org>
18618
18619         unictype/bidi*: Rename modules.
18620         * modules/unictype/bidiclass-all: Renamed from
18621         modules/unictype/bidicategory-all.
18622         * modules/unictype/bidiclass-name: Renamed from
18623         modules/unictype/bidiclass-name.
18624         (Description): Update.
18625         * modules/unictype/bidiclass-name-tests: Renamed from
18626         modules/unictype/bidicategory-name-tests.
18627         * modules/unictype/bidiclass-byname: Renamed from
18628         modules/unictype/bidicategory-byname.
18629         (Description): Update.
18630         * modules/unictype/bidiclass-byname-tests: Renamed from
18631         modules/unictype/bidicategory-byname-tests.
18632         * modules/unictype/bidiclass-of: Renamed from
18633         modules/unictype/bidicategory-of.
18634         (Description): Update.
18635         * modules/unictype/bidiclass-of-tests: Renamed from
18636         modules/unictype/bidicategory-of-tests.
18637         * modules/unictype/bidiclass-test: Renamed from
18638         modules/unictype/bidicategory-test.
18639         (Description): Update.
18640         * modules/unictype/bidiclass-test-tests: Renamed from
18641         modules/unictype/bidicategory-test-tests.
18642         * modules/unictype/bidicategory-all: New file, a simple redirection.
18643         * modules/unictype/bidicategory-name: Likewise.
18644         * modules/unictype/bidicategory-byname: Likewise.
18645         * modules/unictype/bidicategory-of: Likewise.
18646         * modules/unictype/bidicategory-test: Likewise.
18647         * modules/unictype/property-bidi-* (Dependencies): Update.
18648         * lib/unictype/bidi_*.c: Update comment.
18649
18650 2011-03-26  Bruno Haible  <bruno@clisp.org>
18651
18652         unictype/bidi*: Rename functions, part 2.
18653         * modules/unictype/bidicategory-name (configure.ac): Update required
18654         libunistring version.
18655         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18656
18657 2011-03-25  Bruno Haible  <bruno@clisp.org>
18658
18659         New module 'unictype/combining-class-all'.
18660         * modules/unictype/combining-class-all: New file.
18661
18662         Tests for module 'unictype/combining-class-byname'.
18663         * modules/unictype/combining-class-byname-tests: New file.
18664         * tests/unictype/test-combiningclass_byname.c: New file.
18665
18666         New module 'unictype/combining-class-byname'.
18667         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18668         * lib/unictype/combiningclass_byname.c: New file.
18669         * lib/unictype/combiningclass_byname.gperf: New file.
18670         * modules/unictype/combining-class-byname: New file.
18671
18672         Tests for module 'unictype/combining-class-longname'.
18673         * modules/unictype/combining-class-longname-tests: New file.
18674         * tests/unictype/test-combiningclass_longname.c: New file.
18675
18676         New module 'unictype/combining-class-longname'.
18677         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18678         * lib/unictype/combiningclass_longname.c: New file.
18679         * modules/unictype/combining-class-longname: New file.
18680
18681         Tests for module 'unictype/combining-class-name'.
18682         * modules/unictype/combining-class-name-tests: New file.
18683         * tests/unictype/test-combiningclass_name.c: New file.
18684
18685         New module 'unictype/combining-class-name'.
18686         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18687         * lib/unictype/combiningclass_name.c: New file.
18688         * modules/unictype/combining-class-name: New file.
18689
18690 2011-03-25  Bruno Haible  <bruno@clisp.org>
18691
18692         unictype/combining-class: Rename source files.
18693         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18694         of unictype/combining.h.
18695         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18696         Update.
18697         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18698         * modules/unictype/combining-class (Description): Fix.
18699         (Files, Makefile.am): Update.
18700         * tests/unictype/test-combiningclass.c: Renamed from
18701         tests/unictype/test-combining.c.
18702         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18703
18704 2011-03-25  Bruno Haible  <bruno@clisp.org>
18705
18706         unictype: Update list of canonical combining classes.
18707         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18708
18709 2011-03-25  Bruno Haible  <bruno@clisp.org>
18710
18711         unictype/category-byname: Recognize long names as well.
18712         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18713         a long name.
18714         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18715         unictype/categ_byname.h.
18716         (UC_CATEGORY_INDEX_*): New enumeration values.
18717         (uc_general_category_byname): Use uc_general_category_lookup and
18718         convert from index to value.
18719         * lib/unictype/categ_byname.gperf: New file.
18720         * modules/unictype/category-byname (Files): Add
18721         lib/unictype/categ_byname.gperf.
18722         (Depends-on): Add gperf.
18723         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18724         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18725         long names.
18726
18727         Tests for module 'unictype/category-longname'.
18728         * modules/unictype/category-longname-tests: New file.
18729         * tests/unictype/test-categ_longname.c: New file.
18730
18731         New module 'unictype/category-longname'.
18732         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18733         * lib/unictype/categ_longname.c: New file.
18734         * modules/unictype/category-longname: New file.
18735         * modules/unictype/category-all (Depends-on): Add it.
18736
18737 2011-03-25  Bruno Haible  <bruno@clisp.org>
18738
18739         Tests for module 'unictype/category-LC'.
18740         * modules/unictype/category-LC-tests: New file.
18741         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18742
18743         New module 'unictype/category-LC'.
18744         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18745         (UC_CATEGORY_LC): New declaration.
18746         (UC_CASED_LETTER): New macro.
18747         * lib/gen-uni-tables.c (is_category_LC): New function.
18748         (output_categories): Also handle category LC.
18749         (UC_CATEGORY_MASK_LC): New enumeration value.
18750         (general_category_byname): Also handle category LC.
18751         * lib/unictype/categ_LC.c: New file.
18752         * lib/unictype/categ_LC.h: New file, automatically generated.
18753         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18754         category LC.
18755         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18756         * modules/unictype/category-LC: New file.
18757         * modules/unictype/category-byname (Depends-on): Add
18758         unictype/category-LC.
18759         * modules/unictype/category-all (Depends-on): Likewise.
18760
18761 2011-03-25  Eric Blake  <eblake@redhat.com>
18762
18763         xmalloc: revert yesterday's regression
18764         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18765         realloc's underlying behavior (allowing allocation of zero-size
18766         objects, especially if malloc-gnu is also in use).
18767
18768 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18769
18770         maint.mk: add missing version to VC-tag
18771         * top/maint.mk: git tag was missing actual tag name; add it.
18772
18773         valgrind: do leak checking, and exit with code 1 on error (not 0)
18774         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18775         to VALGRIND.
18776
18777 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18778
18779         posix-modules: say what it does.
18780         * posix-modules: Add a line to the --help output saying what it does.
18781
18782 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18783
18784         xmalloc: Do not leak if underlying realloc is C99 compatible.
18785         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18786         This avoids a leak on C99-based systems.  See
18787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18788
18789 2011-03-24  Eric Blake  <eblake@redhat.com>
18790
18791         realloc: document portability problem
18792         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18793         passing 0 size to realloc.
18794
18795 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18796
18797         doc: update users.txt
18798         * users.txt: Add cvsps, tmpwatch
18799
18800 2011-03-23  Matt Rice  <ratmice@gmail.com>
18801
18802         doc: update users.txt
18803         * users.txt: Add gdb.
18804
18805 2011-03-23  Jim Meyering  <meyering@redhat.com>
18806
18807         doc: update users.txt
18808         Looking through matches up to the following URL (there are still
18809         several more pages), I found several projects that use gnulib:
18810         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18811         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18812         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18813
18814 2011-03-22  Bruno Haible  <bruno@clisp.org>
18815
18816         unictype/bidi*: Rename functions.
18817         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18818         uc_bidi_class, uc_is_bidi_class): New declarations.
18819         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18820         uc_bidi_category_byname.
18821         (uc_bidi_category_byname): New function.
18822         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18823         u_bidi_category_name.
18824         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18825         (uc_bidi_category_name): New function.
18826         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18827         uc_bidi_category.
18828         (uc_bidi_category): New function.
18829         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18830         uc_is_bidi_category. Invoke uc_bidi_class.
18831         (uc_is_bidi_category): New function.
18832         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18833         instead of uc_bidi_category_byname.
18834         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18835         instead of uc_bidi_category_name.
18836         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18837         uc_bidi_category.
18838         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18839         instead of uc_is_bidi_category.
18840
18841 2011-03-21  Bruno Haible  <bruno@clisp.org>
18842
18843         New module 'unictype/joininggroup-all'.
18844         * modules/unictype/joininggroup-all: New file.
18845
18846         Tests for module 'unictype/joininggroup-of'.
18847         * modules/unictype/joininggroup-of-tests: New file.
18848         * tests/unictype/test-joininggroup_of.c: New file.
18849         * tests/unictype/test-joininggroup_of.h: New file, automatically
18850         generated by gen-uni-tables.
18851
18852         New module 'unictype/joininggroup-of'.
18853         * modules/unictype/joininggroup-of: New file.
18854         * lib/unictype/joininggroup_of.c: New file.
18855         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18856         gen-uni-tables.
18857
18858         Tests for module 'unictype/joininggroup-byname'.
18859         * modules/unictype/joininggroup-byname-tests: New file.
18860         * tests/unictype/test-joininggroup_byname.c: New file.
18861
18862         New module 'unictype/joininggroup-byname'.
18863         * modules/unictype/joininggroup-byname: New file.
18864         * lib/unictype/joininggroup_byname.c: New file.
18865         * lib/unictype/joininggroup_byname.gperf: New file.
18866
18867         Tests for module 'unictype/joininggroup-name'.
18868         * modules/unictype/joininggroup-name-tests: New file.
18869         * tests/unictype/test-joininggroup_name.c: New file.
18870
18871         New module 'unictype/joininggroup-name'.
18872         * modules/unictype/joininggroup-name: New file.
18873         * lib/unictype/joininggroup_name.c: New file.
18874         * lib/unictype/joininggroup_name.h: New file.
18875
18876         New module 'unictype/joiningtype-all'.
18877         * modules/unictype/joiningtype-all: New file.
18878
18879         Tests for module 'unictype/joiningtype-of'.
18880         * modules/unictype/joiningtype-of-tests: New file.
18881         * tests/unictype/test-joiningtype_of.c: New file.
18882         * tests/unictype/test-joiningtype_of.h: New file, automatically
18883         generated by gen-uni-tables.
18884
18885         New module 'unictype/joiningtype-of'.
18886         * modules/unictype/joiningtype-of: New file.
18887         * lib/unictype/joiningtype_of.c: New file.
18888         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18889         gen-uni-tables.
18890
18891         Tests for module 'unictype/joiningtype-byname'.
18892         * modules/unictype/joiningtype-byname-tests: New file.
18893         * tests/unictype/test-joiningtype_byname.c: New file.
18894
18895         New module 'unictype/joiningtype-byname'.
18896         * modules/unictype/joiningtype-byname: New file.
18897         * lib/unictype/joiningtype_byname.c: New file.
18898
18899         Tests for module 'unictype/joiningtype-name'.
18900         * modules/unictype/joiningtype-name-tests: New file.
18901         * tests/unictype/test-joiningtype_name.c: New file.
18902
18903         New module 'unictype/joiningtype-name'.
18904         * modules/unictype/joiningtype-name: New file.
18905         * lib/unictype/joiningtype_name.c: New file.
18906
18907         unictype: Add support for Arabic shaping properties.
18908         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18909         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18910         declarations.
18911         (UC_JOINING_GROUP_*): New enumeration values.
18912         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18913         declarations.
18914         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18915         (unicode_joining_type): New variable.
18916         (UC_JOINING_GROUP_*): New enumeration values.
18917         (unicode_joining_group): New variable.
18918         (fill_arabicshaping, joining_type_as_c_identifier,
18919         output_joining_type_test, output_joining_type,
18920         joining_group_as_c_identifier, output_joining_group_test,
18921         output_joining_group): New functions.
18922         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18923         fill_arabicshaping and output_joining_type_test, output_joining_type,
18924         output_joining_group_test, output_joining_group.
18925         Reported by Simon Josefsson.
18926
18927 2011-03-21  Jim Meyering  <meyering@redhat.com>
18928
18929         strftime: fix a bug in yesterday's change
18930         * lib/strftime.c (add): Accommodate width's initial value of -1.
18931         Otherwise, nstrftime would copy uninitialized data into
18932         the result buffer.
18933
18934 2011-03-21  Jim Meyering  <meyering@redhat.com>
18935
18936         tests: add strftime-tests module
18937         * tests/test-strftime.c: New file.
18938         * modules/strftime-tests: New module.
18939
18940 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18941
18942         strftime: don't assume a byte count fits in 'int'
18943         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18944         found this problem by static analysis, using gcc -Wstrict-overflow
18945         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18946         on an integer overflow having undefined behavior, but it turns out
18947         that the argument is a size, which might not fit in 'int' anyway,
18948
18949 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18950
18951         stdio: don't require ignore_value around fwrite
18952
18953         This patch works around libc bug 11959
18954         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18955         Without this patch, applications must often write
18956         ignore_value (fwrite (...)) even though the ignore_value is
18957         not helpful here.  It's common to write many objects, using
18958         fwrite/printf/etc., and then use ferror to detect output error.
18959
18960         I considered making this patch optional, but decided against it,
18961         because libc is obviously being inconsistent here: there is no
18962         reason libc should insist that user code must inspect fwrite
18963         return's value without also insisting that it inspect printf's,
18964         putchar's, etc.  If user code wants to have a strict style where
18965         all these functions' values are checked (so that ferror need not
18966         be checked), we could add support for that style in a new gnulib
18967         module, but in the meantime it's better to be consistent and to
18968         support common usage.
18969
18970         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18971         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18972         that we are compiling in checking mode, and if not C++, and
18973         if not already wrapping fwrite for some other reason.
18974         (fwrite): #define to rpl_fwrite if the latter is defined.
18975
18976 2011-03-20  Bruno Haible  <bruno@clisp.org>
18977
18978         verror: Fix compilation error introduced on 2011-02-13.
18979         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18980         instead of __attribute__.
18981         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18982
18983 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18984             Bruno Haible  <bruno@clisp.org>
18985
18986         socklen: do not depend on sys_socket
18987         While trying to modify Emacs to use gnulib's socklen module,
18988         I discovered a circular dependency: socklen depends on sys_socket
18989         and vice versa.  Emacs can use socklen, but it does not need
18990         sys_socket because it has its own substitute for sys/socket.h.
18991         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18992         gl_TYPE_SOCKLEN_T.
18993         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18994         gl_PREREQ_SYS_H_SOCKET.
18995         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18996         gl_PREREQ_SYS_H_SOCKET.
18997         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18998         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18999         * modules/socklen (Depends-on): Do not depend on sys_socket.
19000         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19001
19002 2011-03-20  Jim Meyering  <meyering@redhat.com>
19003
19004         maint.mk: sort file names *after* new transformation
19005         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19006         prefix would have led to an unwarranted failure in GNU parted.
19007         Sort after that transformation.
19008
19009 2011-03-19  Jim Meyering  <meyering@redhat.com>
19010
19011         maint.mk: fix po-file syntax-check rule
19012         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19013         Patch by Bruno Haible.
19014
19015 2011-03-19  Bruno Haible  <bruno@clisp.org>
19016
19017         socklen: Update comment.
19018         * m4/socklen.m4: Update comment about platforms.
19019
19020 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19021             Bruno Haible  <bruno@clisp.org>
19022
19023         inet_ntop, inet_pton: Simplify.
19024         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19025         documented to provide socklen_t and we already depend on sys_socket.
19026         * modules/inet_pton (Depends-on): Likewise.
19027         * lib/arpa_inet.in.h: Adjust comment.
19028
19029 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19030             Bruno Haible  <bruno@clisp.org>
19031
19032         netdb: Simplify.
19033         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19034         documented to provide socklen_t and we already depend on sys_socket.
19035         * lib/netdb.in.h: Adjust comment.
19036
19037 2011-03-19  Bruno Haible  <bruno@clisp.org>
19038
19039         sys_socket, netdb: Document problem with socklen_t.
19040         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19041         platforms.
19042         * doc/posix-headers/netdb.texi: Likewise.
19043
19044 2011-03-18  Eric Blake  <eblake@redhat.com>
19045
19046         maint.mk: let po check work in VPATH build
19047         * top/maint.mk (po_file): Allow cfg.mk override.
19048         (sc_po_check): Allow VPATH use.
19049         Reported by Jiri Denemark.
19050
19051 2011-03-16  Jim Meyering  <meyering@redhat.com>
19052
19053         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19054         Before, you would have had to create one .x-sc_ file per rule in order
19055         to exempt offending files.  Now, you may instead use a Make variable --
19056         usually defined in cfg.mk -- whose name identifies the affected rule.
19057         * top/maint.mk (_sc_excl): Define.
19058         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19059         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19060
19061 2011-03-13  Bruno Haible  <bruno@clisp.org>
19062
19063         ignore-value tests: Avoid warnings.
19064         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19065         empty for gcc < 3.4.
19066
19067 2011-03-13  Bruno Haible  <bruno@clisp.org>
19068
19069         passfd: Fix link error on Solaris.
19070         * modules/passfd (Description): Correct.
19071         (Depends-on): Add socketlib.
19072         (Link): New section.
19073         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19074
19075 2011-03-13  Bruno Haible  <bruno@clisp.org>
19076
19077         passfd: Fix link error on AIX 5.2.
19078         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19079
19080 2011-03-13  Bruno Haible  <bruno@clisp.org>
19081
19082         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19083         * lib/sys_socket.in.h: Include <stddef.h>.
19084         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19085         CMSG_FIRSTHDR. Remove unused variable.
19086
19087 2011-03-13  Bruno Haible  <bruno@clisp.org>
19088
19089         passfd: Fix compilation error on OpenBSD.
19090         * lib/passfd.c: Include <sys/uio.h>.
19091
19092 2011-03-13  Bruno Haible  <bruno@clisp.org>
19093
19094         passfd test: Fix warnings.
19095         * tests/test-passfd.c: Include <sys/wait.h>.
19096         (main): Fix typo.
19097
19098 2011-03-13  Bruno Haible  <bruno@clisp.org>
19099
19100         passfd module, part 4, tweaks.
19101         * tests/test-passfd.c: Reorder includes.
19102         (main): Fix perror and printf calls.
19103
19104 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19105
19106         passfd module, part 4.
19107         * modules/passfd-tests: New file.
19108         * tests/test-passfd.c: New file.
19109
19110 2011-03-13  Jim Meyering  <meyering@redhat.com>
19111
19112         Makefile: rely on GNU make; derive syntax-check rule names
19113         Rather than requiring that each sc_ rule be listed as a dependent
19114         of "check", use features of GNU make to derive the list.
19115         * Makefile (syntax-check-rules): Define.
19116         (check): Depend on the new variable, not the hard-coded list.
19117
19118 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19119             Bruno Haible  <bruno@clisp.org>
19120
19121         passfd module, part 3.
19122         * lib/passfd.h (recvfd): Add a flags argument.
19123         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19124         (recvfd): Add a flags argument.
19125         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19126         exists.
19127         * modules/passfd (Depends-on): Add cloexec.
19128         Suggested by Eric Blake.
19129
19130 2011-03-13  Bruno Haible  <bruno@clisp.org>
19131
19132         passfd module, part 2, tweaks.
19133         * modules/passfd (Files): Reorder.
19134         (Depends-on): Remove errno.
19135         (Include): Remove <sys/socket.h>, <sys/un.h>.
19136         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19137         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19138         specification header. Include <sys/socket.h> always. Don't include
19139         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19140         (sendfd): Clarify that it sets errno when it fails.
19141         (recvfd): Fix specification.
19142
19143 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19144
19145         passfd module, part 2.
19146         * modules/passfd: New file.
19147         * lib/passfd.h: New file.
19148         * lib/passfd.c: New file.
19149
19150 2011-03-12  Bruno Haible  <bruno@clisp.org>
19151
19152         wcswidth, mbswidth: Avoid integer overflow.
19153         * lib/wcswidth.c: Include <limits.h>.
19154         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19155         * lib/mbswidth.c: Include <limits.h>.
19156         (mbsnwidth): Avoid 'int' overflow.
19157         Reported by Jim Meyering.
19158
19159 2011-03-12  Bruno Haible  <bruno@clisp.org>
19160
19161         futimens, utimensat: Avoid endless recursion on Solaris 10.
19162         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19163         Solaris.
19164         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19165         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19166
19167 2011-03-11  Jim Meyering  <meyering@redhat.com>
19168
19169         maint.mk: relax a regexp to accommodate other formatting styles
19170         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19171         between "ngettext" and the following "(".
19172
19173 2011-03-11  Pádraig Brady <P@draigBrady.com>
19174
19175         maint.mk: suppress a false positive warning
19176         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19177         diagnostics are marked with ngettext.
19178
19179 2011-03-10  Eric Blake  <eblake@redhat.com>
19180
19181         wchar: add explicit dependencies, for Tru64
19182         * modules/mbmemcasecoll (Depends-on): Add wchar.
19183         * modules/mbtowc (Depends-on): Likewise.
19184         * modules/vasnprintf (Depends-on): Likewise.
19185         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19186         * modules/wctomb (Depends-on): Likewise.
19187         Reported by Peter O'Gorman.
19188
19189 2011-03-08  Bruno Haible  <bruno@clisp.org>
19190
19191         passfd module, part 1, tweaks.
19192         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19193         Improve indentation. Improve AC_MSG_CHECKING messages.
19194         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19195         gl_SOCKET_FAMILIES.
19196
19197 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19198
19199         passfd module, part 1.
19200         * m4/afunix.m4: New file.
19201         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19202         sockets.
19203
19204 2011-03-08  Bruno Haible  <bruno@clisp.org>
19205
19206         regex-quote: New API.
19207         * lib/regex-quote.h: Include <stdbool.h>.
19208         (struct regex_quote_spec): New type.
19209         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19210         New declarations.
19211         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19212         'const struct regex_quote_spec *' argument.
19213         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19214         (pcre_special): New constant.
19215         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19216         New functions.
19217         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19218         'const struct regex_quote_spec *' argument.
19219         * modules/regex-quote (Depends-on): Add stdbool.
19220         * tests/test-regex-quote.c (check): Update for new API. Add test for
19221         anchored results.
19222         * NEWS: Mention the API change.
19223         Reported by Reuben Thomas and Eric Blake.
19224
19225 2011-03-06  Bruno Haible  <bruno@clisp.org>
19226
19227         regex-quote: Fix creation of POSIX extended regular expressions.
19228         * lib/regex-quote.c (ere_special): Add grouping and alternation
19229         operators.
19230
19231 2011-03-05  Bruno Haible  <bruno@clisp.org>
19232
19233         doc: Improve doc regarding autopoint vs. gnulib.
19234         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19235         disable autopoint while running autoreconf.
19236         Suggested by Ralf Wildenhues.
19237
19238 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19239
19240         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19241         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19242
19243 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19244
19245         parse-duration: remove xalloc.h dependency
19246         * lib/parse-duration.c (parse_period): handle NULL return from
19247         strdup instead of calling xstrdup().
19248         * modules/parse-duration: remove "xalloc" dependency
19249
19250 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19251
19252         bootstrap: honor m4_base when running aclocal
19253         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19254
19255 2011-03-02  Jim Meyering  <meyering@redhat.com>
19256
19257         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19258         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19259         on request from Matt Booth.
19260
19261 2011-03-01  Eric Blake  <eblake@redhat.com>
19262
19263         test-link: work on Hurd
19264         * tests/test-link.h (test_link): Hurd rejects linking directories
19265         with EISDIR instead of the POSIX-mandated EPERM.
19266
19267 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19268
19269         stdio: simplify by moving files to printf-posix, sigpipe
19270         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19271         since this symbol is needed only if printf is replaced.
19272         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19273         Require gl_ASM_SYMBOL_PREFIX.
19274         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19275         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19276         (Depends-on): Add 'raise'.
19277         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19278         * modules/stdio (Files): Remove lib/stdio-write.c,
19279         m4/asm-underscore.m4.
19280         (Depends-on): Remove 'raise'.
19281
19282         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19283         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19284         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19285         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19286
19287 2011-02-28  Bruno Haible  <bruno@clisp.org>
19288
19289         localcharset: Assume ANSI C behaviour of free().
19290         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19291         calling free().
19292         Suggested by Simon Josefsson <simon@josefsson.org>.
19293
19294 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19295             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19296             Bruno Haible  <bruno@clisp.org>  (tiny change)
19297
19298         On Cygwin, use /proc file system instead of win32 API.
19299         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19300         Win32 file names.
19301         (DllMain): Simplify by removing Cygwin specific code.
19302         (find_shared_library_fullname): Use Linux specific implementation also
19303         for Cygwin.
19304         (get_shared_library_fullname): Update accordingly.
19305         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19306         Win32 file names.
19307         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19308         Cygwin specific code.
19309
19310 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19311             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19312
19313         Fix OpenMP flag detection for various Fortran compilers.
19314         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19315         OpenMP-conditional compilation construct, to force compile
19316         failure with missing OpenMP flag.
19317         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19318
19319 2011-02-25  Eric Blake  <eblake@redhat.com>
19320
19321         strstr: expand test coverage
19322         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19323         compilation.
19324         * tests/test-memmem.c (main): Duplicate tests.
19325         * tests/test-strcasestr.c (main): Likewise.
19326         * tests/test-c-strcasestr.c (main): Likewise.
19327
19328 2011-02-25  Jim Meyering  <meyering@redhat.com>
19329
19330         maint.mk: detect missing-NL-at-EOF, too
19331         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19332         it also detects when a file lacks a newline at EOF.
19333         (require_exactly_one_NL_at_EOF_): Renamed from
19334         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19335         since people may well have .x-sc_... file names tied to the
19336         existing name.  Suggested by Eric Blake.
19337
19338 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19339
19340         dirname: move m4/dos.m4 functionality into lib/dosname.h
19341
19342         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19343         extracts symbols from it, puts them into config.h; but it's much
19344         easier to use the symbols directly.  filename.h already does this,
19345         but it disagrees with dos.m4 in some respects.  This patch
19346         introduces a different include file dosname.h that packages up
19347         dos.m4, and then later we can work on merging filename.h and
19348         dosname.h.  Applications that need only the easy-to-configure
19349         symbols should consider including dosname.h rather than dirname.h.
19350         * NEWS: Mention incompatible changes.
19351         * m4/dos.m4: Remove.
19352         * lib/dosname.h, modules/dosname: New files.
19353         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19354         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19355         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19356         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19357         Include dosname.h, not dirname.h.
19358         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19359         Include dosname.h, for definitions of symbols like ISSLASH
19360         that used to be in config.h.
19361         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19362         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19363         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19364         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19365         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19366         * modules/rmdir (Files): Likewise.
19367         * modules/stat (Files): Likewise.
19368         * modules/unlink (Files): Likewise.
19369         * modules/dirname-lgpl (Depends-on): Add dosname.
19370         * modules/lstat (Depends-on): Likewise.
19371         * modules/openat (Depends-on): Likewise.
19372         * modules/rmdir (Depends-on): Likewise.
19373         * modules/savewd (Depends-on): Likewise.
19374         * modules/stat (Depends-on): Likewise.
19375         * modules/unlink (Depends-on): Likewise.
19376         * modules/openat (Depends-on): Remove dirname-lgpl.
19377         * modules/savewd (Depends-on): Likewise.
19378         * tests/test-dirname.c: Do not use removed symbols like
19379         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19380         the remaining symbols, e.g., ISSLASH ('\\').
19381
19382 2011-02-25  Eric Blake  <eblake@redhat.com>
19383
19384         strstr: revert patches that introduced bug and pessimization
19385         * lib/str-two-way.h: Add another reference.
19386         (two_way_short_needle, two_way_long_needle): Revert changes from
19387         2011-02-24; they pessimize search speed.
19388         (critical_factorization): Partially revert changes from
19389         2010-06-22; they violate the requirement that the left half of the
19390         needle be smaller than the period of the needle.
19391
19392 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19393
19394         filenamecat: remove unnecessary dependency on dirname-lgpl
19395         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19396         is no direct dependency, just an indirect one via filenamecat-lgpl.
19397
19398         remove: remove unnecessary use of m4/dos.m4
19399         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19400         * modules/remove (FILES): Remove m4/dos.m4.
19401
19402         * lib/openat-proc.c: Don't include dirname.h; not needed.
19403
19404         backupfile: remove unnecessary use of m4/dos.m4
19405         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19406         of its symbols are used by the backupfile code.  backupfile.c does
19407         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19408         for the rare case of programs that want all their backup file
19409         names to live within 8+3 limits, and dos.m4 doesn't address that.
19410         * modules/backupfile (Files): Remove m4/dos.m4.
19411
19412 2011-02-24  Jim Meyering  <meyering@redhat.com>
19413
19414         strstr: fix a bug whereby strstr would mistakenly return NULL
19415         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19416         in period calculation.
19417         (two_way_long_needle): Likewise.
19418         The original problem was reported by Mike Stump in
19419         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19420         Ralf Wildenhues provided the short needle and haystack.
19421         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19422         Add a more involved test to trigger the bug in two_way_long_needle.
19423
19424 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19425
19426         gnulib-tool: remove use of bold display in help screen
19427         * gnulib-tool (func_usage): Do not use bold display anymore in the
19428         help screen.  That was just meant to be a temporary emphasis for a
19429         backward-incompatible change.
19430
19431 2011-02-23  Bruno Haible  <bruno@clisp.org>
19432
19433         Fix misindentation of preprocessor directives.
19434         * lib/argp-namefrob.h: Reindent preprocessor directives.
19435         * lib/getopt_int.h (struct _getopt_data): Likewise.
19436         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19437         * lib/vasnprintf.c (decode_long_double): Likewise.
19438         * tests/test-argmatch.c: Insert blank lines, for clarity.
19439         * tests/test-exclude.c: Likewise.
19440
19441 2011-02-22  Bruno Haible  <bruno@clisp.org>
19442
19443         ioctl: Fix for MacOS X in 64-bit mode.
19444         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19445         value.
19446         Suggested by Eric Blake.
19447         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19448
19449 2011-02-22  Jim Meyering  <meyering@redhat.com>
19450
19451         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19452         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19453         in lib/.
19454
19455 2011-02-22  Eric Blake  <eblake@redhat.com>
19456
19457         maint: avoid any CDPATH issue
19458         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19459
19460         maint: adjust cpp indentation for my modules, as well
19461         * Makefile (sc_cpp_indent_check): Add my name.
19462         * lib/fbufmode.c: Filter through cppi.
19463         * lib/fpurge.c: Likewise.
19464         * lib/freadable.c: Likewise.
19465         * lib/freading.c: Likewise.
19466         * lib/fwritable.c: Likewise.
19467         * lib/fwriting.c: Likewise.
19468         * lib/sigaction.c: Likewise.
19469
19470 2011-02-22  Jim Meyering  <meyering@redhat.com>
19471
19472         maint: adjust cpp indentation to reflect nesting depth
19473         I.e., in a block of code that begins with an unnested "#if",
19474         put one space between the "#" in column 1 and following token.
19475         For example,
19476         -#include <sys/vfs.h>
19477         +# include <sys/vfs.h>
19478         Do this only in .c files that are part of a module I maintain.
19479         * lib/linkat.c: Filter through cppi.
19480         * lib/nanosleep.c: Likewise.
19481         * lib/openat.c: Likewise.
19482         * lib/openat-die.c: Likewise.
19483         * lib/dup3.c: Likewise.
19484         * lib/fchownat.c: Likewise.
19485         * lib/flock.c: Likewise.
19486         * lib/fsync.c: Likewise.
19487         * lib/fts.c: Likewise.
19488         * lib/getpass.c: Likewise.
19489         * lib/gettimeofday.c: Likewise.
19490         * lib/userspec.c: Likewise.
19491         * Makefile (sc_cpp_indent_check): New rule, to check this.
19492
19493 2011-02-22  Bruno Haible  <bruno@clisp.org>
19494
19495         New module 'wctomb'.
19496         * lib/stdlib.in.h (wctomb): New declaration.
19497         * lib/wctomb.c: New file.
19498         * lib/wctomb-impl.h: New file.
19499         * m4/wctomb.m4: New file.
19500         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19501         REPLACE_WCTOMB.
19502         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19503         REPLACE_WCTOMB.
19504         * modules/wctomb: New file.
19505         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19506         * doc/posix-functions/wctomb.texi: Mention the new module.
19507         * modules/wctob (Depends-on): Add wctomb.
19508
19509 2011-02-22  Bruno Haible  <bruno@clisp.org>
19510
19511         New module 'mbtowc'.
19512         * lib/stdlib.in.h (mbtowc): New declaration.
19513         * lib/mbtowc.c: New file.
19514         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19515         * m4/mbtowc.m4: New file.
19516         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19517         REPLACE_MBTOWC.
19518         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19519         REPLACE_MBTOWC.
19520         * modules/mbtowc: New file.
19521         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19522         * doc/posix-functions/mbtowc.texi: Mention the new module.
19523         * modules/btowc (Depends-on): Add mbtowc.
19524
19525 2011-02-22  Bruno Haible  <bruno@clisp.org>
19526
19527         wcrtomb: Add more tests for native Windows platforms.
19528         * tests/test-wcrtomb-w32-1.sh: New file.
19529         * tests/test-wcrtomb-w32-2.sh: New file.
19530         * tests/test-wcrtomb-w32-3.sh: New file.
19531         * tests/test-wcrtomb-w32-4.sh: New file.
19532         * tests/test-wcrtomb-w32-5.sh: New file.
19533         * tests/test-wcrtomb-w32.c: New file.
19534         * modules/wcrtomb-tests (Files): Add them.
19535         (Makefile.am): Arrange to run these tests.
19536         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19537         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19538
19539 2011-02-20  Bruno Haible  <bruno@clisp.org>
19540
19541         wcrtomb: Enhance test.
19542         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19543
19544 2011-02-20  Bruno Haible  <bruno@clisp.org>
19545
19546         mbrtowc: Tiny optimization.
19547         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19548
19549 2011-02-20  Jim Meyering  <meyering@redhat.com>
19550
19551         test-exclude.c: remove unmatched #endif
19552         * tests/test-exclude.c: Remove stray #endif, left over from
19553         the change of a week ago.
19554
19555 2011-02-19  Jim Meyering  <meyering@redhat.com>
19556
19557         git-version-gen: skip "-dirty" check when appropriate
19558         * build-aux/git-version-gen: Don't run any git commands when the
19559         version string comes from .tarball-version.  Prior to this, we
19560         would run git update-index --refresh even from a just-unpacked
19561         tarball directory, and that could affect a .git/ directory in a
19562         parent of the build directory.  Reported by Mike Frysinger.
19563
19564 2011-02-19  Bruno Haible  <bruno@clisp.org>
19565
19566         unictype/property-byname: Reduce the size of the 'data' segment.
19567         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19568
19569 2011-02-19  Bruno Haible  <bruno@clisp.org>
19570
19571         unictype/scripts: Reduce the size of the 'data' segment.
19572         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19573         '%pic'.
19574         * lib/unictype/scripts_byname.gperf: Regenerated.
19575
19576 2011-02-19  Bruno Haible  <bruno@clisp.org>
19577
19578         stdint: Update documentation.
19579         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19580
19581 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19582
19583         stdint: omit redundant check for wchar.h
19584         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19585         always tests whether wchar.h exists, so remove the now-redundant test.
19586
19587 2011-02-18  Bruno Haible  <bruno@clisp.org>
19588
19589         stdint: Cut dependency to module 'wchar'.
19590         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19591         include the necessary prerequisites.
19592         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19593         * modules/stdint (Depends-on): Remove wchar.
19594         (Makefile.am): Substitute HAVE_WCHAR_H.
19595         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19596
19597 2011-02-18  Eric Blake  <eblake@redhat.com>
19598
19599         longlong: skip, rather than fail, on cross-compilation
19600         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19601         when cross-compiling; regression from 2011-02-16.
19602
19603 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19604
19605         * NEWS: Mention 2011-02-08 change to stdlib.
19606
19607 2011-02-17  Bruno Haible  <bruno@clisp.org>
19608
19609         getloadavg: Add comments about platforms.
19610         * m4/getloadavg.m4: Add comment.
19611         * lib/getloadavg.c: Likewise.
19612
19613 2011-02-17  Bruno Haible  <bruno@clisp.org>
19614
19615         getloadavg: Fix link error on Solaris 2.6.
19616         * modules/getloadavg (Link): New section.
19617         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19618         linking test-getloadavg.
19619         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19620         getloadavg.
19621
19622 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19623
19624         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19625         It was 'int', but this doesn't match the IRIX 6.5 manual.
19626         Suggested by Bruno Haible in
19627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19628
19629 2011-02-17  Bruno Haible  <bruno@clisp.org>
19630
19631         havelib: Fix comments.
19632         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19633         change.
19634
19635 2011-02-17  Bruno Haible  <bruno@clisp.org>
19636
19637         havelib: Update config.rpath.
19638         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19639
19640 2011-02-17  Bruno Haible  <bruno@clisp.org>
19641
19642         getloadavg test: Add some plausibility checks.
19643         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19644         is improbable.
19645
19646 2011-02-16  Eric Blake  <eblake@redhat.com>
19647
19648         maintainer-makefile: make syntax-check a no-op from tarballs
19649         * top/maint.mk (no-vc-detected): New rule.
19650         (local-checks-available): Use it to avoid hanging if someone tries
19651         'make syntax-check' from a tarball.  Also append to any non-syntax
19652         checks already defined in cfg.mk.
19653
19654 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19655
19656         longlong: tune, particularly for common case of c99
19657
19658         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19659         or running anything if c99, or if unsigned long long int does not
19660         work.  In either case, we know the answer without further tests.
19661         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19662         it at most once, and use its results for both long long int and
19663         unsigned long long int.  This is more likely to be efficient in
19664         the common case where the program wants to check for both long
19665         long int and unsigned long long int.
19666         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19667         since the answer is already known.
19668
19669 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19670
19671         getloadavg: set errno
19672         * lib/getloadavg.c: Set errno when returning -1.  If no other
19673         error number looks appropriate, set it to ENOSYS if the getloadavg
19674         looks like it can't possibly ever work, ENOTSUP otherwise.
19675         Suggested by Bruno Haible in
19676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19677
19678         getloadavg: trim unused parts and speed up 'configure'
19679         * NEWS: Document this.
19680         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19681         always compiled if getloadavg is absent.
19682         Move test code to ...
19683         * tests/test-getloadavg.c: New file, containing previous
19684         contents of test from lib/getloadavg.c.  It also contains
19685         suggestions by Bruno Haible in
19686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19687         * modules/getloadavg-tests: New file.
19688         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19689         Do tests in the same order as they're needed for getloadavg.c.
19690         Omit setgid-related tests that generate symbols KMEM_GROUP,
19691         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19692         Do only the tests that are needed to see whether the system has
19693         getloadavg, moving the other tests into ...
19694         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19695         NLIST_NAME_UNION; nobody should be using it.  Do not define
19696         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19697         relevant, as the user of this module shouldn't care how getloadavg
19698         is implemented.
19699
19700         getloadavg: omit unused var
19701         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19702
19703 2011-02-15  Jim Meyering  <meyering@redhat.com>
19704
19705         doc: update users.txt
19706         * users.txt: Update iwhd's URL.
19707
19708 2011-02-13  Bruno Haible  <bruno@clisp.org>
19709
19710         Consistent macro naming for macros that use GCC __attribute__.
19711         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19712         _ATTRIBUTE_NONNULL_.
19713         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19714         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19715         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19716         ATTRIBUTE_DEPRECATED.
19717         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19718         ATTRIBUTE_NORETURN.
19719         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19720         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19721         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19722         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19723         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19724         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19725         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19726         ATTRIBUTE_SENTINEL.
19727         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19728         ATTRIBUTE_RETURN_CHECK.
19729         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19730         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19731         ATTRIBUTE_NORETURN.
19732         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19733         Reported by Paul Eggert.
19734
19735 2011-02-13  Bruno Haible  <bruno@clisp.org>
19736
19737         Don't interfere with a program's definition of __attribute__.
19738         * lib/argp.h (__attribute__): Remove definition.
19739         (_GL_ATTRIBUTE_FORMAT): New macro.
19740         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19741         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19742         (_GL_ATTRIBUTE_FORMAT): New macro.
19743         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19744         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19745         GCC 3 or newer.
19746         * lib/error.h (__attribute__): Remove definition.
19747         (_GL_ATTRIBUTE_FORMAT): New macro.
19748         (error, error_at_line): Use it.
19749         * lib/hash.h (__attribute__): Remove definition.
19750         (ATTRIBUTE_WUR): Update definition. Define always.
19751         * lib/openat.h (__attribute__): Remove definition.
19752         (ATTRIBUTE_NORETURN): Update definition. Define always.
19753         * lib/sigpipe-die.h (__attribute__): Remove definition.
19754         (ATTRIBUTE_NORETURN): Update definition. Define always.
19755         * lib/vasnprintf.h (__attribute__): Remove definition.
19756         (_GL_ATTRIBUTE_FORMAT): New macro.
19757         (asnprintf, vasnprintf): Use it.
19758         * lib/xalloc.h (__attribute__): Remove definition.
19759         (ATTRIBUTE_NORETURN): Update definition. Define always.
19760         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19761         * lib/xmemdup0.h (__attribute__): Remove definition.
19762         (ATTRIBUTE_NORETURN): Update definition. Define always.
19763         * lib/xprintf.h (__attribute__): Remove definition.
19764         (_GL_ATTRIBUTE_FORMAT): New macro.
19765         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19766         * lib/xstrtol.h (__attribute__): Remove definition.
19767         (ATTRIBUTE_NORETURN): Update definition. Define always.
19768         * lib/xvasprintf.h (__attribute__): Remove definition.
19769         (_GL_ATTRIBUTE_FORMAT): New macro.
19770         (xasprintf, xvasprintf): Use it.
19771         * tests/test-argmatch.c (__attribute__): Remove definition.
19772         (ATTRIBUTE_NORETURN): Update definition. Define always.
19773         * tests/test-exclude.c (__attribute__): Remove definition.
19774         (ATTRIBUTE_NORETURN): Update definition. Define always.
19775         Reported by Paul Eggert.
19776
19777 2011-02-13  Bruno Haible  <bruno@clisp.org>
19778
19779         mbrtowc: Add more tests for native Windows platforms.
19780         * tests/test-mbrtowc-w32-1.sh: New file.
19781         * tests/test-mbrtowc-w32-2.sh: New file.
19782         * tests/test-mbrtowc-w32-3.sh: New file.
19783         * tests/test-mbrtowc-w32-4.sh: New file.
19784         * tests/test-mbrtowc-w32-5.sh: New file.
19785         * tests/test-mbrtowc-w32.c: New file.
19786         * modules/mbrtowc-tests (Files): Add them.
19787         (Makefile.am): Arrange to run these tests.
19788         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19789         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19790
19791 2011-02-13  Bruno Haible  <bruno@clisp.org>
19792
19793         mbrtowc: Work around native Windows bug.
19794         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19795         guess when no suitable locale for testing was found.
19796         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19797
19798 2011-02-13  Bruno Haible  <bruno@clisp.org>
19799
19800         mbsinit: Work around mingw bug.
19801         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19802         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19803         Windows.
19804         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19805
19806 2011-02-13  Bruno Haible  <bruno@clisp.org>
19807
19808         mbsinit: Don't crash for a NULL argument.
19809         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19810         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19811
19812 2011-02-13  Bruno Haible  <bruno@clisp.org>
19813
19814         Don't interfere with a program's definition of __attribute__.
19815         * lib/stdio.in.h (__attribute__): Remove definition.
19816         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19817         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19818         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19819         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19820         * lib/string.in.h (__attribute__): Remove definition.
19821         Reported by Paul Eggert.
19822
19823 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19824
19825         stdlib: don't get in the way of non-GCC __attribute__
19826         See thread starting at
19827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19828         Revert previous stdlib change, installing the following instead:
19829         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19830         to get in the way of a non-GCC compiler that supports __attribute__.
19831         (_GL_ATTRIBUTE_RETURN): New macro.
19832         (_Exit): Use it instead of __attribute__.
19833
19834 2011-02-12  Bruno Haible  <bruno@clisp.org>
19835
19836         quotearg test: Avoid test failure on mingw.
19837         * tests/test-quotearg.sh: Convert the locale identifier from native
19838         Windows syntax to Unix syntax.
19839
19840 2011-02-12  Bruno Haible  <bruno@clisp.org>
19841
19842         setlocale: Prefer gnulib's override over libintl's override.
19843         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19844         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19845         GNULIB_defined_setlocale is set.
19846
19847 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19848
19849         stdlib: support non-GCC __attribute__
19850
19851         Fix a serious and tricky problem encountered when attempting to
19852         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19853         5.5, but it crashed due to memory corruption on Solaris 10 with
19854         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19855         bits that are otherwise zero.  This tagging is optional inside
19856         Emacs but is preferred and is used when __attribute__ ((__aligned
19857         (8))) works, as it does with both recent-enough GCC and with Sun C
19858         5.11.  However, Sun C 5.11 is not GCC and does not #define
19859         __GNUC__ and __GNUC_MINOR__.
19860
19861         When I added the getloadavg module to Emacs, it brought in
19862         stdlib.in.h, which contained this fragment:
19863
19864            #ifndef __attribute__
19865            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19866            #  define __attribute__(Spec)   /* empty */
19867            # endif
19868            #endif
19869
19870         When files that include <stdlib.h> were compiled with Sun C 5.11,
19871         the above code disabled __attribute__ ((__aligned (8))), which
19872         caused variables to not be properly aligned, which eventually led
19873         to the pointer corruption mentioned above.  (This was a bit hard
19874         to diagnose, unfortunately.)
19875
19876         Several "#define __attribute__(X) /* empty */" code snippets need
19877         to be eradicated from Gnulib to work with non-GCC compilers that
19878         support __attribute__.  The Autoconf way to do this is to test for
19879         each kind of attribute that we want support for, and selectively
19880         enable that in source code.
19881
19882         Fix this problem just for stdlib.h, by adding a test for the
19883         __noreturn__ attribute, and change stdlib.in.h to use that test
19884         when needed.  This technique can be easily generalized to the
19885         other *.in.h files and attributes, and a similar technique can be
19886         used for *.h and *.c files.  This patch is enough to solve the
19887         problem for Emacs + getloadavg, and I thought I'd publish it for
19888         feedback before undertaking further, similar fixes in other
19889         modules.
19890
19891         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19892         because it's not needed for stdlib.h.  It merely substitutes the
19893         value directly into stdlib.h.  We may well need to #define it, or
19894         similar symbols, for other modules, but it's nice to also have an
19895         option to not #define it for applications like Emacs that do not
19896         need it.
19897
19898         * lib/stdlib.in.h (__attribute__): Do not #define.
19899         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19900         be defined only if the _Exit module is also used.
19901         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19903         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19904         platforms.
19905         * modules/_Exit (Files): Add m4/attribute.m4.
19906         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19907         * m4/attribute.m4: New file.
19908
19909 2011-02-12  Bruno Haible  <bruno@clisp.org>
19910
19911         wcsrtombs: Work around bug on native Windows.
19912         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19913         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19914         instead of len.
19915         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19916
19917 2011-02-12  Bruno Haible  <bruno@clisp.org>
19918
19919         mbsrtowcs: Work around bug on native Windows.
19920         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19921         against mingw bug.
19922         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19923
19924 2011-02-12  Bruno Haible  <bruno@clisp.org>
19925
19926         Avoid setlocale bugs in tests.
19927         * modules/btowc (Dependencies): Add setlocale.
19928         * modules/c-strcase (Dependencies): Likewise.
19929         * modules/mbmemcasecmp (Dependencies): Likewise.
19930         * modules/mbmemcasecoll (Dependencies): Likewise.
19931         * modules/mbrtowc (Dependencies): Likewise.
19932         * modules/mbscasecmp (Dependencies): Likewise.
19933         * modules/mbscasestr (Dependencies): Likewise.
19934         * modules/mbschr (Dependencies): Likewise.
19935         * modules/mbscspn (Dependencies): Likewise.
19936         * modules/mbsinit (Dependencies): Likewise.
19937         * modules/mbsncasecmp (Dependencies): Likewise.
19938         * modules/mbsnrtowcs (Dependencies): Likewise.
19939         * modules/mbspbrk (Dependencies): Likewise.
19940         * modules/mbspcasecmp (Dependencies): Likewise.
19941         * modules/mbsrchr (Dependencies): Likewise.
19942         * modules/mbsrtowcs (Dependencies): Likewise.
19943         * modules/mbsspn (Dependencies): Likewise.
19944         * modules/mbsstr (Dependencies): Likewise.
19945         * modules/nl_langinfo (Dependencies): Likewise.
19946         * modules/quotearg (Dependencies): Likewise.
19947         * modules/unicase/locale-language (Dependencies): Likewise.
19948         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19949         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19950         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19951         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19952         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19953         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19954         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19955         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19956         * modules/vasnprintf-posix (Dependencies): Likewise.
19957         * modules/wcrtomb (Dependencies): Likewise.
19958         * modules/wcsnrtombs (Dependencies): Likewise.
19959         * modules/wcsrtombs (Dependencies): Likewise.
19960
19961 2011-02-12  Bruno Haible  <bruno@clisp.org>
19962
19963         setlocale: Workaround native Windows bug.
19964         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19965         succeeds but sets LC_CTYPE to "C", report a failure.
19966         * tests/test-setlocale2.sh: New file.
19967         * tests/test-setlocale2.c: New file.
19968         * modules/setlocale-tests (Files): Add the new files.
19969         (Makefile.am): Enable test-setlocale2.sh test.
19970         * doc/posix-functions/setlocale.texi: Mention workaround.
19971
19972 2011-02-11  Bruno Haible  <bruno@clisp.org>
19973
19974         Tests for module 'setlocale'.
19975         * modules/setlocale-tests: New file.
19976         * tests/test-setlocale1.sh: New file.
19977         * tests/test-setlocale1.c: New file.
19978
19979         New module 'setlocale'.
19980         * lib/locale.in.h (setlocale): New declaration.
19981         * lib/setlocale.c: New file, based on
19982         gettext/gettext-runtime/intl/setlocale.c.
19983         * m4/setlocale.m4: New file.
19984         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19985         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19986         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19987         REPLACE_SETLOCALE.
19988         * modules/setlocale: New file.
19989         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19990         * doc/posix-functions/setlocale.texi: Mention the new module.
19991
19992 2011-02-11  Bruno Haible  <bruno@clisp.org>
19993
19994         Prepare for locale dependent tests on mingw.
19995         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19996         because it has the wrong locale encoding.
19997         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19998         French_France.1252 instead of "fr".
19999         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20000         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20001         because it has the wrong locale encoding.
20002         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20003         native Windows, try Turkish_Turkey.65001.
20004         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20005         Chinese_China.54936.
20006
20007         Prepare for locale dependent tests on mingw.
20008         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20009         differently.
20010         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20011         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20012         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20013         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20014
20015 2011-02-11  Eric Blake  <eblake@redhat.com>
20016
20017         strptime: avoid compiler warnings
20018         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20019         compiler warnings about dead code.
20020         Reported by Daniel P. Berrange.
20021
20022 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20023
20024         doc: update users.txt
20025         * users.txt: Add rcs.
20026
20027 2011-02-10  John W. Eaton  <jwe@gnu.org>
20028
20029         doc: update users.txt
20030         * users.txt: Add octave.
20031
20032 2011-02-10  Jim Meyering  <meyering@redhat.com>
20033
20034         doc: update users.txt
20035         * users.txt: Add iwhd.
20036
20037 2011-02-09  Bruno Haible  <bruno@clisp.org>
20038
20039         gnulib-tool: Make copyright notice adjustment more robust.
20040         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20041         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20042         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20043         License".
20044         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20045
20046 2011-02-06  Bruno Haible  <bruno@clisp.org>
20047
20048         New module 'towctrans'.
20049         * modules/towctrans: New file.
20050         * lib/wctype.in.h (towctrans): New declaration.
20051         * lib/towctrans.c: New file.
20052         * lib/towctrans-impl.h: New file.
20053         * m4/towctrans.m4: New file.
20054         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20055         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20056         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20057         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20058         * doc/posix-functions/towctrans.texi: Mention the new module.
20059
20060 2011-02-06  Bruno Haible  <bruno@clisp.org>
20061
20062         New module 'wctrans'.
20063         * modules/wctrans: New file.
20064         * lib/wctype.in.h (wctrans): New declaration.
20065         * lib/wctrans.c: New file.
20066         * lib/wctrans-impl.h: New file.
20067         * m4/wctrans.m4: New file.
20068         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20069         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20070         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20071         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20072         * doc/posix-functions/wctrans.texi: Mention the new module.
20073
20074 2011-02-06  Bruno Haible  <bruno@clisp.org>
20075
20076         New module 'iswctype'.
20077         * modules/iswctype: New file.
20078         * lib/wctype.in.h (iswctype): New declaration.
20079         * lib/iswctype.c: New file.
20080         * lib/iswctype-impl.h: New file.
20081         * m4/iswctype.m4: New file.
20082         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20083         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20084         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20085         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20086         * doc/posix-functions/iswctype.texi: Mention the new module and the
20087         HP-UX 11.00 problem.
20088
20089 2011-02-06  Bruno Haible  <bruno@clisp.org>
20090
20091         New module 'wctype'.
20092         * modules/wctype: Change to represent the wctype() substitute.
20093         * lib/wctype.in.h (wctype): New declaration.
20094         * lib/wctype.c: New file.
20095         * lib/wctype-impl.h: New file.
20096         * m4/wctype.m4: New file.
20097         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20098         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20099         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20100         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20101         * doc/posix-functions/wctype.texi: Mention the new module and the
20102         HP-UX 11.00 problem.
20103
20104 2011-02-06  Bruno Haible  <bruno@clisp.org>
20105
20106         wctype-h: Ensure wctype_t and wctrans_t are defined.
20107         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20108         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20109         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20110         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20111         HAVE_WCTRANS_T.
20112         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20113
20114 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20115
20116         flock: fix license typo
20117
20118         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20119         omitted.
20120
20121 2011-02-08  Bruno Haible  <bruno@clisp.org>
20122
20123         Split large sed scripts, for HP-UX sed.
20124         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20125         to avoid HP-UX limit of 99 commands, in the near future.
20126         * modules/stdlib (Makefile.am): Likewise.
20127         * modules/unistd (Makefile.am): Likewise.
20128         * modules/wchar (Makefile.am): Likewise.
20129         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20130         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20131         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20132
20133 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20134             Bruno Haible  <bruno@clisp.org>
20135
20136         stdlib: improve random_r modularization
20137         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20138         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20139         you also need the random_r module to get this material right.
20140         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20141         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20142         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20143
20144 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20145
20146         stdlib: don't depend on stdint
20147         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20148         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20149         be independent of whether stdint.h is needed.
20150         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20151         here, instead of ...
20152         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20153         struct random_data should be using the random_r module, not just
20154         the stdlib module (which wouldn't make sense: what package needs
20155         just struct random_data without also needing random_r?).
20156         * modules/stdlib (Depends-on): Remove stdint.
20157
20158         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20159         See the thread rooted at
20160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20161         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20162         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20163         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20164         __VMS)); previously it was always included (via fcntl--.h).
20165         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20166         hand; this is good enough for load averages.  Also, do not use
20167         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20168         flags directly if available and don't bother otherwise.  (Packages
20169         that need the extra reliability should use the modules that define
20170         these flags on older platforms that lack them.)
20171         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20172         fcntl-safer.
20173
20174 2011-02-08  Jim Meyering  <meyering@redhat.com>
20175
20176         di-set.h, ino-map.h: add multiple-inclusion guard
20177         Technically, the guard is required only for ino-map.h, due to its
20178         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20179         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20180         * lib/ino-map.h: Likewise.
20181
20182 2011-02-06  Bruno Haible  <bruno@clisp.org>
20183
20184         iswblank: Ensure declaration on glibc systems.
20185         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20186         * modules/iswblank (Dependencies): Add 'extensions'.
20187         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20188
20189 2011-02-06  Bruno Haible  <bruno@clisp.org>
20190
20191         New module 'iswblank'.
20192         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20193         * modules/iswblank: New file.
20194         * modules/wctype-h (Files): Remove lib/iswblank.c.
20195         (Makefile.am): Substitute GNULIB_ISWBLANK.
20196         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20197         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20198         (gl_WCTYPE_H_DEFAULTS): New macro.
20199         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20200         * modules/iswblank-tests: New file.
20201         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20202         * tests/test-wctype-h.c (main): Remove iswblank tests.
20203         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20204         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20205         of 'wctype-h'.
20206         * NEWS: Mention the change.
20207         * modules/mbchar (Depends-on): Add iswblank.
20208
20209 2011-02-08  Bruno Haible  <bruno@clisp.org>
20210
20211         di-set tests: Refactor.
20212         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20213         unnecessary includes.
20214         (ASSERT): Remove macro.
20215         (main): Make C90 compliant by avoiding variable declaration after
20216         statement.
20217         * modules/di-set-tests (Files): Add tests/macros.h.
20218
20219 2011-02-08  Bruno Haible  <bruno@clisp.org>
20220
20221         ino-map tests: Refactor.
20222         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20223         unnecessary includes.
20224         (ASSERT): Remove macro.
20225         (main): Make C90 compliant by avoiding variable declaration after
20226         statement.
20227         * modules/ino-map-tests (Files): Add tests/macros.h.
20228
20229 2011-02-08  Jim Meyering  <meyering@redhat.com>
20230
20231         di-set: add "const" to a cast
20232         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20233         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20234
20235 2011-02-06  Bruno Haible  <bruno@clisp.org>
20236
20237         Rename module 'wctype' to 'wctype-h'.
20238         * modules/wctype-h: Renamed from modules/wctype.
20239         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20240         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20241         (Files, Depends-on, Makefile.am): Update.
20242         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20243         (Files, Makefile.am): Update.
20244         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20245         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20246         * doc/posix-headers/wctype.texi: Update.
20247         * doc/posix-functions/iswalnum.texi: Update.
20248         * doc/posix-functions/iswalpha.texi: Update.
20249         * doc/posix-functions/iswblank.texi: Update.
20250         * doc/posix-functions/iswcntrl.texi: Update.
20251         * doc/posix-functions/iswdigit.texi: Update.
20252         * doc/posix-functions/iswgraph.texi: Update.
20253         * doc/posix-functions/iswlower.texi: Update.
20254         * doc/posix-functions/iswprint.texi: Update.
20255         * doc/posix-functions/iswpunct.texi: Update.
20256         * doc/posix-functions/iswspace.texi: Update.
20257         * doc/posix-functions/iswupper.texi: Update.
20258         * doc/posix-functions/iswxdigit.texi: Update.
20259         * doc/posix-functions/towlower.texi: Update.
20260         * doc/posix-functions/towupper.texi: Update.
20261         * NEWS: Mention the change.
20262         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20263         * modules/mbchar (Dependencies): Likewise.
20264         * modules/mbswidth (Dependencies): Likewise.
20265         * modules/quotearg (Dependencies): Likewise.
20266         * modules/regex (Dependencies): Likewise.
20267         * modules/wcscasecmp (Dependencies): Likewise.
20268         * modules/wcsncasecmp (Dependencies): Likewise.
20269         * modules/wcwidth (Dependencies): Likewise.
20270
20271 2011-02-06  Bruno Haible  <bruno@clisp.org>
20272
20273         New module 'wcswidth'.
20274         * modules/wcswidth: New file.
20275         * lib/wchar.in.h (wcswidth): New declaration.
20276         * lib/wcswidth.c: New file.
20277         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20278         * m4/wcswidth.m4: New file.
20279         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20280         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20281         REPLACE_WCSWIDTH.
20282         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20283         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20284         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20285         * doc/posix-functions/wcswidth.texi: Mention the new module.
20286
20287 2011-02-06  Bruno Haible  <bruno@clisp.org>
20288
20289         New module 'wcstok'.
20290         * modules/wcstok: New file.
20291         * lib/wchar.in.h (wcstok): New declaration.
20292         * lib/wcstok.c: New file.
20293         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20294         * m4/wcstok.m4: New file.
20295         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20296         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20297         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20298         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20299         * doc/posix-functions/wcstok.texi: Mention the new module.
20300
20301 2011-02-06  Bruno Haible  <bruno@clisp.org>
20302
20303         New module 'wcsstr'.
20304         * modules/wcsstr: New file.
20305         * lib/wchar.in.h (wcsstr): New declaration.
20306         * lib/wcsstr.c: New file.
20307         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20308         * m4/wcsstr.m4: New file.
20309         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20310         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20311         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20312         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20313         * doc/posix-functions/wcsstr.texi: Mention the new module.
20314
20315 2011-02-06  Bruno Haible  <bruno@clisp.org>
20316
20317         New module 'wcspbrk'.
20318         * modules/wcspbrk: New file.
20319         * lib/wchar.in.h (wcspbrk): New declaration.
20320         * lib/wcspbrk.c: New file.
20321         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20322         * m4/wcspbrk.m4: New file.
20323         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20324         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20325         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20326         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20327         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20328
20329 2011-02-06  Bruno Haible  <bruno@clisp.org>
20330
20331         New module 'wcsspn'.
20332         * modules/wcsspn: New file.
20333         * lib/wchar.in.h (wcsspn): New declaration.
20334         * lib/wcsspn.c: New file.
20335         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20336         * m4/wcsspn.m4: New file.
20337         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20338         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20339         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20340         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20341         * doc/posix-functions/wcsspn.texi: Mention the new module.
20342
20343 2011-02-06  Bruno Haible  <bruno@clisp.org>
20344
20345         New module 'wcscspn'.
20346         * modules/wcscspn: New file.
20347         * lib/wchar.in.h (wcscspn): New declaration.
20348         * lib/wcscspn.c: New file.
20349         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20350         * m4/wcscspn.m4: New file.
20351         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20352         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20353         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20354         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20355         * doc/posix-functions/wcscspn.texi: Mention the new module.
20356
20357 2011-02-06  Bruno Haible  <bruno@clisp.org>
20358
20359         New module 'wcsrchr'.
20360         * modules/wcsrchr: New file.
20361         * lib/wchar.in.h (wcsrchr): New declaration.
20362         * lib/wcsrchr.c: New file.
20363         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20364         * m4/wcsrchr.m4: New file.
20365         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20366         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20367         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20368         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20369         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20370
20371 2011-02-06  Bruno Haible  <bruno@clisp.org>
20372
20373         New module 'wcschr'.
20374         * modules/wcschr: New file.
20375         * lib/wchar.in.h (wcschr): New declaration.
20376         * lib/wcschr.c: New file.
20377         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20378         * m4/wcschr.m4: New file.
20379         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20380         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20381         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20382         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20383         * doc/posix-functions/wcschr.texi: Mention the new module.
20384
20385 2011-02-06  Bruno Haible  <bruno@clisp.org>
20386
20387         New module 'wcsdup'.
20388         * modules/wcsdup: New file.
20389         * lib/wchar.in.h (wcsdup): New declaration.
20390         * lib/wcsdup.c: New file.
20391         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20392         * m4/wcsdup.m4: New file.
20393         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20394         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20395         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20396         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20397         * doc/posix-functions/wcsdup.texi: Mention the new module.
20398
20399 2011-02-06  Bruno Haible  <bruno@clisp.org>
20400
20401         New module 'wcsxfrm'.
20402         * modules/wcsxfrm: New file.
20403         * lib/wchar.in.h (wcsxfrm): New declaration.
20404         * lib/wcsxfrm.c: New file.
20405         * lib/wcsxfrm-impl.h: New file.
20406         * m4/wcsxfrm.m4: New file.
20407         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20408         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20409         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20410         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20411         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20412
20413 2011-02-06  Bruno Haible  <bruno@clisp.org>
20414
20415         New module 'wcscoll'.
20416         * modules/wcscoll: New file.
20417         * lib/wchar.in.h (wcscoll): New declaration.
20418         * lib/wcscoll.c: New file.
20419         * lib/wcscoll-impl.h: New file.
20420         * m4/wcscoll.m4: New file.
20421         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20422         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20423         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20424         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20425         * doc/posix-functions/wcscoll.texi: Mention the new module.
20426
20427 2011-02-06  Bruno Haible  <bruno@clisp.org>
20428
20429         New module 'wcsncasecmp'.
20430         * modules/wcsncasecmp: New file.
20431         * lib/wchar.in.h (wcsncasecmp): New declaration.
20432         * lib/wcsncasecmp.c: New file.
20433         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20434         * m4/wcsncasecmp.m4: New file.
20435         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20436         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20437         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20438         HAVE_WCSNCASECMP.
20439         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20440         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20441
20442 2011-02-06  Bruno Haible  <bruno@clisp.org>
20443
20444         New module 'wcscasecmp'.
20445         * modules/wcscasecmp: New file.
20446         * lib/wchar.in.h (wcscasecmp): New declaration.
20447         * lib/wcscasecmp.c: New file.
20448         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20449         * m4/wcscasecmp.m4: New file.
20450         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20451         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20453         HAVE_WCSCASECMP.
20454         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20455         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20456
20457 2011-02-05  Bruno Haible  <bruno@clisp.org>
20458
20459         New module 'wcsncmp'.
20460         * modules/wcsncmp: New file.
20461         * lib/wchar.in.h (wcsncmp): New declaration.
20462         * lib/wcsncmp.c: New file.
20463         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20464         * m4/wcsncmp.m4: New file.
20465         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20466         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20467         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20468         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20469         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20470
20471 2011-02-05  Bruno Haible  <bruno@clisp.org>
20472
20473         New module 'wcscmp'.
20474         * modules/wcscmp: New file.
20475         * lib/wchar.in.h (wcscmp): New declaration.
20476         * lib/wcscmp.c: New file.
20477         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20478         * m4/wcscmp.m4: New file.
20479         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20480         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20481         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20482         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20483         * doc/posix-functions/wcscmp.texi: Mention the new module.
20484
20485 2011-02-05  Bruno Haible  <bruno@clisp.org>
20486
20487         New module 'wcsncat'.
20488         * modules/wcsncat: New file.
20489         * lib/wchar.in.h (wcsncat): New declaration.
20490         * lib/wcsncat.c: New file.
20491         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20492         * m4/wcsncat.m4: New file.
20493         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20494         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20495         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20496         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20497         * doc/posix-functions/wcsncat.texi: Mention the new module.
20498
20499 2011-02-05  Bruno Haible  <bruno@clisp.org>
20500
20501         New module 'wcscat'.
20502         * modules/wcscat: New file.
20503         * lib/wchar.in.h (wcscat): New declaration.
20504         * lib/wcscat.c: New file.
20505         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20506         * m4/wcscat.m4: New file.
20507         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20508         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20509         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20510         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20511         * doc/posix-functions/wcscat.texi: Mention the new module.
20512
20513 2011-02-05  Bruno Haible  <bruno@clisp.org>
20514
20515         New module 'wcpncpy'.
20516         * modules/wcpncpy: New file.
20517         * lib/wchar.in.h (wcpncpy): New declaration.
20518         * lib/wcpncpy.c: New file.
20519         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20520         * m4/wcpncpy.m4: New file.
20521         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20522         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20523         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20524         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20525         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20526
20527 2011-02-05  Bruno Haible  <bruno@clisp.org>
20528
20529         New module 'wcsncpy'.
20530         * modules/wcsncpy: New file.
20531         * lib/wchar.in.h (wcsncpy): New declaration.
20532         * lib/wcsncpy.c: New file.
20533         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20534         * m4/wcsncpy.m4: New file.
20535         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20536         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20537         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20538         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20539         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20540
20541 2011-02-05  Bruno Haible  <bruno@clisp.org>
20542
20543         New module 'wcpcpy'.
20544         * modules/wcpcpy: New file.
20545         * lib/wchar.in.h (wcpcpy): New declaration.
20546         * lib/wcpcpy.c: New file.
20547         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20548         * m4/wcpcpy.m4: New file.
20549         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20550         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20551         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20552         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20553         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20554
20555 2011-02-05  Bruno Haible  <bruno@clisp.org>
20556
20557         New module 'wcscpy'.
20558         * modules/wcscpy: New file.
20559         * lib/wchar.in.h (wcscpy): New declaration.
20560         * lib/wcscpy.c: New file.
20561         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20562         * m4/wcscpy.m4: New file.
20563         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20564         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20565         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20566         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20567         * doc/posix-functions/wcscpy.texi: Mention the new module.
20568
20569 2011-02-05  Bruno Haible  <bruno@clisp.org>
20570
20571         New module 'wcsnlen'.
20572         * modules/wcsnlen: New file.
20573         * lib/wchar.in.h (wcsnlen): New declaration.
20574         * lib/wcsnlen.c: New file.
20575         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20576         * m4/wcsnlen.m4: New file.
20577         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20578         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20579         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20580         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20581         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20582
20583 2011-02-05  Bruno Haible  <bruno@clisp.org>
20584
20585         New module 'wcslen'.
20586         * modules/wcslen: New file.
20587         * lib/wchar.in.h (wcslen): New declaration.
20588         * lib/wcslen.c: New file.
20589         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20590         * m4/wcslen.m4: New file.
20591         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20592         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20593         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20594         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20595         * doc/posix-functions/wcslen.texi: Mention the new module.
20596
20597 2011-02-05  Bruno Haible  <bruno@clisp.org>
20598
20599         New module 'wmemset'.
20600         * modules/wmemset: New file.
20601         * lib/wchar.in.h (wmemset): New declaration.
20602         * lib/wmemset.c: New file.
20603         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20604         * m4/wmemset.m4: New file.
20605         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20606         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20607         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20608         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20609         * doc/posix-functions/wmemset.texi: Mention the new module.
20610
20611 2011-02-05  Bruno Haible  <bruno@clisp.org>
20612
20613         New module 'wmemmove'.
20614         * modules/wmemmove: New file.
20615         * lib/wchar.in.h (wmemmove): New declaration.
20616         * lib/wmemmove.c: New file.
20617         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20618         * m4/wmemmove.m4: New file.
20619         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20620         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20621         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20622         HAVE_WMEMMOVE.
20623         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20624         * doc/posix-functions/wmemmove.texi: Mention the new module.
20625
20626 2011-02-05  Bruno Haible  <bruno@clisp.org>
20627
20628         New module 'wmemcpy'.
20629         * modules/wmemcpy: New file.
20630         * lib/wchar.in.h (wmemcpy): New declaration.
20631         * lib/wmemcpy.c: New file.
20632         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20633         * m4/wmemcpy.m4: New file.
20634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20636         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20637         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20638         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20639
20640 2011-02-05  Bruno Haible  <bruno@clisp.org>
20641
20642         New module 'wmemcmp'.
20643         * modules/wmemcmp: New file.
20644         * lib/wchar.in.h (wmemcmp): New declaration.
20645         * lib/wmemcmp.c: New file.
20646         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20647         * m4/wmemcmp.m4: New file.
20648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20650         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20651         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20652         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20653
20654 2011-02-07  Jim Meyering  <meyering@redhat.com>
20655
20656         di-set, ino-map: new modules, from coreutils
20657         * lib/di-set.c: New file.
20658         * lib/di-set.h: Likewise.
20659         * lib/ino-map.c: Likewise.
20660         * lib/ino-map.h: Likewise.
20661         * modules/di-set: Likewise.
20662         * modules/di-set-tests: Likewise.
20663         * modules/ino-map: Likewise.
20664         * modules/ino-map-tests: Likewise.
20665         * tests/test-di-set.c: Likewise.
20666         * tests/test-ino-map.c: Likewise.
20667
20668 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20669
20670         getloadavg: merge minor changes from Emacs
20671
20672         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20673         (getloadavg): Use memset, not bzero.
20674
20675         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20676         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20677         clash (bug#86).
20678
20679 2010-11-14  Bruno Haible  <bruno@clisp.org>
20680
20681         Allow multiple gnulib generated replacements to coexist.
20682         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20683         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20684         * lib/langinfo.in.h (nl_item): Likewise.
20685         * lib/math.in.h (_NaN, NAN): Likewise.
20686         * lib/netdb.in.h (struct addrinfo): Likewise.
20687         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20688         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20689         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20690         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20691         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20692         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20693         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20694         pthread_mutexattr_init, pthread_mutexattr_settype,
20695         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20696         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20697         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20698         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20699         * lib/sched.in.h (struct sched_param): Likewise.
20700         * lib/se-selinux.in.h (security_class_t, security_context_t,
20701         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20702         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20703         lsetfilecon, fsetfilecon, security_check_context,
20704         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20705         Likewise.
20706         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20707         Likewise.
20708         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20709         _gl_function_taking_int_returning_void_t, union sigval,
20710         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20711         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20712         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20713         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20714         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20715         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20716         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20717         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20718         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20719         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20720         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20721         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20722         socklen_t, rpl_fd_isset): Likewise.
20723         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20724         * lib/sys_time.in.h (struct timeval): Likewise.
20725         * lib/sys_times.in.h (struct tms): Likewise.
20726         * lib/sys_utsname.in.h (struct utsname):
20727         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20728         * lib/unistd.in.h (getpagesize): Likewise.
20729         * lib/wchar.in.h (mbstate_t): Likewise.
20730         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20731         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20732         towlower, towupper): Likewise.
20733         Reported by Sam Steingold <sds@gnu.org>.
20734
20735 2011-02-05  Eric Blake  <eblake@redhat.com>
20736
20737         unsetenv: work around Haiku issues
20738         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20739         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20740
20741 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20742
20743         libposix: avoid calling error() within libposix
20744         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20745         is defined.
20746
20747 2011-02-05  Eric Blake  <eblake@redhat.com>
20748
20749         strerror_r-posix: port to cygwin
20750         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20751         implementation.
20752         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20753         * tests/test-strerror_r.c (main): Fix test.
20754         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20755         issue.
20756
20757 2011-02-05  Bruno Haible  <bruno@clisp.org>
20758
20759         New module 'wmemchr'.
20760         * modules/wmemchr: New file.
20761         * lib/wchar.in.h (wmemchr): New declaration.
20762         * lib/wmemchr.c: New file.
20763         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20764         * m4/wmemchr.m4: New file.
20765         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20766         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20767         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20768         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20769         * doc/posix-functions/wmemchr.texi: Mention the new module.
20770
20771 2011-02-04  Eric Blake  <eblake@redhat.com>
20772
20773         fdopendir: detect FreeBSD bug
20774         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20775         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20776
20777 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20778
20779         stdbool: do not define HAVE_STDBOOL_H
20780         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20781         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20782         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20783         imported from the latest Autoconf git.  It was motivated by Emacs,
20784         which uses gnulib but does not need HAVE_STDBOOL_H.
20785
20786 2011-02-04  Bruno Haible  <bruno@clisp.org>
20787
20788         wcsnrtombs: Prepare for new module wwcsnrtombs.
20789         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20790         * lib/wcsnrtombs.c: Include it.
20791         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20792
20793         wcsrtombs: Prepare for new module wwcsrtombs.
20794         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20795         * lib/wcsrtombs.c: Include it.
20796         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20797
20798         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20799         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20800         * lib/mbsnrtowcs.c: Include it.
20801         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20802
20803         mbsrtowcs: Prepare for new module mbsrtowwcs.
20804         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20805         * lib/mbsrtowcs.c: Include it.
20806         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20807
20808 2011-02-04  Bruno Haible  <bruno@clisp.org>
20809
20810         vasnprintf: Reduce use of malloc for small format strings.
20811         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20812         (arguments): Add room for the first 7 arguments.
20813         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20814         (char_directives, u8_directives, u16_directives, u32_directives): Add
20815         room for the first 7 directives.
20816         * lib/printf-parse.c: Include <string.h>.
20817         (PRINTF_PARSE): Change memory handling code so that it uses the first
20818         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20819         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20820         Reported by Pádraig Brady <P@draigbrady.com>.
20821
20822 2011-01-31  Eric Blake  <eblake@redhat.com>
20823
20824         dup2: work around Haiku bug
20825         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20826         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20827         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20828         * tests/test-dup2.c (main): Enhance test.
20829
20830 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20831
20832         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20833         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20834         declared by eglibc 2.11.2.
20835         * lib/stdio.in.h: Likewise.
20836
20837 2011-01-31  Eric Blake  <eblake@redhat.com>
20838
20839         ignore-value: add missing test dependency
20840         * tests/test-ignore-value.c: Revert previous change; stdio.h
20841         provides off_t.
20842         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20843
20844 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20845
20846         mktime: clarify long_int width checking
20847         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20848         the top level, to make it clearer that the assumption about
20849         long_int width is being checked.  See
20850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20851
20852 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20853
20854         ignore-value: Fix self-test.
20855         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20856
20857 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20858
20859         TYPE_MAXIMUM: avoid theoretically undefined behavior
20860         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20861         negative number, which the C Standard says has undefined behavior.
20862         In practice this is not a problem, but might as well do it by the book.
20863         Reported by Rich Felker and Eric Blake; see
20864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20865         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20866         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20867         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20868         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20869         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20870         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20871
20872         mktime: #undef mktime before #defining it
20873         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20874
20875         mktime: systematically normalize tm_isdst comparisons
20876         * lib/mktime.c (isdst_differ): New function.
20877         (__mktime_internal): Use it systematically for all isdst comparisons.
20878         This completes the fix for libc BZ #6723, and removes the need for
20879         normalizing tm_isdst.  See
20880         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20881         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20882
20883         mktime: fix some integer overflow issues and sidestep the rest
20884
20885         This was prompted by a bug report by Benjamin Lindner for MinGW
20886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20887         His bug is due to signed integer overflow (0 - INT_MIN), and I
20888         I scanned through mktime.c looking for other integer overflow
20889         problems, fixing all the bugs I found.
20890
20891         Although the C Standard says the resulting code is still not safe
20892         in the presence of integer overflow, in practice it should be good
20893         enough for all real-world two's-complement implementations, except
20894         for debugging environments that deliberately trap on integer
20895         overflow (e.g., gcc -ftrapv).
20896
20897         * lib/mktime.c (WRAPV): New macro.
20898         (SHR): Also check that long_int and time_t shift right in the
20899         usual way, before using the fast-but-unportable method.
20900         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20901         used.  The code already assumed two's complement, so there's
20902         no need to test for alternatives.  All uses removed.
20903         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20904         the C standard.  Problem reported by Rich Felker in
20905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20906         (twos_complement_arithmetic): Also check long_int and time_t.
20907         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20908         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20909         (__mktime_internal): Avoid integer overflow with unary subtraction
20910         in two instances where -1 - X is an adequate replacement for -X,
20911         since the calculations are approximate.
20912
20913 2011-01-29  Eric Blake  <eblake@redhat.com>
20914
20915         mktime: avoid infinite loop
20916         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20917         type; behavior is still undefined but portable to all known targets.
20918         Reported by Rich Felker.
20919
20920 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20921
20922         rename, unlink, same-inode: Relicense.
20923         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20924         * modules/unlink (License): Likewise.
20925         * modules/same-inode (License): Likewise.
20926
20927 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20928
20929         mktime: avoid problems on NetBSD 5 / i386
20930         * lib/mktime.c (long_int): New type.  This works around a problem
20931         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20932         but time_t is 64 bits, and where I expect the existing code is
20933         wrong in some cases.
20934         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20935         (ydhms_diff): Bring back the compile-time check for wide-enough
20936         year and yday.
20937
20938         mktime: fix misspelling in comment
20939         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20940         This merges all recent glibc changes of importance.
20941
20942 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20943
20944         move-if-change: cope with concurrent mv of identical file.
20945         * build-aux/move-if-change (CMPPROG): Accept environment
20946         variable as an override for `cmp'.
20947         (usage): Document CMPPROG.
20948         Adjust comparison to drop stdout.  Cope with failure of mv if
20949         the target file exists and is identical to the source, for
20950         parallel builds.
20951         Report from H.J. Lu against binutils in PR binutils/12283.
20952
20953 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20954
20955         * users.txt: Mention sharutils.
20956
20957 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20958
20959         * users.txt: Mention OATH Toolkit.
20960
20961 2011-01-27  Bruno Haible  <bruno@clisp.org>
20962
20963         Prepare for supporting FreeBSD 10.
20964         * build-aux/config.libpath: Remove handling of freebsd1*.
20965
20966 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20967
20968         Prepare for supporting FreeBSD 10.
20969         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20970         match FreeBSD 10.0.
20971
20972 2011-01-27  Bruno Haible  <bruno@clisp.org>
20973
20974         vma-iter, get-rusage-as: Add OpenBSD support.
20975         * modules/vma-iter (configure.ac): Test for mquery.
20976         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20977         * lib/vma-iter.c: Include <sys/mman.h>.
20978         (vma_iterate): Add an implementation based on mquery().
20979         * lib/resource-ext.h (get_rusage_as): Update comments.
20980         * lib/get-rusage-as.c: Likewise.
20981         * lib/get-rusage-data.c: Likewise.
20982
20983 2011-01-26  Karl Berry  <karl@gnu.org>
20984
20985         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20986         variables to make it easier to override the makeinfo program used.
20987
20988 2011-01-26  Eric Blake  <eblake@redhat.com>
20989
20990         fcntl: work around Haiku F_DUPFD bugs
20991         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20992         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20993         cloexec bit on duplication.
20994         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20995
20996 2011-01-26  Bruno Haible  <bruno@clisp.org>
20997
20998         Enable memory leak tests on AIX.
20999         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21000         * tests/test-fprintf-posix3.c (main): Likewise.
21001
21002 2011-01-26  Bruno Haible  <bruno@clisp.org>
21003
21004         Tests for module 'get-rusage-data'.
21005         * modules/get-rusage-data-tests: New file.
21006         * tests/test-get-rusage-data.c: New file.
21007
21008         New module 'get-rusage-data'.
21009         * lib/resource-ext.h (get_rusage_data): New declaration.
21010         * lib/get-rusage-data.c: New file.
21011         * modules/get-rusage-data: New file.
21012
21013 2011-01-25  Bruno Haible  <bruno@clisp.org>
21014
21015         get-rusage-as: Allow for easier testing.
21016         * lib/resource-ext.h (get_rusage_as): Add comment.
21017         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21018         (main): New function for interactive testing.
21019
21020 2011-01-25  Bruno Haible  <bruno@clisp.org>
21021
21022         vma-iter: Treat Haiku like BeOS.
21023         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21024         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21025
21026 2011-01-25  Eric Blake  <eblake@redhat.com>
21027
21028         c-stack: fix regression on cygwin when libsigsegv is present
21029         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21030
21031 2011-01-24  Bruno Haible  <bruno@clisp.org>
21032
21033         vma-iter: Avoid empty intervals.
21034         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21035         on an empty interval.
21036
21037 2011-01-24  Jim Meyering  <meyering@redhat.com>
21038
21039         u64: remove unnecessary #include
21040         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21041
21042 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21043
21044         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21045         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21046
21047 2011-01-23  Bruno Haible  <bruno@clisp.org>
21048
21049         New module 'vma-iter'.
21050         * lib/vma-iter.h: New file.
21051         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21052         * modules/vma-iter: New file.
21053         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21054         for get_rusage_as_via_iterator.
21055         (vma_iterate_callback): New function.
21056         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21057         * modules/get-rusage-as (Depends-on): Add vma-iter.
21058
21059 2011-01-23  Bruno Haible  <bruno@clisp.org>
21060
21061         uninorm: Tweak includes.
21062         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21063         Reported by Jim Meyering.
21064
21065 2011-01-23  Bruno Haible  <bruno@clisp.org>
21066
21067         get-rusage-as: Improve on NetBSD.
21068         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21069         /proc, like on FreeBSD.
21070
21071 2011-01-23  Jim Meyering  <meyering@redhat.com>
21072
21073         xreadlink.h: remove unnecessary #include
21074         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21075
21076         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21077         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21078
21079 2011-01-23  Bruno Haible  <bruno@clisp.org>
21080
21081         get-rusage-as: Fix bug.
21082         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21083         original limit when aborting the first loop.
21084
21085 2011-01-23  Bruno Haible  <bruno@clisp.org>
21086
21087         wctype: Ensure valid C syntax.
21088         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21089         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21090
21091 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21092
21093         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21095         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21096         as they are needed only for configure's test case.
21097         This removes two unnecessary symbols from config.h.
21098
21099         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21100         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21101         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21102         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21103         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21104         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21105         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21106         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21107         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21108         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21109         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21110         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21111         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21112         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21113         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21114         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21115         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21116         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21117
21118 2011-01-21  Eric Blake  <eblake@redhat.com>
21119
21120         maintainer-makefile: work with older git for submodule check
21121         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21122         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21123         Reported by Matthias Bolte.
21124
21125         bootstrap: minor portability fixes
21126         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21127         (usage): Omit leading capital and trailing . on help phrases, per
21128         GNU Coding Standards.
21129         (check_versions, top level): Prefix messages with script name.
21130
21131 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21132
21133         bootstrap: support --no-git option
21134         * build-aux/bootstrap: Add --no-git option, to be used when
21135         --gnulib-srcdir points to the exact desired checkout.
21136
21137 2011-01-21  Eric Blake  <eblake@redhat.com>
21138
21139         strerror_r-posix: work with glibc 2.13
21140         * lib/strerror_r.c (strerror_r): Fix return type.
21141
21142 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21143             Bruno Haible  <bruno@clisp.org>
21144
21145         uN_strstr: New unit tests.
21146         * modules/unistr/u8-strstr-tests: New file.
21147         * modules/unistr/u16-strstr-tests: New file.
21148         * modules/unistr/u32-strstr-tests: New file.
21149         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21150         * tests/unistr/test-u8-strstr.c: New file.
21151         * tests/unistr/test-u16-strstr.c: New file.
21152         * tests/unistr/test-u32-strstr.c: New file.
21153
21154 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21155             Bruno Haible  <bruno@clisp.org>
21156
21157         Make uN_strstr functions O(n) worst-case.
21158         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21159         16-bit and 32-bit unit cases, use the unibyte algorithm from
21160         lib/mbsstr.c.
21161         * lib/unistr/u8-strstr.c: Include <string.h>.
21162         (UNIT_IS_UINT8_T): New macro.
21163         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21164         (U_STRLEN, U_STRNLEN): New macros.
21165         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21166         (U_STRLEN, U_STRNLEN): New macros.
21167         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21168         (configure.ac): Update required libunistring version.
21169         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21170         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21171         malloca.
21172         (configure.ac): Update required libunistring version.
21173         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21174         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21175         malloca.
21176         (configure.ac): Update required libunistring version.
21177
21178 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21179             Bruno Haible  <bruno@clisp.org>
21180
21181         Prepare for faster uN_strstr functions.
21182         * lib/str-kmp.h: Support definable UNITs.
21183         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21184         needle_len argument.
21185         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21186         * lib/mbscasestr.c (mbscasestr): Likewise.
21187
21188 2011-01-21  Pádraig Brady <P@draigBrady.com>
21189
21190         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21191         * tests/test-malloca.c (main): Unset the environment variable
21192         to greatly speed up the test.
21193         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21194         * modules/malloca-tests: Depend on unsetenv.
21195
21196 2011-01-21  Pádraig Brady <P@draigBrady.com>
21197
21198         ignore-value: remove stdint dependency
21199         * lib/ignore-value.h: Remove <stdint.h>
21200         * modules/ignore-value: Remove stdint dependency.
21201
21202 2011-01-21  Jim Meyering  <meyering@redhat.com>
21203
21204         maint.mk: adjust variable name to be consistent with other gl_ vars
21205         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21206         to be lower case.
21207
21208 2011-01-20  Jim Meyering  <meyering@redhat.com>
21209
21210         maint.mk: make "check" depend on public-submodule-commit by default
21211         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21212
21213 2011-01-20  Bruno Haible  <bruno@clisp.org>
21214
21215         mbfile, mbiter: Complete change from 2008-12-21.
21216         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21217         * m4/mbiter.m4 (gl_MBITER): Likewise.
21218
21219 2011-01-20  Jim Meyering  <meyering@redhat.com>
21220
21221         init.sh: insert space between each function name and "()"
21222         * tests/init.sh: Make it a little easier to see that a function's
21223         name is "warn_", and not "warn" when looking at the first part of
21224         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21225
21226 2011-01-20  Jim Meyering  <meyering@redhat.com>
21227
21228         mountlist: clean up code formatting
21229         * lib/mountlist.c (read_file_system_list): Split a long line,
21230         correct bracing style, use NULL in place of "(struct statfs *)0",
21231         don't parenthesize return value, add spaces around "=" and after
21232         ";-in-for-stmt".
21233
21234 2011-01-14  Markus Duft <mduft@gentoo.org>
21235
21236         mountlist: add support for Interix
21237         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21238         Apply statvfs to all entries of /dev/fs.
21239         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21240         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21241
21242 2011-01-20  Jim Meyering  <meyering@redhat.com>
21243
21244         maint.mk: improve the public-submodule-commit rule
21245         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21246         to suppress printing of its commands... unless V=1.
21247         Add git submodule's --quiet option to suppress printing of e.g.,
21248         "Entering gnulib" output.
21249         "cd" into $(srcdir) before running git submodule.
21250
21251 2011-01-20  Bruno Haible  <bruno@clisp.org>
21252
21253         include_next: Fix bug introduced on 2011-01-18.
21254         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21255         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21256         ac_cv_header_... variable if the second argument is not 'check'.
21257         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21258         gl_NEXT_HEADERS_INTERNAL.
21259
21260 2011-01-20  Bruno Haible  <bruno@clisp.org>
21261
21262         Allow the user to avoid the GNULIB_TEST_* macros.
21263         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21264         Suggested by Paul Eggert.
21265
21266 2011-01-14  Jim Meyering  <meyering@redhat.com>
21267
21268         bootstrap: avoid failure when there is no .gitmodules file
21269         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21270         has been assigned to, even when its value is the empty string.
21271         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21272         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21273         Reported by John W. Eaton <jwe@gnu.org>.
21274
21275 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21276
21277         assume <ctype.h>, ..., <time.h> exist
21278         For years gnulib has been assuming the existence of the headers
21279         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21280         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21281         them, since they don't appear to be needed.
21282         * README (Portability guidelines): Document this.
21283         * lib/flock.c: Assume <fcntl.h> exists.
21284         * lib/regex_internal.h: Assume <locale.h> exists.
21285         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21286         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21287         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21288         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21289         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21290         * m4/regex.m4 (gl_REGEX): Likewise.
21291         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21292         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21293         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21294         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21295         * tests/test-argp.c: Likewise.
21296         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21297
21298         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21299         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21300         AA_APPLE_UNIVERSAL_BUILD.  See
21301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21302         * NEWS: Document this.
21303
21304 2011-01-19  Eric Blake  <eblake@redhat.com>
21305
21306         c-stack: assume stack overflow if SA_SIGINFO unsupported
21307         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21308         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21309         sigaction will work.
21310         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21311         behavior match Linux.
21312         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21313
21314         stdbool-tests: accomodate Haiku
21315         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21316
21317         binary-io: fix O_TEXT on Haiku
21318         * modules/binary-io (Depends-on): Add fcntl-h.
21319         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21320         than blindly undefining O_TEXT.
21321         Reported by Scott McCreary.
21322
21323 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21324
21325         include_next: do not check for standard headers like stddef.h
21326
21327         I found this problem when modifying Emacs to use gnulib.
21328         I noticed that it added HAVE_STDDEF_H to config.h, even though
21329         gnulib always assumes <stddef.h> exists as per README and this
21330         symbol is unnecessary.
21331         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21332         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21333         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21334         faster for headers like stddef.h that are known to exist.
21335         (gl_CHECK_NEXT_HEADERS): Use it.
21336         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21337         rather than gl_CHECK_NEXT_HEADERS.
21338         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21339         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21340
21341 2011-01-18  Eric Blake  <eblake@redhat.com>
21342
21343         ansi-c++-opt: skip C++ dependency style if C++ is unused
21344         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21345         tests when we know C++ compilation is not desired.
21346         Reported by Scott McCreary.
21347
21348 2011-01-18  Bruno Haible  <bruno@clisp.org>
21349
21350         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21351         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21352         (main): Perform test also when getrlimit and setrlimit don't exist or
21353         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21354         limiting the address space size using setrlimit, compare the address
21355         space size before and after the the test.
21356         * tests/test-dprintf-posix2.c: Likewise.
21357         * tests/test-fprintf-posix3.sh: Update skip messages.
21358         * tests/test-dprintf-posix2.sh: Likewise.
21359         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21360         * modules/dprintf-posix-tests (Depends-on): Likewise.
21361         Reported by Bruce Korb <bkorb@gnu.org> and
21362         Gary V. Vaughan <gary@gnu.org>.
21363
21364 2011-01-18  Bruno Haible  <bruno@clisp.org>
21365
21366         get-rusage-as: Improvement for Cygwin.
21367         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21368         areas that are merely reserved.
21369
21370 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21371
21372         strftime: remove dependencies on multibyte modules
21373
21374         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21375         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21376         only if __osf__ is defined, and I suspect OSF doesn't need these
21377         other modules.  If my guess is wrong, we'll need to come up with a
21378         variant of strftime that doesn't need the multibyte modules.
21379
21380         I discovered this problem when attempting modify Emacs to use the
21381         strftime module.  With the previous gnulib, this caused Emacs to
21382         need 31 new files, ranging from lib/config.charset to
21383         m4/wint_t.m4.  This was overkill and I expect would be offputting
21384         to the Emacs maintainers.  After this change, only 6 new files are
21385         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21386         stdbool.m4, and tm_gmtoff.m4.
21387
21388         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21389         Suggested by Bruno Haible in
21390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21391         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21392         and do not check for wchar.h.
21393         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21394         (Depends-on): Remove mbrlen, mbsinit, wchar.
21395
21396 2011-01-18  Bruno Haible  <bruno@clisp.org>
21397
21398         Tests for module 'get-rusage-as'.
21399         * modules/get-rusage-as-tests: New file.
21400         * tests/test-get-rusage-as.c: New file.
21401
21402         New module 'get-rusage-as'.
21403         * modules/get-rusage-as: New file.
21404         * lib/resource-ext.h: New file.
21405         * lib/get-rusage-as.c: New file.
21406
21407 2011-01-17  Eric Blake  <eblake@redhat.com>
21408
21409         sigaction: relax license from LGPLv3+ to LGPLv2+
21410         * modules/sigaction (License): Relax to LGPLv2+.
21411
21412 2011-01-14  Bruno Haible  <bruno@clisp.org>
21413
21414         filemode: Make function declarations usable in C++ mode.
21415         * lib/filemode.h: Enclose function declarations in extern "C" block.
21416         Reported by John W. Eaton <jwe@gnu.org>.
21417
21418 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21419
21420         save-cwd: no longer include "xgetcwd.h"
21421         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21422         This avoids a compilation failure in projects that use save-cwd
21423         without also using the xgetcwd module.
21424
21425 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21426
21427         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21428         This is so that a program like Emacs, which needs only dtoastr,
21429         does not have to bother with distributing and compiling ftoastr
21430         and ldtoastr.
21431         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21432         * modules/dtoastr, modules/ldtoastr: New files.
21433         * modules/ftoastr: Now works just for 'float'.
21434         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21435         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21436         dtoastr.c, ldtoastr.c.
21437
21438 2011-01-11  Jim Meyering  <meyering@redhat.com>
21439
21440         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21441         There is no need to work around the lack of the fchdir function,
21442         since gnulib can now provide a replacement when required.
21443         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21444         * modules/save-cwd (Depends-on): Add fchdir.
21445
21446 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21447
21448         openat, save-cwd: avoid xmalloc
21449
21450         This removes a direct (but undocumented) dependency of openat on
21451         xalloc, along with an indirect dependency via save-cwd.  It also
21452         removes a dependency of save-cwd on xgetcwd, and thereby
21453         indirectly on xalloc.  This change causes the openat substitute
21454         to fall back on save_cwd when memory is tight, and for save_cwd to
21455         fail instead of dying when memory is tight, but that's good enough.
21456         Problem and initial idea for fix reported by Bastien Roucaries in
21457         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21458
21459         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21460         xalloc.h (for xmalloc).
21461         (openat_proc_name): Use malloc, not xmalloc.
21462         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21463         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21464
21465         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21466         This avoids heap allocation for file names whose lengths are in
21467         the range 512..1023, with the upper bound increasing to at most
21468         4031 depending on the platform's PATH_MAX.  (We do not want
21469         pathmax.h here as it might supply a non-constant PATH_MAX.)
21470         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21471         Perhaps they should be moved to malloca.h?
21472         (OPENAT_BUFFER_SIZE): Use them.
21473
21474 2011-01-10  Bruno Haible  <bruno@clisp.org>
21475
21476         doc: Update users.txt.
21477         * users.txt: Add recutils.
21478
21479 2011-01-09  Karl Berry  <karl@gnu.org>
21480
21481         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21482
21483         * doc/configmake.texi: New file.
21484         * doc/gnulib.texi: Include it.
21485         * modules/configmake: Move documentation from here.
21486
21487 2011-01-09  Bruno Haible  <bruno@clisp.org>
21488
21489         Update to Unicode 6.0.0.
21490         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21491         (get_lbp): Update for Unicode 6.0.0.
21492         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21493         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21494         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21495         U+11001, U+11038..U+11046. Remove U+06DE.
21496         (uc_width): Fix bounds of planes.
21497         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21498         lib/uniwidth/width.c.
21499         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21500         trailing whitespace removed.
21501         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21502         without comments, but with the original copyright notice.
21503         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21504         * lib/unicase/ignorable.h: Likewise.
21505         * lib/unicase/tocasefold.h: Likewise.
21506         * lib/unicase/tolower.h: Likewise.
21507         * lib/unicase/totitle.h: Likewise.
21508         * lib/unicase/toupper.h: Likewise.
21509         * lib/unictype/bidi_of.h: Likewise.
21510         * lib/unictype/blocks.h: Likewise.
21511         * lib/unictype/categ_C.h: Likewise.
21512         * lib/unictype/categ_Cn.h: Likewise.
21513         * lib/unictype/categ_L.h: Likewise.
21514         * lib/unictype/categ_Ll.h: Likewise.
21515         * lib/unictype/categ_Lm.h: Likewise.
21516         * lib/unictype/categ_Lo.h: Likewise.
21517         * lib/unictype/categ_Lu.h: Likewise.
21518         * lib/unictype/categ_M.h: Likewise.
21519         * lib/unictype/categ_Mc.h: Likewise.
21520         * lib/unictype/categ_Me.h: Likewise.
21521         * lib/unictype/categ_Mn.h: Likewise.
21522         * lib/unictype/categ_N.h: Likewise.
21523         * lib/unictype/categ_Nd.h: Likewise.
21524         * lib/unictype/categ_No.h: Likewise.
21525         * lib/unictype/categ_P.h: Likewise.
21526         * lib/unictype/categ_Po.h: Likewise.
21527         * lib/unictype/categ_S.h: Likewise.
21528         * lib/unictype/categ_Sc.h: Likewise.
21529         * lib/unictype/categ_Sk.h: Likewise.
21530         * lib/unictype/categ_Sm.h: Likewise.
21531         * lib/unictype/categ_So.h: Likewise.
21532         * lib/unictype/categ_of.h: Likewise.
21533         * lib/unictype/combining.h: Likewise.
21534         * lib/unictype/ctype_alnum.h: Likewise.
21535         * lib/unictype/ctype_alpha.h: Likewise.
21536         * lib/unictype/ctype_graph.h: Likewise.
21537         * lib/unictype/ctype_lower.h: Likewise.
21538         * lib/unictype/ctype_print.h: Likewise.
21539         * lib/unictype/ctype_punct.h: Likewise.
21540         * lib/unictype/ctype_upper.h: Likewise.
21541         * lib/unictype/decdigit.h: Likewise.
21542         * lib/unictype/digit.h: Likewise.
21543         * lib/unictype/numeric.h: Likewise.
21544         * lib/unictype/pr_alphabetic.h: Likewise.
21545         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21546         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21547         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21548         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21549         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21550         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21551         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21552         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21553         * lib/unictype/pr_case_ignorable.h: Likewise.
21554         * lib/unictype/pr_cased.h: Likewise.
21555         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21556         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21557         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21558         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21559         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21560         * lib/unictype/pr_combining.h: Likewise.
21561         * lib/unictype/pr_composite.h: Likewise.
21562         * lib/unictype/pr_currency_symbol.h: Likewise.
21563         * lib/unictype/pr_decimal_digit.h: Likewise.
21564         * lib/unictype/pr_deprecated.h: Likewise.
21565         * lib/unictype/pr_format_control.h: Likewise.
21566         * lib/unictype/pr_grapheme_base.h: Likewise.
21567         * lib/unictype/pr_grapheme_extend.h: Likewise.
21568         * lib/unictype/pr_grapheme_link.h: Likewise.
21569         * lib/unictype/pr_id_continue.h: Likewise.
21570         * lib/unictype/pr_id_start.h: Likewise.
21571         * lib/unictype/pr_ideographic.h: Likewise.
21572         * lib/unictype/pr_lowercase.h: Likewise.
21573         * lib/unictype/pr_math.h: Likewise.
21574         * lib/unictype/pr_numeric.h: Likewise.
21575         * lib/unictype/pr_other_alphabetic.h: Likewise.
21576         * lib/unictype/pr_other_id_continue.h: Likewise.
21577         * lib/unictype/pr_other_math.h: Likewise.
21578         * lib/unictype/pr_punctuation.h: Likewise.
21579         * lib/unictype/pr_sentence_terminal.h: Likewise.
21580         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21581         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21582         * lib/unictype/pr_unified_ideograph.h: Likewise.
21583         * lib/unictype/pr_uppercase.h: Likewise.
21584         * lib/unictype/pr_xid_continue.h: Likewise.
21585         * lib/unictype/pr_xid_start.h: Likewise.
21586         * lib/unictype/scripts.h: Likewise.
21587         * lib/unictype/scripts_byname.gperf: Likewise.
21588         * lib/unictype/sy_java_ident.h: Likewise.
21589         * lib/unigbrk/gbrkprop.h: Likewise.
21590         * lib/unilbrk/lbrkprop1.h: Likewise.
21591         * lib/unilbrk/lbrkprop2.h: Likewise.
21592         * lib/uninorm/decomposition-table2.h: Likewise.
21593         * lib/uniwbrk/wbrkprop.h: Likewise.
21594         * tests/unicase/test-cased.c: Likewise.
21595         * tests/unicase/test-ignorable.c: Likewise.
21596         * tests/unicase/test-uc_tolower.c: Likewise.
21597         * tests/unicase/test-uc_totitle.c: Likewise.
21598         * tests/unicase/test-uc_toupper.c: Likewise.
21599         * tests/unictype/test-categ_C.c: Likewise.
21600         * tests/unictype/test-categ_Cn.c: Likewise.
21601         * tests/unictype/test-categ_L.c: Likewise.
21602         * tests/unictype/test-categ_Ll.c: Likewise.
21603         * tests/unictype/test-categ_Lm.c: Likewise.
21604         * tests/unictype/test-categ_Lo.c: Likewise.
21605         * tests/unictype/test-categ_Lu.c: Likewise.
21606         * tests/unictype/test-categ_M.c: Likewise.
21607         * tests/unictype/test-categ_Mc.c: Likewise.
21608         * tests/unictype/test-categ_Me.c: Likewise.
21609         * tests/unictype/test-categ_Mn.c: Likewise.
21610         * tests/unictype/test-categ_N.c: Likewise.
21611         * tests/unictype/test-categ_Nd.c: Likewise.
21612         * tests/unictype/test-categ_No.c: Likewise.
21613         * tests/unictype/test-categ_P.c: Likewise.
21614         * tests/unictype/test-categ_Po.c: Likewise.
21615         * tests/unictype/test-categ_S.c: Likewise.
21616         * tests/unictype/test-categ_Sc.c: Likewise.
21617         * tests/unictype/test-categ_Sk.c: Likewise.
21618         * tests/unictype/test-categ_Sm.c: Likewise.
21619         * tests/unictype/test-categ_So.c: Likewise.
21620         * tests/unictype/test-ctype_alnum.c: Likewise.
21621         * tests/unictype/test-ctype_alpha.c: Likewise.
21622         * tests/unictype/test-ctype_graph.c: Likewise.
21623         * tests/unictype/test-ctype_lower.c: Likewise.
21624         * tests/unictype/test-ctype_print.c: Likewise.
21625         * tests/unictype/test-ctype_punct.c: Likewise.
21626         * tests/unictype/test-ctype_upper.c: Likewise.
21627         * tests/unictype/test-decdigit.h: Likewise.
21628         * tests/unictype/test-digit.h: Likewise.
21629         * tests/unictype/test-numeric.h: Likewise.
21630         * tests/unictype/test-pr_alphabetic.c: Likewise.
21631         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21632         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21633         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21634         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21635         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21636         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21637         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21638         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21639         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21640         * tests/unictype/test-pr_cased.c: Likewise.
21641         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21642         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21643         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21644         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21645         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21646         * tests/unictype/test-pr_combining.c: Likewise.
21647         * tests/unictype/test-pr_composite.c: Likewise.
21648         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21649         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21650         * tests/unictype/test-pr_deprecated.c: Likewise.
21651         * tests/unictype/test-pr_format_control.c: Likewise.
21652         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21653         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21654         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21655         * tests/unictype/test-pr_id_continue.c: Likewise.
21656         * tests/unictype/test-pr_id_start.c: Likewise.
21657         * tests/unictype/test-pr_ideographic.c: Likewise.
21658         * tests/unictype/test-pr_lowercase.c: Likewise.
21659         * tests/unictype/test-pr_math.c: Likewise.
21660         * tests/unictype/test-pr_numeric.c: Likewise.
21661         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21662         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21663         * tests/unictype/test-pr_other_math.c: Likewise.
21664         * tests/unictype/test-pr_punctuation.c: Likewise.
21665         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21666         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21667         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21668         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21669         * tests/unictype/test-pr_uppercase.c: Likewise.
21670         * tests/unictype/test-pr_xid_continue.c: Likewise.
21671         * tests/unictype/test-pr_xid_start.c: Likewise.
21672         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21673         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21674         changes.
21675         * lib/unictype/categ_Cc.h: Likewise.
21676         * lib/unictype/categ_Cf.h: Likewise.
21677         * lib/unictype/categ_Co.h: Likewise.
21678         * lib/unictype/categ_Cs.h: Likewise.
21679         * lib/unictype/categ_Lt.h: Likewise.
21680         * lib/unictype/categ_Nl.h: Likewise.
21681         * lib/unictype/categ_Pc.h: Likewise.
21682         * lib/unictype/categ_Pd.h: Likewise.
21683         * lib/unictype/categ_Pe.h: Likewise.
21684         * lib/unictype/categ_Pf.h: Likewise.
21685         * lib/unictype/categ_Pi.h: Likewise.
21686         * lib/unictype/categ_Ps.h: Likewise.
21687         * lib/unictype/categ_Z.h: Likewise.
21688         * lib/unictype/categ_Zl.h: Likewise.
21689         * lib/unictype/categ_Zp.h: Likewise.
21690         * lib/unictype/categ_Zs.h: Likewise.
21691         * lib/unictype/ctype_blank.h: Likewise.
21692         * lib/unictype/ctype_cntrl.h: Likewise.
21693         * lib/unictype/ctype_digit.h: Likewise.
21694         * lib/unictype/ctype_space.h: Likewise.
21695         * lib/unictype/ctype_xdigit.h: Likewise.
21696         * lib/unictype/mirror.h: Likewise.
21697         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21698         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21699         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21700         * lib/unictype/pr_bidi_control.h: Likewise.
21701         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21702         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21703         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21704         * lib/unictype/pr_bidi_pdf.h: Likewise.
21705         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21706         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21707         * lib/unictype/pr_dash.h: Likewise.
21708         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21709         * lib/unictype/pr_diacritic.h: Likewise.
21710         * lib/unictype/pr_extender.h: Likewise.
21711         * lib/unictype/pr_hex_digit.h: Likewise.
21712         * lib/unictype/pr_hyphen.h: Likewise.
21713         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21714         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21715         * lib/unictype/pr_ignorable_control.h: Likewise.
21716         * lib/unictype/pr_iso_control.h: Likewise.
21717         * lib/unictype/pr_join_control.h: Likewise.
21718         * lib/unictype/pr_left_of_pair.h: Likewise.
21719         * lib/unictype/pr_line_separator.h: Likewise.
21720         * lib/unictype/pr_logical_order_exception.h: Likewise.
21721         * lib/unictype/pr_non_break.h: Likewise.
21722         * lib/unictype/pr_not_a_character.h: Likewise.
21723         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21724         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21725         * lib/unictype/pr_other_id_start.h: Likewise.
21726         * lib/unictype/pr_other_lowercase.h: Likewise.
21727         * lib/unictype/pr_other_uppercase.h: Likewise.
21728         * lib/unictype/pr_paired_punctuation.h: Likewise.
21729         * lib/unictype/pr_paragraph_separator.h: Likewise.
21730         * lib/unictype/pr_pattern_syntax.h: Likewise.
21731         * lib/unictype/pr_pattern_white_space.h: Likewise.
21732         * lib/unictype/pr_private_use.h: Likewise.
21733         * lib/unictype/pr_quotation_mark.h: Likewise.
21734         * lib/unictype/pr_radical.h: Likewise.
21735         * lib/unictype/pr_soft_dotted.h: Likewise.
21736         * lib/unictype/pr_space.h: Likewise.
21737         * lib/unictype/pr_titlecase.h: Likewise.
21738         * lib/unictype/pr_variation_selector.h: Likewise.
21739         * lib/unictype/pr_white_space.h: Likewise.
21740         * lib/unictype/pr_zero_width.h: Likewise.
21741         * lib/unictype/sy_c_ident.h: Likewise.
21742         * lib/unictype/sy_c_whitespace.h: Likewise.
21743         * lib/unictype/sy_java_whitespace.h: Likewise.
21744         * lib/uninorm/composition-table.gperf: Likewise.
21745         * lib/uninorm/decomposition-table1.h: Likewise.
21746         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21747         LB8.
21748         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21749         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21750         * modules/unictype/*: Bump version number of expected libunistring
21751         version.
21752
21753 2011-01-09  Bruno Haible  <bruno@clisp.org>
21754
21755         Update to Unicode 5.2.0.
21756         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21757         trailing whitespace removed.
21758
21759 2011-01-09  Bruno Haible  <bruno@clisp.org>
21760
21761         New Unicode character properties, from Unicode 5.2.0.
21762         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21763         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21764         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21765         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21766         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21767         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21768         uc_is_property_cased, uc_is_property_case_ignorable,
21769         uc_is_property_changes_when_lowercased,
21770         uc_is_property_changes_when_uppercased,
21771         uc_is_property_changes_when_titlecased,
21772         uc_is_property_changes_when_casefolded,
21773         uc_is_property_changes_when_casemapped): New declarations.
21774         * lib/unictype/pr_byname.gperf: Add the new properties.
21775         * modules/unictype/property-byname (Depends-on): Depend on the new
21776         properties modules.
21777         * modules/unictype/property-all (Depends-on): Likewise.
21778         * MODULES.html.sh (Unicode string functions): Add
21779         unictype/property-case-ignorable, unictype/property-cased,
21780         unictype/property-changes-when-casefolded,
21781         unictype/property-changes-when-casemapped,
21782         unictype/property-changes-when-lowercased,
21783         unictype/property-changes-when-titlecased,
21784         unictype/property-changes-when-uppercased.
21785
21786         New module 'unictype/property-changes-when-casemapped'.
21787         * modules/unictype/property-changes-when-casemapped: New file.
21788         * lib/unictype/pr_changes_when_casemapped.c: New file.
21789         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21790         generated by gen-uni-tables.
21791         * modules/unictype/property-changes-when-casemapped-tests: New file.
21792         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21793         automatically generated by gen-uni-tables.
21794
21795         New module 'unictype/property-changes-when-casefolded'.
21796         * modules/unictype/property-changes-when-casefolded: New file.
21797         * lib/unictype/pr_changes_when_casefolded.c: New file.
21798         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21799         generated by gen-uni-tables.
21800         * modules/unictype/property-changes-when-casefolded-tests: New file.
21801         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21802         automatically generated by gen-uni-tables.
21803
21804         New module 'unictype/property-changes-when-titlecased'.
21805         * modules/unictype/property-changes-when-titlecased: New file.
21806         * lib/unictype/pr_changes_when_titlecased.c: New file.
21807         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21808         generated by gen-uni-tables.
21809         * modules/unictype/property-changes-when-titlecased-tests: New file.
21810         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21811         automatically generated by gen-uni-tables.
21812
21813         New module 'unictype/property-changes-when-uppercased'.
21814         * modules/unictype/property-changes-when-uppercased: New file.
21815         * lib/unictype/pr_changes_when_uppercased.c: New file.
21816         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21817         generated by gen-uni-tables.
21818         * modules/unictype/property-changes-when-uppercased-tests: New file.
21819         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21820         automatically generated by gen-uni-tables.
21821
21822         New module 'unictype/property-changes-when-lowercased'.
21823         * modules/unictype/property-changes-when-lowercased: New file.
21824         * lib/unictype/pr_changes_when_lowercased.c: New file.
21825         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21826         generated by gen-uni-tables.
21827         * modules/unictype/property-changes-when-lowercased-tests: New file.
21828         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21829         automatically generated by gen-uni-tables.
21830
21831         New module 'unictype/property-case-ignorable'.
21832         * modules/unictype/property-case-ignorable: New file.
21833         * lib/unictype/pr_case_ignorable.c: New file.
21834         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21835         by gen-uni-tables.
21836         * modules/unictype/property-case-ignorable-tests: New file.
21837         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21838         generated by gen-uni-tables.
21839
21840         New module 'unictype/property-cased'.
21841         * modules/unictype/property-cased: New file.
21842         * lib/unictype/pr_cased.c: New file.
21843         * lib/unictype/pr_cased.h: New file, automatically generated by
21844         gen-uni-tables.
21845         * modules/unictype/property-cased-tests: New file.
21846         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21847         gen-uni-tables.
21848
21849 2011-01-09  Bruno Haible  <bruno@clisp.org>
21850
21851         Update to Unicode 5.2.0.
21852         * lib/gen-uni-tables.c (output_predicate, output_category,
21853         output_combclass, output_bidi_category, output_decimal_digit_test,
21854         output_decimal_digit, output_digit_test, output_digit,
21855         output_numeric_test, output_numeric, output_mirror, output_scripts,
21856         output_scripts_byname, output_blocks, output_ident_category): Fix
21857         comment header.
21858         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21859         get_wbp.
21860         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21861         items.
21862         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21863         Changes_When_Lowercased, Changes_When_Uppercased,
21864         Changes_When_Titlecased, Changes_When_Casefolded,
21865         Changes_When_Casemapped.
21866         (is_property_alphabetic, is_property_default_ignorable_code_point):
21867         Update for Unicode 5.2.0.
21868         (is_property_cased, is_property_case_ignorable,
21869         is_property_changes_when_lowercased,
21870         is_property_changes_when_uppercased,
21871         is_property_changes_when_titlecased,
21872         is_property_changes_when_casefolded,
21873         is_property_changes_when_casemapped): New functions.
21874         (output_properties): Output also the properties cased, case_ignorable,
21875         changes_when_lowercased, changes_when_uppercased,
21876         changes_when_titlecased, changes_when_casefolded,
21877         changes_when_casemapped.
21878         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21879         Unicode TR#11 revision 17 -> 19.
21880         (LBP_CP): New enumeration value.
21881         (LBP_*): Adjust values accordingly.
21882         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21883         TR#14 revision 22 -> 24.
21884         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21885         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21886         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21887         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21888         is_WBP_MIDLETTER.
21889         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21890         the code1 and code2 of each composition rule.
21891         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21892         * lib/unicase/ignorable.h: Likewise.
21893         * lib/unicase/tocasefold.h: Likewise.
21894         * lib/unicase/tolower.h: Likewise.
21895         * lib/unicase/totitle.h: Likewise.
21896         * lib/unicase/toupper.h: Likewise.
21897         * lib/unictype/bidi_of.h: Likewise.
21898         * lib/unictype/blocks.h: Likewise.
21899         * lib/unictype/categ_C.h: Likewise.
21900         * lib/unictype/categ_Cf.h: Likewise.
21901         * lib/unictype/categ_Cn.h: Likewise.
21902         * lib/unictype/categ_L.h: Likewise.
21903         * lib/unictype/categ_Ll.h: Likewise.
21904         * lib/unictype/categ_Lm.h: Likewise.
21905         * lib/unictype/categ_Lo.h: Likewise.
21906         * lib/unictype/categ_Lu.h: Likewise.
21907         * lib/unictype/categ_M.h: Likewise.
21908         * lib/unictype/categ_Mc.h: Likewise.
21909         * lib/unictype/categ_Mn.h: Likewise.
21910         * lib/unictype/categ_N.h: Likewise.
21911         * lib/unictype/categ_Nd.h: Likewise.
21912         * lib/unictype/categ_Nl.h: Likewise.
21913         * lib/unictype/categ_No.h: Likewise.
21914         * lib/unictype/categ_P.h: Likewise.
21915         * lib/unictype/categ_Pd.h: Likewise.
21916         * lib/unictype/categ_Po.h: Likewise.
21917         * lib/unictype/categ_S.h: Likewise.
21918         * lib/unictype/categ_Sc.h: Likewise.
21919         * lib/unictype/categ_So.h: Likewise.
21920         * lib/unictype/categ_of.h: Likewise.
21921         * lib/unictype/combining.h: Likewise.
21922         * lib/unictype/ctype_alnum.h: Likewise.
21923         * lib/unictype/ctype_alpha.h: Likewise.
21924         * lib/unictype/ctype_graph.h: Likewise.
21925         * lib/unictype/ctype_lower.h: Likewise.
21926         * lib/unictype/ctype_print.h: Likewise.
21927         * lib/unictype/ctype_punct.h: Likewise.
21928         * lib/unictype/ctype_upper.h: Likewise.
21929         * lib/unictype/decdigit.h: Likewise.
21930         * lib/unictype/digit.h: Likewise.
21931         * lib/unictype/numeric.h: Likewise.
21932         * lib/unictype/pr_alphabetic.h: Likewise.
21933         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21934         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21935         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21936         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21937         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21938         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21939         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21940         * lib/unictype/pr_combining.h: Likewise.
21941         * lib/unictype/pr_composite.h: Likewise.
21942         * lib/unictype/pr_currency_symbol.h: Likewise.
21943         * lib/unictype/pr_dash.h: Likewise.
21944         * lib/unictype/pr_decimal_digit.h: Likewise.
21945         * lib/unictype/pr_deprecated.h: Likewise.
21946         * lib/unictype/pr_diacritic.h: Likewise.
21947         * lib/unictype/pr_extender.h: Likewise.
21948         * lib/unictype/pr_grapheme_base.h: Likewise.
21949         * lib/unictype/pr_grapheme_extend.h: Likewise.
21950         * lib/unictype/pr_grapheme_link.h: Likewise.
21951         * lib/unictype/pr_id_continue.h: Likewise.
21952         * lib/unictype/pr_id_start.h: Likewise.
21953         * lib/unictype/pr_ideographic.h: Likewise.
21954         * lib/unictype/pr_ignorable_control.h: Likewise.
21955         * lib/unictype/pr_logical_order_exception.h: Likewise.
21956         * lib/unictype/pr_lowercase.h: Likewise.
21957         * lib/unictype/pr_numeric.h: Likewise.
21958         * lib/unictype/pr_other_alphabetic.h: Likewise.
21959         * lib/unictype/pr_punctuation.h: Likewise.
21960         * lib/unictype/pr_sentence_terminal.h: Likewise.
21961         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21962         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21963         * lib/unictype/pr_unified_ideograph.h: Likewise.
21964         * lib/unictype/pr_uppercase.h: Likewise.
21965         * lib/unictype/pr_xid_continue.h: Likewise.
21966         * lib/unictype/pr_xid_start.h: Likewise.
21967         * lib/unictype/pr_zero_width.h: Likewise.
21968         * lib/unictype/scripts.h: Likewise.
21969         * lib/unictype/scripts_byname.gperf: Likewise.
21970         * lib/unictype/sy_java_ident.h: Likewise.
21971         * lib/unigbrk/gbrkprop.h: Likewise.
21972         * lib/unilbrk/lbrkprop1.h: Likewise.
21973         * lib/unilbrk/lbrkprop2.h: Likewise.
21974         * lib/unilbrk/lbrktables.h: Likewise.
21975         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21976         LBP_CP. Implement rule LB30.
21977         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21978         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21979         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21980         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21981         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21982         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21983         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21984         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21985         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21986         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21987         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21988         bits instead of 16 bits in the code1 and code2 of each composition
21989         rule.
21990         (uc_composition): Update for Unicode 5.2.0.
21991         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21992         * lib/uninorm/decomposition-table2.h: Likewise.
21993         * lib/uniwbrk/wbrkprop.h: Likewise.
21994         * tests/unicase/test-cased.c: Likewise.
21995         * tests/unicase/test-ignorable.c: Likewise.
21996         * tests/unicase/test-uc_tolower.c: Likewise.
21997         * tests/unicase/test-uc_totitle.c: Likewise.
21998         * tests/unicase/test-uc_toupper.c: Likewise.
21999         * tests/unictype/test-categ_C.c: Likewise.
22000         * tests/unictype/test-categ_Cf.c: Likewise.
22001         * tests/unictype/test-categ_Cn.c: Likewise.
22002         * tests/unictype/test-categ_L.c: Likewise.
22003         * tests/unictype/test-categ_Ll.c: Likewise.
22004         * tests/unictype/test-categ_Lm.c: Likewise.
22005         * tests/unictype/test-categ_Lo.c: Likewise.
22006         * tests/unictype/test-categ_Lu.c: Likewise.
22007         * tests/unictype/test-categ_M.c: Likewise.
22008         * tests/unictype/test-categ_Mc.c: Likewise.
22009         * tests/unictype/test-categ_Mn.c: Likewise.
22010         * tests/unictype/test-categ_N.c: Likewise.
22011         * tests/unictype/test-categ_Nd.c: Likewise.
22012         * tests/unictype/test-categ_Nl.c: Likewise.
22013         * tests/unictype/test-categ_No.c: Likewise.
22014         * tests/unictype/test-categ_P.c: Likewise.
22015         * tests/unictype/test-categ_Pd.c: Likewise.
22016         * tests/unictype/test-categ_Po.c: Likewise.
22017         * tests/unictype/test-categ_S.c: Likewise.
22018         * tests/unictype/test-categ_Sc.c: Likewise.
22019         * tests/unictype/test-categ_So.c: Likewise.
22020         * tests/unictype/test-ctype_alnum.c: Likewise.
22021         * tests/unictype/test-ctype_alpha.c: Likewise.
22022         * tests/unictype/test-ctype_graph.c: Likewise.
22023         * tests/unictype/test-ctype_lower.c: Likewise.
22024         * tests/unictype/test-ctype_print.c: Likewise.
22025         * tests/unictype/test-ctype_punct.c: Likewise.
22026         * tests/unictype/test-ctype_upper.c: Likewise.
22027         * tests/unictype/test-decdigit.h: Likewise.
22028         * tests/unictype/test-digit.h: Likewise.
22029         * tests/unictype/test-numeric.h: Likewise.
22030         * tests/unictype/test-pr_alphabetic.c: Likewise.
22031         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22032         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22033         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22034         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22035         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22036         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22037         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22038         * tests/unictype/test-pr_combining.c: Likewise.
22039         * tests/unictype/test-pr_composite.c: Likewise.
22040         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22041         * tests/unictype/test-pr_dash.c: Likewise.
22042         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22043         * tests/unictype/test-pr_deprecated.c: Likewise.
22044         * tests/unictype/test-pr_diacritic.c: Likewise.
22045         * tests/unictype/test-pr_extender.c: Likewise.
22046         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22047         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22048         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22049         * tests/unictype/test-pr_id_continue.c: Likewise.
22050         * tests/unictype/test-pr_id_start.c: Likewise.
22051         * tests/unictype/test-pr_ideographic.c: Likewise.
22052         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22053         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22054         * tests/unictype/test-pr_lowercase.c: Likewise.
22055         * tests/unictype/test-pr_numeric.c: Likewise.
22056         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22057         * tests/unictype/test-pr_punctuation.c: Likewise.
22058         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22059         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22060         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22061         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22062         * tests/unictype/test-pr_uppercase.c: Likewise.
22063         * tests/unictype/test-pr_xid_continue.c: Likewise.
22064         * tests/unictype/test-pr_xid_start.c: Likewise.
22065         * tests/unictype/test-pr_zero_width.c: Likewise.
22066         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22067         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22068         changed behaviour: line breaking is now disallowed between a letter
22069         or '=' and '('.
22070         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22071         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22072         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22073         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22074         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22075         lib/uniwidth/width.c.
22076         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22077         without comments, but with the original copyright notice.
22078         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22079         changes.
22080         * lib/unictype/categ_Cc.h: Likewise.
22081         * lib/unictype/categ_Co.h: Likewise.
22082         * lib/unictype/categ_Cs.h: Likewise.
22083         * lib/unictype/categ_Lt.h: Likewise.
22084         * lib/unictype/categ_Me.h: Likewise.
22085         * lib/unictype/categ_Pc.h: Likewise.
22086         * lib/unictype/categ_Pe.h: Likewise.
22087         * lib/unictype/categ_Pf.h: Likewise.
22088         * lib/unictype/categ_Pi.h: Likewise.
22089         * lib/unictype/categ_Ps.h: Likewise.
22090         * lib/unictype/categ_Sk.h: Likewise.
22091         * lib/unictype/categ_Sm.h: Likewise.
22092         * lib/unictype/categ_Z.h: Likewise.
22093         * lib/unictype/categ_Zl.h: Likewise.
22094         * lib/unictype/categ_Zp.h: Likewise.
22095         * lib/unictype/categ_Zs.h: Likewise.
22096         * lib/unictype/ctype_blank.h: Likewise.
22097         * lib/unictype/ctype_cntrl.h: Likewise.
22098         * lib/unictype/ctype_digit.h: Likewise.
22099         * lib/unictype/ctype_space.h: Likewise.
22100         * lib/unictype/ctype_xdigit.h: Likewise.
22101         * lib/unictype/mirror.h: Likewise.
22102         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22103         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22104         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22105         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22106         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22107         * lib/unictype/pr_bidi_control.h: Likewise.
22108         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22109         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22110         * lib/unictype/pr_bidi_pdf.h: Likewise.
22111         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22112         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22113         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22114         * lib/unictype/pr_format_control.h: Likewise.
22115         * lib/unictype/pr_hex_digit.h: Likewise.
22116         * lib/unictype/pr_hyphen.h: Likewise.
22117         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22118         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22119         * lib/unictype/pr_iso_control.h: Likewise.
22120         * lib/unictype/pr_join_control.h: Likewise.
22121         * lib/unictype/pr_left_of_pair.h: Likewise.
22122         * lib/unictype/pr_line_separator.h: Likewise.
22123         * lib/unictype/pr_math.h: Likewise.
22124         * lib/unictype/pr_non_break.h: Likewise.
22125         * lib/unictype/pr_not_a_character.h: Likewise.
22126         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22127         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22128         * lib/unictype/pr_other_id_continue.h: Likewise.
22129         * lib/unictype/pr_other_id_start.h: Likewise.
22130         * lib/unictype/pr_other_lowercase.h: Likewise.
22131         * lib/unictype/pr_other_math.h: Likewise.
22132         * lib/unictype/pr_other_uppercase.h: Likewise.
22133         * lib/unictype/pr_paired_punctuation.h: Likewise.
22134         * lib/unictype/pr_paragraph_separator.h: Likewise.
22135         * lib/unictype/pr_pattern_syntax.h: Likewise.
22136         * lib/unictype/pr_pattern_white_space.h: Likewise.
22137         * lib/unictype/pr_private_use.h: Likewise.
22138         * lib/unictype/pr_quotation_mark.h: Likewise.
22139         * lib/unictype/pr_radical.h: Likewise.
22140         * lib/unictype/pr_soft_dotted.h: Likewise.
22141         * lib/unictype/pr_space.h: Likewise.
22142         * lib/unictype/pr_titlecase.h: Likewise.
22143         * lib/unictype/pr_variation_selector.h: Likewise.
22144         * lib/unictype/pr_white_space.h: Likewise.
22145         * lib/unictype/sy_c_ident.h: Likewise.
22146         * lib/unictype/sy_c_whitespace.h: Likewise.
22147         * lib/unictype/sy_java_whitespace.h: Likewise.
22148         * modules/uni*/*: Bump version number of expected libunistring version.
22149         Reported by Simon Josefsson.
22150
22151 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22152
22153         useless-if-before-free: fix typo in --help and make the internal,
22154         automatic version date update process work once again.
22155         --help output contained a NUL character instead of the
22156         backslash-zero that was intended.  Also, the "must lie within
22157         the first 8 lines" line is on line 9, and hence not getting
22158         automatically updated.
22159         * build-aux/useless-if-before-free: Fix the former by adding a
22160         backslash, and the latter by condensing the three lines of what-it-does
22161         to a single line, leaving one line of slack for the future.
22162
22163 2011-01-09  Bruno Haible  <bruno@clisp.org>
22164
22165         uniwidth/width: Fix width of U+1D173..U+1D17A.
22166         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22167         symbolic_width, output_width_property_test): New functions.
22168         (main): Invoke output_nonspacing_property, output_width_property_test.
22169         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22170         U+1D173..U+1D17A.
22171         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22172         1.
22173         * modules/uniwidth/*: Bump version number of expected libunistring
22174         version.
22175         * modules/unilbrk/*: Likewise.
22176
22177 2011-01-08  Bruno Haible  <bruno@clisp.org>
22178
22179         uninorm tests: Preserve copyright of Unicode data file.
22180         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22181         Mention modifications.
22182
22183 2011-01-08  Bruno Haible  <bruno@clisp.org>
22184
22185         gen-uni-tables: Prepare for Unicode 5.2.0.
22186         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22187         (debug_output_lbp, output_lbp): Update.
22188
22189 2011-01-08  Bruno Haible  <bruno@clisp.org>
22190
22191         unilbrk: Clarify gen-uni-tables.c code.
22192         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22193         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22194         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22195
22196 2011-01-07  Bruno Haible  <bruno@clisp.org>
22197
22198         strtod: Restore errno when successfully parsing Infinity or NaN.
22199         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22200         restore the original errno.
22201
22202 2011-01-07  Bruno Haible  <bruno@clisp.org>
22203
22204         remove test: Avoid failure on HP-UX 11.
22205         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22206
22207 2011-01-07  Bruno Haible  <bruno@clisp.org>
22208
22209         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22210         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22211         error code.
22212
22213 2011-01-07  Pádraig Brady <P@draigBrady.com>
22214
22215         ignore-value: fixup comments, and add Eric Blake
22216         as an author since he rewrote the macros.
22217         * lib/ignore-value.h (ignore_value):  State that
22218         we now support aggregates.  Also specify exactly
22219         when the GCC warn_unused_result feature was added.
22220
22221 2011-01-06  Eric Blake  <eblake@redhat.com>
22222
22223         ignore-value: support aggregate types
22224         * lib/ignore-value.h (ignore_value): Provide separate gcc
22225         definition.
22226         * modules/ignore-value-tests: New test module.
22227         * tests/test-ignore-value.c: New test.
22228
22229         maint.mk: improve sc_prohibit_strcmp regex
22230         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22231         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22232         definition of STRNEQ.
22233
22234         signal: work around Haiku issue with SIGBUS
22235         * lib/siglist.h: Add comment.
22236         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22237         strsignal's favoring of SIGSEGV.
22238         * tests/test-signal.c (main): Avoid test failure.
22239         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22240         Reported by Scott McCreary.
22241
22242         maint.mk: add pre-release check to ensure submodule commits are public
22243         * top/maint.mk (public-submodule-commit): New rule.
22244         (submodule-checks): New variable.
22245         (alpha beta stable): Depend on the variable.
22246
22247 2011-01-05  Pádraig Brady <P@draigBrady.com>
22248         and Jim Meyering  <meyering@redhat.com>
22249
22250         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22251         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22252         (ATTRIBUTE_DEPRECATED): Define.
22253         (_ignore_case): New function.
22254         (ignore_value): New macro, to replace the old function.
22255         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22256         * modules/ignore-value (Depends-on): Add stdint.
22257
22258 2011-01-04  Eric Blake  <eblake@redhat.com>
22259
22260         doc: regenerate INSTALL
22261         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22262         @firstparagraphindent support, now that autoconf dropped it.
22263         (INSTALL_PRELUDE): Reinstate old macro.
22264         * doc/install.texi: Resync from autoconf.
22265         * doc/INSTALL: Reflect recent autoconf update.
22266         * doc/INSTALL.ISO: Likewise.
22267         * doc/INSTALL.UTF-8: Likewise.
22268         Reported by Karl Berry.
22269
22270 2011-01-04  Bruce Korb  <address@hidden>
22271
22272         git-version-gen: avoid a sub-shell
22273         * build-aux/git-version-gen: Redirect stderr in `...` via
22274         "exec 2>...", rather than via an added sub-shell.
22275
22276 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22277
22278         git-version-gen: use (...) rather than sh -c '...'
22279         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22280         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22281
22282 2011-01-03  Jim Meyering  <meyering@redhat.com>
22283
22284         git-version-gen: convert leading TABs to spaces
22285         * build-aux/git-version-gen: Expand leading TABs.
22286
22287         git-version-gen: handle failed "git rev-list"
22288         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22289         from git and proceeding as if it had succeeded but printed no SHA1
22290         checksums, suppress the diagnostic and handle the failure.
22291         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22292
22293         git-version-gen: include command name in one more diagnostic
22294         * build-aux/git-version-gen: When the required .tarball-version file
22295         was missing or unreadable, you might see the diagnostic from "cat",
22296         but no trace of the name of the invoking script.  Now, you still see
22297         the diagnostic from cat, but also get one from "git-version-gen: ".
22298         Inspired by a patch from Bruce Korb.
22299
22300         update-copyright: adjust test to match changed code
22301         * tests/test-update-copyright.sh: Change test's expected output
22302         to match new actual output.
22303
22304 2011-01-02  Bruno Haible  <bruno@clisp.org>
22305
22306         getlogin_r: Avoid test failure on HP-UX 11.
22307         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22308         ERANGE when the second argument is zero.
22309         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22310         portability problem.
22311
22312 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22313
22314         * build-aux/update-copyright: doc Simon's changes
22315
22316 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22317
22318         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22319         environment variable.
22320
22321 2011-01-02  Bruno Haible  <bruno@clisp.org>
22322
22323         unigbrk: Avoid gcc warnings.
22324         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22325         unused variable.
22326         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22327         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22328         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22329         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22330         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22331         Change type of first argument to 'const char *'.
22332         (main): Remove unused variable.
22333         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22334         type of first argument to 'const char *'.
22335         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22336         Likewise.
22337         (main): Change type of variable 's'.
22338         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22339         to 'int'.
22340
22341 2011-01-02  Bruno Haible  <bruno@clisp.org>
22342
22343         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22344         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22345         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22346         bug.
22347         * lib/pwrite.c: Undo 2010-12-31 patch.
22348         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22349
22350 2011-01-02  Bruno Haible  <bruno@clisp.org>
22351
22352         pread: Fix test whether it works.
22353         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22354
22355 2011-01-02  Bruno Haible  <bruno@clisp.org>
22356
22357         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22358         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22359         ends in "6". Don't require a specific month name. Try also the locale
22360         names found on HP-UX 11 and Solaris 7.
22361
22362 2011-01-02  Bruno Haible  <bruno@clisp.org>
22363
22364         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22365         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22366         C linkage.
22367         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22368
22369 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22370
22371         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22372         for consistency, since the "cluster" term is not used elsewhere.
22373         * lib/unigbrk.in.h: Update name.
22374         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22375         * lib/unigbrk/u16-grapheme-next.c: Update name.
22376         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22377         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22378         * lib/unigbrk/u32-grapheme-next.c: Update name.
22379         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22380         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22381         * lib/unigbrk/u8-grapheme-next.c: Update name.
22382         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22383         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22384         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22385         Suggested by Bruno Haible.
22386
22387 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22388
22389         Remove module 'u8-grapheme-len' as too redundant with
22390         'u8-grapheme-next'.
22391         * modules/unigbrk/u8-grapheme-len: Delete file.
22392         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22393         * lib/unigbrk.in.h: Remove prototype for deleted function.
22394         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22395         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22396
22397         Remove module 'u16-grapheme-len' as too redundant with
22398         'u16-grapheme-next'.
22399         * modules/unigbrk/u16-grapheme-len: Delete file.
22400         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22401         * lib/unigbrk.in.h: Remove prototype for deleted function.
22402         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22403         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22404
22405         Remove module 'u32-grapheme-len' as too redundant with
22406         'u32-grapheme-next'.
22407         * modules/unigbrk/u32-grapheme-len: Delete file.
22408         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22409         * lib/unigbrk.in.h: Remove prototype for deleted function.
22410         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22411         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22412
22413         Suggested by Bruno Haible.
22414
22415 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22416
22417         * unigbrk.in.h: Fix typo: "ben" => "been".
22418         Reported by Bruno Haible.
22419
22420 2011-01-01  Jim Meyering  <meyering@redhat.com>
22421
22422         maint: update almost all copyright ranges to include 2011
22423         Run the new "make update-copyright" rule.
22424
22425 2011-01-01  Jim Meyering  <meyering@redhat.com>
22426
22427         maint: update-copyright: exempt doc/INSTALL*
22428         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22429         since they are generated.  Suggested by Bruno Haible.
22430
22431 2011-01-01  Jim Meyering  <meyering@redhat.com>
22432
22433         maint: refine the update-copyright rule
22434         * Makefile (update-copyright): Also exclude any file that includes
22435         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22436         code that merely generates the comment.
22437
22438 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22439
22440         New module 'u8-grapheme-len'.
22441         * modules/unigbrk/u8-grapheme-len: New file.
22442         * modules/unigbrk/u8-grapheme-len-tests: New file.
22443         * lib/unigbrk.in.h: Add prototype for new function.
22444         * lib/unigbrk/u8-grapheme-len.c: New file.
22445         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22446
22447         New module 'u16-grapheme-len'.
22448         * modules/unigbrk/u16-grapheme-len: New file.
22449         * modules/unigbrk/u16-grapheme-len-tests: New file.
22450         * lib/unigbrk.in.h: Add prototype for new function.
22451         * lib/unigbrk/u16-grapheme-len.c: New file.
22452         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22453
22454         New module 'u32-grapheme-len'.
22455         * modules/unigbrk/u32-grapheme-len: New file.
22456         * modules/unigbrk/u32-grapheme-len-tests: New file.
22457         * lib/unigbrk.in.h: Add prototype for new function.
22458         * lib/unigbrk/u32-grapheme-len.c: New file.
22459         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22460
22461         New module 'u8-grapheme-next'.
22462         * modules/unigbrk/u8-grapheme-next: New file.
22463         * modules/unigbrk/u8-grapheme-next-tests: New file.
22464         * lib/unigbrk.in.h: Add prototype for new function.
22465         * lib/unigbrk/u8-grapheme-next.c: New file.
22466         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22467
22468         New module 'u16-grapheme-next'.
22469         * modules/unigbrk/u16-grapheme-next: New file.
22470         * modules/unigbrk/u16-grapheme-next-tests: New file.
22471         * lib/unigbrk.in.h: Add prototype for new function.
22472         * lib/unigbrk/u16-grapheme-next.c: New file.
22473         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22474
22475         New module 'u32-grapheme-next'.
22476         * modules/unigbrk/u32-grapheme-next: New file.
22477         * modules/unigbrk/u32-grapheme-next-tests: New file.
22478         * lib/unigbrk.in.h: Add prototype for new function.
22479         * lib/unigbrk/u32-grapheme-next.c: New file.
22480         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22481
22482         New module 'u8-grapheme-prev'.
22483         * modules/unigbrk/u8-grapheme-prev: New file.
22484         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22485         * lib/unigbrk.in.h: Add prototype for new function.
22486         * lib/unigbrk/u8-grapheme-prev.c: New file.
22487         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22488
22489         New module 'u16-grapheme-prev'.
22490         * modules/unigbrk/u16-grapheme-prev: New file.
22491         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22492         * lib/unigbrk.in.h: Add prototype for new function.
22493         * lib/unigbrk/u16-grapheme-prev.c: New file.
22494         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22495
22496         New module 'u32-grapheme-prev'.
22497         * modules/unigbrk/u32-grapheme-prev: New file.
22498         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22499         * lib/unigbrk.in.h: Add prototype for new function.
22500         * lib/unigbrk/u32-grapheme-prev.c: New file.
22501         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22502
22503         New module 'u8-grapheme-breaks'.
22504         * modules/unigbrk/u8-grapheme-breaks: New file.
22505         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22506         * lib/unigbrk.in.h: Add prototype for new function.
22507         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22508         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22509
22510         New module 'u16-grapheme-breaks'.
22511         * modules/unigbrk/u16-grapheme-breaks: New file.
22512         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22513         * lib/unigbrk.in.h: Add prototype for new function.
22514         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22515         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22516
22517         New module 'u32-grapheme-breaks'.
22518         * modules/unigbrk/u32-grapheme-breaks: New file.
22519         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22520         * lib/unigbrk.in.h: Add prototype for new function.
22521         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22522         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22523
22524         New module 'ulc-grapheme-breaks'.
22525         * modules/unigbrk/ulc-grapheme-breaks: New file.
22526         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22527         * m4/locale-ar.m4: New file.
22528         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22529         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22530         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22531
22532 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22533
22534         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22535         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22536         modified how this file was generated before I initially submitted
22537         the module, but failed to regenerate it.  This meant that several
22538         of the level2 entries were wrong.
22539         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22540         Remove the division-by-2 that is folded into the table now that
22541         gbrkprop.h has been regenerated properly.  Now -1 entries are
22542         handled correctly.
22543
22544         New module 'unigbrk/uc-gbrk-prop-tests'.
22545         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22546         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22547         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22548         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22549
22550 2011-01-01  Bruno Haible  <bruno@clisp.org>
22551
22552         Avoid use of hexadecimal escapes.
22553         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22554         instead of hexadecimal escapes.
22555
22556 2011-01-01  Jim Meyering  <meyering@redhat.com>
22557
22558         maint: new rule to update copyright year ranges
22559         * Makefile (update-copyright): New rule.
22560
22561         maint: indent with TABs in Makefile
22562         * Makefile: Expand leading sequences of spaces to TABs
22563
22564         version-etc: update the copyright year it reports
22565         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22566
22567 2010-12-31  Bruno Haible  <bruno@clisp.org>
22568
22569         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22570         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22571         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22572         zero.
22573
22574 2010-12-31  Bruno Haible  <bruno@clisp.org>
22575
22576         pwrite: Work around HP-UX 11.11 bug.
22577         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22578         works and set REPLACE_PWRITE if not.
22579         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22580         function.
22581         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22582
22583 2010-12-31  Bruno Haible  <bruno@clisp.org>
22584
22585         pread: Work around HP-UX 11 bugs.
22586         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22587         and set REPLACE_PREAD if not.
22588         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22589
22590 2010-12-31  Eric Blake  <eblake@redhat.com>
22591
22592         nl_langinfo: fix YESEXPR on Irix 6.5
22593         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22594         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22595         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22596         it.
22597
22598 2010-12-31  Bruno Haible  <bruno@clisp.org>
22599
22600         iconv: Document HP-UX 11 bug.
22601         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22602
22603 2010-12-31  Bruno Haible  <bruno@clisp.org>
22604
22605         ldexpl: Fix link error on HP-UX 11.
22606         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22607         LDEXPL_LIBM, using $ISNANL_LIBM.
22608
22609 2010-12-31  Eric Blake  <eblake@redhat.com>
22610
22611         ftello: avoid compilation failure with SunStudio c89
22612         * lib/ftello.c (ftello): Use lseek, not llseek.
22613
22614         tests: avoid failing coreutils tests on cygwin
22615         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22616         (create_exe_shims_): Return 0 when skipping.
22617
22618 2010-12-31  Bruno Haible  <bruno@clisp.org>
22619
22620         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22621         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22622
22623 2010-12-31  Bruno Haible  <bruno@clisp.org>
22624
22625         waitpid: Fix link error in C++ mode.
22626         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22627
22628 2010-12-31  Bruno Haible  <bruno@clisp.org>
22629
22630         isnan: Use GCC built-ins when possible.
22631         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22632         __builtin_isnan.
22633         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22634         (isnan): Define using GCC built-ins for GCC >= 4.0.
22635
22636 2010-12-31  Bruno Haible  <bruno@clisp.org>
22637
22638         isnand: Fix mistake.
22639         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22640         __builtin_isnand.
22641
22642 2010-12-31  Bruno Haible  <bruno@clisp.org>
22643
22644         open: Avoid C++ error on HP-UX 11.
22645         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22646
22647 2010-12-31  Bruno Haible  <bruno@clisp.org>
22648
22649         time_r: Add missing declarations on HP-UX 11.
22650         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22651         instead of HAVE_LOCALTIME_R.
22652         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22653         HAVE_LOCALTIME_R always.
22654         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22655         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22656         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22657         HAVE_LOCALTIME_R.
22658         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22659         * doc/posix-functions/localtime_r.texi: Likewise.
22660
22661 2010-12-29  Eric Blake  <eblake@redhat.com>
22662
22663         mountlist: tweak previous commit
22664         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22665         Reported by Paul Eggert.
22666
22667         mountlist: fix local drive detection on cygwin
22668         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22669         that works for cygwin.
22670
22671 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22672
22673         ftoastr, snprintf: ftoastr + snprintf module
22674         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22675         since the snprintf module now should be good enough here.
22676         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22677         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22678         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22679         GNULIB_SNPRINTF only for the test directory, and the latter
22680         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22681         seems to suffice by itself.
22682
22683 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22684
22685         alloca: one step towards thread-safety
22686         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22687         need for a static variable.  All callers changed.  This does not
22688         make the alloca replacement thread-safe, but it's one step.
22689
22690         tests: minor indenting change
22691         * tests/init.sh: Sync from coreutils housekeeping patch
22692         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22693         to keep lines within 80 columns.
22694
22695 2010-12-28  Jim Meyering  <meyering@redhat.com>
22696
22697         regex: don't infloop on persistent failing calloc
22698         * lib/regexec.c (build_trtable): Return failure indication upon
22699         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22700         In glibc, this was fixed for version 2.13:
22701         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22702
22703 2010-12-28  Bruno Haible  <bruno@clisp.org>
22704             Paul Eggert <eggert@cs.ucla.edu>
22705
22706         linkat: Make implementation robust against system behaviour variations.
22707         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22708         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22709         way, and to -2 if it needs a generic runtime test.
22710         * lib/linkat.c (solaris_optimized_link_immediate,
22711         solaris_optimized_link_follow): New functions.
22712         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22713         (check_same_link): Use it.
22714
22715 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22716
22717         New module 'unigbrk/base'.
22718         * modules/unigbrk/base: New file.
22719         * lib/unigbrk.in.h: New file.
22720
22721         New module 'unigbrk/uc-gbrk-prop'.
22722         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22723         * modules/unigbrk/uc-gbrk-prop: New file.
22724         * lib/unigbrk/gbrkprop.h: New file.
22725         * lib/unigbrk/uc-gbrk-prop.c: New file.
22726
22727         New module 'unigbrk/uc-is-grapheme-break'.
22728         * modules/unigbrk/uc-is-grapheme-break: New file.
22729         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22730         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22731         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22732         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22733         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22734
22735         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22736
22737 2010-12-27  Bruno Haible  <bruno@clisp.org>
22738
22739         linkat test: Avoid failure on Solaris 11 2010-11.
22740         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22741
22742 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22743
22744         utimens: work around glibc rounding bug on more platforms
22745         * lib/utimens.c (fdutimens): Work around rounding bug even if
22746         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22747         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22748
22749 2010-12-27  Bruno Haible  <bruno@clisp.org>
22750
22751         select tests: Improve comments.
22752         * tests/test-select.c (do_select): Add comments.
22753
22754 2010-12-27  Bruno Haible  <bruno@clisp.org>
22755
22756         select tests: Safer way of handling timeout.
22757         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22758         at every invocation.
22759
22760 2010-12-27  Bruno Haible  <bruno@clisp.org>
22761
22762         select tests: Use 'bool' where appropriate.
22763         * tests/test-select.c (connect_to_socket): Change argument type to
22764         'bool'.
22765
22766 2010-12-27  Bruno Haible  <bruno@clisp.org>
22767
22768         select tests: Use existing modules.
22769         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22770         (configure.ac): Don't test for unistd.h.
22771         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22772         declared in <unistd.h>.
22773
22774 2010-12-27  Bruno Haible  <bruno@clisp.org>
22775
22776         mbrtowc: Work around a Solaris 7 bug.
22777         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22778         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22779         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22780         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22781         MBRTOWC_NULL_ARG1_BUG.
22782         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22783         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22784         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22785         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22786
22787 2010-12-27  Jim Meyering  <meyering@redhat.com>
22788
22789         read-file.c: tweak syntax
22790         * lib/read-file.c (fread_file): Remove space after "*" in function
22791         definitions.
22792
22793 2010-12-27  Bruno Haible  <bruno@clisp.org>
22794
22795         times test: Avoid gcc warnings on OSF/1.
22796         * tests/test-times.c (main): Cast printf arguments from clock_t to
22797         'long int'.
22798
22799 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22800
22801         utimens: work around glibc rounding bug on older Linux kernels
22802         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22803         on Linux with a glibc whose utimes might not work, then work
22804         around a longstanding glibc bug involving rounding rather than
22805         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22806         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22807
22808 2010-12-26  Bruno Haible  <bruno@clisp.org>
22809
22810         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22811         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22812         _GL_CXXALIAS_SYS.
22813         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22814
22815 2010-12-26  Bruno Haible  <bruno@clisp.org>
22816
22817         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22818         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22819         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22820         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22821         looking for the declaration.
22822         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22823         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22824         problem.
22825         * doc/posix-functions/inet_pton.texi: Likewise.
22826
22827 2010-12-26  Bruno Haible  <bruno@clisp.org>
22828
22829         arpa_inet: Use the common idioms with C++ support.
22830         * lib/arpa_inet.in.h: Include c++defs.h.
22831         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22832         support.
22833         * modules/arpa_inet (Depends-on): Add c++defs.
22834         (Makefile.am): Substitute the contents of c++defs.h.
22835         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22836         * modules/arpa_inet-c++-tests: New file.
22837         * tests/test-arpa_inet-c++.cc: New file.
22838
22839 2010-12-25  Bruno Haible  <bruno@clisp.org>
22840
22841         Fix more C++ link errors on Solaris 8.
22842         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22843         $(LIB_EACCESS).
22844         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22845         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22846         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22847         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22848         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22849
22850 2010-12-25  Bruno Haible  <bruno@clisp.org>
22851
22852         printf-posix: Fix link error when a non-GCC compiler is used.
22853         * lib/stdio.in.h (printf): When not using GCC, override printf
22854         correctly.
22855         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22856
22857 2010-12-25  Bruno Haible  <bruno@clisp.org>
22858
22859         strerror_r-posix: Update doc.
22860         * doc/posix-functions/strerror_r.texi: Update doc about the return
22861         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22862
22863 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22864
22865         utimens: simplify the logic of the previous change
22866         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22867         This should not affect whether the test succeeds or fails.
22868
22869         utimens: configure better on hosts with NFS clock skew
22870         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22871         uses the clock of the local host.  It might use the clock of the
22872         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22873         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22874
22875 2010-12-25  Bruno Haible  <bruno@clisp.org>
22876
22877         ptsname test: Avoid failure on Solaris.
22878         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22879         open a pseudo-terminal; don't use BSD-style ptys.
22880         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22881
22882 2010-12-25  Bruno Haible  <bruno@clisp.org>
22883
22884         ptsname: Avoid ERANGE failure on some systems.
22885         * lib/ptsname.c (buffer): Increase size.
22886
22887 2010-12-25  Bruno Haible  <bruno@clisp.org>
22888
22889         rename, renameat: Avoid test failures at NFS mounted locations.
22890         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22891         so that subsequent mkdir calls succeed.
22892
22893 2010-12-25  Bruno Haible  <bruno@clisp.org>
22894
22895         iswblank: Fix C++ link error on Solaris 8.
22896         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22897         _GL_FUNCDECL_SYS.
22898
22899 2010-12-25  Bruno Haible  <bruno@clisp.org>
22900
22901         unistd: Fix C++ link error on Solaris 8.
22902         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22903
22904 2010-12-25  Bruno Haible  <bruno@clisp.org>
22905
22906         readlink doc: Mention an old glibc bug.
22907         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22908
22909 2010-12-25  Bruno Haible  <bruno@clisp.org>
22910
22911         fcntl-h: Fix for use of C++ on glibc systems.
22912         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22913         also on glibc systems in C++ mode.
22914         Reported by Gary V. Vaughan <gary@gnu.org>.
22915
22916 2010-12-25  Bruno Haible  <bruno@clisp.org>
22917
22918         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22919         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22920
22921 2010-12-25  Bruno Haible  <bruno@clisp.org>
22922
22923         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22924         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22925         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22926         test whether truncl works according to ISO C 99 with IEC 60559.
22927         * m4/truncl-ieee.m4: New file.
22928         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22929         m4/signbit.m4.
22930         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22931
22932 2010-12-25  Bruno Haible  <bruno@clisp.org>
22933
22934         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22935         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22936         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22937         test whether ceill works according to ISO C 99 with IEC 60559.
22938         * m4/ceill-ieee.m4: New file.
22939         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22940         m4/signbit.m4.
22941         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22942
22943 2010-12-25  Bruno Haible  <bruno@clisp.org>
22944
22945         Ensure all prerequisites of <wchar.h> are included.
22946         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22947         before <wchar.h>.
22948         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22949         gl_MBRLEN_NUL_RETVAL): Likewise.
22950         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22951         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22952         AC_FUNC_MBRTOWC): Likewise.
22953         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22954         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22955         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22956         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22957         Likewise.
22958         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22959         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22960         (gl_WCHAR_H): Improve comments.
22961         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22962
22963 2010-12-25  Bruno Haible  <bruno@clisp.org>
22964
22965         strtok_r: Fix C syntax error in autoconf macro.
22966         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22967         characters in test program.
22968
22969 2010-12-24  Bruno Haible  <bruno@clisp.org>
22970
22971         ceil, trunc, round: Fix gcc warnings.
22972         * lib/ceil.c (MIN): Undefine before redefining.
22973         * lib/trunc.c (MIN): Likewise.
22974         * lib/round.c (MIN): Likewise.
22975         Include <math.h> first.
22976
22977 2010-12-24  Bruno Haible  <bruno@clisp.org>
22978
22979         select tests: Avoid failures on OSF/1 5.1.
22980         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22981         failure of closing the last socket; it may fail with ECONNRESET.
22982
22983 2010-12-24  Eric Blake  <eblake@redhat.com>
22984
22985         stdint: avoid HP-UX 10.20 preprocessor bug
22986         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22987         than #if.
22988         * tests/test-floor2.c (main): Likewise.
22989         Reported by Peter O'Gorman.
22990
22991         pipe: make obsoletion transition easier
22992         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22993         * modules/pipe (Files): Include revived file.
22994         (Include): Drop reference, to mirror getdate's behavior.
22995
22996 2010-12-24  Bruno Haible  <bruno@clisp.org>
22997
22998         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22999         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23000         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23001         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23002
23003 2010-12-24  Bruno Haible  <bruno@clisp.org>
23004
23005         gethostname: Ensure declaration on NonStop Kernel.
23006         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23007         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23008
23009 2010-12-24  Bruno Haible  <bruno@clisp.org>
23010
23011         sys_select: Ensure all necessary types on NonStop Kernel.
23012         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23013         include <sys/time.h>.
23014         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23015         NonStop Kernel.
23016         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23017
23018 2010-12-24  Bruno Haible  <bruno@clisp.org>
23019
23020         sys_select: Remove unneeded include.
23021         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23022         have <sys/select.h>.
23023
23024 2010-12-24  Bruno Haible  <bruno@clisp.org>
23025
23026         gethostname: Provide a fallback for HOST_NAME_MAX.
23027         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23028         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23029         instead.
23030         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23031
23032 2010-12-24  Bruno Haible  <bruno@clisp.org>
23033
23034         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23035         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23036         (SA_RESTART): Likewise.
23037         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23038
23039 2010-12-24  Bruno Haible  <bruno@clisp.org>
23040
23041         signal: Define NSIG.
23042         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23043         * tests/test-signal.c (nsig): New variable.
23044         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23045
23046 2010-12-24  Bruno Haible  <bruno@clisp.org>
23047
23048         rename, renameat: Avoid test failures on OSF/1 5.1.
23049         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23050         alternative error codes.
23051         * tests/test-renameat.c (main): Likewise.
23052
23053 2010-12-24  Bruno Haible  <bruno@clisp.org>
23054
23055         *printf: Detect large precisions bug on Solaris 10/SPARC.
23056         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23057         by Paul Eggert.
23058         * tests/test-snprintf-posix.h (test_function): Add this test code here
23059         too.
23060         * tests/test-sprintf-posix.h (test_function): Likewise.
23061         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23062         * tests/test-vasprintf-posix.c (test_function): Likewise.
23063         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23064         around by gnulib.
23065         * doc/posix-functions/printf.texi: Likewise.
23066         * doc/posix-functions/snprintf.texi: Likewise.
23067         * doc/posix-functions/sprintf.texi: Likewise.
23068         * doc/posix-functions/vfprintf.texi: Likewise.
23069         * doc/posix-functions/vprintf.texi: Likewise.
23070         * doc/posix-functions/vsnprintf.texi: Likewise.
23071         * doc/posix-functions/vsprintf.texi: Likewise.
23072         * doc/posix-functions/dprintf.texi: Undo last commit.
23073         * doc/posix-functions/vdprintf.texi: Likewise.
23074
23075 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23076
23077         tests: port test-fdutimensat.c to Solaris 8
23078         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23079         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23080         On Solaris 8, it fails with errno == ENOSYS, because there is no
23081         futimens (so it can't use the fd), and there is no lutimens (so it
23082         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23083
23084         vsnprintf: make more consistent with snprintf; doc fixes
23085
23086         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23087         the byte count return problem was promoted from the snprintf-posix
23088         to the snprintf module.
23089         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23090         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23091         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23092         * tests/test-snprintf.c (main): Check the byte count returned.
23093         * tests/test-vsnprintf.c (main): Likewise.
23094
23095 2010-12-23  Eric Blake  <eblake@redhat.com>
23096
23097         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23098         * modules/sigpipe (License): Relax license.
23099
23100 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23101
23102         doc: document Solaris printf bug with large float precisions
23103         * doc/posix-functions/dprintf.texi (dprintf):
23104         * doc/posix-functions/fprintf.texi (fprintf):
23105         * doc/posix-functions/printf.texi (printf):
23106         * doc/posix-functions/snprintf.texi (snprintf):
23107         * doc/posix-functions/sprintf.texi (sprintf):
23108         * doc/posix-functions/vdprintf.texi (vdprintf):
23109         * doc/posix-functions/vfprintf.texi (vfprintf):
23110         * doc/posix-functions/vprintf.texi (vprintf):
23111         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23112         * doc/posix-functions/vsprintf.texi (vsprintf):
23113         Mention that these functions mishandle large floating point
23114         precisions on Solaris 10.  The same bug is also present in Solaris
23115         8, and I assume earlier.  This causes "cd gnulib-tests; make
23116         check" to fail on Solaris 8 (and I assume, later) when building
23117         the latest coreutils, in test-vasprintf-posix's call to
23118         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23119         the wide flavors (e.g., wprintf) so this patch just updates the
23120         documentation for the narrow ones.
23121
23122         test-posixtm.c: add two tests
23123         * tests/test-posixtm.c: Add two tests, to highlight the
23124         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23125         around this bug; this is merely to document it.
23126
23127 2010-12-22  Bruno Haible  <bruno@clisp.org>
23128
23129         getlogin_r: Work around portability problem on OSF/1.
23130         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23131         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23132         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23133         test for a truncated result.
23134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23135         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23136         * modules/getlogin_r (Depends-on): Add memchr.
23137         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23138
23139 2010-12-22  Bruno Haible  <bruno@clisp.org>
23140
23141         ptsname: Avoid test failure on OSF/1 5.1.
23142         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23143         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23144         (same_slave): New function.
23145         (main): Use it to compare ptsname's result with the expected file name.
23146
23147 2010-12-22  Bruno Haible  <bruno@clisp.org>
23148
23149         Port extended stdio modules to HP NonStop Kernel.
23150         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23151         macros.
23152         * lib/fbufmode.c: Update comments.
23153         * lib/fflush.c: Likewise.
23154         * lib/fpurge.c: Likewise.
23155         * lib/freadable.c: Likewise.
23156         * lib/freadahead.c: Likewise.
23157         * lib/freading.c: Likewise.
23158         * lib/freadptr.c: Likewise.
23159         * lib/freadseek.c: Likewise.
23160         * lib/fseeko.c: Likewise.
23161         * lib/fseterr.c: Likewise.
23162         * lib/fwritable.c: Likewise.
23163         * lib/fwriting.c: Likewise.
23164         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23165
23166 2010-12-22  Bruno Haible  <bruno@clisp.org>
23167
23168         ttyname_r: Work around bug on OSF/1 5.1.
23169         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23170         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23171         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23172         present.
23173         * lib/ttyname_r.c (ttyname_r): Update comments.
23174
23175 2010-12-22  Bruno Haible  <bruno@clisp.org>
23176
23177         round: Implement result sign according to IEEE 754.
23178         * lib/round.c (MIN, MINUS_ZERO): New macros.
23179         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23180         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23181         * tests/test-round-ieee.c (main): Likewise.
23182         * tests/test-roundl-ieee.c (main): Likewise.
23183
23184         trunc: Implement result sign according to IEEE 754.
23185         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23186         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23187         * tests/test-trunc2.c: Include minus-zero.h.
23188         (MINUS_ZERO): New macro.
23189         (trunc_reference): Keep in sync with lib/trunc.c.
23190         * tests/test-truncf2.c: Include minus-zero.h.
23191         (MINUS_ZERO): New macro.
23192         (truncf_reference): Keep in sync with lib/trunc.c.
23193         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23194         * tests/test-trunc-ieee.c (main): Likewise.
23195         * tests/test-truncl-ieee.c (main): Likewise.
23196
23197         ceil: Implement result sign according to IEEE 754.
23198         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23199         (FUNC): Return -0.0 for -1 < x < 0.
23200         * tests/test-ceil2.c: Include minus-zero.h.
23201         (MINUS_ZERO): New macro.
23202         (ceil_reference): Keep in sync with lib/ceil.c.
23203         * tests/test-ceilf2.c: Include minus-zero.h.
23204         (MINUS_ZERO): New macro.
23205         (ceilf_reference): Keep in sync with lib/ceil.c.
23206         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23207         * tests/test-ceil-ieee.c (main): Likewise.
23208         * tests/test-ceill-ieee.c (main): Likewise.
23209
23210         floor: Implement result sign according to IEEE 754.
23211         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23212         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23213         * tests/test-floorf2.c (floorf_reference): Likewise.
23214         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23215         * tests/test-floor-ieee.c (main): Likewise.
23216         * tests/test-floorl-ieee.c (main): Likewise.
23217
23218 2010-12-22  Bruno Haible  <bruno@clisp.org>
23219
23220         getaddrinfo: Update doc.
23221         * doc/posix-functions/gai_strerror.texi: Return type is also different
23222         on AIX and HP-UX.
23223
23224 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23225
23226         getaddrinfo, inet_ntop: Update doc for Solaris.
23227         * doc/posix-functions/gai_strerror.texi: Return type is also an
23228         issue on Solaris 9 and earlier.
23229         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23230         on Solaris 10 and earlier.
23231
23232 2010-12-21  Bruno Haible  <bruno@clisp.org>
23233
23234         New module 'roundl-ieee'.
23235         * modules/roundl-ieee: New file.
23236         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23237         test whether roundl works according to ISO C 99 with IEC 60559.
23238         * m4/roundl-ieee.m4: New file.
23239         * modules/roundl-ieee-tests: New file.
23240         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23241         * tests/test-roundl.c (main): Remove signbit tests.
23242         * modules/roundl-tests (Depends-on): Remove signbit.
23243         * doc/posix-functions/roundl.texi: Mention the new module.
23244
23245 2010-12-21  Bruno Haible  <bruno@clisp.org>
23246
23247         New module 'truncl-ieee'.
23248         * modules/truncl-ieee: New file.
23249         * modules/truncl-ieee-tests: New file.
23250         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23251         * tests/test-truncl.c (main): Remove signbit tests.
23252         * modules/truncl-tests (Depends-on): Remove signbit.
23253         * doc/posix-functions/truncl.texi: Mention the new module.
23254
23255 2010-12-21  Bruno Haible  <bruno@clisp.org>
23256
23257         New module 'ceill-ieee'.
23258         * modules/ceill-ieee: New file.
23259         * modules/ceill-ieee-tests: New file.
23260         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23261         * tests/test-ceill.c (main): Remove signbit tests.
23262         * modules/ceill-tests (Depends-on): Remove signbit.
23263         * doc/posix-functions/ceill.texi: Mention the new module.
23264
23265 2010-12-21  Bruno Haible  <bruno@clisp.org>
23266
23267         New module 'floorl-ieee'.
23268         * modules/floorl-ieee: New file.
23269         * modules/floorl-ieee-tests: New file.
23270         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23271         * tests/test-floorl.c (main): Remove signbit tests.
23272         * modules/floorl-tests (Depends-on): Remove signbit.
23273         * doc/posix-functions/floorl.texi: Mention the new module.
23274
23275 2010-12-21  Bruno Haible  <bruno@clisp.org>
23276
23277         New module 'round-ieee'.
23278         * modules/round-ieee: New file.
23279         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23280         whether round works according to ISO C 99 with IEC 60559.
23281         * m4/round-ieee.m4: New file.
23282         * modules/round-ieee-tests: New file.
23283         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23284         * tests/test-round1.c (main): Remove signbit tests.
23285         * modules/round-tests (Depends-on): Remove 'signbit'.
23286         * doc/posix-functions/round.texi: Mention the new module.
23287
23288 2010-12-21  Bruno Haible  <bruno@clisp.org>
23289
23290         New module 'trunc-ieee'.
23291         * modules/trunc-ieee: New file.
23292         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23293         whether trunc works according to ISO C 99 with IEC 60559.
23294         * m4/trunc-ieee.m4: New file.
23295         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23297         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23298         * modules/trunc-ieee-tests: New file.
23299         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23300         * tests/test-trunc1.c (main): Remove signbit tests.
23301         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23302         * doc/posix-functions/trunc.texi: Mention the new module.
23303
23304 2010-12-21  Bruno Haible  <bruno@clisp.org>
23305
23306         New module 'ceil-ieee'.
23307         * modules/ceil-ieee: New file.
23308         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23309         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23310         ISO C 99 with IEC 60559.
23311         * m4/ceil-ieee.m4: New file.
23312         * modules/ceil (Files): Add lib/ceil.c.
23313         (Depends-on): Add 'float'.
23314         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23315         * lib/math.in.h (ceil): New declaration.
23316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23317         REPLACE_CEIL.
23318         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23319         * modules/ceil-ieee-tests: New file.
23320         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23321         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23322         * doc/posix-functions/ceil.texi: Mention the new module.
23323
23324 2010-12-21  Bruno Haible  <bruno@clisp.org>
23325
23326         New module 'floor-ieee'.
23327         * modules/floor-ieee: New file.
23328         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23329         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23330         ISO C 99 with IEC 60559.
23331         * m4/floor-ieee.m4: New file.
23332         * modules/floor (Files): Add lib/floor.c.
23333         (Depends-on): Add 'float'.
23334         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23335         * lib/math.in.h (floor): New declaration.
23336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23337         REPLACE_FLOOR.
23338         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23339         * modules/floor-ieee-tests: New file.
23340         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23341         * tests/test-math-c++.cc: Check the signature of 'floor'.
23342         * doc/posix-functions/floor.texi: Mention the new module.
23343
23344 2010-12-21  Bruno Haible  <bruno@clisp.org>
23345
23346         New module 'roundf-ieee'.
23347         * modules/roundf-ieee: New file.
23348         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23349         test whether roundf works according to ISO C 99 with IEC 60559.
23350         * m4/roundf-ieee.m4: New file.
23351         * modules/roundf-ieee-tests: New file.
23352         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23353         * tests/test-roundf1.c (main): Remove signbit tests.
23354         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23355         * doc/posix-functions/roundf.texi: Mention the new module.
23356
23357 2010-12-21  Bruno Haible  <bruno@clisp.org>
23358
23359         New module 'truncf-ieee'.
23360         * modules/truncf-ieee: New file.
23361         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23362         test whether truncf works according to ISO C 99 with IEC 60559.
23363         * m4/truncf-ieee.m4: New file.
23364         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23366         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23367         * modules/truncf-ieee-tests: New file.
23368         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23369         * tests/test-truncf1.c (main): Remove signbit tests.
23370         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23371         * doc/posix-functions/truncf.texi: Mention the new module.
23372
23373 2010-12-21  Bruno Haible  <bruno@clisp.org>
23374
23375         New module 'ceilf-ieee'.
23376         * modules/ceilf-ieee: New file.
23377         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23378         test whether ceilf works according to ISO C 99 with IEC 60559.
23379         * m4/ceilf-ieee.m4: New file.
23380         * modules/ceilf-ieee-tests: New file.
23381         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23382         * tests/test-ceilf1.c (main): Remove signbit tests.
23383         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23384         * doc/posix-functions/ceilf.texi: Mention the new module.
23385
23386 2010-12-21  Bruno Haible  <bruno@clisp.org>
23387
23388         New module 'floorf-ieee'.
23389         * modules/floorf-ieee: New file.
23390         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23391         test whether floorf works according to ISO C 99 with IEC 60559.
23392         * m4/floorf-ieee.m4: New file.
23393         * modules/floorf-ieee-tests: New file.
23394         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23395         * tests/test-floorf1.c (main): Remove signbit tests.
23396         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23397         * doc/posix-functions/floorf.texi: Mention the new module.
23398
23399 2010-12-21  Bruno Haible  <bruno@clisp.org>
23400
23401         Support for minus zero in autoconf macros.
23402         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23403         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23404         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23405         * tests/minus-zero.h: Update comments.
23406
23407 2010-12-21  Bruno Haible  <bruno@clisp.org>
23408
23409         Tests for module 'ceil'.
23410         * modules/ceil-tests: New file.
23411         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23412         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23413
23414 2010-12-21  Bruno Haible  <bruno@clisp.org>
23415
23416         Tests for module 'floor'.
23417         * modules/floor-tests: New file.
23418         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23419         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23420
23421 2010-12-21  Bruno Haible  <bruno@clisp.org>
23422
23423         math: Fix indentation.
23424         * lib/math.in.h (floorf): Fix indentation.
23425
23426 2010-12-21  Bruno Haible  <bruno@clisp.org>
23427
23428         Fix cross-compilation guesses on Solaris.
23429         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23430         not match "solaris2.10".
23431         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23432         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23433         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23434
23435 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23436
23437         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23438         This fixes a problem observed with the latest coreutils snapshot
23439         that caused a test to fail on Solaris 8.  src/csplit.c's call
23440         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23441         earlier, instead of returning the number of bytes that would have
23442         been generated; this causes csplit to incorrectly report memory
23443         exhaustion.
23444         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23445         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23446         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23447         comments to match.
23448         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23449         Fix typo in matching older versions of Solaris: "solaris2.10"
23450         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23451         only for guessing while cross-compiling.
23452         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23453
23454 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23455
23456         ftoastr: fix comment again
23457         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23458         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23459         Also, simplify example a bit by using flags = 0.
23460
23461 2010-12-20  Bruno Haible  <bruno@clisp.org>
23462
23463         round*, trunc*: Update documentation regarding glibc.
23464         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23465         * doc/posix-functions/round.texi: Likewise.
23466         * doc/posix-functions/roundl.texi: Likewise.
23467         * doc/posix-functions/truncf.texi: Likewise.
23468         * doc/posix-functions/trunc.texi: Likewise.
23469         * doc/posix-functions/truncl.texi: Likewise.
23470
23471 2010-12-20  Bruno Haible  <bruno@clisp.org>
23472
23473         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23474         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23475         * doc/posix-functions/round.texi: Likewise.
23476         * doc/posix-functions/roundl.texi: Likewise.
23477
23478 2010-12-20  Bruno Haible  <bruno@clisp.org>
23479
23480         ttyname_r: Add missing declaration on HP-UX 11.
23481         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23482         HAVE_TTYNAME_R.
23483         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23484         declared. Set HAVE_TTYNAME_R always.
23485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23486         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23487         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23488         HAVE_TTYNAME_R.
23489         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23490
23491 2010-12-20  Bruno Haible  <bruno@clisp.org>
23492
23493         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23494         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23495         * doc/posix-functions/getlogin_r.texi: Likewise.
23496         * tests/test-getlogin.c: Include <errno.h>.
23497         (main): Avoid test failure on HP-UX 11.11.
23498         * tests/test-getlogin_r.c (main): Likewise.
23499
23500 2010-12-20  Bruno Haible  <bruno@clisp.org>
23501
23502         getlogin_r: Add missing declaration on HP-UX 11.
23503         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23504         declared also when it exists as a function.
23505         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23506
23507 2010-12-20  Bruno Haible  <bruno@clisp.org>
23508
23509         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23510         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23511         through wcrtomb.
23512
23513 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23514
23515         ftoastr: fix comment
23516         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23517         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23518
23519 2010-12-19  Bruno Haible  <bruno@clisp.org>
23520
23521         isnan: Ensure it is a macro.
23522         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23523         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23524         Solaris.
23525
23526 2010-12-19  Bruno Haible  <bruno@clisp.org>
23527
23528         ldexpl test: Fix link error on OSF/1 5.1.
23529         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23530
23531 2010-12-19  Bruno Haible  <bruno@clisp.org>
23532
23533         wctype: Make it work in C++ mode on OSF/1 5.1.
23534         * lib/wctype.in.h (iswblank): Declare but not define here.
23535         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23536         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23537         * modules/wctype (Files): Add lib/iswblank.c.
23538
23539 2010-12-19  Bruno Haible  <bruno@clisp.org>
23540
23541         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23542         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23543         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23544
23545 2010-12-19  Bruno Haible  <bruno@clisp.org>
23546
23547         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23548         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23549         _POSIX_PII_SOCKET.
23550         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23551         * doc/posix-functions/recvfrom.texi: Likewise.
23552         * doc/posix-functions/send.texi: Likewise.
23553         * doc/posix-functions/sendto.texi: Likewise.
23554
23555 2010-12-19  Bruno Haible  <bruno@clisp.org>
23556
23557         tcgetsid: Add missing declaration on OSF/1 5.1.
23558         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23559         HAVE_TCGETSID.
23560         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23561         Don't set HAVE_TCGETSID.
23562         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23563         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23564         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23565         HAVE_TCGETSID.
23566         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23567
23568 2010-12-19  Bruno Haible  <bruno@clisp.org>
23569
23570         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23571         * lib/stdio.in.h: During the include_next statement, let recursive
23572         includes of this file include only the system header file.
23573
23574 2010-12-19  Bruno Haible  <bruno@clisp.org>
23575
23576         iconv_open: Fix regression from 2010-12-04.
23577         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23578         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23579
23580 2010-12-19  Bruno Haible  <bruno@clisp.org>
23581
23582         stdbool test: Avoid a gcc warning.
23583         * tests/test-stdbool.c (main): Fail if e1 is false.
23584         Reported by Jim Meyering.
23585
23586 2010-12-19  Jim Meyering  <meyering@redhat.com>
23587
23588         setenv: restore to working order
23589         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23590         mistakenly removed.
23591         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23592         HAVE_SETENV.
23593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23594         HAVE_SETENV.
23595
23596 2010-12-19  Bruno Haible  <bruno@clisp.org>
23597
23598         Document some different function declarations on OSF/1 5.1.
23599         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23600         * doc/posix-functions/inet_ntop.texi: Likewise.
23601         * doc/posix-functions/gethostname.texi: Likewise.
23602         * lib/unistd.in.h (gethostname): Update comment.
23603
23604 2010-12-19  Bruno Haible  <bruno@clisp.org>
23605
23606         doc: Mention vasprintf-posix module.
23607         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23608         the 'vasprintf-posix' module.
23609         * doc/glibc-functions/vasprintf.texi: Likewise.
23610
23611 2010-12-19  Bruno Haible  <bruno@clisp.org>
23612
23613         unsetenv: Add missing declaration on OSF/1 5.1.
23614         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23615         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23616         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23618         not HAVE_UNSETENV.
23619         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23620         HAVE_UNSETENV.
23621         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23622
23623 2010-12-19  Bruno Haible  <bruno@clisp.org>
23624
23625         setenv: Add missing declaration on OSF/1 5.1.
23626         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23627         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23628         declared. Don't set HAVE_SETENV.
23629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23630         not HAVE_SETENV.
23631         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23632         HAVE_SETENV.
23633         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23634
23635 2010-12-19  Bruno Haible  <bruno@clisp.org>
23636
23637         nl_langinfo tests: Avoid gcc warning.
23638         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23639
23640 2010-12-19  Bruno Haible  <bruno@clisp.org>
23641
23642         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23643         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23644         _GL_CXXALIAS_SYS.
23645
23646 2010-12-19  Bruno Haible  <bruno@clisp.org>
23647
23648         stdbool: Relax test.
23649         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23650         address to 'bool' work in static initializer, for compilers other than
23651         GCC.
23652
23653 2010-12-19  Bruno Haible  <bruno@clisp.org>
23654
23655         ftello: Add missing declaration on OSF/1 5.1.
23656         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23657         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23659         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23660         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23661
23662 2010-12-19  Bruno Haible  <bruno@clisp.org>
23663
23664         fseeko: Add missing declaration on OSF/1 5.1.
23665         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23666         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23668         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23669         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23670
23671 2010-12-19  Bruno Haible  <bruno@clisp.org>
23672
23673         fchdir: Add missing declaration on OSF/1 5.1.
23674         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23675         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23677         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23678         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23679
23680 2010-12-19  Bruno Haible  <bruno@clisp.org>
23681
23682         relocatable-prog-wrapper: Separate from relocatable-prog.
23683         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23684         uninstall-relocwrapper rule here.
23685         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23686         Reported by Ian Beckwith <ianb@erislabs.net>.
23687
23688 2010-12-19  Bruno Haible  <bruno@clisp.org>
23689
23690         unistr/u8-mbsnlen: Add missing dependency.
23691         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23692         Reported by Ian Beckwith <ianb@erislabs.net>.
23693
23694 2010-12-19  Bruno Haible  <bruno@clisp.org>
23695
23696         iconv: Make it possible again to use this module without 'iconv-h'.
23697         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23698         if it is not defined.
23699         Reported by Ian Beckwith <ianb@erislabs.net>.
23700
23701 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23702
23703         acl: port to Solaris 8 when copying from tmpfs to ufs
23704         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23705         error number.  Problem observed on Solaris 8 with latest
23706         coreutils, with "mv A B", where A is on a tmpfs file system and B
23707         is on a ufs file system.  This caused coreutils' mv/part-symlink
23708         test to fail.
23709
23710         tests: set fail=0 at start
23711         * tests/init.sh (setup_): Move fail=0 initialization here ...
23712         (mktempd_): ... from here, so that tests can rely on fail being
23713         set to 0 initially.  This fixes a problem in coreutils; see:
23714         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23715
23716 2010-12-18  Bruno Haible  <bruno@clisp.org>
23717
23718         memmem-simple: Stylistic changes.
23719         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23720         Fix preprocessor directive indentation.
23721
23722 2010-12-15  Pádraig Brady <P@draigBrady.com>
23723
23724         memmem, memmem-simple: reorganize and expand empty needle check
23725         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23726         functional checks to memmem-simple so that one has a fully functional
23727         memmem by using just this module.
23728         Restrict the performance only check to the memmem module.
23729         Also expand the empty needle check to ensure the correct
23730         pointer is returned, not just a non NULL pointer.
23731         * doc/glibc-functions/memmem.texi: Rearrange the portability
23732         documentation to correlate with the rearranged checks.
23733         Clarify exactly how the memmem and memmem-simple modules
23734         relate to each other.
23735
23736 2010-12-15  Pádraig Brady <P@draigBrady.com>
23737             Bruno Haible  <bruno@clisp.org>
23738
23739         Improve cross-compilation guesses for uClibc.
23740         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23741         that uClibc does not have the glibc bug.
23742         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23743         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23744
23745 2010-12-14  Eric Blake  <eblake@redhat.com>
23746
23747         configmake: provide fallbacks for oldest supported autotools
23748         * m4/configmake.m4: New file.
23749         * modules/configmake (Files): Ship it.
23750         (configure.ac): Use it to guarantee fallbacks.
23751
23752 2010-12-13  Pádraig Brady <P@draigBrady.com>
23753
23754         read-file: Improve handling of large files
23755         * lib/read-file.c (fread_file): Minimize realloc()s
23756         for regular files, and better manage sizes around SIZE_MAX.
23757
23758 2010-12-13  Eric Blake  <eblake@redhat.com>
23759
23760         cloexec, fcntl: relax license
23761         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23762         consent from all contributors.
23763         * modules/fcntl (License): Likewise.
23764
23765 2010-12-10  Bruno Haible  <bruno@clisp.org>
23766
23767         Tests for module 'pipe-posix'.
23768         * modules/pipe-posix-tests: New file.
23769         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23770
23771 2010-12-10  Bruno Haible  <bruno@clisp.org>
23772
23773         pipe-posix: Make it work in C++ mode.
23774         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23775         (pipe): Use common idiom, not a macro definition.
23776         * lib/pipe.c: New file.
23777         * m4/pipe.m4: New file.
23778         * modules/pipe-posix (Description): Enhance.
23779         (Files): Add lib/pipe.c, m4/pipe.m4.
23780         (configure.ac): Invoke gl_FUNC_PIPE.
23781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23782         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23783         * tests/test-unistd-c++.cc: Check the signature of pipe.
23784
23785 2010-12-10  Bruno Haible  <bruno@clisp.org>
23786
23787         Rename module 'pipe' to 'spawn-pipe'.
23788         * modules/spawn-pipe: New file, renamed from modules/pipe.
23789         (Files, configure.ac, Makefile.am): Update.
23790         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23791         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23792         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23793         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23794         "spawn-pipe.h" instead of "pipe.h".
23795         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23796         to gl_SPAWN_PIPE.
23797         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23798         (Files, Makefile.am): Update.
23799         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23800         Update.
23801         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23802         Include "spawn-pipe.h" instead of "pipe.h".
23803         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23804         * lib/javacomp.c: Likewise.
23805         * lib/javaversion.c: Likewise.
23806         * lib/pipe-filter-gi.c: Likewise.
23807         * lib/pipe-filter-ii.c: Likewise.
23808         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23809         * modules/javacomp (Depends-on): Likewise.
23810         * modules/javaversion (Depends-on): Likewise.
23811         * modules/pipe-filter-gi (Depends-on): Likewise.
23812         * modules/pipe-filter-ii (Depends-on): Likewise.
23813         * MODULES.html.sh (Executing programs): Update.
23814         * NEWS: Mention the change.
23815
23816 2010-12-10  Eric Blake  <eblake@redhat.com>
23817
23818         pipe-posix: new module
23819         * modules/pipe-posix: New file.
23820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23821         (gl_UNISTD_H): Check for declaration.
23822         * modules/unistd (Makefile.am): Substitute it.
23823         * lib/unistd.in.h (pipe): Provide it for mingw.
23824         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23825         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23826
23827 2010-12-07  Bruno Haible  <bruno@clisp.org>
23828
23829         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23830         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23831         u8_strcmp_gnu.
23832         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23833
23834 2010-12-06  Bruno Haible  <bruno@clisp.org>
23835
23836         Update internal documentation.
23837         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23838
23839 2010-12-04  Bruno Haible  <bruno@clisp.org>
23840
23841         Put more information about failed tests into the test return codes.
23842         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23843         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23844         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23845         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23846         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23847         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23848         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23849         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23850         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23851         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23852         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23853         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23854         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23855         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23856         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23857         returns a bit mask.
23858         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23859         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23860         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23861         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23862         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23863         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23864         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23865         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23866         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23867         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23868         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23869         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23870         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23871         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23872         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23873         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23874         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23875         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23876         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23877         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23878         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23879         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23880         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23881         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23882         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23883         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23884         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23885         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23886         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23887         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23888         gl_PRINTF_PRECISION): Likewise.
23889         * m4/regex.m4 (gl_REGEX): Likewise.
23890         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23891         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23892         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23893         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23894         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23895         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23896         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23897         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23898         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23899         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23900         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23901         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23902         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23903         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23904         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23905         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23906         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23907         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23908         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23909         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23910         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23911         enumerated value.
23912         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23913
23914 2010-12-04  Bruno Haible  <bruno@clisp.org>
23915
23916         Update for Solaris 11 2010-11.
23917         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23918         Express, released in November 2010.
23919
23920 2010-12-04  Bruno Haible  <bruno@clisp.org>
23921
23922         nproc: Relax license.
23923         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23924         and Paul Eggert.
23925         Requested by Ludovic Courtès <ludo@gnu.org>.
23926
23927 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23928
23929         utimecmp: fine-grained src to nearby coarse-grained dest
23930
23931         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23932         and the source is on a file system with higher-resolution time
23933         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23934         not work, and the time stamps are close together, the algorithm to
23935         determine the exact resolution from the read-back mtime was buggy:
23936         it had a "!=" where it should have had an "==".  This bug has been
23937         in the code ever since it was introduced to gnulib.
23938         Problem reported by Dan Jacobson in
23939         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23940
23941 2010-11-30  Bruno Haible  <bruno@clisp.org>
23942
23943         strerror_r-posix: Fix autoconf test.
23944         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23945
23946 2010-11-28  Bruno Haible  <bruno@clisp.org>
23947             Paul Eggert  <eggert@cs.ucla.edu>
23948
23949         Tests for module 'getdomainname'.
23950         * modules/getdomainname-tests: New file.
23951         * tests/test-getdomainname.c: New file, based on
23952         tests/test-gethostname.c.
23953
23954 2010-11-28  Bruno Haible  <bruno@clisp.org>
23955             Paul Eggert  <eggert@cs.ucla.edu>
23956
23957         getdomainname: Use the system function when possible.
23958         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23959         (getdomainname): Replace if needed. Provide the declaration if it is
23960         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23961         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23962         (getdomainname): When the system has getdomainname, call the system
23963         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23964         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23965         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23966         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23967         the function if its second argument is of type 'int' or if it is found
23968         in libnsl.
23969         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23970         <sys/systeminfo.h> and sysinfo().
23971         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23973         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23974         HAVE_GETDOMAINNAME.
23975         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23976         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23977         * doc/glibc-functions/getdomainname.texi: Document the problems with
23978         the getdomainname declaration.
23979
23980 2010-11-28  Bruno Haible  <bruno@clisp.org>
23981
23982         sys_socket: Ensure ss_family field on AIX.
23983         * lib/sys_socket.in.h (ss_family): New macro definition.
23984         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23985         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23986         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23987         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23988         * modules/sys_socket (Makefile.am): Substitute
23989         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23990         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23991
23992 2010-11-27  Bruno Haible  <bruno@clisp.org>
23993
23994         readline: Improve configure output.
23995         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23996         "checking for readline..." result understandable.
23997
23998 2010-11-27  Bruno Haible  <bruno@clisp.org>
23999
24000         *printf-posix: Detect a bug on Solaris 10/x86.
24001         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24002         for floating-point output.
24003         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24004         directive.
24005         * tests/test-snprintf-posix.h (test_function): Likewise.
24006         * tests/test-sprintf-posix.h (test_function): Likewise.
24007         * tests/test-vasprintf-posix.c (test_function): Likewise.
24008         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24009         * doc/posix-functions/printf.texi: Likewise.
24010         * doc/posix-functions/snprintf.texi: Likewise.
24011         * doc/posix-functions/sprintf.texi: Likewise.
24012         * doc/posix-functions/vfprintf.texi: Likewise.
24013         * doc/posix-functions/vprintf.texi: Likewise.
24014         * doc/posix-functions/vsnprintf.texi: Likewise.
24015         * doc/posix-functions/vsprintf.texi: Likewise.
24016         * doc/glibc-functions/obstack_printf.texi: Likewise.
24017         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24018
24019 2010-11-27  Bruno Haible  <bruno@clisp.org>
24020
24021         Fix link error when module libunistring-optional is in use.
24022         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24023         * modules/striconveha-tests (Makefile.am): Likewise.
24024
24025 2010-11-27  Bruno Haible  <bruno@clisp.org>
24026
24027         regex: Mention link dependencies.
24028         * modules/regex (Link): New section.
24029         * modules/rpmatch (Link): Likewise.
24030         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24031
24032 2010-11-27  Bruno Haible  <bruno@clisp.org>
24033
24034         ftoastr: Fix compilation error on Solaris.
24035         * lib/ftoastr.c: Include <config.h>.
24036
24037 2010-11-27  Bruno Haible  <bruno@clisp.org>
24038
24039         getloadavg: Update documentation.
24040         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24041
24042 2010-11-27  Bruno Haible  <bruno@clisp.org>
24043
24044         sys_socket: Fix test whether the functions are declared.
24045         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24046         not <sys/select.h>.
24047
24048 2010-11-27  Bruno Haible  <bruno@clisp.org>
24049
24050         getpass: Make sure to get system declaration on some platforms.
24051         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24052         gl_USE_SYSTEM_EXTENSIONS.
24053         * modules/getpass (Depends-on): Add extensions.
24054
24055 2010-11-26  Bruno Haible  <bruno@clisp.org>
24056
24057         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24058         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24059         'iconv' module is present.
24060         (ICONV_CONST): New macro.
24061         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24062         ICONV_CONST.
24063         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24064         set ICONV_CONST.
24065         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24066         here.
24067         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24068         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24069         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24070         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24071         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24072         present.
24073
24074 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24075
24076         ftoastr: comment fix
24077         * lib/ftoastr.c: "little" -> "little or no" in comment
24078
24079 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24080
24081         stdint: port to GCC 4.3 + OSX + Octave
24082         On this platform, stdint.h is buggy and defines int64_t to long
24083         long int.  The replacement defined it to long int, causing
24084         problems with C++ style name mangling.  Instead, trust the system
24085         definition if INT64_MAX is defined, and likewise for the unsigned
24086         variant.   Problem reported by Jarno Rajahalme in
24087         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24088         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24089         and don't mess with int64_t and INT64_MAX in this case.
24090         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24091
24092 2010-11-24  Bruno Haible  <bruno@clisp.org>
24093
24094         doc: Corrections regarding MacOS X 10.4 and 10.5.
24095         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24096         MacOS X.
24097         Reported by Simon Josefsson.
24098
24099 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24100
24101         Uninstall ".bin" files installed by relocwrapper.
24102         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24103         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24104         unless it is already there.
24105
24106 2010-11-21  Bruno Haible  <bruno@clisp.org>
24107
24108         Update for NetBSD 5.0.
24109         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24110         NetBSD; the test fails on NetBSD 5.0.
24111         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24112         about NetBSD.
24113
24114 2010-11-21  Bruno Haible  <bruno@clisp.org>
24115
24116         Update for HP-UX 11.23 and HP-UX 11.31.
24117         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24118         HP-UX.
24119
24120 2010-11-21  Bruno Haible  <bruno@clisp.org>
24121
24122         Update for MacOS X 10.5.
24123         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24124         MacOS X; the test fails on MacOS X 10.5.8.
24125         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24126         about MacOS X.
24127
24128 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24129
24130         bootstrap: add bootstrap_sync option.
24131         See discussion at
24132         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24133         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24134         * build-aux/bootstrap: Accept --bootstrap-sync to update
24135         bootstrap if it is not identical to the local gnulib's
24136         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24137         enable this by default.  Accept --no-bootstrap-sync to disable
24138         it.
24139
24140 2010-11-20  Bruno Haible  <bruno@clisp.org>
24141
24142         Ensure that <features.h> is included before __GLIBC__ is tested.
24143         * lib/printf-parse.h: Include <features.h>.
24144         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24145         Reported by Mike Frysinger <vapier@gentoo.org>.
24146
24147         Ensure that <features.h> is included before __GLIBC__ is tested.
24148         * lib/wchar.in.h: Include <features.h>.
24149         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24150         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24151         Reported by Mike Frysinger <vapier@gentoo.org>.
24152
24153         Ensure that <features.h> is included before __GLIBC__ is tested.
24154         * lib/arpa_inet.in.h: Include <features.h>.
24155         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24156         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24157         Reported by Mike Frysinger <vapier@gentoo.org>.
24158
24159         Ensure that <features.h> is included before __GLIBC__ is tested.
24160         * build-aux/link-warning.h: Include <features.h>.
24161         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24162         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24163         Reported by Mike Frysinger <vapier@gentoo.org>.
24164
24165         Ensure that <features.h> is included before __GLIBC__ is tested.
24166         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24167         Reported by Mike Frysinger <vapier@gentoo.org>.
24168
24169 2010-11-20  Bruno Haible  <bruno@clisp.org>
24170
24171         memmem: Fix autoconf test.
24172         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24173
24174 2010-11-20  Bruno Haible  <bruno@clisp.org>
24175
24176         Port to uClibc.
24177         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24178         * lib/fcntl.in.h: Likewise.
24179         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24180         * lib/mbrtowc.c (mbrtowc): Likewise.
24181         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24182         * lib/strerror_r.c: Likewise.
24183         * lib/unistr/u8-strnlen.c: Likewise.
24184         * lib/vasnprintf.c (decimal_point_char): Likewise.
24185         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24186         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24187         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24188         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24189         * tests/test-sigaction.c (handler, main): Likewise.
24190         * lib/freading.h: Treat uClibc like a non-glibc platform.
24191         * lib/freading.c: Likewise.
24192         * lib/gettext.h: Likewise.
24193         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24194         Likewise.
24195         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24196         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24197         * lib/propername.c (proper_name_utf8): Likewise.
24198         * lib/spawn.in.h: Likewise.
24199         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24200         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24201         mem_cd_iconveh_internal): Likewise.
24202         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24203         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24204         strstr, strcasestr): Likewise.
24205         * lib/unicodeio.c (unicode_to_mb): Likewise.
24206         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24207         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24208         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24209         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24210         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24211         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24212         * lib/unistr/u8-stpncpy.c: Likewise.
24213         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24214         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24215         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24216         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24217         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24218         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24219         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24220         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24221         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24222         Likewise.
24223         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24224         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24225         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24226         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24227         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24228         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24229         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24230         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24231         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24232         * tests/test-striconveha.c (main): Likewise.
24233         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24234         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24235         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24236         * doc/posix-functions/getline.texi: Likewise.
24237         Reported by Mike Frysinger <vapier@gentoo.org>.
24238
24239 2010-11-20  Bruno Haible  <bruno@clisp.org>
24240
24241         nproc: Fix condition.
24242         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24243         HAVE_PTHREAD_AFFINITY_NP.
24244
24245 2010-11-20  Bruno Haible  <bruno@clisp.org>
24246
24247         Fix a comment.
24248         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24249
24250 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24251
24252         ftoastr: don't assume snprintf
24253         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24254         Implement a subset of snprintf here, by using sprintf safely.
24255         * modules/ftoastr (Depends-on): Remove snprintf.
24256
24257 2010-11-19  Jim Meyering  <meyering@redhat.com>
24258
24259         test-rename.h: fix compilation failure
24260         * tests/test-rename.h (test_rename): Add omitted "}".
24261
24262 2010-11-17  Jim Meyering  <meyering@redhat.com>
24263
24264         maint.mk: add a URL discussing the no-@acronym policy
24265         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24266
24267 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24268
24269         ftoastr: depend on snprintf, improve comments
24270         * lib/ftoastr.c: Also mention Loitsch's draft.
24271         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24272         needed in the current implementation, but it might simplify
24273         speeding up the code later.
24274         * modules/ftoastr: Depend on snprintf; this improves portability.
24275         Suggested by Bruno Haible in the same email.
24276
24277         ftoastr: port to hosts lacking strtof and strtold
24278         Problem reported by Bruno Haible in
24279         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24280         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24281         environment and strtold (and presumably strtof) are not available.
24282         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24283         (configure.ac): Require gl_C99_STRTOLD.
24284
24285 2010-11-18  Bruno Haible  <bruno@clisp.org>
24286
24287         c-strtold: Avoid link error on AIX 7.
24288         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24289         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24290         (gl_C_STRTOLD): Test whether strtold_l exists.
24291         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24292
24293 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24294
24295         intprops: new macro INT_BITS_STRLEN_BOUND
24296         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24297         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24298         not exposed.  Also, it uses a slightly tighter bound than before;
24299         though this makes no practical difference, we might as well be as
24300         tight as we easily can.
24301
24302         ftoastr: new module, for lossless conversion of floats to short strings
24303         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24304         * modules/ftoastr: New files.
24305
24306 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24307
24308         bootstrap: port to Solaris sed
24309         * build-aux/bootstrap (get_version): Port to Solaris sed.
24310         See Ralf Wildenhues's note in
24311         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24312
24313 2010-11-14  Jim Meyering  <meyering@redhat.com>
24314
24315         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24316         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24317         and move definition closer to sole use.
24318
24319 2010-11-13  Jim Meyering  <meyering@redhat.com>
24320
24321         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24322         Now we require at least autoconf-2.59, which means the work-around
24323         is no longer needed.
24324         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24325         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24326         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24327         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24328         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24329
24330 2010-11-13  Bruno Haible  <bruno@clisp.org>
24331
24332         rename, renameat: Avoid test failures at NFS mounted locations.
24333         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24334         functions.
24335         (test_rename): Use assert_nonexistent.
24336         * tests/test-rename.c: Include <dirent.h>.
24337         * tests/test-renameat.c: Likewise.
24338         Reported by Gary V. Vaughan <gary@gnu.org>.
24339
24340         rename, renameat: Document Linux bug with NFS
24341         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24342         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24343         * doc/posix-functions/renameat.texi: Likewise.
24344         Suggested by Eric Blake.
24345
24346 2010-11-13  Bruno Haible  <bruno@clisp.org>
24347
24348         rename test: Add comments.
24349         * tests/test-rename.h (test_rename): Add structure and comments.
24350
24351 2010-11-13  Eric Blake  <eblake@redhat.com>
24352
24353         maintainer-makefile: cover a few more files
24354         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24355         scripts generated within C files, for libvirt.
24356
24357 2010-11-13  Bruno Haible  <bruno@clisp.org>
24358
24359         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24360         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24361         character, return the number of bytes that belong together, not always
24362         1.
24363         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24364         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24365         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24366         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24367         number of bytes of an invalid character.
24368         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24369         (main): Invoke it.
24370         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24371         results.
24372         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24373         malformed byte sequences.
24374         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24375         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24376         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24377         Reported by Ben Pfaff and Paolo Bonzini.
24378
24379 2010-11-13  Bruno Haible  <bruno@clisp.org>
24380
24381         openat: Work around glibc bug with fchownat() and empty file names.
24382         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24383         (gl_FUNC_FCHOWNAT): Invoke it.
24384         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24385         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24386         Reported by Gary V. Vaughan <gary@gnu.org>.
24387
24388 2010-11-13  Bruno Haible  <bruno@clisp.org>
24389
24390         openat: Ensure autoconf macro ordering.
24391         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24392         gl_USE_SYSTEM_EXTENSIONS.
24393         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24394
24395 2010-11-13  Bruno Haible  <bruno@clisp.org>
24396
24397         Update comments.
24398         * lib/unistr/u8-check.c: Update file name in comments.
24399         * lib/unistr/u8-mblen.c: Likewise.
24400         * lib/unistr/u8-prev.c: Likewise.
24401         * lib/unistr/u8-strmblen.c: Likewise.
24402         * lib/unistr/u8-strmbtouc.c: Likewise.
24403
24404 2010-11-13  Jim Meyering  <meyering@redhat.com>
24405
24406         tests: avoid test failure on Solaris 10 due to lack of PATH export
24407         * tests/test-update-copyright.sh: Don't forget to export PATH.
24408
24409         init.sh: ensure that IFS is defined, just in case...
24410         * tests/init.sh (setup_): Ensure that IFS is defined,
24411         so that saving and restoring it works as expected.  This
24412         appears to be useful at least for an old version of dash
24413         from a long time ago (RH 6).  See here for details:
24414         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24415
24416         maint.mk: tighten "test a == b" check
24417         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24418         test to files that contain something like #!/bin/sh.
24419         Without this, coreutils would get two false positives in
24420         the comments of C source files.
24421
24422 2010-11-12  Eric Blake  <eblake@redhat.com>
24423
24424         bootstrap: fix typo in previous attempt
24425         * build-aux/bootstrap (buildreq): Correct the grouping.
24426         Reported by Paul Eggert.
24427
24428         maintainer-makefile: prohibit test x == x
24429         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24430         Based on a report by Matthias Bolte.
24431
24432         bootstrap: allow FreeBSD gzip
24433         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24434         which has no '.' and goes to stderr.
24435         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24436         Reported by Matthias Bolte.
24437
24438         maintainer-makefile: check for i18n setup
24439         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24440         will likely work.
24441
24442 2010-11-12  Bruno Haible  <bruno@clisp.org>
24443
24444         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24445         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24446         * lib/nanosleep.c (nanosleep): Likewise.
24447
24448 2010-11-11  Bruno Haible  <bruno@clisp.org>
24449
24450         fcntl-h: Fix for use of C++ on glibc systems.
24451         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24452         also on glibc systems in C++ mode.
24453         Reported by Gary V. Vaughan <gary@gnu.org>.
24454
24455 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24456
24457         mknod: avoid false failure with dash
24458         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24459
24460 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24461
24462         unlink: Fix "is it should" typo in diagnostic.
24463         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24464         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24465
24466 2010-11-11  Bruno Haible  <bruno@clisp.org>
24467
24468         Tests for module 'strerror_r-posix'.
24469         * modules/strerror_r-posix-tests: New file.
24470         * tests/test-strerror_r.c: New file.
24471         * tests/test-string-c++.cc: Check the signature of strerror_r.
24472
24473         New module 'strerror_r-posix'.
24474         * lib/string.in.h (strerror_r): New declaration.
24475         * lib/strerror_r.c: New file.
24476         * m4/strerror_r.m4: New file.
24477         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24478         of strerror_r.
24479         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24480         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24481         * modules/strerror_r-posix: New file.
24482         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24483         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24484         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24485         portability problems.
24486
24487 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24488
24489         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24490         line is also considered for output. Quoted function name in shell
24491         command, so temporary files for functions like MyClass::operator()
24492         are removed correctly without errors.
24493
24494 2010-11-09  Bruno Haible  <bruno@clisp.org>
24495
24496         * doc/posix-functions/strerror.texi: List more failing platforms.
24497
24498         * doc/posix-functions/strerror.texi: Add a comment.
24499
24500 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24501
24502         fdopendir: fix bug on MacOS X when low on file descriptors
24503
24504         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24505         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24506         All callers changed.
24507         (fdopendir): Invoke save_cwd at the top level, not after using
24508         multiple dup() calls to use up file descriptors.  Then retry
24509         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24510         less than the maximum number of open file descriptors, because
24511         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24512         on Mac OS X 10.6.4 for tar 1.24
24513         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24514         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24515         and for tar 1.25
24516         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24517
24518 2010-11-07  Bruno Haible  <bruno@clisp.org>
24519
24520         vasnprintf: Support I flag on glibc systems.
24521         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24522         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24523         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24524         snprintf function.
24525         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24526         glibc systems.
24527         * tests/test-vasnprintf-posix3.c: New file.
24528         * modules/vasnprintf-posix-tests (Files): Add it.
24529         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24530
24531 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24532
24533         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24534         * MODULES.html.sh: For compiler warnings, use name
24535         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24536
24537 2010-11-05  Eric Blake  <eblake@redhat.com>
24538
24539         ceil, floor: avoid spurious failure with icc
24540         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24541         [denormals-as-zero] when optimizing without -mieee-fp option.
24542         * tests/test-floorf2.c (floorf_reference): Likewise.
24543         * tests/test-ceilf1.c (dummy): New function.
24544         (main): Use it to outsmart icc's optimization.
24545         * tests/test-floorf1.c (dummy, main): Likewise.
24546
24547         tests: require working signbit
24548         * modules/ceilf-tests (Depends-on): Add signbit.
24549         * modules/ceill-tests (Depends-on): Likewise.
24550         * modules/floorf-tests (Depends-on): Likewise.
24551         * modules/floorl-tests (Depends-on): Likewise.
24552         * modules/round-tests (Depends-on): Likewise.
24553         * modules/roundf-tests (Depends-on): Likewise.
24554         * modules/roundl-tests (Depends-on): Likewise.
24555         * modules/trunc-tests (Depends-on): Likewise.
24556         * modules/truncf-tests (Depends-on): Likewise.
24557         * modules/truncl-tests (Depends-on): Likewise.
24558
24559         strtod: work around icc bug
24560         * lib/strtod.c (minus_zero): Define to working value.
24561         (strtod): Use it to avoid icc bug.
24562
24563         copysign: enhance tests
24564         * modules/copysign-tests (Files): Add minus-zero.h.
24565         * tests/test-copysign.c (main): Also test zeros.
24566
24567 2010-11-04  Eric Blake  <eblake@redhat.com>
24568
24569         ceil, floor, round, trunc: enhance tests of -0
24570         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24571         * tests/test-ceill.c (main): Likewise.
24572         * tests/test-floorf1.c (main): Likewise.
24573         * tests/test-floorl.c (main): Likewise.
24574         * tests/test-round1.c (main): Likewise.
24575         * tests/test-roundf1.c (main): Likewise.
24576         * tests/test-roundl.c (main): Likewise.
24577         * tests/test-trunc1.c (main): Likewise.
24578         * tests/test-truncf1.c (main): Likewise.
24579         * tests/test-truncl.c (main): Likewise.
24580
24581 2010-11-04  Eric Blake  <eblake@redhat.com>
24582
24583         frexp, tests: work around ICC bug with -zero
24584         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24585         works with more compilers.
24586         * tests/minus-zero.h: New file.
24587         * modules/ceilf-tests (Files): Include it.
24588         * modules/ceill-tests (Files): Likewise.
24589         * modules/floorf-tests (Files): Likewise.
24590         * modules/floorl-tests (Files): Likewise.
24591         * modules/frexp-nolibm-tests (Files): Likewise.
24592         * modules/frexp-tests (Files): Likewise.
24593         * modules/frexpl-nolibm-tests (Files): Likewise.
24594         * modules/frexpl-tests (Files): Likewise.
24595         * modules/isnan-tests (Files): Likewise.
24596         * modules/isnand-nolibm-tests (Files): Likewise.
24597         * modules/isnand-tests (Files): Likewise.
24598         * modules/isnanf-nolibm-tests (Files): Likewise.
24599         * modules/isnanf-tests (Files): Likewise.
24600         * modules/isnanl-nolibm-tests (Files): Likewise.
24601         * modules/isnanl-tests (Files): Likewise.
24602         * modules/round-tests (Files): Likewise.
24603         * modules/roundf-tests (Files): Likewise.
24604         * modules/roundl-tests (Files): Likewise.
24605         * modules/ldexpl-tests (Files): Likewise.
24606         * modules/signbit-tests (Files): Likewise.
24607         * modules/snprintf-posix-tests (Files): Likewise.
24608         * modules/sprintf-posix-tests (Files): Likewise.
24609         * modules/strtod-tests (Files): Likewise.
24610         * modules/trunc-tests (Files): Likewise.
24611         * modules/truncf-tests (Files): Likewise.
24612         * modules/truncl-tests (Files): Likewise.
24613         * modules/vsnprintf-posix-tests (Files): Likewise.
24614         * modules/vsprintf-posix-tests (Files): Likewise.
24615         * modules/vasnprintf-posix-tests (Files): Likewise.
24616         * modules/vasprintf-posix-tests (Files): Likewise.
24617         * tests/test-ceilf1.c (main): Use it.
24618         * tests/test-ceill.c (main): Likewise.
24619         * tests/test-floorf1.c (main): Likewise.
24620         * tests/test-floorl.c (main): Likewise.
24621         * tests/test-frexp.c (main): Likewise.
24622         * tests/test-frexpl.c (main): Likewise.
24623         * tests/test-isnan.c (main): Likewise.
24624         * tests/test-isnand.h (main): Likewise.
24625         * tests/test-isnanf.h (main): Likewise.
24626         * tests/test-isnanl.h (main): Likewise.
24627         * tests/test-ldexpl.c (main): Likewise.
24628         * tests/test-round.c (main): Likewise.
24629         * tests/test-roundf.c (main): Likewise.
24630         * tests/test-roundl.c (main): Likewise.
24631         * tests/test-signbit.c (test_signbitf, test_signbitd)
24632         (test_signbitl): Likewise.
24633         * tests/test-snprintf-posix.h (test_function): Likewise.
24634         * tests/test-sprintf-posix.h (test_function): Likewise.
24635         * tests/test-strtod.c (main): Likewise.
24636         * tests/test-trunc1.c (main): Likewise.
24637         * tests/test-truncf1.c (main): Likewise.
24638         * tests/test-truncl.c (main): Likewise.
24639
24640         isnanl: work around icc bug
24641         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24642
24643 2010-11-03  Eric Blake  <eblake@redhat.com>
24644
24645         tests: fix compiler warnings
24646         * tests/test-getopt.h (test_getopt): Fix condition.
24647         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24648         * tests/test-pipe2.c (main): Likewise.
24649         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24650
24651         utimens: fix broken m4 test
24652         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24653
24654 2010-10-28  Bruno Haible  <bruno@clisp.org>
24655
24656         posix_spawn*, getdtablesize: Relax license.
24657         * modules/posix_spawn (License): Change to LGPLv2+.
24658         * modules/posix_spawnp (License): Likewise.
24659         * modules/posix_spawn-internal (License): Likewise.
24660         * modules/posix_spawnattr_init (License): Likewise.
24661         * modules/posix_spawnattr_getflags (License): Likewise.
24662         * modules/posix_spawnattr_setflags (License): Likewise.
24663         * modules/posix_spawnattr_getpgroup (License): Likewise.
24664         * modules/posix_spawnattr_setpgroup (License): Likewise.
24665         * modules/posix_spawnattr_getschedparam (License): Likewise.
24666         * modules/posix_spawnattr_setschedparam (License): Likewise.
24667         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24668         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24669         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24670         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24671         * modules/posix_spawnattr_getsigmask (License): Likewise.
24672         * modules/posix_spawnattr_setsigmask (License): Likewise.
24673         * modules/posix_spawnattr_destroy (License): Likewise.
24674         * modules/posix_spawn_file_actions_init (License): Likewise.
24675         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24676         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24677         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24678         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24679         * modules/getdtablesize (License): Likewise.
24680         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24681
24682 2010-10-26  Bruno Haible  <bruno@clisp.org>
24683
24684         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24685         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24686         Cygwin and mingw.
24687         Suggested by Eric Blake.
24688
24689 2010-10-26  Bruno Haible  <bruno@clisp.org>
24690
24691         stdio: Work around compilation error due to renameat() on Solaris 10.
24692         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24693         * lib/renameat.c: Don't include <unistd.h> here.
24694         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24695         Reported by Paul Eggert and Eric Blake.
24696
24697 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24698
24699         renameat: port to Solaris 10, which declares renameat in unistd.h
24700
24701         * lib/renameat.c: Include unistd.h before stdio.h, because
24702         Solaris 10 declares renameat in unistd.h.  Problem encountered
24703         when building GNU tar 1.24 on Solaris 10.
24704
24705 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24706
24707         fdopendir: fix C89 compilation
24708         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24709         compilers.
24710
24711 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24712
24713         inttostr: simplify by removing unnecessary redundancy
24714         * lib/anytostr.c: Don't include verify.h.
24715         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24716         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24717         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24718         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24719         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24720         Likewise.
24721         * modules/inttostr (Depends-on): Remove 'verify'.
24722
24723 2010-10-23  Bruno Haible  <bruno@clisp.org>
24724
24725         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24726         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24727         Reported by Eric Blake.
24728
24729 2010-10-23  Bruno Haible  <bruno@clisp.org>
24730
24731         Tests: Fix LOCALE_JA on MirBSD 10.
24732         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24733         to an UTF-8 locale.
24734         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24735         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24736         Reported by Eric Blake.
24737
24738 2010-10-21  Bruno Haible  <bruno@clisp.org>
24739
24740         nl_langinfo test: Avoid test failure on NetBSD 5.
24741         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24742         Reported by Eric Blake.
24743
24744 2010-10-21  Eric Blake  <eblake@redhat.com>
24745
24746         c-stack: work around libsigsegv 2.8 bug
24747         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24748         overflow on at least PowerPC64.
24749
24750 2010-10-17  Bruno Haible  <bruno@clisp.org>
24751
24752         userspec: Drop redundant file.
24753         * modules/userspec (Files): Remove lib/inttostr.h.
24754
24755 2010-10-17  Bruno Haible  <bruno@clisp.org>
24756
24757         nl_langinfo tests: Silence some warnings.
24758         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24759         Reported by Jim Meyering.
24760
24761 2010-10-17  Bruno Haible  <bruno@clisp.org>
24762
24763         Make use of GCC's attribute __alloc_size__.
24764         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24765         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24766         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24767         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24768         __alloc_size__.
24769         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24770         Suggested by Jim Meyering.
24771
24772 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24773
24774         bootstrap: anchor .gitignore entries.
24775         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24776         with...
24777         (insert_vc_ignore): ... this new function, which prepends `/' to
24778         all .gitignore entries before passing them to
24779         insert_sorted_if_absent.
24780
24781 2010-10-16  Bruno Haible  <bruno@clisp.org>
24782
24783         nextafter: Fix configure check.
24784         * modules/nextafter (configure.ac): Correct expected prototype.
24785
24786 2010-10-16  Bruno Haible  <bruno@clisp.org>
24787
24788         termios: Update documentation.
24789         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24790
24791 2010-10-16  Bruno Haible  <bruno@clisp.org>
24792
24793         tests: Make them compile with TinyCC.
24794         * tests/test-strstr.c (main): Remove parentheses around array
24795         initializer.
24796
24797 2010-10-15  Eric Blake  <eblake@redhat.com>
24798
24799         ignore-value: make header idempotent
24800         * lib/ignore-value.h: Add double-inclusion guards.
24801         Reported by Stefan Berger.
24802
24803 2010-10-15  Jim Meyering  <meyering@redhat.com>
24804
24805         GNUmakefile: handle "stable" target, not "major"
24806         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24807         lists in maint.mk and announce-gen.  Without this, "make stable"
24808         would fail to ensure that $(VERSION) is up to date.
24809
24810 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24811
24812         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24813         & co.
24814
24815 2010-10-14  Bruno Haible  <bruno@clisp.org>
24816
24817         vasnprintf: Don't set errno to 0.
24818         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24819         block that sets it to 0.
24820         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24821
24822 2010-10-14  Bruno Haible  <bruno@clisp.org>
24823
24824         socketlib: Fix.
24825         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24826         gl_PREREQ_SYS_H_WINSOCK2.
24827         Reported by Ian Beckwith <ianb@erislabs.net>.
24828
24829 2010-10-13  Jim Meyering  <meyering@redhat.com>
24830
24831         test-select-stdin.c: avoid warn_unused_result warnings
24832         * tests/test-select-stdin.c: Include "macros.h".
24833         ASSERT that read and fflush succeed.
24834
24835 2010-10-13  Jim Meyering  <meyering@redhat.com>
24836
24837         git-version-gen: do require git-VC'd files in cwd
24838         * build-aux/git-version-gen: Reject a git version string
24839         if there are no commits associated with the current directory.
24840         This avoids an unlikely false-positive (unrelated dir whose parent
24841         repository also contains a tag matching v*), as pointed out
24842         by Giuseppe Scrivano in
24843         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24844
24845 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24846
24847         argv-iter: omit nonconforming declaration
24848         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24849         enum arg_iter_err declaration, which doesn't conform to C99.
24850         Solaris 10 cc warns about this.
24851
24852 2010-10-13  Eric Blake  <eblake@redhat.com>
24853
24854         termios: fix compilation on mingw
24855         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24856         (gl_TERMIOS_H): Adjust it on mingw.
24857         * modules/termios (Makefile.am): Substitute new key.
24858         * lib/termios.in.h (includes): Make include_next conditional.
24859         * doc/posix-headers/termios.texi (termios.h): Update
24860         documentation.
24861         Reported by Daniel P. Berrange.
24862
24863 2010-10-13  Jim Meyering  <meyering@redhat.com>
24864
24865         git-version-gen: don't require that .git/ be in the current dir
24866         * build-aux/git-version-gen: Adjust this script so that it works
24867         when run from any working directory beneath the top-level .git/-
24868         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24869         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24870
24871         test-select: avoid warn_unused_result warnings
24872         * tests/test-select.c: Include "macros.h".
24873         ASSERT that each call to read, write, and pipe succeeds.
24874         While not technically required, also check each "close".
24875         * modules/select-tests (Files): Add tests/macros.h.
24876
24877         test-symlinkat: remove declaration of unused local
24878         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24879
24880         test-inttostr: avoid shadowing warnings
24881         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24882         and use malloc rather than the stack for the same reason as
24883         mentioned in the comment justifying the other allocation.
24884
24885 2010-10-11  Bruno Haible  <bruno@clisp.org>
24886
24887         stdlib: Allow multiple gnulib generated replacements to coexist.
24888         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24889         Reported by Sam Steingold <sds@gnu.org>.
24890
24891 2010-10-11  Jim Meyering  <meyering@redhat.com>
24892
24893         fix a documentation typo
24894         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24895
24896 2010-10-11  Eric Blake  <eblake@redhat.com>
24897
24898         futimens: work around Solaris 11 bug
24899         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24900         * tests/test-futimens.h (test_futimens): Enhance, rather than
24901         weaken test.
24902         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24903
24904 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24905
24906         Indentation.
24907         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24908         higher-level operators more to the left.
24909
24910 2010-10-11  Jim Meyering  <meyering@redhat.com>
24911
24912         test-futimens: avoid unwarranted test failure on Solaris 5.11
24913         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24914         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24915         because it tries to dereference the NULL name argument.
24916
24917 2010-10-11  Bruno Haible  <bruno@clisp.org>
24918
24919         Indentation.
24920         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24921         indentation.
24922
24923 2010-10-11  Jim Meyering  <meyering@redhat.com>
24924
24925         spawn.in.h: make indentation consistent with parentheses
24926         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24927         Make indentation consistent with parentheses.
24928
24929 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24930
24931         Fix mismatched parens in previous commit
24932         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24933         parens.
24934
24935 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24936
24937         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24938
24939         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24940         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24941         * lib/malloca.c: Include "verify.h".
24942         (verify1): Remove, replacing with a verify call.
24943         * lib/relocwrapper.c (verify1): Likewise.
24944         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24945         Likewise.
24946         * modules/malloca (Depends-on): Add 'verify'.
24947         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24948         * modules/vasnprintf (Depends-on): Add 'verify'.
24949         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24950         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24951         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24952         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24953         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24954         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24955         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24956
24957         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24958
24959         Formerly the style was sometimes 2*X - 1, because the C standard
24960         was wrongly thought to disallow ?: in integral constant expressions.
24961         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24962         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24963         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24964         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24965         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24966         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24967         verify that time_t cannot be floating.
24968
24969 2010-10-08  Eric Blake  <eblake@redhat.com>
24970
24971         time: enforce recent POSIX ruling that time_t is integral
24972         * lib/time.in.h (__time_t_must_be_integral): Detect any
24973         problematic systems, allowing the rest of gnulib to assume POSIX.
24974
24975 2010-10-08  Jim Meyering  <meyering@redhat.com>
24976
24977         fdopendir: fix a bug on systems lacking openat and /proc support
24978         OpenBSD 4.7 is one such system.  The most noticeable effect was
24979         failure of any application making nontrivial use of fts: rm, du,
24980         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24981           ./rm: traversal failed: `a': Bad file descriptor
24982         Debugging that, you see that even though FD 6 was closed just
24983         prior to the opendir call in fd_clone_opendir, its resulting
24984         dir->dd_fd was 8, rather than the expected value of 6:
24985
24986         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24987         93                close (fd);
24988         (gdb) n
24989         94                dir = fd_clone_opendir (dupfd);
24990         (gdb) n
24991         95                saved_errno = errno;
24992         (gdb) p dir->dd_fd
24993         $11 = 8
24994
24995         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24996         The problem is that on OpenBSD, fd_clone_opendir has to resort
24997         to using the old-style save/restore CWD mechanism, due to its
24998         lack of openat/proc support, and *that* would steal the FD (6)
24999         that opendir was supposed to use.
25000
25001         The fix is to squirrel away the desired FD so that save_cwd uses a
25002         different one, and then free the dest FD right before calling opendir.
25003         That guarantees opendir will use the required file descriptor.
25004
25005         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25006
25007 2010-10-08  Bruno Haible  <bruno@clisp.org>
25008
25009         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25010         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25011
25012 2010-10-08  Bruno Haible  <bruno@clisp.org>
25013
25014         nanosleep: Make replacement POSIX compliant.
25015         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25016         is out of range.
25017         Reported by Jim Meyering.
25018
25019 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25020
25021         bootstrap: add hook for altering gnulib.mk, for Bison
25022         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25023         the Bison bootstrapping process can rewrite file names and variables
25024         in this file before later parts of 'bootstrap' use the file.
25025         Bison wants to include lib/gnulib.mk from the top-level makefile,
25026         so it needs the file names in this file to be relative to the top
25027         level, not relative to lib; plus it needs variable names to be
25028         rewritten.
25029         (slurp): Use the new function.
25030
25031         bootstrap: reformat for readability
25032         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25033
25034 2010-10-08  Eric Blake  <eblake@redhat.com>
25035
25036         docs: update cygwin progress
25037         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25038         1.7.7.
25039         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25040         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25041         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25042         * doc/posix-functions/carg.texi (carg): Likewise.
25043         * doc/posix-functions/cargf.texi (cargf): Likewise.
25044         * doc/posix-functions/casin.texi (casin): Likewise.
25045         * doc/posix-functions/casinf.texi (casinf): Likewise.
25046         * doc/posix-functions/casinh.texi (casinh): Likewise.
25047         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25048         * doc/posix-functions/catan.texi (catan): Likewise.
25049         * doc/posix-functions/catanf.texi (catanf): Likewise.
25050         * doc/posix-functions/catanh.texi (catanh): Likewise.
25051         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25052         * doc/posix-functions/ccos.texi (ccos): Likewise.
25053         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25054         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25055         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25056         * doc/posix-functions/cexp.texi (cexp): Likewise.
25057         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25058         * doc/posix-functions/cimag.texi (cimag): Likewise.
25059         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25060         * doc/posix-functions/clog.texi (clog): Likewise.
25061         * doc/posix-functions/clogf.texi (clogf): Likewise.
25062         * doc/posix-functions/conj.texi (conj): Likewise.
25063         * doc/posix-functions/conjf.texi (conjf): Likewise.
25064         * doc/posix-functions/cpow.texi (cpow): Likewise.
25065         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25066         * doc/posix-functions/cproj.texi (cproj): Likewise.
25067         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25068         * doc/posix-functions/creal.texi (creal): Likewise.
25069         * doc/posix-functions/crealf.texi (crealf): Likewise.
25070         * doc/posix-functions/csin.texi (csin): Likewise.
25071         * doc/posix-functions/csinf.texi (csinf): Likewise.
25072         * doc/posix-functions/csinh.texi (csinh): Likewise.
25073         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25074         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25075         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25076         * doc/posix-functions/ctan.texi (ctan): Likewise.
25077         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25078         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25079         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25080         * doc/posix-headers/complex.texi (complex.h): Likewise.
25081
25082 2010-10-07  Jim Meyering  <meyering@redhat.com>
25083
25084         parse-datetime: avoid compilation failure on OpenBSD 4.7
25085         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25086         This works around a compilation failure on OpenBSD 4.7:
25087         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25088
25089 2010-10-07  Eric Blake  <eblake@redhat.com>
25090
25091         docs: update cygwin progress
25092         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25093         1.7.6.
25094         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25095         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25096         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25097         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25098         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25099         Likewise.
25100         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25101         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25102         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25103         Likewise.
25104         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25105         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25106         Likewise.
25107         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25108         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25109         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25110         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25111         Likewise.
25112         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25113         Likewise.
25114         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25115
25116         docs: update parse-datetime history
25117         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25118         documentation of this function's history and alternatives.
25119
25120         cygwin: use more robust version check
25121         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25122         exclude an eventual cygwin 1.9.1.
25123         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25124         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25125         (gl_FUNC_STRCASESTR): Likewise.
25126         Reported by Bruno Haible.
25127
25128 2010-10-06  Bruno Haible  <bruno@clisp.org>
25129
25130         string, sys_select: Avoid #including large headers unless necessary.
25131         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25132         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25133         OSF/1, BeOS, Haiku.
25134         Reported by Jim Meyering.
25135
25136 2010-10-05  Eric Blake  <eblake@redhat.com>
25137
25138         memmem, strstr, strcasestr: fix bug with long periodic needle
25139         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25140         periodic needle having false positive.
25141         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25142         and cygwin 1.7.7.
25143         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25144         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25145         (gl_FUNC_STRCASESTR): Likewise.
25146         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25147         * tests/test-memmem.c (main): Expose the bug.
25148         * tests/test-strcasestr.c (main): Likewise.
25149         * tests/test-strstr.c (main): Likewise.
25150         * tests/test-c-strcasestr.c (main): Likewise.
25151         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25152         * doc/posix-functions/strstr.texi (strstr): Likewise.
25153         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25154         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25155
25156 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25157
25158         parse-datetime: do some more renaming
25159         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25160         parse_datetime, not get_date.  Mention the renaming.
25161         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25162         in comments.
25163         * m4/bison.m4: Likewise.
25164
25165 2010-10-05  Eric Blake  <eblake@redhat.com>
25166
25167         parse-datetime: better name than get_date
25168         * NEWS: Reword the deprecation notice.
25169         * modules/get_date: Rename to modules/parse-datetime.
25170         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25171         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25172         * lib/get_date.y: Rename to lib/parse-datetime.y.
25173         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25174         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25175         * doc/getdate.texi: Provide fallback wrapper.
25176         * lib/getdate.h: Move guts, and wrap...
25177         * lib/parse-datetime.h: ...new file.
25178         * lib/parse-datetime.y (get_date): Rename...
25179         (parse_datetime): ...to this.
25180         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25181         (gl_PARSE_DATETIME): ...to this.
25182         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25183         documentation.
25184         * modules/getdate (Files): Provide fallback docs and header.
25185         (Notice, Depends-on): Update references.
25186         * tests/test-parse-datetime.c: Likewise.
25187         * DEPENDENCIES: Likewise.
25188         * MODULES.html.sh (Date and time <time.h>): Likewise.
25189         * doc/parse-datetime.texi (Date input formats)
25190         (Authors of parse_datetime): Likewise.
25191         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25192         (Include): Likewise.
25193         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25194         * gnulib-tool: Likewise.
25195         * m4/bison.m4 (gl_BISON): Likewise.
25196         Suggested by Bruno Haible.
25197
25198 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25199
25200         more ports to Solaris tr, which needs [] around ranges
25201         * gnulib-tool: Solaris tr needs [] around ranges.
25202         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25203         * tests/test-pipe-filter-gi1.c (main): Likewise.
25204         * tests/test-pipe-filter-ii1.c (main): Likewise.
25205
25206 2010-10-05  Eric Blake  <eblake@redhat.com>
25207
25208         bootstrap: fix Solaris regression
25209         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25210         around ranges.
25211         Reported by Pádraig Brady.
25212
25213         bootstrap: work with pkg-config
25214         * build-aux/bootstrap (check_versions): Also transliterate - in
25215         prerequisite name.
25216         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25217         prerequisites that were already found, to avoid confusion.
25218         Reported by Justin Clift.
25219
25220         faccessat: remove unused wrappers
25221         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25222         presence of these wrappers dragged in -lgen on Solaris.
25223         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25224
25225 2010-10-05  Jim Meyering  <meyering@redhat.com>
25226
25227         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25228         * Makefile (sc_pragma_columns): New syntax-check rule.
25229
25230 2010-10-04  Bruno Haible  <bruno@clisp.org>
25231
25232         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25233         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25234         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25235         Reported by Bruce Korb and Eric Blake.
25236
25237 2010-10-04  Bruno Haible  <bruno@clisp.org>
25238
25239         threadlib: Make option --with-libpth-prefix work.
25240         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25241         use $LIBPTH, not just -lpth.
25242
25243 2010-10-04  Bruno Haible  <bruno@clisp.org>
25244
25245         Avoid line length limitation from HP NonStop system header files.
25246         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25247         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25248         * lib/ctype.in.h: Likewise.
25249         * lib/dirent.in.h: Likewise.
25250         * lib/errno.in.h: Likewise.
25251         * lib/fcntl.in.h: Likewise.
25252         * lib/float.in.h: Likewise.
25253         * lib/getopt.in.h: Likewise.
25254         * lib/iconv.in.h: Likewise.
25255         * lib/inttypes.in.h: Likewise.
25256         * lib/langinfo.in.h: Likewise.
25257         * lib/locale.in.h: Likewise.
25258         * lib/math.in.h: Likewise.
25259         * lib/netdb.in.h: Likewise.
25260         * lib/netinet_in.in.h: Likewise.
25261         * lib/poll.in.h: Likewise.
25262         * lib/pthread.in.h: Likewise.
25263         * lib/pty.in.h: Likewise.
25264         * lib/sched.in.h: Likewise.
25265         * lib/se-selinux.in.h: Likewise.
25266         * lib/search.in.h: Likewise.
25267         * lib/signal.in.h: Likewise.
25268         * lib/spawn.in.h: Likewise.
25269         * lib/stdarg.in.h: Likewise.
25270         * lib/stddef.in.h: Likewise.
25271         * lib/stdint.in.h: Likewise.
25272         * lib/stdio.in.h: Likewise.
25273         * lib/stdlib.in.h: Likewise.
25274         * lib/string.in.h: Likewise.
25275         * lib/strings.in.h: Likewise.
25276         * lib/sys_file.in.h: Likewise.
25277         * lib/sys_ioctl.in.h: Likewise.
25278         * lib/sys_select.in.h: Likewise.
25279         * lib/sys_socket.in.h: Likewise.
25280         * lib/sys_stat.in.h: Likewise.
25281         * lib/sys_time.in.h: Likewise.
25282         * lib/sys_times.in.h: Likewise.
25283         * lib/sys_utsname.in.h: Likewise.
25284         * lib/sys_wait.in.h: Likewise.
25285         * lib/sysexits.in.h: Likewise.
25286         * lib/termios.in.h: Likewise.
25287         * lib/time.in.h: Likewise.
25288         * lib/unistd.in.h: Likewise.
25289         * lib/wchar.in.h: Likewise.
25290         * lib/wctype.in.h: Likewise.
25291         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25292         * modules/ctype (Makefile.am): Likewise.
25293         * modules/dirent (Makefile.am): Likewise.
25294         * modules/errno (Makefile.am): Likewise.
25295         * modules/fcntl-h (Makefile.am): Likewise.
25296         * modules/float (Makefile.am): Likewise.
25297         * modules/getopt-posix (Makefile.am): Likewise.
25298         * modules/iconv-h (Makefile.am): Likewise.
25299         * modules/inttypes (Makefile.am): Likewise.
25300         * modules/langinfo (Makefile.am): Likewise.
25301         * modules/locale (Makefile.am): Likewise.
25302         * modules/math (Makefile.am): Likewise.
25303         * modules/netdb (Makefile.am): Likewise.
25304         * modules/netinet_in (Makefile.am): Likewise.
25305         * modules/poll-h (Makefile.am): Likewise.
25306         * modules/pthread (Makefile.am): Likewise.
25307         * modules/pty (Makefile.am): Likewise.
25308         * modules/sched (Makefile.am): Likewise.
25309         * modules/search (Makefile.am): Likewise.
25310         * modules/selinux-h (Makefile.am): Likewise.
25311         * modules/signal (Makefile.am): Likewise.
25312         * modules/spawn (Makefile.am): Likewise.
25313         * modules/stdarg (Makefile.am): Likewise.
25314         * modules/stddef (Makefile.am): Likewise.
25315         * modules/stdint (Makefile.am): Likewise.
25316         * modules/stdio (Makefile.am): Likewise.
25317         * modules/stdlib (Makefile.am): Likewise.
25318         * modules/string (Makefile.am): Likewise.
25319         * modules/strings (Makefile.am): Likewise.
25320         * modules/sys_file (Makefile.am): Likewise.
25321         * modules/sys_ioctl (Makefile.am): Likewise.
25322         * modules/sys_select (Makefile.am): Likewise.
25323         * modules/sys_socket (Makefile.am): Likewise.
25324         * modules/sys_stat (Makefile.am): Likewise.
25325         * modules/sys_time (Makefile.am): Likewise.
25326         * modules/sys_times (Makefile.am): Likewise.
25327         * modules/sys_utsname (Makefile.am): Likewise.
25328         * modules/sys_wait (Makefile.am): Likewise.
25329         * modules/sysexits (Makefile.am): Likewise.
25330         * modules/termios (Makefile.am): Likewise.
25331         * modules/time (Makefile.am): Likewise.
25332         * modules/unistd (Makefile.am): Likewise.
25333         * modules/wchar (Makefile.am): Likewise.
25334         * modules/wctype (Makefile.am): Likewise.
25335
25336 2010-10-04  Bruno Haible  <bruno@clisp.org>
25337
25338         read-file tests: Avoid a test failure on NonStop Kernel.
25339         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25340         a regular file.
25341         Reported by Joachim Schmitz <schmitz@hp.com>.
25342
25343 2010-10-03  Bruno Haible  <bruno@clisp.org>
25344
25345         gnulib-tool: Fixes for --create-testdir with --libtool.
25346         * gnulib-tool (func_get_automake_snippet): Don't augment
25347         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25348         an executable.
25349         (func_create_testdir): Handle module 'alloca' like func_import.
25350         Reported by Bruce Korb <bruce.korb@gmail.com>.
25351
25352 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25353
25354         Avoid some lines longer than 80 characters.
25355         * lib/stdint.in.h: Break long comment lines.
25356         * lib/math.in.h: Likewise.
25357         (_GL_NUM_UINT_WORDS): New macro, for readability.
25358         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25359         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25360         * lib/stdlib.in.h: Likewise.
25361         * lib/spawn.in.h: Likewise.
25362         * lib/sys_socket.in.h: Update an URL.
25363         * lib/sys_stat.in.h: Break long line.
25364
25365 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25366
25367         Improve pmccabe2html.
25368         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25369         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25370         when the sources change. Remove the line in the HTML about "Used
25371         ranges" (which implied that there might be other unused ranges),
25372         rename "Resume" to "Summary" (easier to understand for more users).
25373         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25374         styles, and some unnecessary blank lines.
25375
25376 2010-10-03  Bruno Haible  <bruno@clisp.org>
25377             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25378
25379         acl: Add support for ACLs on NonStop Kernel.
25380         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25381         Check whether the function aclsort() exists.
25382         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25383         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25384         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25385         (acl_nontrivial [HAVE_ACLSORT]: New function.
25386         (file_has_acl): Implement for NonStop Kernel.
25387         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25388         (qset_acl): Implement for NonStop Kernel.
25389         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25390         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25391         (main): Implement for NonStop Kernel.
25392         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25393         Kernel. Handle this flavor.
25394         * tests/test-set-mode-acl.sh: Likewise.
25395         * tests/test-copy-acl.sh: Likewise.
25396         * tests/test-copy-file.sh: Likewise.
25397
25398 2010-10-03  Bruno Haible  <bruno@clisp.org>
25399
25400         Info about ACLs on NonStop Kernel.
25401         * doc/acl-resources.txt: Add info about NonStop Kernel.
25402         References by Joachim Schmitz <schmitz@hp.com>.
25403
25404 2010-10-02  Bruno Haible  <bruno@clisp.org>
25405
25406         Define missing EDQUOT on NonStop Kernel.
25407         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25408         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25409         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25410         missing.
25411         * doc/posix-headers/errno.texi: Mention the NSK bug.
25412         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25413         Reported by Joachim Schmitz <schmitz@hp.com>.
25414
25415 2010-10-02  Bruno Haible  <bruno@clisp.org>
25416
25417         Update doc for POSIX:2008.
25418         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25419         Update URL of POSIX specification.
25420
25421 2010-10-02  Bruno Haible  <bruno@clisp.org>
25422
25423         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25424         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25425         from gnulib, not from Automake.
25426
25427 2010-10-02  Bruno Haible  <bruno@clisp.org>
25428
25429         New module 'system-posix'.
25430         * modules/system-posix: New file.
25431         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25432         module is present.
25433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25434         GNULIB_SYSTEM_POSIX.
25435         * modules/stdlib (Depends-on): Remove sys_wait.
25436         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25437         * doc/posix-functions/system.texi: Mention the new module.
25438         * doc/posix-headers/stdlib.texi: Likewise.
25439         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25440         define test_sys_wait_macros to a no-op.
25441         Reported by Sam Steingold <sds@gnu.org>.
25442
25443 2010-09-30  Bruno Haible  <bruno@clisp.org>
25444
25445         More renaming from 'getdate' to 'get_date'.
25446         * doc/get_date.texi: Renamed from doc/getdate.texi.
25447         * modules/get_date (Files): Update.
25448         * MODULES.html.sh (Date and time <time.h>): Update.
25449         * DEPENDENCIES: Update.
25450         * gnulib-tool: Update comment.
25451         * m4/bison.m4 (gl_BISON): Likewise.
25452         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25453
25454 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25455
25456         bootstrap: support ACLOCAL_FLAGS during aclocal
25457         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25458         can add additional -I dir for third-party .m4 files.
25459
25460 2010-09-30  Eric Blake  <eblake@redhat.com>
25461
25462         bootstrap: use glibtoolize on MacOS
25463         * build-aux/bootstrap (check_versions): Convert libtool into
25464         libtoolize.
25465         (tool search): Move libtool check earlier, and look for
25466         glibtoolize for MacOS.
25467         (gnulib_tool_options): Auto-add --libtool when appropriate.
25468         Reported by Justin Clift.
25469
25470         poll: fix typo that broke test on MacOS
25471         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25472         Reported by Justin Clift.
25473
25474         getdate: rename to get_date
25475         Note: getdate.h is not renamed, to minimize client impact.
25476         * modules/getdate: Mark obsolete.  Move old contents...
25477         * modules/get_date: ...to new module name.
25478         * modules/getdate-tests: Move...
25479         * modules/get_date-tests: ...here.
25480         * m4/getdate.m4: Move...
25481         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25482         * lib/getdate.y: Move...
25483         * lib/get_date.y: ...here.
25484         * tests/test-getdate.c: Move...
25485         * tests/test-get_date.c: ...here.
25486         * doc/posix-functions/getdate.texi (getdate): Update name.
25487         * NEWS: Mention the change.
25488
25489 2010-09-29  Bruno Haible  <bruno@clisp.org>
25490
25491         Separate the module 'waitpid' from the module 'sys_wait'.
25492         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25493         present.
25494         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25495         gl_MODULE_INDICATOR_FOR_TESTS.
25496         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25497         * modules/sys_wait (Depends-on): Remove waitpid.
25498         (Makefile.am): Substitute GNULIB_WAITPID.
25499         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25500         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25501         signature only if the 'waitpid' module is present.
25502         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25503         * NEWS: Mention the change.
25504         * modules/grantpt (Depends-on): Add waitpid.
25505         * modules/wait-process (Depends-on): Likewise.
25506
25507 2010-09-29  Bruno Haible  <bruno@clisp.org>
25508
25509         More tests for module 'sys_wait'.
25510         * modules/sys_wait-c++-tests: New file.
25511         * tests/test-sys_wait-c++.cc: New file.
25512         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25513         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25514
25515 2010-09-29  Bruno Haible  <bruno@clisp.org>
25516
25517         New module 'waitpid'.
25518         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25519         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25520         Don't include <process.h>.
25521         (waitpid): Declare only, using modern idiom.
25522         * m4/waitpid.m4: New file.
25523         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25524         * modules/waitpid: New file.
25525         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25526         (Makefile.am): Update.
25527         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25528
25529 2010-09-28  Bruno Haible  <bruno@clisp.org>
25530
25531         poll: Assume ANSI C.
25532         * lib/poll.c (poll): Use an ANSI C declaration.
25533
25534 2010-09-28  Bruno Haible  <bruno@clisp.org>
25535
25536         poll-h: Create poll.h on all platforms.
25537         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25538         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25539         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25540         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25541         (gl_REPLACE_POLL_H): Don't set POLL_H.
25542         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25543         * modules/poll-h (Depends-on): Add include_next.
25544         (Makefile.am): Create poll.h unconditionally. Substitute also
25545         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25546
25547 2010-09-28  Bruno Haible  <bruno@clisp.org>
25548
25549         Tests for module 'poll-h'.
25550         * modules/poll-h-c++-tests: New file.
25551         * tests/test-poll-h-c++.cc: New file.
25552
25553         Tests for module 'poll-h'.
25554         * modules/poll-h-tests: New file.
25555         * tests/test-poll-h.c: New file.
25556
25557 2010-09-28  Bruno Haible  <bruno@clisp.org>
25558
25559         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25560         * modules/poll-h (Depends-on): Add 'extensions'.
25561
25562 2010-09-28  Bruno Haible  <bruno@clisp.org>
25563
25564         New module 'poll-h'.
25565         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25566         (poll): Use modern idiom.
25567         * modules/poll-h: New file.
25568         * modules/poll (Files): Remove lib/poll.in.h.
25569         (Depends-on): Add poll-h.
25570         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25571         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25572         * m4/poll_h.m4: New file.
25573         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25574         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25575         and invoke gl_REPLACE_POLL_H.
25576         * lib/poll.c: Use common idiom.
25577         * tests/test-poll.c: Likewise.
25578         * doc/posix-headers/poll.texi: Mention the poll-h module.
25579         Suggested by Eric Blake.
25580
25581 2010-09-26  Bruno Haible  <bruno@clisp.org>
25582
25583         sys_wait: Implement WSTOPSIG.
25584         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25585         Reported by Simon Josefsson.
25586
25587 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25588
25589         stdlib, sys_wait: Avoid compilation error on mingw.
25590         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25591
25592 2010-09-26  Bruno Haible  <bruno@clisp.org>
25593
25594         stdlib tests: Avoid code duplication.
25595         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25596         * modules/sys_wait-tests (Files): Likewise.
25597         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25598         * tests/test-stdlib.c: Include test-sys_wait.h.
25599         (main): Invoke test_sys_wait_macros.
25600         * tests/test-sys_wait.c: Include test-sys_wait.h.
25601         (main): Invoke test_sys_wait_macros.
25602
25603 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25604
25605         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25606         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25607         sure Windows sockets are working before calling getaddrinfo.
25608         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25609         * doc/gnulib.texi (Windows sockets): Fix typo.
25610
25611 2010-09-25  Bruno Haible  <bruno@clisp.org>
25612
25613         Tests for module 'regex-quote'.
25614         * modules/regex-quote-tests: New file.
25615         * tests/test-regex-quote.c: New file.
25616
25617         New module 'regex-quote'.
25618         * lib/regex-quote.h: New file.
25619         * lib/regex-quote.c: New file.
25620         * modules/regex-quote: New file.
25621         Suggested by Reuben Thomas <rrt@sc3d.org>.
25622
25623 2010-09-24  Bruno Haible  <bruno@clisp.org>
25624
25625         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25626         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25627
25628 2010-09-23  Bruno Haible  <bruno@clisp.org>
25629
25630         setenv: Relax license.
25631         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25632         Blake.
25633         Requested by Eric Blake.
25634
25635 2010-09-22  Bruno Haible  <bruno@clisp.org>
25636
25637         termios: Relax license.
25638         * modules/termios (License): Change to LGPLv2+.
25639         Requested by Eric Blake.
25640
25641 2010-09-22  Bruno Haible  <bruno@clisp.org>
25642
25643         threadlib: Allow the package to change the default to 'no'.
25644         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25645         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25646         Reported by Paul Eggert.
25647
25648 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25649             Bruno Haible  <bruno@clisp.org>
25650
25651         Fix endless loop in mbmemcasecoll.
25652         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25653         byte.
25654         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25655
25656 2010-09-22  Bruno Haible  <bruno@clisp.org>
25657
25658         Tests for module 'memcoll'.
25659         * modules/memcoll-tests: New file.
25660         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25661
25662         memcoll, xmemcoll: Clarify size vs. length.
25663         * modules/memcoll.c (memcoll0): Clarify specification.
25664         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25665         passed to collate_error.
25666
25667 2010-09-22  Bruno Haible  <bruno@clisp.org>
25668
25669         Tests for module 'memcasecmp'.
25670         * modules/memcasecmp-tests: New file.
25671         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25672
25673 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25674
25675         * lib/pthread.in.h: Add split double-inclusion guard, and include
25676         system <pthread.h> if there is one.  Use @@-style as in other
25677         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25678         pthread.h doesn't.
25679         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25680         (pthread_mutexattr_settype, pthread_mutex_trylock):
25681         New static inline functions, if there's no system <pthread.h>.
25682         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25683         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25684         Approximate with mutexes if the system lacks spinlocks, as in
25685         MacOS.
25686         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25687         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25688         @@-style.  Check for spinlocks separately.
25689         (gl_PTHREAD_DEFAULTS): New macro.
25690         * modules/pthread: Redo to use a more typical style for in.h files.
25691
25692 2010-09-21  Eric Blake  <eblake@redhat.com>
25693
25694         net_if: enhance tests
25695         * tests/test-net_if.c (main): Move signature checks earlier.
25696         Print failures to stderr.
25697         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25698         Document the bug that we do not yet fix.
25699
25700 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25701
25702         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25703         about gnulib, not GSS.
25704
25705 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25706
25707         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25708         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25709         for Emacs.
25710         * build-aux/pmccabe2html: Make Makefile.am example code more
25711         cut-and-paste friendly.
25712
25713 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25714
25715         * tests/test-net_if.c: New file.
25716         * modules/net_if-tests: New file.
25717
25718 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25719
25720         pthread: add pthread_spin_destroy
25721         * lib/pthread.in.h (pthread_spin_destroy): New function.
25722
25723 2010-09-19  Bruno Haible  <bruno@clisp.org>
25724
25725         gnulib-tool: Fix --help output.
25726         * gnulib-tool (func_usage): Fix help message.
25727         Reported by Reuben Thomas <rrt@sc3d.org>.
25728
25729 2010-09-18  Jim Meyering  <meyering@redhat.com>
25730
25731         maint.mk: avoid unexpanded \n in two diagnostics
25732         * top/maint.mk (sc_prohibit_always_true_header_tests):
25733         Don't use a literal \n in a halt=... assignment.  It would not be
25734         expanded, and the two \n bytes would appear in the diagnostic output
25735         rather than the desired newline.  Use halt=$$(printf ... instead.
25736         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25737
25738 2010-09-18  Bruno Haible  <bruno@clisp.org>
25739
25740         netinet_in: Doc tweak.
25741         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25742         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25743
25744 2010-09-18  Jim Meyering  <meyering@redhat.com>
25745
25746         init.sh: correct an outdated comment
25747         * tests/init.sh (create_exe_shims_):  s/function/alias/
25748
25749         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25750         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25751         a file named "*.exe" is removed between the glob expansion and the
25752         processing of that oddly named file.
25753
25754 2010-09-17  Eric Blake  <eblake@redhat.com>
25755
25756         mirbsd: add some more support
25757         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25758         in BSD family.
25759         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25760         devices as OpenBSD.
25761         * m4/host-os.m4 (mirbsd): Add MirBSD.
25762
25763         tests: fix unportable assumption on sys/wait.h
25764         * tests/test-sys_wait.c (main): Relax test.
25765         * tests/test-stdlib.c (main): Likewise.
25766
25767         init.sh: accomodate directory with no .exes
25768         * tests/init.sh: Accomodate directory containing only scripts.
25769
25770         tests: avoid compiler warning
25771         * tests/test-stdlib.c (main): Use the variable.
25772
25773         fdutimens, fdutimensat: update signature, again
25774         * lib/utimens.h (gl_futimens): Delete, and move signature...
25775         (fdutimens): ...here.
25776         (fdutimensat): Rearrange signature.
25777         (lutimensat): Rename variable for clarity.
25778         * lib/fdutimensat.c (fdutimensat): Update signature.
25779         * lib/utimens.c (fdutimens): Likewise.
25780         (gl_futimens): Delete.
25781         (utimens, lutimens): Update callers.
25782         * lib/futimens.c (futimens): Likewise.
25783         * tests/test-fdutimensat.c: Likewise.
25784         * tests/test-utimens.c: Likewise.
25785         * tests/test-futimens.h: Update comment.
25786         * NEWS: Mention this.
25787         Suggested by Paul Eggert.
25788
25789 2010-09-17  Bruno Haible  <bruno@clisp.org>
25790
25791         Take over the maintenance of some older macros from Autoconf.
25792         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25793         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25794         GNU Autoconf.
25795         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25796         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25797
25798 2010-09-17  Eric Blake  <eblake@redhat.com>
25799
25800         fdutimensat: drop atflag validation
25801         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25802         with valid fd, to close a race scenario where futimens is
25803         unsupported and FILE was replaced by a symlink.
25804         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25805         accordingly.
25806         Suggested by Paul Eggert.
25807
25808 2010-09-16  Bruno Haible  <bruno@clisp.org>
25809
25810         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25811         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25812
25813 2010-09-16  Bruno Haible  <bruno@clisp.org>
25814
25815         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25816         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25817         login_tty exists.
25818         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25819
25820 2010-09-16  Bruno Haible  <bruno@clisp.org>
25821
25822         login_tty: Make the replacement code work on BSD systems.
25823         * lib/login_tty.c: Include <sys/ioctl.h>.
25824         (login_tty): Use ioctl TIOCSCTTY when available.
25825         * modules/login_tty (Depends-on): Add sys_ioctl.
25826         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25827
25828 2010-09-16  Bruno Haible  <bruno@clisp.org>
25829
25830         login_tty: Stricter unit test.
25831         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25832         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25833         and tcgetsid() after login_tty.
25834         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25835
25836 2010-09-16  Bruno Haible  <bruno@clisp.org>
25837
25838         New module 'tcgetsid'.
25839         * lib/tcgetsid.c: New file.
25840         * m4/tcgetsid.m4: New file.
25841         * modules/tcgetsid: New file.
25842         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25843         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25844         GNULIB_TCGETSID, HAVE_TCGETSID.
25845         * lib/termios.in.h: Include <sys/types.h>.
25846         (tcgetsid): New declaration.
25847         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25848         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25849         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25850         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25851
25852 2010-09-16  Bruno Haible  <bruno@clisp.org>
25853
25854         Tests for module 'termios'.
25855         * modules/termios-c++-tests: New file.
25856         * modules/termios-tests: New file.
25857         * tests/test-termios-c++.cc: New file.
25858         * tests/test-termios.c: New file.
25859
25860         New module 'termios'.
25861         * modules/termios: New file.
25862         * lib/termios.in.h: New file.
25863         * m4/termios_h.m4: New file.
25864         * doc/posix-headers/termios.texi: Mention the new module.
25865
25866 2010-09-16  Eric Blake  <eblake@redhat.com>
25867
25868         fdutimensat: add an atflag parameter
25869         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25870         * lib/utimens.h (fdutimensat): Update prototype.
25871         * tests/test-fdutimensat.c: Adjust test to match.
25872         * NEWS: Document the change.
25873         Suggested by Paul Eggert.
25874
25875 2010-09-16  Bruno Haible  <bruno@clisp.org>
25876
25877         Fix typos in comments.
25878         * lib/striconveh.h: Fix typo in comment.
25879         * lib/login_tty.c (login_tty): Likewise.
25880
25881 2010-09-15  Bruno Haible  <bruno@clisp.org>
25882
25883         stdlib: clarify MirBSD WEXITSTATUS bug
25884         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25885         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25886
25887 2010-09-15  Eric Blake  <eblake@redhat.com>
25888
25889         stdlib: work around MirBSD WEXITSTATUS bug
25890         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25891         * modules/stdlib (Depends-on): Add sys_wait.
25892         * tests/test-sys_wait.c (main): Enhance test.
25893         * tests/test-stdlib.c (main): Likewise.
25894         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25895
25896         docs: mention MacOS issue with WEXITSTATUS(constant)
25897         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25898         issue.
25899         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25900
25901         strnlen: add tests
25902         * modules/strnlen-tests: New file.
25903         * tests/test-strnlen.c: Likewise.
25904
25905 2010-09-14  Bruno Haible  <bruno@clisp.org>
25906
25907         unistr/base: Avoid link errors when module 'libunistring' is also used.
25908         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25909         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25910         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25911         Declare also when HAVE_LIBUNISTRING is set.
25912         Reported by Pádraig Brady <P@draigbrady.com>.
25913
25914 2010-09-14  Eric Blake  <eblake@redhat.com>
25915
25916         test-rawmemchr: make more robust
25917         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25918         (Depends-on, configure.ac): Add needed prerequisites to use it.
25919         * modules/memchr-tests (Files, Depends-on, configure.ac):
25920         Likewise, to avoid implicit reliance on memchr module prereqs.
25921         * tests/test-memchr.c (main): Ensure proper masking.
25922         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25923         reads.
25924
25925         memchr: detect glibc Alpha bug
25926         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25927         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25928         Alpha.
25929         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25930         * tests/test-memchr.c (main): Enhance test.
25931         Reported by Nelson H. F. Beebe.
25932
25933 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25934
25935         fts, getcwd, glob: audit for dirfd returning -1
25936         * lib/fts.c (opendir): Remove #define; no longer used.
25937         (opendirat): New arg PDIR_FD.  All callers changed.
25938         (fts_build, _opendir2): Use new opendirat to avoid the need for
25939         dirfd, or for checking whether dirfd returns a negative value.
25940         Don't use opendir; always use openat followed by fdopendir.
25941         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25942         it.
25943         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25944         returns -1 here.
25945         * modules/fts (Depends-on): Remove dirfd.
25946         * modules/getcwd (Depends-on): Likewise.
25947
25948 2010-09-13  Eric Blake  <eblake@redhat.com>
25949
25950         float: fix broken MirBSD header
25951         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25952         * doc/posix-headers/float.texi (float.h): Document it.
25953
25954 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25955
25956         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25957         * lib/fts.c (opendirat): New arg extra_flags.
25958         (__opendir2): Use it to avoid following symlinks when opening
25959         a directory, if symlinks are not supposed to be followed.  See
25960         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25961
25962         fdopendir: preserve argument fd before returning
25963         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25964         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25965         (fdopendir): Use them, arranging for FD to be open to the same
25966         directory that it was when it started.  (It might be temporarily
25967         closed while fdopendir is running, so this not thread- or
25968         signal-safe.)  Be careful to do the right thing even when file
25969         descriptors are scarce and dup fails with errno == EMFILE.  See
25970         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25971
25972 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25973
25974         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25975         * NEWS: Document change.
25976         * m4/regex.m4: Disable test for regoff_t size.
25977
25978 2010-09-13  Jim Meyering  <meyering@redhat.com>
25979
25980         fts: don't operate on an invalid file descriptor after failed dup
25981         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25982         negative file descriptor.
25983
25984 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25985
25986         savedir: add streamsavedir, deprecate fdsavedir
25987         * NEWS: Mention deprecation of fdsavedir.
25988         * lib/savedir.c (streamsavedir): New extern function, whose name
25989         ends in "savedir" to be consistent with the others.  This differs
25990         from savedirstream in that it doesn't close its argument.  The
25991         next version of GNU tar will use this instead of fdsavedir, to
25992         avoid some race conditions and conserve file descriptors.
25993         (savedirstream): Reimplement as a wrapper around streamsavedir.
25994         (fdsavedir): Add a comment deprecating this function.  As far as
25995         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25996         * lib/savedir.h (streamsavedir): New decl.
25997         (fdsavedir): Add a comment deprecating this.
25998
25999 2010-09-10  Bruno Haible  <bruno@clisp.org>
26000
26001         langinfo: Fix last commit.
26002         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26003         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26004         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26005
26006 2010-09-10  Bruno Haible  <bruno@clisp.org>
26007
26008         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26009         * lib/progreloc.c (O_EXEC): Define fallback.
26010
26011 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26012
26013         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26014         * NEWS: Document recent changes to fcntl-h.
26015         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26016         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26017         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26018         Similarly for O_SEARCH; this last was already true, but not documented.
26019         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26020         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26021         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26022         Likewise.
26023         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26024         is zero, not whether it is defined.
26025         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26026         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26027         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26028
26029 2010-09-10  Bruno Haible  <bruno@clisp.org>
26030
26031         langinfo, nl_langinfo: Fix for IRIX 5.3.
26032         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26033         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26034         HAVE_LANGINFO_YESEXPR.
26035         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26036         HAVE_LANGINFO_YESEXPR.
26037         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26038         HAVE_LANGINFO_T_FMT_AMPM is 0.
26039         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26040         HAVE_LANGINFO_YESEXPR is 0.
26041         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26042         NOEXPR.
26043         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26044         * doc/posix-functions/nl_langinfo.texi: Likewise.
26045         Reported by Eric Blake.
26046
26047 2010-09-10  Bruno Haible  <bruno@clisp.org>
26048
26049         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26050         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26051         on FreeBSD 8.0 and OpenBSD 4.6.
26052         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26053         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26054         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26055         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26056         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26057         ac_includes_default.
26058         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26059
26060 2010-09-09  Eric Blake  <eblake@redhat.com>
26061
26062         strsignal: work around NetBSD bug
26063         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26064         * lib/string.in.h (includes): Likewise.
26065         * doc/posix-functions/strsignal.texi (strsignal): Document the
26066         bug.
26067         Reported by Nelson H. F. Beebe.
26068
26069         gnulib-tool: work with NetBSD /bin/sh
26070         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26071         (func_get_description, func_get_comment, func_get_status)
26072         (func_get_notice, func_get_applicability, func_get_filelist)
26073         (func_get_dependencies, func_get_autoconf_early_snippet)
26074         (func_get_autoconf_snippet, func_get_automake_snippet)
26075         (func_get_include_directive, func_get_link_directive)
26076         (func_get_license, func_get_maintainer, func_import): Avoid
26077         shell syntax errors from parsing syntax extensions.
26078
26079 2010-09-09  Bruno Haible  <bruno@clisp.org>
26080
26081         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26082         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26083         a reliable way to determine whether the 'alias' command works.
26084
26085 2010-09-08  Jim Meyering  <meyering@redhat.com>
26086
26087         init.sh: penalize a set-x-impaired shell; don't disqualify it
26088         * tests/init.sh: Too many shells corrupt application stderr when
26089         you set -x, so we can't afford to disqualify them, since at least
26090         on Irix-6.5, that would disqualify all bourne shells.
26091         Instead, use a two-pass approach.
26092         On the first pass, try to find a shell that meets the stricter
26093         condition that set -x does not corrupt stderr.
26094         If no shell meets the stricter condition, retest each candidate
26095         shell, but without that extra condition.  Finally, when
26096         VERBOSE=yes is requested and set -x might cause trouble, simply
26097         issue a warning and refrain from enabling debug output.
26098
26099 2010-09-08  Eric Blake  <eblake@redhat.com>
26100
26101         unsetenv: fix OpenBSD bug
26102         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26103         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26104         documentation.
26105         Reported by Jim Meyering.
26106
26107         strtod: work around IRIX 6.5 bug
26108         * lib/strtod.c (strtod): Reparse number on shorter string if
26109         exponent parse was invalid.
26110         * tests/test-strtod.c (main): Add check for "0x1p 2".
26111         Reported by Tom G. Christensen.
26112
26113         getopt: optimize previous patch
26114         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26115         empty variable.  Speed up awk script.
26116         Reported by Paolo Bonzini.
26117
26118 2010-09-08  Jim Meyering  <meyering@redhat.com>
26119
26120         test.sh: disqualify shells for which set -x corrupts stderr
26121         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26122         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26123         appear in stderr output.  For example, this command:
26124             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26125         prints "P=1" on those two systems:
26126
26127 2010-09-08  Bruno Haible  <bruno@clisp.org>
26128
26129         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26130         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26131         commands, because some shells ignore redirections when there is an
26132         error in the command lookup.
26133         Reported by Eric Blake.
26134
26135 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26136
26137         * lib/regex.h: Fix a mention of `regex_compile' (should be
26138         `re_compile_pattern').
26139         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26140         (re_set_registers): Correct name of parameter in comment.
26141
26142         * doc/regex.texi: Add documentation for missing syntax flags.
26143         Remove commented-out documentation of defunct syntax option
26144         RE_NO_EMPTY_ALTS.
26145         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26146         Add documentation of re_set_registers.
26147         Document trick to re-use a pattern buffer by setting fastmap manually.
26148         Update documentation of struct re_pattern_buffer per public members.
26149         Uncomment documentation of equivalence class operators and
26150         collating symbol operators, since they are now implemented,
26151         Explain leftmost-longest matching in relation to alternatives.
26152         Tidy documentation of substring matching.
26153         Remove POSIX documentation, which is done better in
26154         glibc, and refer the reader there. Keep BSD API documentation, as
26155         that is not readily available elsewhere.
26156
26157 2010-09-07  Eric Blake  <eblake@redhat.com>
26158
26159         getopt: handle POSIXLY_CORRECT set but not exported
26160         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26161         export state of POSIXLY_CORRECT, due to bash set -o posix.
26162         Reported by Dustin J. Mitchell.
26163
26164 2010-09-05  Bruno Haible  <bruno@clisp.org>
26165
26166         gnulib-tool: Highlight the changed options.
26167         * gnulib-tool (func_usage): Display the --import, --add-import,
26168         --remove-import explanations in bold font.
26169
26170 2010-09-06  Karl Berry  <karl@gnu.org>
26171
26172         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26173
26174 2010-09-05  Bruno Haible  <bruno@clisp.org>
26175
26176         uniwidth/width: Update comment.
26177         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26178         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26179
26180 2010-09-05  Bruno Haible  <bruno@clisp.org>
26181
26182         isinf, isnan: Relax license.
26183         * modules/isinf (License): Change from GPL to LGPL, with consent from
26184         Ben Pfaff.
26185         * modules/isnan (License): Likewise.
26186         Requested by Ludovic Courtès.
26187
26188 2010-09-04  Bruno Haible  <bruno@clisp.org>
26189
26190         gnulib-tool: Help migration from --import to --add-import or --update.
26191         * gnulib-tool: Emit a verbose error message when --import is used
26192         without any module name.
26193
26194 2010-09-04  Bruno Haible  <bruno@clisp.org>
26195
26196         Update doc about gnulib-tool.
26197         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26198         'gnulib-tool --update' in more detail.
26199         Reported by Eric Blake.
26200
26201 2010-09-04  Bruno Haible  <bruno@clisp.org>
26202
26203         gnulib-tool: Change --import. New options --add/remove-import.
26204         * gnulib-tool: New options --add-import, --remove-import.
26205         (func_usage): Document them.
26206         (have_associative): Define always.
26207         (func_import): In import mode, don't merge the specified settings with
26208         the cached settings. Implement remove-import mode.
26209         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26210         Explain when to use them versus --import.
26211         (Simple update): Use --add-import instead of --import.
26212         * NEWS: Mention the change.
26213
26214 2010-09-04  Bruno Haible  <bruno@clisp.org>
26215
26216         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26217         separate gnulib.mk.
26218
26219 2010-09-04  Bruno Haible  <bruno@clisp.org>
26220
26221         gnulib-tool: Don't talk about CVS any more.
26222         * gnulib-tool (func_usage, func_import): Write "version control"
26223         instead of CVS.
26224
26225 2010-09-04  Jim Meyering  <meyering@redhat.com>
26226
26227         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26228         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26229         false positives (whose names may be ill-chosen) when searching
26230         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26231         would cause a false-positive.
26232
26233         avoid coreutils "make distcheck" failure
26234         Coreutils tests with an absolute build directory name that contains
26235         a space.  Not quoting this directory name caused a failure.
26236         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26237         * tests/test-vc-list-files-cvs.sh: Likewise.
26238
26239 2010-09-04  Bruno Haible  <bruno@clisp.org>
26240
26241         gnulib-tool: Avoid error when run in a package without Makefile.am.
26242         * gnulib-tool: When collecting the m4dirs in a package that does not
26243         have a Makefile.am, eliminate those directories that contain no
26244         gnulib-cache.m4. Fix expression that counts these directories.
26245
26246 2010-09-04  Bruno Haible  <bruno@clisp.org>
26247
26248         update-copyright test: Improve output when perl is missing or too old.
26249         * tests/test-update-copyright.sh: Move test of Perl version down after
26250         the test whether Perl exists. Provide an explanation relating Perl's
26251         error message to Automake's SKIP: message.
26252
26253 2010-09-04  Bruno Haible  <bruno@clisp.org>
26254
26255         Don't augment PATH in TESTS_ENVIRONMENT.
26256         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26257         set abs_aux_dir instead of augmenting PATH.
26258         * modules/vc-list-files-tests (Makefile.am): Likewise.
26259         * tests/test-update-copyright.sh: Augment PATH here.
26260         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26261         path_prepend_.
26262         * tests/test-vc-list-files-git.sh: Likewise.
26263
26264 2010-09-04  Jim Meyering  <meyering@redhat.com>
26265
26266         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26267         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26268
26269 2010-09-04  Bruno Haible  <bruno@clisp.org>
26270
26271         strdup: Fix compilation error in C++ mode.
26272         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26273         the macro.
26274
26275 2010-09-04  Bruno Haible  <bruno@clisp.org>
26276
26277         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26278         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26279         macro into a function.
26280         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26281
26282 2010-09-04  Bruno Haible  <bruno@clisp.org>
26283
26284         Set PATH_SEPARATOR the same way autoconf does.
26285         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26286         the value of PATH_SEPARATOR the same way autoconf-generated configure
26287         scripts do.
26288         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26289         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26290
26291 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26292
26293         Set PATH_SEPARATOR the same way autoconf does.
26294         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26295         the same way autoconf-generated configure scripts do.
26296         * posix-modules: Likewise.
26297
26298 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26299
26300         hash: fix safe_hasher const typo
26301         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26302         const; otherwise, there is a type error later.
26303
26304 2010-09-02  Jim Meyering  <meyering@redhat.com>
26305
26306         test-update-copyright.sh: require perl 5.8.0
26307         * tests/test-update-copyright.sh: Require 5.8.0,
26308         which Tom G. Christensen has confirmed is adequate,
26309         while 5.6.1 is not.
26310
26311 2010-09-02  Eric Blake  <eblake@redhat.com>
26312
26313         tests: init.sh improvements for re-exec'ing with zsh
26314         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26315         -vx through shell re-exec.
26316         Reported by Tom G. Christensen.
26317
26318         wctype: fix typo in previous commit
26319         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26320         Reported by Ludovic Courtès.
26321
26322 2010-09-02  Jim Meyering  <meyering@redhat.com>
26323
26324         test-update-copyright.sh: skip test if Perl is too old
26325         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26326         Reported by Tom G. Christensen.
26327
26328 2010-09-02  Bruno Haible  <bruno@clisp.org>
26329
26330         wctype: Avoid compilation error on IRIX 6.5.30.
26331         * lib/wctype.in.h (iswblank): Declare with a replacement if
26332         REPLACE_ISWBLANK is set.
26333         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26334         declared. Set REPLACE_ISWBLANK.
26335         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26336         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26337         * doc/posix-headers/wctype.texi: Likewise.
26338         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26339
26340 2010-09-01  Bruno Haible  <bruno@clisp.org>
26341
26342         New module 'socketlib'.
26343         * modules/socketlib: New file.
26344         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26345         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26346         * modules/sockets (Depends-on): Add socketlib.
26347         Suggested by Sam Steingold <sds@gnu.org>.
26348
26349 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26350
26351         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26352
26353         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26354         when one needs search access to a directory but not read access.
26355         On systems where it is available, it works in some cases where
26356         O_RDONLY does not, namely on directories that are searchable but
26357         not readable, and which need only to be searchable.  If O_SEARCH
26358         is not available, fall back to the traditional method of using
26359         O_RDONLY.
26360
26361         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26362         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26363         when opening a directory that needs only to be searchable.
26364         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26365         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26366         * lib/openat-proc.c (openat_proc_name): Likewise.
26367         * lib/openat.c (openat_needs_fchdir): Likewise.
26368         * lib/save-cwd.c (save_cwd): Likewise.
26369         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26370
26371 2010-08-28  Bruno Haible  <bruno@clisp.org>
26372
26373         New module 'host-cpu-c-abi'.
26374         * modules/host-cpu-c-abi: New file.
26375         * m4/host-cpu-c-abi.m4: New file, based on part of
26376         clisp/src/m4/general.m4.
26377         Requested by Sam Steingold <sds@gnu.org>.
26378
26379 2010-08-31  Eric Blake  <eblake@redhat.com>
26380         and Jim Meyering  <meyering@redhat.com>
26381
26382         hash: factor, and guard against misbehaving hasher function
26383         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26384         of table->hasher's return value.  Also protect against a hash value
26385         so large that adding it to table->bucket results in a NULL pointer.
26386         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26387         Use it in place of open-coded check-and-abort.
26388
26389 2010-08-30  Bruno Haible  <bruno@clisp.org>
26390
26391         hash: silence spurious clang warning
26392         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26393         Reported by Eric Blake.
26394
26395 2010-08-30  Eric Blake  <eblake@redhat.com>
26396
26397         strstr, memmem, strcasestr: avoid leaked shell message
26398         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26399         FreeBSD.
26400         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26401         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26402
26403         tests: silence clang warning
26404         * tests/test-malloca.c (do_allocation): Avoid dead store.
26405
26406 2010-08-29  Bruno Haible  <bruno@clisp.org>
26407
26408         gettext: Fix recent mistake.
26409         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26410
26411 2010-08-29  Bruno Haible  <bruno@clisp.org>
26412
26413         selinux-h: Offer a --without-selinux option.
26414         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26415         --without-selinux was specified, skip all tests and define
26416         HAVE_SELINUX_SELINUX_H to 0.
26417         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26418         set LIB_SELINUX to empty.
26419         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26420         gl_LIBSELINUX. If --without-selinux was specified, replace
26421         selinux/context.h.
26422         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26423
26424 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26425             Bruno Haible  <bruno@clisp.org>
26426
26427         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26428         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26429         of HAVE_REALLOC.
26430         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26431         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26432         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26433         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26434
26435 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26436             Bruno Haible  <bruno@clisp.org>
26437
26438         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26439         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26440         HAVE_CALLOC.
26441         * lib/xmalloc.c: Update accordingly.
26442         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26443         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26444         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26445
26446 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26447             Bruno Haible  <bruno@clisp.org>
26448
26449         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26450         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26451         HAVE_MALLOC.
26452         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26453         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26454         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26455
26456 2010-08-29  Bruno Haible  <bruno@clisp.org>
26457
26458         Update modules list.
26459         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26460         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26461         (String handling <string.h>): Add astrxfrm.
26462         (File system functions): Add readlinkat.
26463
26464 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26465
26466         Tests for module 'realloc-gnu'.
26467         * modules/realloc-gnu-tests: New file.
26468         * tests/test-realloc-gnu.c: New file.
26469
26470         Tests for module 'calloc-gnu'.
26471         * modules/calloc-gnu-tests: New file.
26472         * tests/test-calloc-gnu.c: New file.
26473
26474         Tests for module 'malloc-gnu'.
26475         * modules/malloc-gnu-tests: New file.
26476         * tests/test-malloc-gnu.c: New file.
26477
26478 2010-08-28  Bruno Haible  <bruno@clisp.org>
26479
26480         Rename module 'realloc' -> 'realloc-gnu'.
26481         * modules/realloc-gnu: New file, copied from modules/realloc.
26482         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26483         obsolete.
26484         * modules/mgetgroups (Depends-on): Update.
26485         * doc/posix-functions/realloc.texi: Update.
26486         * NEWS: Mention the change.
26487
26488         Rename module 'calloc' -> 'calloc-gnu'.
26489         * modules/calloc-gnu: New file, copied from modules/calloc.
26490         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26491         obsolete.
26492         * doc/posix-functions/calloc.texi: Update.
26493         * NEWS: Mention the change.
26494
26495         Rename module 'malloc' -> 'malloc-gnu'.
26496         * modules/malloc-gnu: New file, copied from modules/malloc.
26497         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26498         obsolete.
26499         * modules/argp (Depends-on): Update.
26500         * modules/regex (Depends-on): Update.
26501         * doc/posix-functions/malloc.texi: Update.
26502         * NEWS: Mention the change.
26503
26504 2010-08-28  Eric Blake  <eblake@redhat.com>
26505
26506         pread, pwrite: add missing dependency
26507         * modules/pread (Depends-on): Add extensions.
26508         * modules/pwrite (Depends-on): Likewise.
26509
26510 2010-08-28  Bruno Haible  <bruno@clisp.org>
26511
26512         unistr/u*-strchr: Fix tests dependencies.
26513         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26514         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26515         Reported by Ian Beckwith <ianb@erislabs.net>.
26516
26517 2010-08-28  Bruno Haible  <bruno@clisp.org>
26518
26519         read-file: Don't occupy too much unused memory.
26520         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26521
26522 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26523             Eric Blake  <eblake@redhat.com>
26524             Bruno Haible  <bruno@clisp.org>
26525
26526         read-file: Avoid memory reallocations with regular files.
26527         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26528         (fread_file): With regular files, use the remaining length as the
26529         initial buffer size.  Check against overflow.
26530         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26531         sys_stat.
26532
26533 2010-08-28  Bruno Haible  <bruno@clisp.org>
26534
26535         ftello: Relax license.
26536         * modules/ftello (License): Relax to LGPLv2+.
26537         Reported by Eric Blake.
26538
26539 2010-08-28  Bruno Haible  <bruno@clisp.org>
26540
26541         Avoid relocwrapper link errors due to gnulib replacement functions.
26542         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26543         function.
26544         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26545
26546 2010-08-28  Bruno Haible  <bruno@clisp.org>
26547
26548         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26549         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26550         defined.
26551         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26552         Suggested by Eric Blake.
26553
26554 2010-08-28  Bruno Haible  <bruno@clisp.org>
26555
26556         sys_socket, netdb: Ensure socklen_t gets defined.
26557         * modules/sys_socket (Depends-on): Add socklen.
26558         * modules/netdb (Depends-on): Likewise.
26559         * modules/getaddrinfo (Depends-on): Remove socklen.
26560         * modules/getsockopt (Depends-on): Likewise.
26561         * modules/setsockopt (Depends-on): Likewise.
26562         * tests/test-sys_socket.c: Check that socklen_t is defined.
26563         * tests/test-netdb.c: Likewise.
26564         * m4/socklen.m4: Update comments.
26565         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26566
26567 2010-08-27  Eric Blake  <eblake@redhat.com>
26568
26569         login_tty: add missing dependency
26570         * modules/login_tty (Depends-on): Add pty.
26571
26572 2010-08-26  Eric Blake  <eblake@redhat.com>
26573
26574         lib-symbol-versions: fix m4 quoting
26575         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26576         format for AC_LINK_IFELSE.
26577
26578         glob: fix compile test
26579         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26580
26581         btowc: fix missing file
26582         * modules/btowc (Files): Also ship locale-fr.m4.
26583
26584         lseek: fix link test
26585         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26586         AC_LINK_IFELSE.
26587
26588         include_next: silence autoconf 2.68 warning
26589         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26590         AC_COMPILE_IFELSE as special.
26591         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26592         autoconf < 2.68.
26593
26594         acl: fix compilation test
26595         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26596         AC_COMPILE_IFELSE.
26597
26598 2010-08-26  Bruno Haible  <bruno@clisp.org>
26599
26600         Modernize AC_TRY_RUN invocations.
26601         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26602         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26603         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26604         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26605         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26606         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26607         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26608         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26609         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26610         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26611         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26612         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26613         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26614         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26615         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26616         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26617         gl_MBRLEN_NUL_RETVAL): Likewise.
26618         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26619         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26620         Likewise.
26621         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26622         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26623         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26624         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26625         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26626         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26627         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26628         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26629         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26630         Likewise.
26631         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26632         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26633         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26634         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26635         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26636         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26637         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26638         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26639         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26640         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26641
26642 2010-08-26  Bruno Haible  <bruno@clisp.org>
26643
26644         Modernize AC_TRY_LINK invocations.
26645         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26646         AC_TRY_LINK.
26647         * m4/argp.m4 (gl_ARGP): Likewise.
26648         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26649         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26650         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26651         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26652         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26653         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26654         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26655         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26656         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26657         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26658         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26659         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26660         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26661         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26662         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26663         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26664         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26665         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26666         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26667         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26668         Likewise.
26669         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26670         Likewise.
26671         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26672         Likewise.
26673         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26674         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26675         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26676         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26677         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26678         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26679         * m4/servent.m4 (gl_SERVENT): Likewise.
26680         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26681         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26682         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26683         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26684         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26685         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26686         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26687         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26688         * modules/tsearch-tests (configure.ac): Likewise.
26689
26690 2010-08-26  Bruno Haible  <bruno@clisp.org>
26691
26692         Modernize AC_TRY_COMPILE invocations.
26693         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26694         AC_TRY_COMPILE.
26695         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26696         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26697         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26698         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26699         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26700         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26701         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26702         * m4/lock.m4 (gl_LOCK): Likewise.
26703         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26704         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26705         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26706         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26707         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26708         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26709         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26710         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26711         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26712         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26713         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26714         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26715         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26716         extraneous semicolon.
26717
26718 2010-08-26  Jim Meyering  <meyering@redhat.com>
26719
26720         stat-time: relax license LGPL
26721         * modules/stat-time (License): Change from GPL to LGPL,
26722         with consent from all contributors, for use in libguile.
26723         Requested by Ludovic Courtès.
26724
26725 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26726
26727         poll: return immediately on POLLHUP.
26728         * lib/poll.c (poll): Always set timeout before wait_timeout is
26729         computed.
26730
26731 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26732
26733         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26734         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26735         rmdir ("dir/.//"), unlinkat.
26736
26737 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26738
26739         stdbool: avoid spurious failure with modern xlc
26740         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26741
26742 2010-08-24  Bruno Haible  <bruno@clisp.org>
26743
26744         getloadavg: simplify code
26745         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26746         gl_have_func. Update comments.
26747
26748 2010-08-24  Eric Blake  <eblake@redhat.com>
26749
26750         getloadavg: don't define SVR4 on cygwin
26751         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26752         only define SVR4 when -lkvm is required.
26753         Reported by Yaakov Selkowitz.
26754
26755 2010-08-24  Bruno Haible  <bruno@clisp.org>
26756
26757         priv-set: fix comment
26758         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26759
26760 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26761
26762         priv-set: fix comments
26763         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26764         to match code, as suggested by David Bartley in:
26765         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26766
26767 2010-08-23  Eric Blake  <eblake@redhat.com>
26768
26769         stdbool: avoid rejecting clang
26770         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26771         * tests/test-stdbool.c: Enable more tests if using the system
26772         <stdbool.h> instead of the gnulib replacement.
26773         (main): Move xlc bug test to a runtime test for all compilers.
26774         Reported by Anders Kaseorg.
26775
26776         argz: fix shell quoting issue
26777         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26778         Reported by Charles Wilson.
26779
26780 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26781             Erik Faye-Lund <kusmabite@gmail.com>
26782
26783         poll, select: handle ERROR_BROKEN_PIPE.
26784         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26785         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26786         * lib/select.c (win32_compute_revents): Do not mark a pipe
26787         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26788
26789 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26790
26791         fts: allow compilation with C++
26792         * lib/fts_.h: Specify extern "C" linkage with C++.
26793
26794 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26795
26796         Fix gnulib-tool sed script de-commentation for AIX sed.
26797         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26798         sed.
26799
26800 2010-08-17  Eric Blake  <eblake@redhat.com>
26801
26802         test-stddef: test for (some) offsetof bugs
26803         * tests/test-stddef.c: Enhance test to ensure correct type of
26804         offsetof.
26805         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26806         that we are not fixing at this time.
26807
26808 2010-08-15  Bruno Haible  <bruno@clisp.org>
26809
26810         stpncpy: Allow stpncpy to be defined as a macro.
26811         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26812         if it's already correctly declared.
26813         * lib/string.in.h (stpncpy): Undefine before redefining.
26814         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26815
26816 2010-08-14  Bruno Haible  <bruno@clisp.org>
26817
26818         Rename module 'memxfrm' to 'amemxfrm'.
26819         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26820         (amemxfrm): Renamed from memxfrm.
26821         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26822         (amemxfrm): Renamed from memxfrm.
26823         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26824         * NEWS: Mention the change.
26825         * MODULES.html.sh (String handling <string.h>): Update.
26826         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26827         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26828         * lib/unicase/u16-casexfrm.c: Likewise.
26829         * lib/unicase/u32-casexfrm.c: Likewise.
26830         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26831         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26832         * lib/uninorm/u16-normxfrm.c: Likewise.
26833         * lib/uninorm/u32-normxfrm.c: Likewise.
26834         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26835         memxfrm.
26836         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26837         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26838         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26839         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26840         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26841         Suggested by Paul Eggert.
26842
26843 2010-08-14  Bruno Haible  <bruno@clisp.org>
26844
26845         Tests for module 'astrxfrm'.
26846         * modules/astrxfrm-tests: New file.
26847         * tests/test-astrxfrm.c: New file.
26848
26849         New module 'astrxfrm'.
26850         * lib/astrxfrm.h: New file.
26851         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26852         * modules/astrxfrm: New file.
26853
26854 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26855
26856         regex: Tweak doc.
26857         * doc/regex.texi (Overview): Don't mention regex.c.
26858         (GNU Regular Expression Compiling): Likewise.
26859         (Match-end-of-line Operator): Mention 'not_eol'.
26860
26861 2010-08-14  Brian Gough  <bjg@gnu.org>
26862             Bruno Haible  <bruno@clisp.org>
26863
26864         git-merge-changelog: add doc relating to use with bzr and hg.
26865         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26866
26867 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26868
26869         pthread: fix pthread.h creation for srcdir != builddir
26870         * modules/pthread (Makefile.am): Fix the rule to work also in a
26871         non-srcdir build.
26872
26873 2010-08-13  Karl Berry  <karl@gnu.org>
26874
26875         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26876         * doc/posix-*/*: force line break before @url of POSIX
26877         specifications.
26878         Suggested by Werner Lemberg.
26879
26880 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26881
26882         strtod: fix const diagnostic
26883         * lib/strtod.c (strtod): Don't assign const char * to char *,
26884         as this elicits a warning from GCC when warnings are enabled.
26885
26886 2010-08-10  Pádraig Brady <P@draigbrady.com>
26887         and Eric Blake  <eblake@redhat.com>
26888
26889         copy-acl: ignore ENOTSUP on HP-UX
26890         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26891         so that it is available for HP-UX.
26892         * lib/copy-acl.c (qcopy_acl): Use it.
26893         Reported by Patrick M. Callahan.
26894
26895 2010-08-10  Eric Blake  <eblake@redhat.com>
26896
26897         open, chown: relax license
26898         * modules/open (License): Change to LGPLv2+, with consent by all
26899         authors, for use in augeas.
26900         * modules/chown (License): Likewise.
26901         * modules/lchown (Likewise): Likewise.
26902         Requested by Adam Stokes.
26903
26904 2010-08-09  Karl Berry  <karl@gnu.org>
26905
26906         * build-aux/ar-lib: new file, import from Automake.
26907         * config/srclist.txt: autocheck for updates.
26908
26909 2010-08-09  Eric Blake  <eblake@redhat.com>
26910
26911         readlinkat: adjust client modules
26912         * modules/areadlinkat (Depends-on): Use readlinkat, not
26913         symlinkat.
26914         * modules/areadlinkat-with-size (Depends-on): Likewise.
26915
26916         mknod: be more vocal about danger of running tests as root
26917         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26918         root, since that is just asking for problems.
26919         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26920
26921         readlinkat: split into its own module
26922         * modules/symlinkat: Split readlinkat...
26923         * modules/readlinkat: ...into separate module.
26924         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26925         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26926         * lib/symlinkat.c (readlinkat): Move...
26927         * lib/readlinkat.c: ...into new file.
26928         * modules/symlinkat-tests: Split readlinkat test...
26929         * modules/readlinkat-tests: ...into separate module.
26930         * tests/test-symlinkat.c: Split...
26931         * tests/test-readlinkat.c: ...into new file.
26932         * NEWS: Document the split.
26933         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26934         * lib/unistd.in.h (readlinkat): Likewise.
26935         Suggested by Bruno Haible.
26936
26937 2010-08-08  Bruno Haible  <bruno@clisp.org>
26938
26939         memxfrm: Speed up.
26940         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26941         that usually only one call to strxfrm is necessary for each string
26942         part.
26943         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26944
26945 2010-08-07  Karl Berry  <karl@gnu.org>
26946
26947         * doc/posix-headers/limits.texi,
26948         * doc/posix-functions/malloc.texi,
26949         * doc/posix-functions/strsignal.texi: missing @item.
26950         * doc/ld-version-script.texi: spurious leading i.
26951         * doc/regex.texi (Interval Operators): no commas inside @var.
26952
26953 2010-08-01  Bruno Haible  <bruno@clisp.org>
26954
26955         Integrate the regex documentation.
26956         * doc/gnulib.texi: Define 'cn' index.
26957         (Regular expressions): New a chapter that includes regex.texi and
26958         regexprops-generic.texi.
26959         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26960         syntax.
26961
26962         Whitespace cleanup.
26963         * doc/regex.texi: Remove trailing spaces.
26964
26965         Add regex documentation.
26966         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26967         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26968         Written by Kathy A. Hargreaves and Karl Berry.
26969
26970 2010-08-01  Bruno Haible  <bruno@clisp.org>
26971
26972         link: Update documentation.
26973         * doc/posix-functions/link.texi: Update regarding Solaris.
26974
26975 2010-07-31  Bruno Haible  <bruno@clisp.org>
26976
26977         Update modules list.
26978         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26979         (String handling <string.h>): Add memcmp2, memxfrm.
26980         (Container data structures): Add xlist, xsublist, xoset.
26981         (Core language properties): Add alignof, unused-parameter.
26982         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26983         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26984         (Unibyte characters <ctype.h>): New section.
26985         (String handling <string.h>): New section.
26986         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26987         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26988         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26989         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26990         tan, tanh, tanl, y0, y1, yn.
26991         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26992         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26993         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26994         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26995         unlockpt, vdprintf, vdprintf-posix.
26996         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26997         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26998         xconcat-filename.
26999         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27000         getdtablesize, pipe2, pipe2-safer.
27001         (Security): New section.
27002         (Networking functions): Add accept4.
27003         (Signal handling): Add sigpipe.
27004         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27005         mbmemcasecoll.
27006         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27007         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27008         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27009         pipe-filter-ii.
27010         (Misc): Add argp-version-etc, login_tty, parse-duration.
27011
27012 2010-07-31  Bruno Haible  <bruno@clisp.org>
27013
27014         Improve doc in MODULES.html.
27015         * modules/linkat (Description): Add the word "function".
27016         * modules/mkfifo (Description): Likewise.
27017         * modules/mknod (Description): Likewise.
27018         * modules/remove (Description): Likewise.
27019         * modules/renameat (Description): Likewise.
27020         * modules/stat (Description): Likewise.
27021         * modules/symlink (Description): Likewise.
27022         * modules/unlink (Description): Likewise.
27023
27024 2010-07-31  Bruno Haible  <bruno@clisp.org>
27025
27026         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27027         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27028         option --enable/disable-c++ instead of --enable/disable-cxx.
27029         * NEWS: Mention the change.
27030
27031 2010-07-31  Bruno Haible  <bruno@clisp.org>
27032
27033         readlink, areadlink: Relax test a bit.
27034         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27035         alternative to ENOTDIR.
27036         * tests/test-areadlink.h (test_areadlink): Likewise.
27037         Reported by Rainer Tammer.
27038
27039 2010-07-31  Bruno Haible  <bruno@clisp.org>
27040
27041         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27042         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27043         character, perform the search using U_STRCHR.
27044         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27045         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27046         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27047         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27048         Suggested by Paolo Bonzini.
27049
27050 2010-07-31  Bruno Haible  <bruno@clisp.org>
27051
27052         unistr/u*-strstr: Fix dependencies.
27053         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27054         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27055         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27056
27057 2010-07-31  Bruno Haible  <bruno@clisp.org>
27058
27059         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27060         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27061         the beginning of the loop.
27062         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27063         cases in 'switch' statement.
27064
27065         unistr/u8-strchr: Fix several bugs.
27066         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27067         the string. When not found, return NULL, not a pointer near the end.
27068
27069         More tests for unistr/u8-strchr.
27070         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27071         that the function does not read past the first occurrence of the byte
27072         being searched.
27073         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27074         * tests/unistr/test-u16-strchr.c (main): New function.
27075         * tests/unistr/test-u32-strchr.c (main): New function.
27076
27077 2010-07-31  Bruno Haible  <bruno@clisp.org>
27078
27079         posix-modules: Ignore backup files of documentation files.
27080         * posix-modules: grep only through files named *.texi.
27081
27082 2010-07-31  Bruno Haible  <bruno@clisp.org>
27083
27084         symlinkat: Fix documentation.
27085         * doc/posix-functions/readlinkat.texi: Fix module name.
27086
27087 2010-07-31  Bruno Haible  <bruno@clisp.org>
27088
27089         fchownat: Replace also when chown has the trailing slash bug.
27090         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27091         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27092         introduced on 2010-04-10.
27093         Reported by Rainer Tammer.
27094
27095 2010-07-31  Bruno Haible  <bruno@clisp.org>
27096
27097         linkat: Work around AIX 7.1 bug.
27098         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27099         whether linkat handles trailing slash correctly. If not, replace linkat
27100         and define LINKAT_TRAILING_SLASH_BUG.
27101         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27102         check whether (fd1,file1) points to a directory if file1 or file2 ends
27103         in a slash. Code taken from lib/link.c.
27104         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27105         Reported by Rainer Tammer.
27106
27107 2010-07-31  Bruno Haible  <bruno@clisp.org>
27108
27109         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27110         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27111         This disables an xlc optimization that was causing wrong test results.
27112         Reported by Rainer Tammer.
27113
27114 2010-07-31  Bruno Haible  <bruno@clisp.org>
27115
27116         iconv: Work around AIX 6.1..7.1 bug.
27117         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27118         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27119         cross-compiling, guess no on all versions of AIX.
27120         Reported by Rainer Tammer.
27121
27122 2010-07-31  Bruno Haible  <bruno@clisp.org>
27123
27124         readlink: Relax test a bit.
27125         * tests/test-readlink.h (test_readlink): Allow different errno value
27126         when readlink is called with a file name that ends in / and refers to
27127         a file.
27128         Suggested by Eric Blake.
27129         Reported by Rainer Tammer.
27130
27131 2010-07-31  Bruno Haible  <bruno@clisp.org>
27132
27133         copysign: Does not require -lm on glibc systems.
27134         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27135         gl_COMMON_DOUBLE_MATHFUNC.
27136         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27137
27138 2010-07-31  Bruno Haible  <bruno@clisp.org>
27139
27140         duplocale: Work around AIX 7.1 bug.
27141         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27142         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27143         * lib/duplocale.c (rpl_duplocale): Update comment.
27144         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27145         Reported by Rainer Tammer.
27146
27147 2010-07-30  Bruno Haible  <bruno@clisp.org>
27148
27149         dirfd: Avoid link error on AIX 7.1.
27150         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27151         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27152         exist, set REPLACE_DIRFD.
27153         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27154         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27155         * doc/posix-functions/dirfd.texi: Update.
27156         Reported by Rainer Tammer.
27157
27158 2010-07-30  Eric Blake  <eblake@redhat.com>
27159
27160         strtod: next round of AIX fixes
27161         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27162         exponent.
27163         * tests/test-strtod.c (main): Enhance tests.
27164         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27165         Reported by Rainer Tammer.
27166
27167         futimens: fix configure check
27168         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27169         Reported by Bruno Haible.
27170
27171 2010-07-30  Bruno Haible  <bruno@clisp.org>
27172
27173         getline: Update regarding AIX.
27174         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27175         Reported by Rainer Tammer.
27176
27177 2010-07-30  Bruno Haible  <bruno@clisp.org>
27178
27179         wcwidth: Drop replacement on AIX 7.
27180         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27181         AIX 7.
27182         Reported by Rainer Tammer.
27183
27184 2010-07-30  Bruno Haible  <bruno@clisp.org>
27185
27186         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27187         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27188         a 'char *'.
27189         Reported by Rainer Tammer.
27190
27191 2010-07-30  Bruno Haible  <bruno@clisp.org>
27192
27193         unlink: Update regarding AIX.
27194         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27195         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27196         Reported by Rainer Tammer.
27197
27198 2010-07-30  Bruno Haible  <bruno@clisp.org>
27199
27200         symlink: Update regarding AIX.
27201         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27202         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27203         Reported by Rainer Tammer.
27204
27205 2010-07-30  Bruno Haible  <bruno@clisp.org>
27206
27207         strndup: Update regarding AIX.
27208         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27209         AIX 7.
27210         Reported by Rainer Tammer.
27211
27212 2010-07-30  Bruno Haible  <bruno@clisp.org>
27213
27214         stat: Update regarding AIX.
27215         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27216         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27217         Reported by Rainer Tammer.
27218
27219 2010-07-30  Bruno Haible  <bruno@clisp.org>
27220
27221         truncl: Fix autoconf test.
27222         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27223         whether truncl works.
27224         Reported by Rainer Tammer.
27225
27226 2010-07-30  Bruno Haible  <bruno@clisp.org>
27227
27228         round: Update regarding AIX.
27229         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27230         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27231         Reported by Rainer Tammer.
27232
27233 2010-07-30  Bruno Haible  <bruno@clisp.org>
27234
27235         rename: Update regarding AIX.
27236         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27237         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27238         Reported by Rainer Tammer.
27239
27240 2010-07-30  Bruno Haible  <bruno@clisp.org>
27241
27242         printf.m4: Update regarding AIX.
27243         * m4/printf.m4: Update comments regarding AIX.
27244         Reported by Rainer Tammer.
27245
27246 2010-07-30  Bruno Haible  <bruno@clisp.org>
27247
27248         iconv: Update regarding AIX.
27249         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27250         AIX 7.
27251         Reported by Rainer Tammer.
27252
27253 2010-07-30  Bruno Haible  <bruno@clisp.org>
27254
27255         getopt: Update regarding AIX.
27256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27257         no on AIX.
27258         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27259         Reported by Rainer Tammer.
27260
27261 2010-07-30  Bruno Haible  <bruno@clisp.org>
27262
27263         ldexpl; Update regarding AIX.
27264         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27265         on AIX 7.
27266         Reported by Rainer Tammer.
27267
27268 2010-07-30  Bruno Haible  <bruno@clisp.org>
27269
27270         frexpl: Update regarding AIX.
27271         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27272         on AIX 7.
27273         Reported by Rainer Tammer.
27274
27275 2010-07-30  Bruno Haible  <bruno@clisp.org>
27276
27277         open, fopen: Update regarding AIX.
27278         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27279         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27280         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27281         * doc/posix-functions/fopen.texi: Likewise.
27282         Reported by Rainer Tammer.
27283
27284 2010-07-30  Bruno Haible  <bruno@clisp.org>
27285
27286         chown: Update doc regarding AIX.
27287         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27288         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27289         Reported by Rainer Tammer.
27290
27291 2010-07-30  Eric Blake  <eblake@redhat.com>
27292
27293         strtod: fix bug in replacement function on AIX
27294         * lib/strtod.c (strtod): Special case broken "0x" parse in
27295         underlying strtod.
27296         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27297         * doc/posix-functions/strtod.texi (strtod): Likewise.
27298         Reported by Rainer Tammer.
27299
27300 2010-07-30  Bruno Haible  <bruno@clisp.org>
27301
27302         mbrlen: Fix cross-compilation guess for AIX.
27303         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27304         guess. Leftover from 2008-12-22.
27305
27306 2010-07-30  Bruno Haible  <bruno@clisp.org>
27307
27308         mbrtowc: Fix cross-compilation guess for AIX.
27309         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27310         guess. Leftover from 2008-12-21.
27311
27312 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27313
27314         init.sh: work around trap limitation of some shells
27315         * tests/init.sh (setup_): Move exit trap outside of shell function.
27316
27317 2010-07-29  Eric Blake  <eblake@redhat.com>
27318
27319         strtod: aid debugging
27320         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27321         understanding why strtod is rejected.
27322
27323 2010-07-28  Bruno Haible  <bruno@clisp.org>
27324
27325         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27326         * lib/unistr/u8-chr.c: Include <string.h>.
27327         * tests/unistr/test-u8-chr.c: Likewise.
27328         * tests/unistr/test-u16-chr.c: Likewise.
27329         * tests/unistr/test-u32-chr.c: Likewise.
27330         * tests/unistr/test-u8-strchr.c: Likewise.
27331         * tests/unistr/test-u16-strchr.c: Likewise.
27332         * tests/unistr/test-u32-strchr.c: Likewise.
27333         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27334         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27335         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27336         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27337
27338 2010-07-28  Bruno Haible  <bruno@clisp.org>
27339
27340         Use spaces for indentation, not tabs.
27341         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27342
27343 2010-07-27  Bruno Haible  <bruno@clisp.org>
27344
27345         mbspcasecmp: Fix function specification.
27346         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27347         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27348         Reported by Eric Blake <eblake@redhat.com>.
27349
27350 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27351
27352         timespec: use cast and not conditional, as truncation isn't possible
27353         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27354         instead of a conditional.  Comment about the situation in more detail.
27355         This undoes most of the 2009-10-29 patch.
27356
27357 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27358
27359         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27360         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27361         * lib/unistr/u8-strchr.c: Likewise.
27362         * modules/unistr/u8-chr: Depend on memchr.
27363
27364         unistr/u*-strchr: add tests
27365         * modules/unistr/u8-strchr-tests: New file.
27366         * modules/unistr/u16-strchr-tests: New file.
27367         * modules/unistr/u32-strchr-tests: New file.
27368         * tests/unistr/test-strchr.h: New file.
27369         * tests/unistr/test-u8-strchr.c: New file.
27370         * tests/unistr/test-u16-strchr.c: New file.
27371         * tests/unistr/test-u32-strchr.c: New file.
27372
27373         unistr/u*-chr: test multibyte sequences more
27374         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27375         test vector.
27376         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27377         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27378         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27379
27380         unistr/u*-chr: test multibyte sequences
27381         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27382
27383         unistr/u*-chr: prepare for multibyte tests
27384         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27385         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27386         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27387         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27388         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27389         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27390
27391 2010-07-18  Bruno Haible  <bruno@clisp.org>
27392
27393         unistr/u8-strchr: Optimize non-ASCII argument case.
27394         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27395         because the first byte often matches anyway.
27396         Reported by Pádraig Brady <P@draigbrady.com>.
27397
27398 2010-07-15  Karl Berry  <karl@gnu.org>
27399
27400         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27401
27402 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27403
27404         getcwd: on Solaris, work better if ancestors are inaccessible
27405         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27406         buffer and size, try again with a large buffer.  This works better
27407         on Solaris, since its getcwd succeeds even if the path to the root
27408         is inaccessible, and this is helpful in common cases such as .zfs
27409         hidden directories.  Problem reported by J Chapman Flack in
27410         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27411         Use system getcwd if it's declared, not merely if it's partly
27412         working; use the partly-working test only to avoid needless effort
27413         if the system getcwd fails.
27414         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27415         comment that was already obsolete and is now even more obsolete.
27416         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27417         now might call strdup.
27418
27419 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27420
27421         pthread: Add enough so that coreutils/src/sort.c compiles.
27422         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27423         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27424         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27425         Include <sys/types.h>, in case it defines pthread_t.
27426         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27427         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27428         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27429         (pthread_rwlockattr_t, pthread_spinlock_t):
27430         New typedefs, if HAVE_PTHREAD_T is not defined.
27431         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27432         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27433         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27434         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27435         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27436         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27437         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27438         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27439         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27440         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27441         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27442         New macros.
27443         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27444         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27445         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27446         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27447         (pthread_spin_unlock): New dummy functions.
27448         (pthread_create): Return EAGAIN; don't set errno.
27449         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27450         require AC_C_INLINE.
27451         * modules/pthread (Depends-on): Add sched, time.
27452         (pthread.h): Use AM_V_GEN.
27453
27454 2010-07-13  Bruno Haible  <bruno@clisp.org>
27455
27456         striconveh: Don't malloc memory if the result buffer is sufficient.
27457         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27458         buffer if its size is sufficient.
27459         Reported by Ludovic Courtès <ludo@gnu.org>.
27460
27461 2010-07-13  Bruno Haible  <bruno@clisp.org>
27462
27463         strtod: Add safety check.
27464         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27465
27466 2010-07-12  Bruno Haible  <bruno@clisp.org>
27467
27468         Unify tests that set gl_cv_func_ldexpl_no_libm.
27469         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27470         gl_FUNC_LDEXPL.
27471         (gl_FUNC_LDEXPL): Invoke it.
27472         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27473
27474 2010-07-12  Bruno Haible  <bruno@clisp.org>
27475
27476         Unify tests that set gl_cv_func_ldexp_no_libm.
27477         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27478         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27479         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27480         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27481         * modules/strtod (Files): Add m4/ldexp.m4.
27482
27483 2010-07-12  Bruno Haible  <bruno@clisp.org>
27484
27485         Unify tests that set gl_cv_func_frexpl_no_libm.
27486         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27487         gl_FUNC_FREXPL_NO_LIBM.
27488         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27489         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27490
27491 2010-07-12  Bruno Haible  <bruno@clisp.org>
27492
27493         Unify tests that set gl_cv_func_frexp_no_libm.
27494         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27495         gl_FUNC_FREXP_NO_LIBM.
27496         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27497         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27498
27499 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27500
27501         memcoll: clarify sizes versus lengths, document better, and tweak perf
27502         * lib/memcoll.c (strcoll_loop, memcoll0):
27503         Improve quality of descriptive comments.  Name variables
27504         consistently as to whether they are lengths (which do not include
27505         terminating null) versus sizes (which do).
27506         * lib/xmemcoll.c (xmemcoll0): Likewise.
27507         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27508         returned when s1size == 0; this is easier to compile and saves
27509         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27510
27511 2010-07-12  Bruno Haible  <bruno@clisp.org>
27512
27513         Tests for module '_Exit'.
27514         * modules/_Exit-tests: New file.
27515         * tests/test-_Exit.sh: New file.
27516         * tests/test-_Exit.c: New file.
27517
27518         New module '_Exit'.
27519         * lib/stdlib.in.h (__attribute__): New macro.
27520         (_Exit): New declaration.
27521         * lib/_Exit.c: New file.
27522         * m4/_Exit.m4: New file.
27523         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27524         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27525         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27526         * modules/_Exit: New file.
27527         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27528         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27529
27530 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27531
27532         strtod: make it more-accurate typically, and don't require libm
27533         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27534         Include limits.h.  Don't include string.h.
27535         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27536         (locale_isspace): New function, so that no casts are needed to
27537         check whether *s is a space.
27538         (ldexp): Provide an unused dummy if not available.
27539         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27540         (strtod): Use them.  This implementation prefers to use the
27541         underlying strtod if available, falling back on our own code
27542         only to fix known bugs.  This is more likely to produce an
27543         accurate result.  Also, it avoids the use of libm functions.
27544         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27545         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27546         was absent, but it caused a test failure with coreutils.
27547         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27548         with libm.
27549         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27550         * modules/strtod-tests (Makefile.am): Likewise.
27551
27552 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27553             Bruno Haible  <bruno@clisp.org>
27554
27555         unistr/u8-strchr: Optimize ASCII argument case.
27556         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27557
27558 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27559
27560         (x)memcoll: minor tweaks
27561         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27562         is after the type that it qualifies.
27563         (memcoll0): Likewise.
27564         * lib/memcoll.h (memcoll0): Likewise.
27565         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27566         * lib/xmemcoll.h (xmemcoll0): Likewise.
27567         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27568         differs from memcoll in that the NUL byte is part of the argument.
27569         Omit the abort-checks, as performance is a real issue here.  Plus,
27570         the checks were wrong anyway (an off-by-one error).  Omit local
27571         variable 'diff', as it's a bit clearer that way.
27572         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27573         no longer needed.
27574
27575 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27576
27577         (x)memcoll: speedup when input is known to be NUL delimited
27578         * lib/memcoll.c: Include stdlib.
27579         (memcoll0): New function.
27580         (strcoll_loop): New function, refactored for use in both memcoll
27581         and memcoll0.
27582         * lib/memcoll.h (memcoll0): Add prototype.
27583         * lib/xmemcoll.c (xmemcoll0): New function.
27584         (collate_error): New function, refactored for use in both xmemcoll
27585         and xmemcoll0.
27586         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27587         * m4/memcoll.m4: add inline invocation.
27588
27589 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27590
27591         * build-aux/bootstrap: Remove any local translations
27592         from the translation project synchronization directory,
27593         so that local only translations are not distributed.
27594
27595 2010-07-04  Bruno Haible  <bruno@clisp.org>
27596
27597         fsusage: Clarify which code applies to which platforms.
27598         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27599         platform.
27600         * lib/fsusage.c (get_fs_usage): Likewise.
27601
27602 2010-07-04  Bruno Haible  <bruno@clisp.org>
27603
27604         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27605         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27606         Reported by Martin Lambers <marlam@marlam.de>.
27607
27608 2010-07-04  Jim Meyering  <meyering@redhat.com>
27609
27610         hash: once again explicitly disallow insertion of NULL
27611         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27612         inserting a NULL pointer cannot work with these functions.
27613         Add a comment with details.
27614         This reverts part of the 2010-07-01 commit, 5bef1a35
27615         "hash: extend module to deal with non-pointer keys".
27616
27617 2010-07-01  Bruno Haible  <bruno@clisp.org>
27618
27619         stdbool: Update doc.
27620         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27621         Info from Christian Weisgerber <naddy@mips.inka.de>.
27622
27623 2010-07-01  Jim Meyering  <meyering@redhat.com>
27624
27625         hash: extend module to deal with non-pointer keys
27626         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27627         but that allows insertion of non-pointer entries.
27628         Do not disallow an ENTRY value of NULL.
27629         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27630         * lib/hash.h (hash_insert0): Declare.
27631
27632 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27633
27634         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27635         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27636         not present (i.e. with autoconf 2.59 and when using gettextize, not
27637         gnulib), require AC_GNU_SOURCE instead.
27638
27639 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27640
27641         idpriv-drop: Fix tests.
27642         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27643         not to the test-idpriv-droptemp program.
27644
27645 2010-06-29  Bruno Haible  <bruno@clisp.org>
27646
27647         string: Fix syntax error with g++ 2.96.
27648         * lib/string.in.h (__pure__): Remove definition.
27649         (_GL_ATTRIBUTE_PURE): New macro.
27650         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27651         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27652         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27653
27654 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27655
27656         unitypes: Fix bug introduced on 2010-05-18.
27657         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27658
27659 2010-06-22  Eric Blake  <eblake@redhat.com>
27660
27661         memmem: slight optimization
27662         * lib/str-two-way.h (critical_factorization): Update comments.
27663         Reduce work during factorization phase.
27664         Reported by Carlos Bueno <carlos@bueno.org>.
27665
27666 2010-06-21  Bruno Haible  <bruno@clisp.org>
27667
27668         Fix HAVE_CALLOC_POSIX misnomer.
27669         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27670         !HAVE_CALLOC_POSIX.
27671         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27672         HAVE_CALLOC_POSIX.
27673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27674         instead of HAVE_CALLOC_POSIX.
27675         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27676         HAVE_CALLOC_POSIX.
27677
27678         Use modern idiom for calloc() replacement.
27679         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27680         AC_FUNC_CALLOC.
27681         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27682         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27683         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27684         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27685         (gl_REPLACE_CALLOC): New macro.
27686
27687 2010-06-21  Bruno Haible  <bruno@clisp.org>
27688
27689         Fix HAVE_REALLOC_POSIX misnomer.
27690         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27691         !HAVE_REALLOC_POSIX.
27692         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27693         HAVE_REALLOC_POSIX.
27694         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27695         instead of HAVE_REALLOC_POSIX.
27696         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27697         HAVE_REALLOC_POSIX.
27698
27699         Use modern idiom for realloc() replacement.
27700         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27701         AC_FUNC_REALLOC.
27702         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27703         Autoconf's AC_FUNC_REALLOC.
27704         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27705         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27706         (gl_REPLACE_REALLOC): New macro.
27707         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27708
27709 2010-06-21  Bruno Haible  <bruno@clisp.org>
27710
27711         Fix HAVE_MALLOC_POSIX misnomer.
27712         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27713         !HAVE_MALLOC_POSIX.
27714         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27715         HAVE_MALLOC_POSIX.
27716         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27717         instead of HAVE_MALLOC_POSIX.
27718         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27719         HAVE_MALLOC_POSIX.
27720
27721         Use modern idiom for malloc() replacement.
27722         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27723         AC_FUNC_MALLOC.
27724         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27725         Autoconf's AC_FUNC_MALLOC.
27726         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27727         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27728         (gl_REPLACE_MALLOC): New macro.
27729         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27730
27731 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27732
27733         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27734         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27735         This macro takes 3 arguments, not 4.
27736
27737 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27738
27739         ipv6: fix detection under mingw
27740         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27741         in6_addr.
27742
27743 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27744
27745         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27746         that strtod() works when cross-compiling to a glibc version known
27747         to work.
27748
27749 2010-06-15  Bruno Haible  <bruno@clisp.org>
27750
27751         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27752
27753 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27754
27755         select: Correct timeout.
27756         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27757
27758 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27759
27760         git-version-gen: init shell var to avoid env var influence
27761         * build-aux/git-version-gen (v): Init shell var to empty.
27762
27763 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27764
27765         priv-set: Don't assume that priv.h exists merely because getppriv does.
27766         See Jan Andersen's bug report about AIX 5L in
27767         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27768         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27769         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27770         * lib/priv-set.h: Likewise.
27771         * tests/test-priv-set.c: Likewise.
27772
27773 2010-06-13  Bruno Haible  <bruno@clisp.org>
27774
27775         relocatable: Make it easier to test whether to install wrappers.
27776         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27777         RELOCATABLE_VIA_WRAPPER.
27778
27779 2010-06-13  Bruno Haible  <bruno@clisp.org>
27780
27781         gnulib-tool: Display specified modules and dependencies differently.
27782         * gnulib-tool (func_show_module_list): New function.
27783         (func_import, func_create_testdir): Invoke it.
27784         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27785
27786 2010-06-13  Bruno Haible  <bruno@clisp.org>
27787
27788         gnulib-tool: Align code of func_import and func_create_testdir.
27789         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27790         specified_modules.
27791
27792 2010-06-12  Jim Meyering  <meyering@redhat.com>
27793
27794         test-inttostr: avoid spurious failure on Solaris 9
27795         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27796         to accept "%ju".  Reported by Bruno Haible.
27797
27798 2010-06-11  Jim Meyering  <meyering@redhat.com>
27799
27800         test-sys_socket: mark variables as used more readably
27801         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27802         as "used" explicitly via (void) statement casts.  This is more
27803         readable than using them in an artificial return expression.
27804         Suggestion from Bruno Haible.
27805
27806 2010-06-11  Bruno Haible  <bruno@clisp.org>
27807
27808         Avoid some more warnings from "gcc -Wwrite-strings".
27809         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27810         to 'const char *'.
27811         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27812         * tests/test-c-strcasestr.c (main): Likewise.
27813         * tests/test-mbscasestr1.c (main): Likewise.
27814         * tests/test-mbscasestr2.c (main): Likewise.
27815         * tests/test-memmem.c (main): Likewise.
27816         * tests/test-strstr.c (main): Likewise.
27817         * tests/test-strcasestr.c (main): Likewise.
27818
27819 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27820
27821         init.sh: change framework_failure_ to fail with status 99, not 1
27822         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27823         automake's parallel-tests rule that this is an unexpected failure,
27824         even if the test is listed in XFAIL_TESTS.
27825
27826 2010-06-11  Jim Meyering  <meyering@redhat.com>
27827
27828         test-inttostr: avoid warnings about 4-6KB literal strings
27829         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27830         Include "macros.h", for its definition of ASSERT.
27831         (CK): s/assert/ASSERT/
27832         * modules/inttostr-tests (Files): Add macros.h.
27833
27834         init.sh: don't use $ME_ or skip_ before they are defined
27835         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27836         their first uses.  Also hoist their companions: warn_, fail_,
27837         framework_failure_, $stderr_fileno.  Prompted by a patch from
27838         Stefano Lattarini.
27839
27840         test-sys_socket: avoid set-but-not-used warnings from gcc
27841         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27842         avoid warning about set-but-not-used variables.
27843
27844         test-xvasprintf: avoid 'const' discard warnings
27845         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27846         "const" when assigning from literal strings.
27847         (test_xasprintf): Add "void" in function argument list to placate
27848         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27849
27850         tests: avoid compilation warnings in argmatch and exclude tests...
27851         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27852         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27853         Since it always exits, declare with the "noreturn" attribute.
27854         * tests/test-argmatch.c: Likewise.
27855
27856         tests: avoid 'const' discard warnings in mbsstr tests
27857         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27858         * tests/test-mbsstr2.c (main): Likewise.
27859
27860         test-verify: avoid warning from gcc's -Wmissing-declarations
27861         * tests/test-verify.c (function): Declare to be static.
27862
27863         test-inttostr.c: include <string.h> for use of strcmp
27864         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27865
27866         test-linkat: avoid failed assertion on "other" architectures
27867         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27868         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27869         sparc: https://bugs.launchpad.net/bugs/591968
27870
27871 2010-06-11  Jim Meyering  <meyering@redhat.com>
27872
27873         printf.m4: avoid autoconf's "Expanded Before Required" warning
27874         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27875         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27876         autoconf warning.
27877
27878 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27879
27880         Replacement header templates are now named with ".in", not "_".
27881         * doc/gnulib-intro.texi: Correct.
27882
27883 2010-06-10  Jim Meyering  <meyering@redhat.com>
27884
27885         inttostr-tests: depend on snprintf, not snprintf-posix
27886         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27887         snprintf-posix, to avoid this aclocal failure:
27888           missing file gnulib-tests/vasnprintf.c
27889           configure.ac:45: error: expected source file, required through \
27890           AC_LIBSOURCES, not found
27891
27892 2010-06-10  Jim Meyering  <meyering@redhat.com>
27893
27894         inttostr: add a new function, inttostr, and tests
27895         The namesake function was not available.  The existence of the
27896         template file, inttostr.c makes its addition nontrivial.
27897         * lib/anytostr.c: Rename from inttostr.c.
27898         (anytostr): Rename from inttostr.
27899         * lib/inttostr.c: New file.
27900         * modules/inttostr (Files): Add anytostr.c.
27901         (Makefile.am): Set lib_SOURCES instead of ...
27902         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27903         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27904         * lib/offtostr.c: Likewise.
27905         * lib/uinttostr.c: Likewise.
27906         * lib/umaxtostr.c: Likewise.
27907         * modules/inttostr-tests: New file.
27908         * tests/test-inttostr.c: New file.  Test these functions.
27909
27910 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27911             Bruno Haible  <bruno@clisp.org>
27912
27913         Add "Extending Gnulib" chapter to manual.
27914         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27915         chapter.
27916         (Extending Gnulib): New chapter.
27917         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27918         chapter.
27919
27920 2010-06-09  Bruno Haible  <bruno@clisp.org>
27921
27922         Avoid relocwrapper link errors due to gnulib replacement functions.
27923         * lib/areadlink.c: Use the system's malloc, realloc functions.
27924         (areadlink): Set errno to ENOMEM explicitly.
27925         * modules/areadlink (Depends-on): Remove malloc-posix.
27926         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27927
27928 2010-06-09  Bruno Haible  <bruno@clisp.org>
27929
27930         Avoid relocwrapper link errors due to gnulib replacement functions.
27931         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27932         * lib/malloca.c: Likewise.
27933         * lib/relocatable.c: Likewise.
27934         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27935         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27936         * lib/setenv.c: Use the system's malloc, realloc functions.
27937         * lib/strerror.c: Use the system's sprintf function.
27938         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27939
27940 2010-06-04  Bruno Haible  <bruno@clisp.org>
27941
27942         Prefer documented low-level autoconf macro names.
27943         * m4/lib-link.m4: Use m4_translit instead of translit.
27944         * m4/environ.m4: Likewise.
27945         * m4/mathfunc.m4: Likewise.
27946         * m4/onceonly.m4: Likewise.
27947         * m4/stdint.m4: Likewise.
27948         Suggested by Eric Blake.
27949
27950 2010-06-04  Martin Lambers  <marlam@marlam.de>
27951             Bruno Haible  <bruno@clisp.org>
27952
27953         havelib: Allow library names with '+' characters.
27954         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27955         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27956
27957 2010-06-09  Bruno Haible  <bruno@clisp.org>
27958
27959         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27960         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27961         realloc failed.
27962
27963 2010-06-08  Peter Simons  <simons@cryp.to>
27964
27965         maint.mk: make the news-check rule more configurable
27966         * top/maint.mk (news-check-lines-spec): New variable.
27967         (news-check): Use "sed -n 1,10p" in place of "head".
27968
27969 2010-06-07  Jim Meyering  <meyering@redhat.com>
27970
27971         do-release-commit-and-tag: fix typo in --help
27972         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27973
27974         regex: avoid new dead-code warning with gcc-4.6.0
27975         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27976         if-block containing a while-loop.  It's been unused for at least
27977         5 years.
27978
27979 2010-06-05  Bruno Haible  <bruno@clisp.org>
27980
27981         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27982         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27983
27984 2010-06-04  Bruno Haible  <bruno@clisp.org>
27985
27986         Update to GNU gettext 0.18.1.
27987         * modules/gettext (configure.ac): Require gettext infrastructure from
27988         version 0.18.1.
27989
27990 2010-06-03  Bruno Haible  <bruno@clisp.org>
27991
27992         Don't use AC_LIBOBJ with file names in subdirectories.
27993         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27994         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27995         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27996         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27997         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27998         gl_LIBUNISTRING_LIBSOURCE.
27999         (Makefile.am): Augment lib_SOURCES here, conditionally.
28000         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28001
28002 2010-06-03  Bruno Haible  <bruno@clisp.org>
28003
28004         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28005         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28006         expansion does not end with a newline.
28007         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28008         unnecessary newline.
28009
28010 2010-06-03  Bruno Haible  <bruno@clisp.org>
28011
28012         Reduce dependencies.
28013         * tests/test-quotearg.h: New file, extracted from
28014         tests/test-quotearg.c.
28015         * tests/test-quotearg-simple.c: New file, extracted from
28016         tests/test-quotearg.c.
28017         * tests/test-quotearg.c: Don't include <ctype.h>.
28018         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28019         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28020         use_quote_double_quotes, use_quotearg_colon): Moved to
28021         tests/test-quotearg.h.
28022         (results_g, flag_results, custom_quotes, custom_results): Moved
28023         to tests/test-quotearg-simple.c.
28024         (main): Moved the part that does not depend on gettext to
28025         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28026         performed.
28027         * modules/quotearg-simple: New file.
28028         * modules/quotearg-simple-tests: New file.
28029         * modules/quotearg (Depends-on): Add quotearg-simple.
28030         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28031         (Files): Add tests/test-quotearg.h.
28032         Reported by Paolo Bonzini.
28033
28034 2010-06-03  Bruno Haible  <bruno@clisp.org>
28035
28036         Reduce dependencies.
28037         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28038
28039 2010-06-03  Bruno Haible  <bruno@clisp.org>
28040
28041         time: Undefine more broken macros.
28042         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28043         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28044         Reported by Eric Blake.
28045
28046 2010-06-03  Bruno Haible  <bruno@clisp.org>
28047
28048         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28049         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28050         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28051         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28052         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28053         Reported by Ludovic Courtès <ludo@gnu.org>.
28054
28055 2010-06-02  Eric Blake  <eblake@redhat.com>
28056
28057         time: work with mingw + pthreads-win32 library
28058         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28059         if timespec is defined only in pthread.h.
28060         * modules/time (Makefile.am): Substitute it.
28061         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28062         <pthread.h>, when needed.
28063         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28064         from the library.
28065
28066 2010-05-31  Bruno Haible  <bruno@clisp.org>
28067
28068         Avoid expanding two macros in the wrong order.
28069         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28070         gl_LIBUNISTRING if it is defined.
28071         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28072         autoconf >= 2.64.
28073         Reported by Ludovic Courtès <ludo@gnu.org>.
28074
28075 2010-05-27  Jim Meyering  <meyering@redhat.com>
28076
28077         maint.mk: also prohibit "#undef" of always-defined symbols
28078         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28079         Allow more than one space before the symbol name.
28080         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28081         the regexp uses alternation.
28082
28083 2010-05-26  Eric Blake  <eblake@redhat.com>
28084
28085         maint.mk: avoid echo -e
28086         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28087         Convert all uses of echo -* to printf.
28088         Reported by Matthias Bolte.
28089
28090 2010-05-25  Bruno Haible  <bruno@clisp.org>
28091
28092         Update to GNU gettext 0.18, part 2.
28093         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28094         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28095
28096 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28097
28098         Add missing include in test-pwrite.c.
28099         * tests/test-pwrite.c: Include string.h, for strcmp.
28100
28101 2010-05-24  Bruno Haible  <bruno@clisp.org>
28102
28103         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28104
28105 2010-05-24  Bruno Haible  <bruno@clisp.org>
28106
28107         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28108         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28109         iconveh_error argument.
28110         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28111         U_STRCONV_TO_LOCALE.
28112         * lib/unistr/u16-strcoll.c: Likewise.
28113         * lib/unistr/u32-strcoll.c: Likewise.
28114         * modules/unistr/u8-strcoll (Depends-on): Add
28115         uniconv/u8-strconv-to-enc, localcharset. Remove
28116         uniconv/u8-strconv-to-locale.
28117         (configure.ac): Bump version number.
28118         * modules/unistr/u16-strcoll (Depends-on): Add
28119         uniconv/u16-strconv-to-enc, localcharset. Remove
28120         uniconv/u16-strconv-to-locale.
28121         (configure.ac): Bump version number.
28122         * modules/unistr/u32-strcoll (Depends-on): Add
28123         uniconv/u32-strconv-to-enc, localcharset. Remove
28124         uniconv/u32-strconv-to-locale.
28125         (configure.ac): Bump version number.
28126
28127 2010-05-24  Bruno Haible  <bruno@clisp.org>
28128
28129         Avoid a test failure on NetBSD 5.0.
28130         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28131         an iconv() bug.
28132
28133 2010-05-24  Bruno Haible  <bruno@clisp.org>
28134
28135         Adjust #include directive style.
28136         * modules/regex (Includes): Recommend to write <regex.h>.
28137
28138 2010-05-24  Bruno Haible  <bruno@clisp.org>
28139
28140         regex: Don't require alloca.
28141         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28142         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28143         only inside if (0).
28144
28145 2010-05-23  Jim Meyering  <meyering@redhat.com>
28146
28147         test-renameat.c: include <sys/stat.h>
28148         * tests/test-renameat.c: Include <sys/stat.h>; required for
28149         definition of S_IS* macros.
28150
28151 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28152
28153         Update maintainer documentation for 'relocatable-prog' module.
28154         * doc/relocatable-maint.texi: Update.
28155         Comments by Bruno Haible.
28156
28157 2010-05-23  Bruno Haible  <bruno@clisp.org>
28158
28159         git-merge-changelog: Enable --split-merged-entry by default.
28160         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28161         (usage): Don't mention this option any more.
28162         Reported by Ralf Wildenhues.
28163
28164 2010-05-23  Jim Meyering  <meyering@redhat.com>
28165
28166         test-pwrite: do not leave behind a test file named "out"
28167         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28168         The trivial-looking use of init.sh is really necessary.
28169         It ensures that the temporary file, "out", is created in
28170         a temporary directory, and removed upon termination.
28171         * tests/test-pwrite.sh: Re-add file.
28172         * modules/pwrite-tests: Reference it.
28173
28174 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28175
28176         Fix output redirection buglet in init.sh.
28177         * tests/init.sh: Fix redirection of stderr.
28178
28179 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28180
28181         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28182
28183 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28184
28185         * modules/valgrind-tests: New file.
28186         * m4/valgrind-tests.m4: New file.
28187         * doc/valgrind-tests.texi: New file.
28188         * doc/gnulib.texi (Running self-tests under valgrind): New
28189         section.
28190
28191 2010-05-19  Bruno Haible  <bruno@clisp.org>
28192
28193         Clean up dead code in recent commit.
28194         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28195         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28196         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28197         Suggested by Paolo Bonzini.
28198
28199 2010-05-19  Bruno Haible  <bruno@clisp.org>
28200
28201         Avoid valgrind error reports from libunistring.
28202         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28203         * modules/libunistring (Files): Add it.
28204         * modules/libunistring-optional (Files): Likewise.
28205
28206 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28207             Bruno Haible  <bruno@clisp.org>
28208
28209         New module 'libunistring-optional'.
28210         * modules/libunistring-optional: New file.
28211         * m4/libunistring-base.m4: New file.
28212         * m4/libunistring-optional.m4: New file.
28213         * lib/unicase.in.h: Renamed from lib/unicase.h.
28214         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28215         * lib/unictype.in.h: Renamed from lib/unictype.h.
28216         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28217         * lib/uniname.in.h: Renamed from lib/uniname.h.
28218         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28219         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28220         * lib/unistr.in.h: Renamed from lib/unistr.h.
28221         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28222         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28223         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28224         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28225         gl_LIBUNISTRING. If the library was found, determine the installed
28226         version and set LIBUNISTRING_VERSION.
28227         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28228         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28229         handle a configuration option --with-included-libunistring.
28230         * modules/libunistring (Files): Add m4/absolute-header.m4.
28231         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28232         Add m4/libunistring-base.m4.
28233         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28234         (Makefile.am): Build unicase.h from unicase.in.h.
28235         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28236         Add m4/libunistring-base.m4.
28237         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28238         (Makefile.am): Build uniconv.h from uniconv.in.h.
28239         * modules/unictype/base (Files): Use unictype.in.h instead of
28240         unictype.h. Add m4/libunistring-base.m4.
28241         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28242         (Makefile.am): Build unictype.h from unictype.in.h.
28243         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28244         Add m4/libunistring-base.m4.
28245         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28246         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28247         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28248         Add m4/libunistring-base.m4.
28249         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28250         (Makefile.am): Build uniname.h from uniname.in.h.
28251         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28252         Add m4/libunistring-base.m4.
28253         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28254         (Makefile.am): Build uninorm.h from uninorm.in.h.
28255         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28256         unistdio.h. Add m4/libunistring-base.m4.
28257         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28258         (Makefile.am): Build unistdio.h from unistdio.in.h.
28259         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28260         Add m4/libunistring-base.m4.
28261         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28262         (Makefile.am): Build unistr.h from unistr.in.h.
28263         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28264         Add m4/libunistring-base.m4.
28265         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28266         (Makefile.am): Build unitypes.h from unitypes.in.h.
28267         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28268         Add m4/libunistring-base.m4.
28269         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28270         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28271         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28272         uniwidth.h. Add m4/libunistring-base.m4.
28273         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28274         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28275         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28276         instead of augmenting lib_SOURCES.
28277         * modules/unicase/empty-suffix-context: Likewise.
28278         * modules/unicase/locale-language: Likewise.
28279         * modules/unicase/tolower: Likewise.
28280         * modules/unicase/totitle: Likewise.
28281         * modules/unicase/toupper: Likewise.
28282         * modules/unicase/u8-casecmp: Likewise.
28283         * modules/unicase/u8-casecoll: Likewise.
28284         * modules/unicase/u8-casefold: Likewise.
28285         * modules/unicase/u8-casexfrm: Likewise.
28286         * modules/unicase/u8-ct-casefold: Likewise.
28287         * modules/unicase/u8-ct-tolower: Likewise.
28288         * modules/unicase/u8-ct-totitle: Likewise.
28289         * modules/unicase/u8-ct-toupper: Likewise.
28290         * modules/unicase/u8-is-cased: Likewise.
28291         * modules/unicase/u8-is-casefolded: Likewise.
28292         * modules/unicase/u8-is-lowercase: Likewise.
28293         * modules/unicase/u8-is-titlecase: Likewise.
28294         * modules/unicase/u8-is-uppercase: Likewise.
28295         * modules/unicase/u8-prefix-context: Likewise.
28296         * modules/unicase/u8-suffix-context: Likewise.
28297         * modules/unicase/u8-tolower: Likewise.
28298         * modules/unicase/u8-totitle: Likewise.
28299         * modules/unicase/u8-toupper: Likewise.
28300         * modules/unicase/u16-casecmp: Likewise.
28301         * modules/unicase/u16-casecoll: Likewise.
28302         * modules/unicase/u16-casefold: Likewise.
28303         * modules/unicase/u16-casexfrm: Likewise.
28304         * modules/unicase/u16-ct-casefold: Likewise.
28305         * modules/unicase/u16-ct-tolower: Likewise.
28306         * modules/unicase/u16-ct-totitle: Likewise.
28307         * modules/unicase/u16-ct-toupper: Likewise.
28308         * modules/unicase/u16-is-cased: Likewise.
28309         * modules/unicase/u16-is-casefolded: Likewise.
28310         * modules/unicase/u16-is-lowercase: Likewise.
28311         * modules/unicase/u16-is-titlecase: Likewise.
28312         * modules/unicase/u16-is-uppercase: Likewise.
28313         * modules/unicase/u16-prefix-context: Likewise.
28314         * modules/unicase/u16-suffix-context: Likewise.
28315         * modules/unicase/u16-tolower: Likewise.
28316         * modules/unicase/u16-totitle: Likewise.
28317         * modules/unicase/u16-toupper: Likewise.
28318         * modules/unicase/u32-casecmp: Likewise.
28319         * modules/unicase/u32-casecoll: Likewise.
28320         * modules/unicase/u32-casefold: Likewise.
28321         * modules/unicase/u32-casexfrm: Likewise.
28322         * modules/unicase/u32-ct-casefold: Likewise.
28323         * modules/unicase/u32-ct-tolower: Likewise.
28324         * modules/unicase/u32-ct-totitle: Likewise.
28325         * modules/unicase/u32-ct-toupper: Likewise.
28326         * modules/unicase/u32-is-cased: Likewise.
28327         * modules/unicase/u32-is-casefolded: Likewise.
28328         * modules/unicase/u32-is-lowercase: Likewise.
28329         * modules/unicase/u32-is-titlecase: Likewise.
28330         * modules/unicase/u32-is-uppercase: Likewise.
28331         * modules/unicase/u32-prefix-context: Likewise.
28332         * modules/unicase/u32-suffix-context: Likewise.
28333         * modules/unicase/u32-tolower: Likewise.
28334         * modules/unicase/u32-totitle: Likewise.
28335         * modules/unicase/u32-toupper: Likewise.
28336         * modules/unicase/ulc-casecmp: Likewise.
28337         * modules/unicase/ulc-casecoll: Likewise.
28338         * modules/unicase/ulc-casexfrm: Likewise.
28339         * modules/uniconv/u8-conv-from-enc: Likewise.
28340         * modules/uniconv/u8-conv-to-enc: Likewise.
28341         * modules/uniconv/u8-strconv-from-enc: Likewise.
28342         * modules/uniconv/u8-strconv-from-locale: Likewise.
28343         * modules/uniconv/u8-strconv-to-enc: Likewise.
28344         * modules/uniconv/u8-strconv-to-locale: Likewise.
28345         * modules/uniconv/u16-conv-from-enc: Likewise.
28346         * modules/uniconv/u16-conv-to-enc: Likewise.
28347         * modules/uniconv/u16-strconv-from-enc: Likewise.
28348         * modules/uniconv/u16-strconv-from-locale: Likewise.
28349         * modules/uniconv/u16-strconv-to-enc: Likewise.
28350         * modules/uniconv/u16-strconv-to-locale: Likewise.
28351         * modules/uniconv/u32-conv-from-enc: Likewise.
28352         * modules/uniconv/u32-conv-to-enc: Likewise.
28353         * modules/uniconv/u32-strconv-from-enc: Likewise.
28354         * modules/uniconv/u32-strconv-from-locale: Likewise.
28355         * modules/uniconv/u32-strconv-to-enc: Likewise.
28356         * modules/uniconv/u32-strconv-to-locale: Likewise.
28357         * modules/unictype/bidicategory-byname: Likewise.
28358         * modules/unictype/bidicategory-name: Likewise.
28359         * modules/unictype/bidicategory-of: Likewise.
28360         * modules/unictype/bidicategory-test: Likewise.
28361         * modules/unictype/block-list: Likewise.
28362         * modules/unictype/block-test: Likewise.
28363         * modules/unictype/category-C: Likewise.
28364         * modules/unictype/category-Cc: Likewise.
28365         * modules/unictype/category-Cf: Likewise.
28366         * modules/unictype/category-Cn: Likewise.
28367         * modules/unictype/category-Co: Likewise.
28368         * modules/unictype/category-Cs: Likewise.
28369         * modules/unictype/category-L: Likewise.
28370         * modules/unictype/category-Ll: Likewise.
28371         * modules/unictype/category-Lm: Likewise.
28372         * modules/unictype/category-Lo: Likewise.
28373         * modules/unictype/category-Lt: Likewise.
28374         * modules/unictype/category-Lu: Likewise.
28375         * modules/unictype/category-M: Likewise.
28376         * modules/unictype/category-Mc: Likewise.
28377         * modules/unictype/category-Me: Likewise.
28378         * modules/unictype/category-Mn: Likewise.
28379         * modules/unictype/category-N: Likewise.
28380         * modules/unictype/category-Nd: Likewise.
28381         * modules/unictype/category-Nl: Likewise.
28382         * modules/unictype/category-No: Likewise.
28383         * modules/unictype/category-P: Likewise.
28384         * modules/unictype/category-Pc: Likewise.
28385         * modules/unictype/category-Pd: Likewise.
28386         * modules/unictype/category-Pe: Likewise.
28387         * modules/unictype/category-Pf: Likewise.
28388         * modules/unictype/category-Pi: Likewise.
28389         * modules/unictype/category-Po: Likewise.
28390         * modules/unictype/category-Ps: Likewise.
28391         * modules/unictype/category-S: Likewise.
28392         * modules/unictype/category-Sc: Likewise.
28393         * modules/unictype/category-Sk: Likewise.
28394         * modules/unictype/category-Sm: Likewise.
28395         * modules/unictype/category-So: Likewise.
28396         * modules/unictype/category-Z: Likewise.
28397         * modules/unictype/category-Zl: Likewise.
28398         * modules/unictype/category-Zp: Likewise.
28399         * modules/unictype/category-Zs: Likewise.
28400         * modules/unictype/category-and: Likewise.
28401         * modules/unictype/category-and-not: Likewise.
28402         * modules/unictype/category-byname: Likewise.
28403         * modules/unictype/category-name: Likewise.
28404         * modules/unictype/category-none: Likewise.
28405         * modules/unictype/category-of: Likewise.
28406         * modules/unictype/category-or: Likewise.
28407         * modules/unictype/category-test: Likewise.
28408         * modules/unictype/combining-class: Likewise.
28409         * modules/unictype/ctype-alnum: Likewise.
28410         * modules/unictype/ctype-alpha: Likewise.
28411         * modules/unictype/ctype-blank: Likewise.
28412         * modules/unictype/ctype-cntrl: Likewise.
28413         * modules/unictype/ctype-digit: Likewise.
28414         * modules/unictype/ctype-graph: Likewise.
28415         * modules/unictype/ctype-lower: Likewise.
28416         * modules/unictype/ctype-print: Likewise.
28417         * modules/unictype/ctype-punct: Likewise.
28418         * modules/unictype/ctype-space: Likewise.
28419         * modules/unictype/ctype-upper: Likewise.
28420         * modules/unictype/ctype-xdigit: Likewise.
28421         * modules/unictype/decimal-digit: Likewise.
28422         * modules/unictype/digit: Likewise.
28423         * modules/unictype/mirror: Likewise.
28424         * modules/unictype/numeric: Likewise.
28425         * modules/unictype/property-alphabetic: Likewise.
28426         * modules/unictype/property-ascii-hex-digit: Likewise.
28427         * modules/unictype/property-bidi-arabic-digit: Likewise.
28428         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28429         * modules/unictype/property-bidi-block-separator: Likewise.
28430         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28431         * modules/unictype/property-bidi-common-separator: Likewise.
28432         * modules/unictype/property-bidi-control: Likewise.
28433         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28434         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28435         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28436         * modules/unictype/property-bidi-european-digit: Likewise.
28437         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28438         * modules/unictype/property-bidi-left-to-right: Likewise.
28439         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28440         * modules/unictype/property-bidi-other-neutral: Likewise.
28441         * modules/unictype/property-bidi-pdf: Likewise.
28442         * modules/unictype/property-bidi-segment-separator: Likewise.
28443         * modules/unictype/property-bidi-whitespace: Likewise.
28444         * modules/unictype/property-byname: Likewise.
28445         * modules/unictype/property-combining: Likewise.
28446         * modules/unictype/property-composite: Likewise.
28447         * modules/unictype/property-currency-symbol: Likewise.
28448         * modules/unictype/property-dash: Likewise.
28449         * modules/unictype/property-decimal-digit: Likewise.
28450         * modules/unictype/property-default-ignorable-code-point: Likewise.
28451         * modules/unictype/property-deprecated: Likewise.
28452         * modules/unictype/property-diacritic: Likewise.
28453         * modules/unictype/property-extender: Likewise.
28454         * modules/unictype/property-format-control: Likewise.
28455         * modules/unictype/property-grapheme-base: Likewise.
28456         * modules/unictype/property-grapheme-extend: Likewise.
28457         * modules/unictype/property-grapheme-link: Likewise.
28458         * modules/unictype/property-hex-digit: Likewise.
28459         * modules/unictype/property-hyphen: Likewise.
28460         * modules/unictype/property-id-continue: Likewise.
28461         * modules/unictype/property-id-start: Likewise.
28462         * modules/unictype/property-ideographic: Likewise.
28463         * modules/unictype/property-ids-binary-operator: Likewise.
28464         * modules/unictype/property-ids-trinary-operator: Likewise.
28465         * modules/unictype/property-ignorable-control: Likewise.
28466         * modules/unictype/property-iso-control: Likewise.
28467         * modules/unictype/property-join-control: Likewise.
28468         * modules/unictype/property-left-of-pair: Likewise.
28469         * modules/unictype/property-line-separator: Likewise.
28470         * modules/unictype/property-logical-order-exception: Likewise.
28471         * modules/unictype/property-lowercase: Likewise.
28472         * modules/unictype/property-math: Likewise.
28473         * modules/unictype/property-non-break: Likewise.
28474         * modules/unictype/property-not-a-character: Likewise.
28475         * modules/unictype/property-numeric: Likewise.
28476         * modules/unictype/property-other-alphabetic: Likewise.
28477         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28478         * modules/unictype/property-other-grapheme-extend: Likewise.
28479         * modules/unictype/property-other-id-continue: Likewise.
28480         * modules/unictype/property-other-id-start: Likewise.
28481         * modules/unictype/property-other-lowercase: Likewise.
28482         * modules/unictype/property-other-math: Likewise.
28483         * modules/unictype/property-other-uppercase: Likewise.
28484         * modules/unictype/property-paired-punctuation: Likewise.
28485         * modules/unictype/property-paragraph-separator: Likewise.
28486         * modules/unictype/property-pattern-syntax: Likewise.
28487         * modules/unictype/property-pattern-white-space: Likewise.
28488         * modules/unictype/property-private-use: Likewise.
28489         * modules/unictype/property-punctuation: Likewise.
28490         * modules/unictype/property-quotation-mark: Likewise.
28491         * modules/unictype/property-radical: Likewise.
28492         * modules/unictype/property-sentence-terminal: Likewise.
28493         * modules/unictype/property-soft-dotted: Likewise.
28494         * modules/unictype/property-space: Likewise.
28495         * modules/unictype/property-terminal-punctuation: Likewise.
28496         * modules/unictype/property-test: Likewise.
28497         * modules/unictype/property-titlecase: Likewise.
28498         * modules/unictype/property-unassigned-code-value: Likewise.
28499         * modules/unictype/property-unified-ideograph: Likewise.
28500         * modules/unictype/property-uppercase: Likewise.
28501         * modules/unictype/property-variation-selector: Likewise.
28502         * modules/unictype/property-white-space: Likewise.
28503         * modules/unictype/property-xid-continue: Likewise.
28504         * modules/unictype/property-xid-start: Likewise.
28505         * modules/unictype/property-zero-width: Likewise.
28506         * modules/unictype/scripts: Likewise.
28507         * modules/unictype/syntax-c-ident: Likewise.
28508         * modules/unictype/syntax-c-whitespace: Likewise.
28509         * modules/unictype/syntax-java-ident: Likewise.
28510         * modules/unictype/syntax-java-whitespace: Likewise.
28511         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28512         * modules/unilbrk/u8-width-linebreaks: Likewise.
28513         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28514         * modules/unilbrk/u16-width-linebreaks: Likewise.
28515         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28516         * modules/unilbrk/u32-width-linebreaks: Likewise.
28517         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28518         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28519         * modules/uniname/uniname: Likewise.
28520         * modules/uninorm/canonical-decomposition: Likewise.
28521         * modules/uninorm/composition: Likewise.
28522         * modules/uninorm/decomposing-form: Likewise.
28523         * modules/uninorm/decomposition: Likewise.
28524         * modules/uninorm/filter: Likewise.
28525         * modules/uninorm/nfc: Likewise.
28526         * modules/uninorm/nfd: Likewise.
28527         * modules/uninorm/nfkc: Likewise.
28528         * modules/uninorm/nfkd: Likewise.
28529         * modules/uninorm/u8-normalize: Likewise.
28530         * modules/uninorm/u8-normcmp: Likewise.
28531         * modules/uninorm/u8-normcoll: Likewise.
28532         * modules/uninorm/u8-normxfrm: Likewise.
28533         * modules/uninorm/u16-normalize: Likewise.
28534         * modules/uninorm/u16-normcmp: Likewise.
28535         * modules/uninorm/u16-normcoll: Likewise.
28536         * modules/uninorm/u16-normxfrm: Likewise.
28537         * modules/uninorm/u32-normalize: Likewise.
28538         * modules/uninorm/u32-normcmp: Likewise.
28539         * modules/uninorm/u32-normcoll: Likewise.
28540         * modules/uninorm/u32-normxfrm: Likewise.
28541         * modules/unistdio/u8-asnprintf: Likewise.
28542         * modules/unistdio/u8-asprintf: Likewise.
28543         * modules/unistdio/u8-snprintf: Likewise.
28544         * modules/unistdio/u8-sprintf: Likewise.
28545         * modules/unistdio/u8-u8-asnprintf: Likewise.
28546         * modules/unistdio/u8-u8-asprintf: Likewise.
28547         * modules/unistdio/u8-u8-snprintf: Likewise.
28548         * modules/unistdio/u8-u8-sprintf: Likewise.
28549         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28550         * modules/unistdio/u8-u8-vasprintf: Likewise.
28551         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28552         * modules/unistdio/u8-u8-vsprintf: Likewise.
28553         * modules/unistdio/u8-vasnprintf: Likewise.
28554         * modules/unistdio/u8-vasprintf: Likewise.
28555         * modules/unistdio/u8-vsnprintf: Likewise.
28556         * modules/unistdio/u8-vsprintf: Likewise.
28557         * modules/unistdio/u16-asnprintf: Likewise.
28558         * modules/unistdio/u16-asprintf: Likewise.
28559         * modules/unistdio/u16-snprintf: Likewise.
28560         * modules/unistdio/u16-sprintf: Likewise.
28561         * modules/unistdio/u16-u16-asnprintf: Likewise.
28562         * modules/unistdio/u16-u16-asprintf: Likewise.
28563         * modules/unistdio/u16-u16-snprintf: Likewise.
28564         * modules/unistdio/u16-u16-sprintf: Likewise.
28565         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28566         * modules/unistdio/u16-u16-vasprintf: Likewise.
28567         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28568         * modules/unistdio/u16-u16-vsprintf: Likewise.
28569         * modules/unistdio/u16-vasnprintf: Likewise.
28570         * modules/unistdio/u16-vasprintf: Likewise.
28571         * modules/unistdio/u16-vsnprintf: Likewise.
28572         * modules/unistdio/u16-vsprintf: Likewise.
28573         * modules/unistdio/u32-asnprintf: Likewise.
28574         * modules/unistdio/u32-asprintf: Likewise.
28575         * modules/unistdio/u32-snprintf: Likewise.
28576         * modules/unistdio/u32-sprintf: Likewise.
28577         * modules/unistdio/u32-u32-asnprintf: Likewise.
28578         * modules/unistdio/u32-u32-asprintf: Likewise.
28579         * modules/unistdio/u32-u32-snprintf: Likewise.
28580         * modules/unistdio/u32-u32-sprintf: Likewise.
28581         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28582         * modules/unistdio/u32-u32-vasprintf: Likewise.
28583         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28584         * modules/unistdio/u32-u32-vsprintf: Likewise.
28585         * modules/unistdio/u32-vasnprintf: Likewise.
28586         * modules/unistdio/u32-vasprintf: Likewise.
28587         * modules/unistdio/u32-vsnprintf: Likewise.
28588         * modules/unistdio/u32-vsprintf: Likewise.
28589         * modules/unistdio/ulc-asnprintf: Likewise.
28590         * modules/unistdio/ulc-asprintf: Likewise.
28591         * modules/unistdio/ulc-fprintf: Likewise.
28592         * modules/unistdio/ulc-snprintf: Likewise.
28593         * modules/unistdio/ulc-sprintf: Likewise.
28594         * modules/unistdio/ulc-vasnprintf: Likewise.
28595         * modules/unistdio/ulc-vasprintf: Likewise.
28596         * modules/unistdio/ulc-vfprintf: Likewise.
28597         * modules/unistdio/ulc-vsnprintf: Likewise.
28598         * modules/unistdio/ulc-vsprintf: Likewise.
28599         * modules/unistr/u8-check: Likewise.
28600         * modules/unistr/u8-chr: Likewise.
28601         * modules/unistr/u8-cmp: Likewise.
28602         * modules/unistr/u8-cmp2: Likewise.
28603         * modules/unistr/u8-cpy: Likewise.
28604         * modules/unistr/u8-cpy-alloc: Likewise.
28605         * modules/unistr/u8-endswith: Likewise.
28606         * modules/unistr/u8-mblen: Likewise.
28607         * modules/unistr/u8-mbsnlen: Likewise.
28608         * modules/unistr/u8-mbtouc: Likewise.
28609         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28610         * modules/unistr/u8-mbtoucr: Likewise.
28611         * modules/unistr/u8-move: Likewise.
28612         * modules/unistr/u8-next: Likewise.
28613         * modules/unistr/u8-prev: Likewise.
28614         * modules/unistr/u8-set: Likewise.
28615         * modules/unistr/u8-startswith: Likewise.
28616         * modules/unistr/u8-stpcpy: Likewise.
28617         * modules/unistr/u8-stpncpy: Likewise.
28618         * modules/unistr/u8-strcat: Likewise.
28619         * modules/unistr/u8-strchr: Likewise.
28620         * modules/unistr/u8-strcmp: Likewise.
28621         * modules/unistr/u8-strcoll: Likewise.
28622         * modules/unistr/u8-strcpy: Likewise.
28623         * modules/unistr/u8-strcspn: Likewise.
28624         * modules/unistr/u8-strdup: Likewise.
28625         * modules/unistr/u8-strlen: Likewise.
28626         * modules/unistr/u8-strmblen: Likewise.
28627         * modules/unistr/u8-strmbtouc: Likewise.
28628         * modules/unistr/u8-strncat: Likewise.
28629         * modules/unistr/u8-strncmp: Likewise.
28630         * modules/unistr/u8-strncpy: Likewise.
28631         * modules/unistr/u8-strnlen: Likewise.
28632         * modules/unistr/u8-strpbrk: Likewise.
28633         * modules/unistr/u8-strrchr: Likewise.
28634         * modules/unistr/u8-strspn: Likewise.
28635         * modules/unistr/u8-strstr: Likewise.
28636         * modules/unistr/u8-strtok: Likewise.
28637         * modules/unistr/u8-to-u16: Likewise.
28638         * modules/unistr/u8-to-u32: Likewise.
28639         * modules/unistr/u8-uctomb: Likewise.
28640         * modules/unistr/u16-check: Likewise.
28641         * modules/unistr/u16-chr: Likewise.
28642         * modules/unistr/u16-cmp: Likewise.
28643         * modules/unistr/u16-cmp2: Likewise.
28644         * modules/unistr/u16-cpy: Likewise.
28645         * modules/unistr/u16-cpy-alloc: Likewise.
28646         * modules/unistr/u16-endswith: Likewise.
28647         * modules/unistr/u16-mblen: Likewise.
28648         * modules/unistr/u16-mbsnlen: Likewise.
28649         * modules/unistr/u16-mbtouc: Likewise.
28650         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28651         * modules/unistr/u16-mbtoucr: Likewise.
28652         * modules/unistr/u16-move: Likewise.
28653         * modules/unistr/u16-next: Likewise.
28654         * modules/unistr/u16-prev: Likewise.
28655         * modules/unistr/u16-set: Likewise.
28656         * modules/unistr/u16-startswith: Likewise.
28657         * modules/unistr/u16-stpcpy: Likewise.
28658         * modules/unistr/u16-stpncpy: Likewise.
28659         * modules/unistr/u16-strcat: Likewise.
28660         * modules/unistr/u16-strchr: Likewise.
28661         * modules/unistr/u16-strcmp: Likewise.
28662         * modules/unistr/u16-strcoll: Likewise.
28663         * modules/unistr/u16-strcpy: Likewise.
28664         * modules/unistr/u16-strcspn: Likewise.
28665         * modules/unistr/u16-strdup: Likewise.
28666         * modules/unistr/u16-strlen: Likewise.
28667         * modules/unistr/u16-strmblen: Likewise.
28668         * modules/unistr/u16-strmbtouc: Likewise.
28669         * modules/unistr/u16-strncat: Likewise.
28670         * modules/unistr/u16-strncmp: Likewise.
28671         * modules/unistr/u16-strncpy: Likewise.
28672         * modules/unistr/u16-strnlen: Likewise.
28673         * modules/unistr/u16-strpbrk: Likewise.
28674         * modules/unistr/u16-strrchr: Likewise.
28675         * modules/unistr/u16-strspn: Likewise.
28676         * modules/unistr/u16-strstr: Likewise.
28677         * modules/unistr/u16-strtok: Likewise.
28678         * modules/unistr/u16-to-u32: Likewise.
28679         * modules/unistr/u16-to-u8: Likewise.
28680         * modules/unistr/u16-uctomb: Likewise.
28681         * modules/unistr/u32-check: Likewise.
28682         * modules/unistr/u32-chr: Likewise.
28683         * modules/unistr/u32-cmp: Likewise.
28684         * modules/unistr/u32-cmp2: Likewise.
28685         * modules/unistr/u32-cpy: Likewise.
28686         * modules/unistr/u32-cpy-alloc: Likewise.
28687         * modules/unistr/u32-endswith: Likewise.
28688         * modules/unistr/u32-mblen: Likewise.
28689         * modules/unistr/u32-mbsnlen: Likewise.
28690         * modules/unistr/u32-mbtouc: Likewise.
28691         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28692         * modules/unistr/u32-mbtoucr: Likewise.
28693         * modules/unistr/u32-move: Likewise.
28694         * modules/unistr/u32-next: Likewise.
28695         * modules/unistr/u32-prev: Likewise.
28696         * modules/unistr/u32-set: Likewise.
28697         * modules/unistr/u32-startswith: Likewise.
28698         * modules/unistr/u32-stpcpy: Likewise.
28699         * modules/unistr/u32-stpncpy: Likewise.
28700         * modules/unistr/u32-strcat: Likewise.
28701         * modules/unistr/u32-strchr: Likewise.
28702         * modules/unistr/u32-strcmp: Likewise.
28703         * modules/unistr/u32-strcoll: Likewise.
28704         * modules/unistr/u32-strcpy: Likewise.
28705         * modules/unistr/u32-strcspn: Likewise.
28706         * modules/unistr/u32-strdup: Likewise.
28707         * modules/unistr/u32-strlen: Likewise.
28708         * modules/unistr/u32-strmblen: Likewise.
28709         * modules/unistr/u32-strmbtouc: Likewise.
28710         * modules/unistr/u32-strncat: Likewise.
28711         * modules/unistr/u32-strncmp: Likewise.
28712         * modules/unistr/u32-strncpy: Likewise.
28713         * modules/unistr/u32-strnlen: Likewise.
28714         * modules/unistr/u32-strpbrk: Likewise.
28715         * modules/unistr/u32-strrchr: Likewise.
28716         * modules/unistr/u32-strspn: Likewise.
28717         * modules/unistr/u32-strstr: Likewise.
28718         * modules/unistr/u32-strtok: Likewise.
28719         * modules/unistr/u32-to-u16: Likewise.
28720         * modules/unistr/u32-to-u8: Likewise.
28721         * modules/unistr/u32-uctomb: Likewise.
28722         * modules/uniwbrk/u8-wordbreaks: Likewise.
28723         * modules/uniwbrk/u16-wordbreaks: Likewise.
28724         * modules/uniwbrk/u32-wordbreaks: Likewise.
28725         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28726         * modules/uniwbrk/wordbreak-property: Likewise.
28727         * modules/uniwidth/u8-strwidth: Likewise.
28728         * modules/uniwidth/u8-width: Likewise.
28729         * modules/uniwidth/u16-strwidth: Likewise.
28730         * modules/uniwidth/u16-width: Likewise.
28731         * modules/uniwidth/u32-strwidth: Likewise.
28732         * modules/uniwidth/u32-width: Likewise.
28733         * modules/uniwidth/width: Likewise.
28734         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28735         with $(LIBUNISTRING).
28736         * modules/unicase/ignorable-tests: Likewise.
28737         * modules/unicase/locale-language-tests: Likewise.
28738         * modules/unicase/tolower-tests: Likewise.
28739         * modules/unicase/totitle-tests: Likewise.
28740         * modules/unicase/toupper-tests: Likewise.
28741         * modules/unicase/u8-casecmp-tests: Likewise.
28742         * modules/unicase/u8-casecoll-tests: Likewise.
28743         * modules/unicase/u8-casefold-tests: Likewise.
28744         * modules/unicase/u8-is-cased-tests: Likewise.
28745         * modules/unicase/u8-is-casefolded-tests: Likewise.
28746         * modules/unicase/u8-is-lowercase-tests: Likewise.
28747         * modules/unicase/u8-is-titlecase-tests: Likewise.
28748         * modules/unicase/u8-is-uppercase-tests: Likewise.
28749         * modules/unicase/u8-tolower-tests: Likewise.
28750         * modules/unicase/u8-totitle-tests: Likewise.
28751         * modules/unicase/u8-toupper-tests: Likewise.
28752         * modules/unicase/u16-casecmp-tests: Likewise.
28753         * modules/unicase/u16-casecoll-tests: Likewise.
28754         * modules/unicase/u16-casefold-tests: Likewise.
28755         * modules/unicase/u16-is-cased-tests: Likewise.
28756         * modules/unicase/u16-is-casefolded-tests: Likewise.
28757         * modules/unicase/u16-is-lowercase-tests: Likewise.
28758         * modules/unicase/u16-is-titlecase-tests: Likewise.
28759         * modules/unicase/u16-is-uppercase-tests: Likewise.
28760         * modules/unicase/u16-tolower-tests: Likewise.
28761         * modules/unicase/u16-totitle-tests: Likewise.
28762         * modules/unicase/u16-toupper-tests: Likewise.
28763         * modules/unicase/u32-casecmp-tests: Likewise.
28764         * modules/unicase/u32-casecoll-tests: Likewise.
28765         * modules/unicase/u32-casefold-tests: Likewise.
28766         * modules/unicase/u32-is-cased-tests: Likewise.
28767         * modules/unicase/u32-is-casefolded-tests: Likewise.
28768         * modules/unicase/u32-is-lowercase-tests: Likewise.
28769         * modules/unicase/u32-is-titlecase-tests: Likewise.
28770         * modules/unicase/u32-is-uppercase-tests: Likewise.
28771         * modules/unicase/u32-tolower-tests: Likewise.
28772         * modules/unicase/u32-totitle-tests: Likewise.
28773         * modules/unicase/u32-toupper-tests: Likewise.
28774         * modules/unicase/ulc-casecmp-tests: Likewise.
28775         * modules/unicase/ulc-casecoll-tests: Likewise.
28776         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28777         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28778         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28779         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28780         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28781         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28782         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28783         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28784         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28785         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28786         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28787         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28788         * modules/unictype/bidicategory-byname-tests: Likewise.
28789         * modules/unictype/bidicategory-name-tests: Likewise.
28790         * modules/unictype/bidicategory-of-tests: Likewise.
28791         * modules/unictype/bidicategory-test-tests: Likewise.
28792         * modules/unictype/block-list-tests: Likewise.
28793         * modules/unictype/block-of-tests: Likewise.
28794         * modules/unictype/block-test-tests: Likewise.
28795         * modules/unictype/category-C-tests: Likewise.
28796         * modules/unictype/category-Cc-tests: Likewise.
28797         * modules/unictype/category-Cf-tests: Likewise.
28798         * modules/unictype/category-Cn-tests: Likewise.
28799         * modules/unictype/category-Co-tests: Likewise.
28800         * modules/unictype/category-Cs-tests: Likewise.
28801         * modules/unictype/category-L-tests: Likewise.
28802         * modules/unictype/category-Ll-tests: Likewise.
28803         * modules/unictype/category-Lm-tests: Likewise.
28804         * modules/unictype/category-Lo-tests: Likewise.
28805         * modules/unictype/category-Lt-tests: Likewise.
28806         * modules/unictype/category-Lu-tests: Likewise.
28807         * modules/unictype/category-M-tests: Likewise.
28808         * modules/unictype/category-Mc-tests: Likewise.
28809         * modules/unictype/category-Me-tests: Likewise.
28810         * modules/unictype/category-Mn-tests: Likewise.
28811         * modules/unictype/category-N-tests: Likewise.
28812         * modules/unictype/category-Nd-tests: Likewise.
28813         * modules/unictype/category-Nl-tests: Likewise.
28814         * modules/unictype/category-No-tests: Likewise.
28815         * modules/unictype/category-P-tests: Likewise.
28816         * modules/unictype/category-Pc-tests: Likewise.
28817         * modules/unictype/category-Pd-tests: Likewise.
28818         * modules/unictype/category-Pe-tests: Likewise.
28819         * modules/unictype/category-Pf-tests: Likewise.
28820         * modules/unictype/category-Pi-tests: Likewise.
28821         * modules/unictype/category-Po-tests: Likewise.
28822         * modules/unictype/category-Ps-tests: Likewise.
28823         * modules/unictype/category-S-tests: Likewise.
28824         * modules/unictype/category-Sc-tests: Likewise.
28825         * modules/unictype/category-Sk-tests: Likewise.
28826         * modules/unictype/category-Sm-tests: Likewise.
28827         * modules/unictype/category-So-tests: Likewise.
28828         * modules/unictype/category-Z-tests: Likewise.
28829         * modules/unictype/category-Zl-tests: Likewise.
28830         * modules/unictype/category-Zp-tests: Likewise.
28831         * modules/unictype/category-Zs-tests: Likewise.
28832         * modules/unictype/category-and-not-tests: Likewise.
28833         * modules/unictype/category-and-tests: Likewise.
28834         * modules/unictype/category-byname-tests: Likewise.
28835         * modules/unictype/category-name-tests: Likewise.
28836         * modules/unictype/category-none-tests: Likewise.
28837         * modules/unictype/category-of-tests: Likewise.
28838         * modules/unictype/category-or-tests: Likewise.
28839         * modules/unictype/category-test-withtable-tests: Likewise.
28840         * modules/unictype/combining-class-tests: Likewise.
28841         * modules/unictype/ctype-alnum-tests: Likewise.
28842         * modules/unictype/ctype-alpha-tests: Likewise.
28843         * modules/unictype/ctype-blank-tests: Likewise.
28844         * modules/unictype/ctype-cntrl-tests: Likewise.
28845         * modules/unictype/ctype-digit-tests: Likewise.
28846         * modules/unictype/ctype-graph-tests: Likewise.
28847         * modules/unictype/ctype-lower-tests: Likewise.
28848         * modules/unictype/ctype-print-tests: Likewise.
28849         * modules/unictype/ctype-punct-tests: Likewise.
28850         * modules/unictype/ctype-space-tests: Likewise.
28851         * modules/unictype/ctype-upper-tests: Likewise.
28852         * modules/unictype/ctype-xdigit-tests: Likewise.
28853         * modules/unictype/decimal-digit-tests: Likewise.
28854         * modules/unictype/digit-tests: Likewise.
28855         * modules/unictype/mirror-tests: Likewise.
28856         * modules/unictype/numeric-tests: Likewise.
28857         * modules/unictype/property-alphabetic-tests: Likewise.
28858         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28859         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28860         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28861         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28862         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28863         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28864         * modules/unictype/property-bidi-control-tests: Likewise.
28865         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28866         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28867         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28868         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28869         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28870         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28871         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28872         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28873         * modules/unictype/property-bidi-pdf-tests: Likewise.
28874         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28875         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28876         * modules/unictype/property-byname-tests: Likewise.
28877         * modules/unictype/property-combining-tests: Likewise.
28878         * modules/unictype/property-composite-tests: Likewise.
28879         * modules/unictype/property-currency-symbol-tests: Likewise.
28880         * modules/unictype/property-dash-tests: Likewise.
28881         * modules/unictype/property-decimal-digit-tests: Likewise.
28882         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28883         * modules/unictype/property-deprecated-tests: Likewise.
28884         * modules/unictype/property-diacritic-tests: Likewise.
28885         * modules/unictype/property-extender-tests: Likewise.
28886         * modules/unictype/property-format-control-tests: Likewise.
28887         * modules/unictype/property-grapheme-base-tests: Likewise.
28888         * modules/unictype/property-grapheme-extend-tests: Likewise.
28889         * modules/unictype/property-grapheme-link-tests: Likewise.
28890         * modules/unictype/property-hex-digit-tests: Likewise.
28891         * modules/unictype/property-hyphen-tests: Likewise.
28892         * modules/unictype/property-id-continue-tests: Likewise.
28893         * modules/unictype/property-id-start-tests: Likewise.
28894         * modules/unictype/property-ideographic-tests: Likewise.
28895         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28896         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28897         * modules/unictype/property-ignorable-control-tests: Likewise.
28898         * modules/unictype/property-iso-control-tests: Likewise.
28899         * modules/unictype/property-join-control-tests: Likewise.
28900         * modules/unictype/property-left-of-pair-tests: Likewise.
28901         * modules/unictype/property-line-separator-tests: Likewise.
28902         * modules/unictype/property-logical-order-exception-tests: Likewise.
28903         * modules/unictype/property-lowercase-tests: Likewise.
28904         * modules/unictype/property-math-tests: Likewise.
28905         * modules/unictype/property-non-break-tests: Likewise.
28906         * modules/unictype/property-not-a-character-tests: Likewise.
28907         * modules/unictype/property-numeric-tests: Likewise.
28908         * modules/unictype/property-other-alphabetic-tests: Likewise.
28909         * modules/unictype/property-other-default-ignorable-code-point-tests:
28910         Likewise.
28911         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28912         * modules/unictype/property-other-id-continue-tests: Likewise.
28913         * modules/unictype/property-other-id-start-tests: Likewise.
28914         * modules/unictype/property-other-lowercase-tests: Likewise.
28915         * modules/unictype/property-other-math-tests: Likewise.
28916         * modules/unictype/property-other-uppercase-tests: Likewise.
28917         * modules/unictype/property-paired-punctuation-tests: Likewise.
28918         * modules/unictype/property-paragraph-separator-tests: Likewise.
28919         * modules/unictype/property-pattern-syntax-tests: Likewise.
28920         * modules/unictype/property-pattern-white-space-tests: Likewise.
28921         * modules/unictype/property-private-use-tests: Likewise.
28922         * modules/unictype/property-punctuation-tests: Likewise.
28923         * modules/unictype/property-quotation-mark-tests: Likewise.
28924         * modules/unictype/property-radical-tests: Likewise.
28925         * modules/unictype/property-sentence-terminal-tests: Likewise.
28926         * modules/unictype/property-soft-dotted-tests: Likewise.
28927         * modules/unictype/property-space-tests: Likewise.
28928         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28929         * modules/unictype/property-test-tests: Likewise.
28930         * modules/unictype/property-titlecase-tests: Likewise.
28931         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28932         * modules/unictype/property-unified-ideograph-tests: Likewise.
28933         * modules/unictype/property-uppercase-tests: Likewise.
28934         * modules/unictype/property-variation-selector-tests: Likewise.
28935         * modules/unictype/property-white-space-tests: Likewise.
28936         * modules/unictype/property-xid-continue-tests: Likewise.
28937         * modules/unictype/property-xid-start-tests: Likewise.
28938         * modules/unictype/property-zero-width-tests: Likewise.
28939         * modules/unictype/scripts-tests: Likewise.
28940         * modules/unictype/syntax-c-ident-tests: Likewise.
28941         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28942         * modules/unictype/syntax-java-ident-tests: Likewise.
28943         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28944         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28945         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28946         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28947         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28948         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28949         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28950         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28951         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28952         * modules/uniname/uniname-tests: Likewise.
28953         * modules/uninorm/canonical-decomposition-tests: Likewise.
28954         * modules/uninorm/compat-decomposition-tests: Likewise.
28955         * modules/uninorm/composition-tests: Likewise.
28956         * modules/uninorm/decomposing-form-tests: Likewise.
28957         * modules/uninorm/decomposition-tests: Likewise.
28958         * modules/uninorm/filter-tests: Likewise.
28959         * modules/uninorm/nfc-tests: Likewise.
28960         * modules/uninorm/nfd-tests: Likewise.
28961         * modules/uninorm/nfkc-tests: Likewise.
28962         * modules/uninorm/nfkd-tests: Likewise.
28963         * modules/uninorm/u8-normcmp-tests: Likewise.
28964         * modules/uninorm/u8-normcoll-tests: Likewise.
28965         * modules/uninorm/u16-normcmp-tests: Likewise.
28966         * modules/uninorm/u16-normcoll-tests: Likewise.
28967         * modules/uninorm/u32-normcmp-tests: Likewise.
28968         * modules/uninorm/u32-normcoll-tests: Likewise.
28969         * modules/unistdio/u8-asnprintf-tests: Likewise.
28970         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28971         * modules/unistdio/u8-vasprintf-tests: Likewise.
28972         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28973         * modules/unistdio/u8-vsprintf-tests: Likewise.
28974         * modules/unistdio/u16-asnprintf-tests: Likewise.
28975         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28976         * modules/unistdio/u16-vasprintf-tests: Likewise.
28977         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28978         * modules/unistdio/u16-vsprintf-tests: Likewise.
28979         * modules/unistdio/u32-asnprintf-tests: Likewise.
28980         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28981         * modules/unistdio/u32-vasprintf-tests: Likewise.
28982         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28983         * modules/unistdio/u32-vsprintf-tests: Likewise.
28984         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28985         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28986         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28987         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28988         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28989         * modules/unistr/u8-check-tests: Likewise.
28990         * modules/unistr/u8-chr-tests: Likewise.
28991         * modules/unistr/u8-cmp-tests: Likewise.
28992         * modules/unistr/u8-cmp2-tests: Likewise.
28993         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28994         * modules/unistr/u8-cpy-tests: Likewise.
28995         * modules/unistr/u8-mblen-tests: Likewise.
28996         * modules/unistr/u8-mbsnlen-tests: Likewise.
28997         * modules/unistr/u8-mbtouc-tests: Likewise.
28998         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28999         * modules/unistr/u8-mbtoucr-tests: Likewise.
29000         * modules/unistr/u8-move-tests: Likewise.
29001         * modules/unistr/u8-next-tests: Likewise.
29002         * modules/unistr/u8-prev-tests: Likewise.
29003         * modules/unistr/u8-set-tests: Likewise.
29004         * modules/unistr/u8-stpcpy-tests: Likewise.
29005         * modules/unistr/u8-stpncpy-tests: Likewise.
29006         * modules/unistr/u8-strcat-tests: Likewise.
29007         * modules/unistr/u8-strcmp-tests: Likewise.
29008         * modules/unistr/u8-strcoll-tests: Likewise.
29009         * modules/unistr/u8-strcpy-tests: Likewise.
29010         * modules/unistr/u8-strdup-tests: Likewise.
29011         * modules/unistr/u8-strlen-tests: Likewise.
29012         * modules/unistr/u8-strmblen-tests: Likewise.
29013         * modules/unistr/u8-strmbtouc-tests: Likewise.
29014         * modules/unistr/u8-strncat-tests: Likewise.
29015         * modules/unistr/u8-strncmp-tests: Likewise.
29016         * modules/unistr/u8-strncpy-tests: Likewise.
29017         * modules/unistr/u8-strnlen-tests: Likewise.
29018         * modules/unistr/u8-to-u16-tests: Likewise.
29019         * modules/unistr/u8-to-u32-tests: Likewise.
29020         * modules/unistr/u8-uctomb-tests: Likewise.
29021         * modules/unistr/u16-check-tests: Likewise.
29022         * modules/unistr/u16-chr-tests: Likewise.
29023         * modules/unistr/u16-cmp-tests: Likewise.
29024         * modules/unistr/u16-cmp2-tests: Likewise.
29025         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29026         * modules/unistr/u16-cpy-tests: Likewise.
29027         * modules/unistr/u16-mblen-tests: Likewise.
29028         * modules/unistr/u16-mbsnlen-tests: Likewise.
29029         * modules/unistr/u16-mbtouc-tests: Likewise.
29030         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29031         * modules/unistr/u16-mbtoucr-tests: Likewise.
29032         * modules/unistr/u16-move-tests: Likewise.
29033         * modules/unistr/u16-next-tests: Likewise.
29034         * modules/unistr/u16-prev-tests: Likewise.
29035         * modules/unistr/u16-set-tests: Likewise.
29036         * modules/unistr/u16-stpcpy-tests: Likewise.
29037         * modules/unistr/u16-stpncpy-tests: Likewise.
29038         * modules/unistr/u16-strcat-tests: Likewise.
29039         * modules/unistr/u16-strcmp-tests: Likewise.
29040         * modules/unistr/u16-strcoll-tests: Likewise.
29041         * modules/unistr/u16-strcpy-tests: Likewise.
29042         * modules/unistr/u16-strdup-tests: Likewise.
29043         * modules/unistr/u16-strlen-tests: Likewise.
29044         * modules/unistr/u16-strmblen-tests: Likewise.
29045         * modules/unistr/u16-strmbtouc-tests: Likewise.
29046         * modules/unistr/u16-strncat-tests: Likewise.
29047         * modules/unistr/u16-strncmp-tests: Likewise.
29048         * modules/unistr/u16-strncpy-tests: Likewise.
29049         * modules/unistr/u16-strnlen-tests: Likewise.
29050         * modules/unistr/u16-to-u32-tests: Likewise.
29051         * modules/unistr/u16-to-u8-tests: Likewise.
29052         * modules/unistr/u16-uctomb-tests: Likewise.
29053         * modules/unistr/u32-check-tests: Likewise.
29054         * modules/unistr/u32-chr-tests: Likewise.
29055         * modules/unistr/u32-cmp-tests: Likewise.
29056         * modules/unistr/u32-cmp2-tests: Likewise.
29057         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29058         * modules/unistr/u32-cpy-tests: Likewise.
29059         * modules/unistr/u32-mblen-tests: Likewise.
29060         * modules/unistr/u32-mbsnlen-tests: Likewise.
29061         * modules/unistr/u32-mbtouc-tests: Likewise.
29062         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29063         * modules/unistr/u32-mbtoucr-tests: Likewise.
29064         * modules/unistr/u32-move-tests: Likewise.
29065         * modules/unistr/u32-next-tests: Likewise.
29066         * modules/unistr/u32-prev-tests: Likewise.
29067         * modules/unistr/u32-set-tests: Likewise.
29068         * modules/unistr/u32-stpcpy-tests: Likewise.
29069         * modules/unistr/u32-stpncpy-tests: Likewise.
29070         * modules/unistr/u32-strcat-tests: Likewise.
29071         * modules/unistr/u32-strcmp-tests: Likewise.
29072         * modules/unistr/u32-strcoll-tests: Likewise.
29073         * modules/unistr/u32-strcpy-tests: Likewise.
29074         * modules/unistr/u32-strdup-tests: Likewise.
29075         * modules/unistr/u32-strlen-tests: Likewise.
29076         * modules/unistr/u32-strmblen-tests: Likewise.
29077         * modules/unistr/u32-strmbtouc-tests: Likewise.
29078         * modules/unistr/u32-strncat-tests: Likewise.
29079         * modules/unistr/u32-strncmp-tests: Likewise.
29080         * modules/unistr/u32-strncpy-tests: Likewise.
29081         * modules/unistr/u32-strnlen-tests: Likewise.
29082         * modules/unistr/u32-to-u16-tests: Likewise.
29083         * modules/unistr/u32-to-u8-tests: Likewise.
29084         * modules/unistr/u32-uctomb-tests: Likewise.
29085         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29086         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29087         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29088         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29089         * modules/uniwidth/u8-strwidth-tests: Likewise.
29090         * modules/uniwidth/u8-width-tests: Likewise.
29091         * modules/uniwidth/u16-strwidth-tests: Likewise.
29092         * modules/uniwidth/u16-width-tests: Likewise.
29093         * modules/uniwidth/u32-strwidth-tests: Likewise.
29094         * modules/uniwidth/u32-width-tests: Likewise.
29095         * modules/uniwidth/width-tests: Likewise.
29096
29097 2010-05-18  Richard Jones  <rjones@redhat.com>
29098
29099         doc: users.txt: list hivex
29100         * users.txt: Add hivex.
29101
29102 2010-05-18  Richard Jones  <rjones@redhat.com>
29103
29104         doc: users.txt: list febootstrap
29105         * users.txt: Add febootstrap.
29106
29107 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29108
29109         bootstrap: fix an error when gnulib is not used as a git submodule
29110         * build-aux/bootstrap (gnulib_path): If its length is zero then
29111         assign "gnulib" to it.
29112         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29113
29114 2010-05-16  Bruno Haible  <bruno@clisp.org>
29115
29116         Avoid autoconf warnings about AM_ICONV.
29117         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29118         2.64.
29119
29120 2010-05-16  Bruno Haible  <bruno@clisp.org>
29121
29122         absolute-header: Make the macro usable in more situations.
29123         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29124         from gl_ABSOLUTE_HEADER.
29125         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29126
29127 2010-05-16  James Youngman  <jay@gnu.org>
29128
29129         doc: update users.txt
29130         * users.txt: Add CSSC.
29131
29132 2010-05-16  Jim Meyering  <meyering@redhat.com>
29133
29134         init.sh: fix an error in the previous change; add more comments
29135         * tests/init.sh: Compare exit code in loop against 9, not 2.
29136         Patch by Bruno Haible.
29137         Make the two tests more similar by adding an empty "then" clause.
29138         Add comments.
29139
29140         init.sh: avoid unnecessary shell re-exec
29141         * tests/init.sh: Improve the re-exec-required check to first test the
29142         current shell.  If it passes the test, do not search for a shell that
29143         does pass, and do not re-exec.  This test is particularly contorted to
29144         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29145         of $(...) evokes a syntax error and causes immediate shell exit with
29146         status 2.  Bruno Haible reported that the re-exec made it impossible
29147         to single-step through any init.sh-using script.
29148
29149 2010-05-16  Bruno Haible  <bruno@clisp.org>
29150
29151         Fix collision between gnulib's and libintl's printf replacements.
29152         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29153         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29154         (printf): When using GNU C, map the __printf__ function to rpl_printf
29155         via __asm__. When not using GNU C, define rpl_printf instead of
29156         __printf__.
29157         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29158         commit.
29159         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29160         commit.
29161         * m4/asm-underscore.m4: New file.
29162         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29163         * modules/stdio (Files): Add m4/asm-underscore.m4.
29164         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29165         Reported by Ben Pfaff.
29166
29167 2010-05-16  Bruno Haible  <bruno@clisp.org>
29168
29169         verify: Avoid skipping the test on openSUSE 11.0.
29170         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29171
29172 2010-05-13  Bruno Haible  <bruno@clisp.org>
29173
29174         Avoid useless warnings from G++.
29175         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29176         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29177         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29178
29179 2010-05-11  Jim Meyering  <meyering@redhat.com>
29180
29181         maint.mk: tweak preceding change
29182         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29183         regexps tighter by anchoring at EOL, and make the new group "shy"
29184         for slightly decreased overhead.
29185
29186 2010-05-11  Eric Blake  <eblake@redhat.com>
29187
29188         maint.mk: gnulib doesn't guarantee NSIG
29189         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29190
29191 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29192
29193         test-pwrite.c: Remove unused variable declaration.
29194         * tests/test-pwrite.c (main): Remove read_buf declaration.
29195
29196         Remove useless test-pwrite.sh file.
29197         * tests/test-pwrite.sh: Delete file.
29198         * modules/pwrite-tests: Remove references.
29199         Reported by Bruno Haible.
29200
29201 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29202
29203         init.sh: fix a typo
29204         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29205
29206 2010-05-10  Jim Meyering  <meyering@redhat.com>
29207
29208         maint.mk: avoid using a temporary file in the always-defined-macros check
29209         * top/maint.mk (.re-defmac): Remove rule.
29210         (gl_trap_): Remove definition.
29211         (sc_prohibit_always-defined_macros): Rewrite not to create and
29212         depend on a temporary file.  Instead, depend on GNU grep's ability
29213         to read a list of regular expressions from stdin when given "-f -".
29214
29215 2010-05-09  Bruno Haible  <bruno@clisp.org>
29216
29217         Update to GNU gettext 0.18, part 1.
29218         * m4/gettext.m4: Update to GNU gettext 0.18.
29219         * m4/intl.m4: Likewise.
29220         * m4/po.m4: Likewise.
29221         * modules/gettext (Files): Add m4/fcntl-o.m4.
29222         (configure.ac): Require gettext infrastructure from version 0.18.
29223
29224 2010-05-09  Jim Meyering  <meyering@redhat.com>
29225
29226         init.sh: enable MALLOC_PERTURB_
29227         * tests/init.sh: Enable glibc's malloc-perturbing option.
29228
29229         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29230         With my recent change in init.sh from the two-line form:
29231             -#   : ${srcdir=.}
29232             -#   . "$srcdir/init.sh"; path_prepend_ .
29233             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29234         I noticed that using the one-line form would cause this test
29235         to fail with a false-positive, or to stop working altogether,
29236         depending on whether help-version changed or all the tests did.
29237         * top/maint.mk (_hv_regex): Remove this definition.
29238         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29239         (_hv_regex_strong): Use a stronger regex to check for conformance.
29240         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29241         Give a separate diagnostic for lack of conforming use.
29242
29243         maint.mk: prohibit definition of symbols defined by gnulib
29244         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29245         definition of symbols defined by gnulib.
29246
29247 2010-05-09  Bruno Haible  <bruno@clisp.org>
29248
29249         acl: Avoid test failure on Cygwin-hosted mingw.
29250         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29251
29252 2010-05-09  Bruno Haible  <bruno@clisp.org>
29253
29254         error: Use system's fcntl function.
29255         * lib/error.c (fcntl): Undefine.
29256
29257 2010-05-09  Jim Meyering  <meyering@redhat.com>
29258
29259         verify: adjust formatting to be more consistent
29260         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29261         argument-list '('s, and after one comma.
29262
29263 2010-05-09  Bruno Haible  <bruno@clisp.org>
29264
29265         error: More reliable output on mingw.
29266         * lib/error.c: Include <windows.h>.
29267         (is_open): New function.
29268         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29269         defined.
29270
29271 2010-05-09  Bruno Haible  <bruno@clisp.org>
29272
29273         vasnprintf: Fix syntax errors in libintl build on mingw.
29274         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29275         pad_ourselves and prec_ourselves after use.
29276
29277 2010-05-08  Bruno Haible  <bruno@clisp.org>
29278
29279         * lib/config.charset: Update comments for Cygwin 1.7.
29280         * lib/localcharset.c: Likewise.
29281
29282 2010-05-07  Jim Meyering  <meyering@redhat.com>
29283
29284         init.sh: improve comments
29285         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29286         . "${srcdir=.}/init.sh"; path_prepend_ .
29287         Add a note about path_prepend_ and the alternative of using
29288         TESTS_ENVIRONMENT.
29289
29290 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29291
29292         exclude: Unescape hashed patterns in wildcard mode.
29293         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29294         to the hash list.
29295         * tests/test-exclude8.sh: New test case.
29296         * modules/exclude-tests: Add new test.
29297
29298 2010-05-05  Eric Blake  <eblake@redhat.com>
29299
29300         verify: automate tests
29301         * modules/verify-tests: New module.
29302         * tests/test-verify.sh: New file.
29303         * tests/test-verify.c: Guard each negative test with a unique id.
29304         Also avoid warning about unused left hand of comma expressions.
29305
29306 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29307
29308         Further improvements to verify.h, suggested by Eric Blake.
29309         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29310         the GL_* versions, to avoid collision with OpenGL.
29311         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29312         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29313         than testing merely whether it's defined.
29314
29315         Modify verify.h to pacify gcc -Wredundant_decls.
29316         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29317         These use the prefix "GL_" since they're likely to be useful elsewhere.
29318         We may need to break them out into a different .h file.
29319         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29320         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29321         of verify_function__.
29322
29323 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29324
29325         Tests for module pwrite.
29326         * modules/pwrite-tests: New file.
29327         * tests/test-pwrite.sh: New file.
29328         * tests/test-pwrite.c: New file.
29329
29330         New module pwrite.
29331         * lib/unistd.in.h (pwrite): New declaration.
29332         * lib/pwrite.c: New file, from glibc with modifications.
29333         * m4/pwrite.m4: New file.
29334         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29335         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29336         REPLACE_PWRITE.
29337         * modules/pwrite: New file.
29338         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29339         REPLACE_PWRITE.
29340         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29341         * doc/posix-functions/pwrite.texi: Mention the new module.
29342
29343 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29344
29345         pread: Update documentation.
29346         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29347
29348 2010-05-04  Eric Blake  <eblake@redhat.com>
29349
29350         docs: update cygwin progress
29351         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29352         this bug.
29353         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29354         Added in cygwin 1.7.2.
29355         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29356         Likewise.
29357         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29358         Likewise.
29359         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29360         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29361         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29362         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29363         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29364         Mention nproc module.
29365         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29366         bug in cygwin 1.7.5 addition.
29367         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29368         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29369         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29370         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29371         1.7.5.
29372         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29373         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29374         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29375         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29376         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29377         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29378         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29379         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29380         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29381         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29382         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29383         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29384         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29385         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29386         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29387         Likewise.
29388         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29389         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29390         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29391         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29392         Likewise.
29393         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29394         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29395         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29396         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29397         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29398         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29399         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29400         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29401         Likewise.
29402         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29403         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29404         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29405         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29406         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29407         Likewise.
29408         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29409         Likewise.
29410         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29411         Likewise.
29412         * doc/glibc-functions/xdrrec_endofrecord.texi
29413         (xdrrec_endofrecord): Likewise.
29414         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29415         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29416         Likewise.
29417         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29418         Likewise.
29419
29420 2010-05-04  Jim Meyering  <meyering@redhat.com>
29421
29422         gendocs.sh: make its "-s FILE" option more useful
29423         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29424         $PACKAGE to reflect the probably-different basename of "FILE".
29425
29426 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29427
29428         bootstrap: don't ignore download_po_files failure
29429         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29430         failure.
29431
29432 2010-05-03  Jim Meyering  <meyering@redhat.com>
29433
29434         maint.mk: allow to pass options to gendocs.sh
29435         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29436         (gendocs_options_): New overridable variable.
29437
29438         gnu-web-doc-update: don't ignore configure or build failure
29439         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29440
29441         announce-gen: backslash-escape '@'s in --help output
29442         * build-aux/announce-gen: Fix syntax errors.
29443
29444         maint.mk, announce-gen: allow project-specific announcement mail headers
29445         * top/maint.mk (translation_project_): Define default.
29446         (announcement_Cc_, announcement_mail_headers_): Likewise.
29447         (announcement): Invoke announce-gen with new --mail-headers option.
29448         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29449
29450         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29451         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29452         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29453         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29454         line in the "err2" output file when running "make check" in verbose
29455         mode (i.e., with set -x enabled).
29456
29457 2010-05-03  Bruno Haible  <bruno@clisp.org>
29458
29459         wctob: Fix for weird platforms.
29460         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29461         argument value.
29462
29463 2010-05-03  Jim Meyering  <meyering@redhat.com>
29464
29465         maint.mk: prohibit unwarranted use of <strings.h>
29466         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29467         strings.h in a file that does not also use strcasecmp, strncasecmp,
29468         ffs or ffsll.
29469
29470         maint.mk: remove obsolete comments
29471         * top/maint.mk: Remove stale, commented-out rules.
29472
29473 2010-05-02  Bruno Haible  <bruno@clisp.org>
29474
29475         wcwidth: Declare also when it's aliased.
29476         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29477         macro.
29478
29479 2010-05-02  Bruno Haible  <bruno@clisp.org>
29480
29481         Fix regression from 2010-04-25.
29482         * gnulib-tool (func_modules_transitive_closure): Check the status of
29483         all modules, not only of the tests that are of the form foo-tests where
29484         foo is a module.
29485
29486 2010-05-02  Bruno Haible  <bruno@clisp.org>
29487
29488         wctob: Work around nasty Cygwin 1.7.2 bug.
29489         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29490         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29491
29492 2010-05-01  Bruno Haible  <bruno@clisp.org>
29493
29494         fpurge: Sharper test.
29495         * tests/test-fpurge.c (main): Add one more ftell check.
29496         * modules/fpurge-tests (Depends-on): Add ftell.
29497         Suggested by Eric Blake.
29498
29499 2010-05-01  Bruno Haible  <bruno@clisp.org>
29500
29501         ftello: Another test.
29502         * tests/test-ftello3.c: New file.
29503         * modules/ftello-tests (Files): Add it.
29504         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29505         MOSTLYCLEANFILES.
29506
29507         ftell: Another test.
29508         * tests/test-ftell3.c: New file.
29509         * modules/ftell-tests (Files): Add it.
29510         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29511         MOSTLYCLEANFILES.
29512
29513 2010-05-01  Bruno Haible  <bruno@clisp.org>
29514
29515         ftell, ftello: Work around Solaris bug.
29516         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29517         * lib/ftello.c: Include stdio-impl.h.
29518         (ftello): On Solaris, when _IOWRT is set, compute the result without
29519         looking at _IOREAD.
29520         * modules/ftello (Files): Add lib/stdio-impl.h.
29521         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29522         * doc/posix-functions/ftello.texi: Likewise.
29523         Reported by Eric Blake.
29524
29525 2010-05-01  Bruno Haible  <bruno@clisp.org>
29526
29527         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29528         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29529         the _IOWRT flag is also set.
29530
29531 2010-05-01  Bruno Haible  <bruno@clisp.org>
29532
29533         Fix doc about a HP-UX stdio bug.
29534         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29535         * doc/posix-functions/ftello.texi: Likewise.
29536
29537 2010-05-01  Bruno Haible  <bruno@clisp.org>
29538
29539         lseek test: Fix failure on Solaris.
29540         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29541         output.
29542
29543 2010-04-30  Jim Meyering  <meyering@redhat.com>
29544
29545         bootstrap: don't ignore failure to generate po*/Makevars
29546         * build-aux/bootstrap (with_gettext): Don't ignore failure
29547         to create po/Makevars or runtime-po/Makevars.
29548
29549 2010-04-29  Eric Blake  <eblake@redhat.com>
29550
29551         headers: relax license to LGPLv2+
29552         * modules/fcntl-h (License): Relax license.
29553         * modules/getopt-posix (License): Likewise.
29554         * modules/locale (License): Likewise.
29555         * modules/math (License): Likewise.
29556         * modules/pty (License): Likewise.
29557         * modules/sched (License): Likewise.
29558         * modules/search (License): Likewise.
29559         * modules/spawn (License): Likewise.
29560         * modules/stdarg (License): Likewise.
29561         * modules/sysexits (License): Likewise.
29562
29563 2010-04-29  Jim Meyering  <meyering@redhat.com>
29564
29565         inttypes: relax license to LGPLv2+
29566         * modules/inttypes (License): Relax license.
29567
29568 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29569
29570         * top/maint.mk (indent): Run twice to produce idempotent results.
29571
29572 2010-04-28  Bruno Haible  <bruno@clisp.org>
29573
29574         getdate: Generate getdate.c in the source directory.
29575         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29576         MOSTLYCLEANFILES.
29577         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29578
29579 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29580
29581         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29582         is not declared as a const *; avoid warnings in that case.
29583
29584 2010-04-28  Eric Blake  <eblake@redhat.com>
29585
29586         canonicalize-lgpl: avoid compiler warning
29587         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29588         declaration' / 'extraneous semicolon' warning with some compilers.
29589         Reported by Andreas Gruenbacher.
29590
29591 2010-04-28  Jim Meyering  <meyering@redhat.com>
29592
29593         init.sh: ensure a more reliable exit status when exiting via trap
29594         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29595         Inspired by patches from Dmitry V. Levin.
29596         Also trap on signal 3 (SIGQUIT).
29597
29598 2010-04-27  Bruno Haible  <bruno@clisp.org>
29599
29600         Update doc about utimes().
29601         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29602         'utimens' module.
29603         Reported by Andreas Gruenbacher <agruen@suse.de>.
29604
29605 2010-04-27  Eric Blake  <eblake@redhat.com>
29606
29607         full-read, full-write: relax license
29608         * modules/full-read (License): Drop to LGPLv2+.
29609         * modules/full-write (License): Likewise.
29610         * modules/safe-read (License): Likewise.
29611         * modules/safe-write (License): Likewise.
29612
29613         pthread: mention library for linking
29614         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29615
29616 2010-04-27  Jim Meyering  <meyering@redhat.com>
29617
29618         maint.mk: fix a bug introduced in last change
29619         * top/maint.mk (gl_assured_headers_): Now that all names are on
29620         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29621         is not anchored to end of word, it should be adequate.
29622
29623         maint.mk: avoid side-effect in latest syntax-check
29624         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29625         to run commands via $(shell...), and hence to incur cost only when
29626         the new rule is actually run.
29627
29628         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29629         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29630         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29631         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29632         (gl_assured_headers_, az_, AZ_): Define.
29633         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29634
29635 2010-04-26  Jim Meyering  <jim@meyering.net>
29636             Bruno Haible  <bruno@clisp.org>
29637
29638         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29639         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29640         Prompted by an exchange with Gilles Espinasse.
29641
29642 2010-04-26  Jim Meyering  <meyering@redhat.com>
29643
29644         git-version-gen: aesthetic tweak
29645         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29646         so that the command remains on a single line.
29647
29648 2010-04-26  Eric Blake  <eblake@redhat.com>
29649
29650         git-version-gen: allow use on EBCDIC hosts
29651         * build-aux/git-version-gen (dirty): Use literal rather than tying
29652         ourselves to ascii.
29653         Reported by Steve Goetze.
29654
29655 2010-04-25  Bruno Haible  <bruno@clisp.org>
29656
29657         netdb: Add support for GNULIB_POSIXCHECK.
29658         * lib/netdb.in.h: Include warn-on-use.h.
29659         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29660         functions are used when GNULIB_POSIXCHECK is defined and the
29661         getaddrinfo module is not in use.
29662         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29663         freeaddrinfo, gai_strerror, getnameinfo are declared.
29664         * modules/netdb (Depends-on): Add warn-on-use.
29665         (Makefile.am): Include warn-on-use.h in netdb.h.
29666
29667 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29668
29669         build: avoid "make check" failure without .git/ directory
29670         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29671         there is no .git/ directory.
29672
29673 2010-04-25  Bruno Haible  <bruno@clisp.org>
29674
29675         ptsname: Fix misuse of ttyname_r.
29676         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29677         of errno.
29678
29679 2010-04-25  Bruno Haible  <bruno@clisp.org>
29680
29681         ttyname_r: Make it work on Solaris 10.
29682         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29683         if the system function has the POSIX declaration. Test whether the
29684         function fails if the buffer is less than 128 bytes large.
29685         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29686         system's ttyname_r function. Provide a reasonably large buffer.
29687         * modules/ttyname_r (Depends-on): Add extensions.
29688         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29689
29690 2010-04-25  Bruno Haible  <bruno@clisp.org>
29691
29692         Use the 'extensions' module for some more functions on Solaris.
29693         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29694         module.
29695         * doc/posix-functions/ctime_r.texi: Likewise.
29696         * doc/posix-functions/getgrgid_r.texi: Likewise.
29697         * doc/posix-functions/getgrnam_r.texi: Likewise.
29698         * doc/posix-functions/getpwnam_r.texi: Likewise.
29699         * doc/posix-functions/getpwuid_r.texi: Likewise.
29700         * doc/posix-functions/readdir_r.texi: Likewise.
29701         * doc/posix-functions/sigwait.texi: Likewise.
29702         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29703         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29704
29705 2010-04-25  Bruno Haible  <bruno@clisp.org>
29706
29707         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29708         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29709         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29710         * lib/ttyname_r.c: Include <limits.h>.
29711         (ttyname_r): Define using the system's ttyname_r function, if it exists
29712         and not on Solaris.
29713         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29714         set.
29715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29716         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29717         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29718         Reported by Simon Josefsson.
29719
29720 2010-04-25  Bruno Haible  <bruno@clisp.org>
29721
29722         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29723         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29724         * doc/posix-functions/ctime_r.texi: Likewise.
29725         * doc/posix-functions/getgrgid_r.texi: Likewise.
29726         * doc/posix-functions/getgrnam_r.texi: Likewise.
29727         * doc/posix-functions/getlogin_r.texi: Likewise.
29728         * doc/posix-functions/getpwnam_r.texi: Likewise.
29729         * doc/posix-functions/getpwuid_r.texi: Likewise.
29730         * doc/posix-functions/readdir_r.texi: Likewise.
29731         * doc/posix-functions/sigwait.texi: Likewise.
29732         * doc/posix-functions/ttyname_r.texi: Likewise.
29733         Reported by Simon Josefsson.
29734
29735 2010-04-25  Bruno Haible  <bruno@clisp.org>
29736
29737         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29738         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29739         also to --create-testdir.
29740         (func_acceptable): Don't consider the status of *-tests modules here.
29741         (func_modules_transitive_closure): Consider it here, before including a
29742         test module.
29743         (func_import, func_create_testdir): Set inc_all_direct_tests,
29744         inc_all_indirect_tests.
29745         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29746         --create-testdir and --create-megatestdir.
29747
29748 2010-04-25  Bruno Haible  <bruno@clisp.org>
29749
29750         gnulib-tool: Add --without-*-tests options.
29751         * gnulib-tool (func_usage): Document the --without-*-tests options.
29752         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29753         excl_unportable_tests): New variables.
29754         Fail if they are specified with --import or --update.
29755         (func_acceptable): Respect the excl_*_tests variables.
29756         (func_import): Set the excl_*_tests variables to empty.
29757
29758 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29759             Bruno Haible  <bruno@clisp.org>
29760
29761         Work around a MacOS X 10.4 bug with openpty.
29762         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29763         * tests/test-openpty.c (main): Close the master side explicitly.
29764
29765 2010-04-25  Bruno Haible  <bruno@clisp.org>
29766
29767         strnlen: Fix a C++ test error on MacOS X and Solaris.
29768         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29769         the function is not declared.
29770         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29771         Simon Josefsson.
29772
29773 2010-04-24  Bruno Haible  <bruno@clisp.org>
29774
29775         Avoid a gcc warning.
29776         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29777         of correct type for %08lx directive.
29778         Reported by Eric Blake.
29779
29780 2010-04-24  Bruno Haible  <bruno@clisp.org>
29781
29782         vasnprintf: Correct errno value in case of out-of-memory.
29783         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29784         or sprintf. Use the errno value from SNPRINTF or sprintf.
29785         Reported by Ian Beckwith <ianb@erislabs.net>.
29786
29787 2010-04-24  Bruno Haible  <bruno@clisp.org>
29788
29789         ansi-c++-opt: Find correct compiler when cross-compiling.
29790         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29791         AC_CHECK_PROGS.
29792         Reported by Simon Josefsson.
29793
29794 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29795
29796         vc-list-files: Add support for subversion
29797         * build-aux/vc-list-files: Use "svn list" to generate the list of
29798         files controlled by subversion.
29799
29800 2010-04-23  Jim Meyering  <meyering@redhat.com>
29801
29802         vc-list-files tests: convert to use init.sh
29803         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29804         path_prepend_.
29805         Use Exit, not exit.
29806         Use skip_ rather than open coding it.
29807         Remove trap set-up and compare definitions.
29808         * tests/test-vc-list-files-git.sh: Likewise.
29809         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29810
29811 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29812
29813         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29814         backup files.
29815
29816 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29817
29818         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29819
29820 2010-04-20  Eric Blake  <eblake@redhat.com>
29821
29822         tests: be robust to ignored SIGPIPE
29823         * tests/test-select-in.sh: Consume all output.
29824         * tests/test-lseek.sh: Check correct exit status, while avoiding
29825         EPIPE.
29826
29827 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29828             Bruno Haible  <bruno@clisp.org>
29829
29830         visibility: Don't use -fvisibility if it leads to a warning.
29831         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29832         yes, don't pretend that visibility works if it leads to a warning.
29833         Reported by Mike Gran <spk121@yahoo.com>.
29834
29835 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29836
29837         * build-aux/bootstrap: Use "git -h" for testing for supported options
29838         instead of "git --help".  The short-form option only shows a summary,
29839         and doesn't layout the full man page.  Grep for the full option name
29840         in the summary, too.
29841
29842 2010-04-19  Bruno Haible  <bruno@clisp.org>
29843
29844         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29845         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29846         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29847         mention of RELOCATABLE_STRIP.
29848         Reported by Sylvain Beucler <beuc@beuc.net>.
29849
29850 2010-04-19  Bruno Haible  <bruno@clisp.org>
29851
29852         * lib/diffseq.h: Fix typo in comment.
29853         Reported by Eric Blake.
29854
29855 2010-04-19  Bruno Haible  <bruno@clisp.org>
29856
29857         ioctl: Move autoconf macro to a .m4 file.
29858         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29859         * modules/ioctl (Files): Add it.
29860         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29861         Reported by Ian Beckwith <ianb@erislabs.net>.
29862
29863 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29864             Bruno Haible  <bruno@clisp.org>
29865
29866         diffseq: Accommodate use-case with abstract arrays.
29867         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29868         is not defined.
29869         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29870         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29871
29872 2010-04-18  Bruno Haible  <bruno@clisp.org>
29873
29874         * doc/posix-headers/stdbool.texi: More precise wording.
29875
29876 2010-04-17  Jim Meyering  <meyering@redhat.com>
29877
29878         maint.mk: use gnu-style indentation in an embedded perl script
29879         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29880         Rename variable: s/two/last_two_bytes/
29881
29882 2010-04-16  Eric Blake  <eblake@redhat.com>
29883
29884         test-stdbool: skip test that fails with Solaris CC
29885         * tests/test-stdbool.c (f): Skip test that causes compilation
29886         error under buggy C++ compiler.
29887         * lib/stdbool.in.h: Document the limitation.
29888         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29889
29890         setenv: allow compilation with C++
29891         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29892         register keyword.
29893
29894         stdint: allow test to pass with C++
29895         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29896
29897         getopt: allow compilation with C++
29898         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29899         struct.
29900         * lib/getopt.c (_getopt_internal_r): Use correct type.
29901         Reported by Dagobert Michelson, via Joel E. Denny.
29902
29903 2010-04-16  Bruno Haible  <bruno@clisp.org>
29904
29905         Override netdb.h always.
29906         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29907         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29908         Reported by Ludovic Courtès <ludo@gnu.org>.
29909
29910 2010-04-15  Bruno Haible  <bruno@clisp.org>
29911
29912         openpty: Fix mistake from 2010-03-21.
29913         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29914         Reported by Simon Josefsson.
29915
29916 2010-04-15  Eric Blake  <eblake@redhat.com>
29917
29918         test-forkpty: fix expected signature
29919         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29920         Reported by Simon Josefsson.
29921
29922 2010-04-15  Jim Meyering  <meyering@redhat.com>
29923
29924         maint.mk: texinfo_suffix_re_: correct the default regexp
29925         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29926
29927         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29928         make it configurable via texinfo_suffix_re_.
29929
29930 2010-04-14  Eric Blake  <eblake@redhat.com>
29931
29932         strtok_r: relax license to LGPLv2+
29933         * modules/strtok_r (License): Relax license.
29934         Reported by Matthias Bolte.
29935
29936 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29937
29938         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29939         version 1.4.4 by default instead of requiring the libgcrypt
29940         version used during build.  This makes it possible to use the
29941         application with older but still binary compatible libgcrypt
29942         versions.
29943
29944 2010-04-13  Eric Blake  <eblake@redhat.com>
29945
29946         getopt-gnu: match recent glibc fixes and posix ruling
29947         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29948         '+' handling, when requesting extensions.
29949         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29950         'W;' handling.
29951         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29952         * doc/posix-functions/getopt.texi (getopt): Document this.
29953         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29954         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29955         Likewise.
29956
29957         getopt: merge bug fixes from glibc
29958         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29959         diagnostics.  Honor '+:' correctly.  Reject ';'.
29960
29961         getopt-posix: detect MacOS bug
29962         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29963         optind when missing a required argument.
29964         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29965         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29966         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29967         Likewise.
29968
29969         getopt-posix: avoid spurious failure on Solaris
29970         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29971         an indicator that setting optind=1 is sufficient for reset.
29972
29973         getopt-posix: avoid spurious failure on FreeBSD
29974         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29975         in POSIX mode, since the m4 test uses it.
29976
29977         gnulib-tool: silence warning on BSD sh
29978         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29979
29980 2010-04-13  Jim Meyering  <meyering@redhat.com>
29981
29982         doc: users.txt: GNU patch now uses gnulib
29983         * users.txt: Add patch.
29984
29985 2010-04-12  Jim Meyering  <meyering@redhat.com>
29986
29987         maint.mk: generate more concise timing data for syntax-check rules
29988         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29989         " done" from each line that reports a syntax-check test duration.
29990
29991 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29992
29993         git-version-gen: use "git update-index..." rather than "git status"
29994         * build-aux/git-version-gen: Use git update-index --refresh, not
29995         "git status".  With some versions of git, "git status" would fail
29996         to update the index and result in an unwarranted "-dirty" suffix.
29997
29998 2010-04-11  Jim Meyering  <meyering@redhat.com>
29999
30000         openat: correct formatting (no semantic change)
30001         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30002         Suggested by Bruno Haible.
30003
30004 2010-04-11  Bruno Haible  <bruno@clisp.org>
30005
30006         Stricter declaration checking in testdirs.
30007         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30008         If for_tests is true, augment AM_CPPFLAGS to define
30009         GNULIB_STRICT_CHECKING.
30010         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30011         GNULIB_STRICT_CHECKING is defined, verify that the function is
30012         declared.
30013
30014 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30015             Bruno Haible  <bruno@clisp.org>
30016
30017         libunistring: Improve configure output.
30018         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30019         Don't say "consider installing GNU libunistring" when checking again
30020         with libiconv.
30021
30022 2010-04-11  Bruno Haible  <bruno@clisp.org>
30023
30024         libunistring: Correct value of $LTLIBUNISTRING.
30025         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30026         correct the value of $LTLIBUNISTRING.
30027
30028 2010-04-11  Bruno Haible  <bruno@clisp.org>
30029
30030         havelib: Add static libraries to LIBS in the right order.
30031         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30032         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30033
30034 2010-04-11  Bruno Haible  <bruno@clisp.org>
30035
30036         libunistring: Detect libunistring also when it depends on libiconv.
30037         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30038         the second AC_LIB_HAVE_LINKFLAGS invocation.
30039
30040 2010-04-11  James Youngman  <jay@gnu.org>
30041
30042         close-stream: declare local scalars to be "const"
30043         * lib/close-stream.c (close_stream): Make boolean variables const
30044         to document the fact that we set but do not change them.
30045
30046 2010-04-11  Bruno Haible  <bruno@clisp.org>
30047
30048         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30049
30050 2010-04-11  Jim Meyering  <meyering@redhat.com>
30051
30052         maint.mk: don't include dist-check.mk
30053         * top/maint.mk: Remove bogus include directive.
30054
30055         maint.mk: improve empty-line-at-EOF check
30056         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30057         solution, rather than tail+Perl-based one.  The latter would read
30058         a few kilobytes from the end of each file, and did not handle empty
30059         files properly.
30060
30061         maint.mk: print the elapsed time for each syntax-check rule
30062         * top/maint.mk (sc_m_rules_): Save start time in a file.
30063         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30064         (local-check): Interpose the .z rules
30065
30066 2010-04-11  Jim Meyering  <meyering@redhat.com>
30067
30068         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30069         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30070         empty file with one that ends in an empty line.
30071
30072 2010-04-10  Bruno Haible  <bruno@clisp.org>
30073
30074         mkdir: Make it work on mingw64.
30075         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30076         * lib/mkdir.c: Update comment.
30077         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
30078
30079 2010-04-10  Bruno Haible  <bruno@clisp.org>
30080
30081         Don't override improved macro from newer autoconf.
30082         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30083         autoconf >= 2.62.
30084         Reported by Joel E. Denny <jdenny@clemson.edu>.
30085
30086 2010-04-10  Jim Meyering  <meyering@redhat.com>
30087
30088         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30089         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30090
30091         maint.mk: correct a diagnostic
30092         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30093         in diagnostic; now use $prohibit.
30094
30095 2010-04-10  Bruno Haible  <address@hidden>
30096
30097         fchownat: Fix a C++ test error on Solaris 8.
30098         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30099         the function does not exist.
30100
30101 2010-04-10  Bruno Haible  <bruno@clisp.org>
30102
30103         vasnprintf: Add more tests.
30104         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30105         (test_function): Test converting an invalid wide string.
30106
30107         vasnprintf: Correct handling of unconvertible wide string arguments.
30108         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30109         VASNPRINTF.
30110         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30111         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30112         smaller than the expected maximum need for the directive. Set errno to
30113         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30114         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30116         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30117         * modules/vasnprintf (Files): Add m4/printf.m4.
30118         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30119
30120 2010-04-10  Bruno Haible  <bruno@clisp.org>
30121
30122         vasnprintf: Fix crash in %ls directive.
30123         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30124         string is passed as argument to %ls, with no precision and no width.
30125         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30126
30127 2010-04-10  Bruno Haible  <bruno@clisp.org>
30128
30129         vasnprintf: Fix multiple test failures on mingw.
30130         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30131         _snprintf, or snwprintf, not _snwprintf.
30132
30133 2010-04-10  Bruno Haible  <bruno@clisp.org>
30134
30135         write: Fix a C++ test error on mingw.
30136         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30137
30138 2010-04-10  Bruno Haible  <bruno@clisp.org>
30139
30140         vasnprintf test: Reduce code duplication.
30141         * tests/test-vasnprintf.c (test_function): New function, extracted from
30142         test_vasnprintf.
30143         (test_vasnprintf, test_asnprintf): Invoke it.
30144
30145 2010-04-10  Bruno Haible  <bruno@clisp.org>
30146
30147         strnlen: Fix warning in C++ mode on MacOS X.
30148         * lib/string.in.h (strnlen): Use the modern idiom.
30149         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30150         defining strnlen as a macro already in <config.h>.
30151         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30152         REPLACE_STRNLEN.
30153         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30154         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30155
30156 2010-04-08  James Youngman  <jay@gnu.org>
30157
30158         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30159         the example.
30160
30161 2010-04-09  Jim Meyering  <meyering@redhat.com>
30162
30163         maint.mk: print better diagnostic when there is no $(_hv_file)
30164         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30165         announce that when $(_hv_file) (aka help-version) does not exist.
30166
30167         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30168         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30169         not try to interpret its random input bytes.  Jarno Rajahalme reported
30170         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30171         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30172         (mktempd_): Likewise, just in case.
30173
30174         ftruncate: add two years to projected module removal date: 2012
30175         * m4/ftruncate.m4: Adjust comments.
30176
30177         ftruncate: mark module as obsolete; even MinGW provides it, now
30178         * modules/ftruncate (Status): Obsolete.
30179         (Notice): Say that.
30180         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30181         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30182
30183 2010-04-08  Bruno Haible  <bruno@clisp.org>
30184
30185         Fix side effects from tests-related modules.
30186         * modules/dprintf-posix (Comment): New section.
30187         * modules/fprintf-posix (Comment): Likewise.
30188         * modules/obstack-printf-posix (Comment): Likewise.
30189         * modules/printf-posix (Comment): Likewise.
30190         * modules/snprintf-posix (Comment): Likewise.
30191         * modules/sprintf-posix (Comment): Likewise.
30192         * modules/vasnprintf-posix (Comment): Likewise.
30193         * modules/vasprintf-posix (Comment): Likewise.
30194         * modules/vdprintf-posix (Comment): Likewise.
30195         * modules/vfprintf-posix (Comment): Likewise.
30196         * modules/vprintf-posix (Comment): Likewise.
30197         * modules/vsnprintf-posix (Comment): Likewise.
30198         * modules/vsprintf-posix (Comment): Likewise.
30199         * modules/xprintf-posix (Comment): Likewise.
30200         * modules/xvasprintf-posix (Comment): Likewise.
30201         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30202         * modules/floorf-tests (Depends-on): Likewise.
30203         * modules/round-tests (Depends-on): Likewise.
30204         * modules/roundf-tests (Depends-on): Likewise.
30205         * modules/trunc-tests (Depends-on): Likewise.
30206         * modules/truncf-tests (Depends-on): Likewise.
30207         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30208         'fprintf-posix' module is not present.
30209         * tests/test-floorf2.c (check): Likewise.
30210         * tests/test-trunc2.c (check): Likewise.
30211         * tests/test-truncf2.c (check): Likewise.
30212         * tests/test-round2.c (equal): Likewise.
30213         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30214
30215 2010-04-07  Karl Berry  <karl@gnu.org>
30216
30217         * config/srclist.txt,
30218         * config/srclistvars.sh,
30219         * config/srclist-update: doc fixes.
30220
30221 2010-04-07  Jim Meyering  <meyering@redhat.com>
30222
30223         maint.mk: add a PATH crosschecking syntax-check rule
30224         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30225         Useful if you use a test like the one in help-version (coreutils,
30226         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30227         printed by prog --version.
30228
30229 2010-04-06  Bruno Haible  <bruno@clisp.org>
30230
30231         Fix link error on mingw.
30232         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30233         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30234
30235 2010-04-06  Bruno Haible  <bruno@clisp.org>
30236
30237         Assume rmdir exists.
30238         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30239
30240 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30241
30242         doc: update users.txt
30243         * users.txt: Add gcal.
30244
30245 2010-04-06  Jim Meyering  <meyering@redhat.com>
30246
30247         init.sh: simply unset TMPDIR rather than risking env -i
30248         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30249         although it probably works fine on all Unix-based systems, some
30250         systems (Cygwin?) cannot tolerate a totally cleared environment.
30251         Suggestion from Eric Blake.
30252
30253 2010-04-06  Jim Meyering  <meyering@redhat.com>
30254
30255         init.sh: portability fix: use env's POSIX-specified -i option not -u
30256         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30257         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30258
30259 2010-04-05  Bruno Haible  <bruno@clisp.org>
30260
30261         btowc: Work around Cygwin 1.7.2 bug.
30262         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30263         does not map NUL to 0.
30264         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30265
30266 2010-04-05  Bruno Haible  <bruno@clisp.org>
30267
30268         Make the multithread modules work on Cygwin 1.7.2.
30269         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30270         imported symbols can be declared weak, so that it returns "no" on
30271         Cygwin 1.7.2.
30272
30273 2010-04-05  Bruno Haible  <bruno@clisp.org>
30274
30275         Use the module 'strncat'.
30276         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30277
30278         Tests for module 'strncat'.
30279         * modules/strncat-tests: New file.
30280         * tests/test-strncat.c: New file.
30281
30282         New module 'strncat'.
30283         * lib/string.in.h (strncat): New declaration.
30284         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30285         * m4/strncat.m4: New file, based on m4/memchr.m4.
30286         * modules/strncat: New file.
30287         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30288         is declared.
30289         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30290         REPLACE_STRNCAT.
30291         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30292         REPLACE_STRNCAT.
30293         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30294         module.
30295         * tests/test-string-c++.cc: Check signature of strncat.
30296
30297 2010-04-05  Jim Meyering  <meyering@redhat.com>
30298
30299         xstrtoumax-tests: convert to use init.sh
30300         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30301         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30302         Use Exit, not exit.
30303         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30304
30305         xstrtoimax-tests: convert to use init.sh
30306         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30307         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30308         Use Exit, not exit.
30309         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30310
30311 2010-04-05  Bruno Haible  <bruno@clisp.org>
30312
30313         sys_socket: Avoid #define replacements in C++ mode.
30314         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30315         warning to the function if possible, rather than #defining the symbol
30316         to a dysfunctional alias.
30317
30318 2010-04-05  Bruno Haible  <bruno@clisp.org>
30319
30320         fseeko: Fix C++ test error on mingw.
30321         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30322         gl_FUNC_FSEEKO.
30323         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30324         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30325         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30326         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30327
30328 2010-04-05  Bruno Haible  <bruno@clisp.org>
30329
30330         duplocale: Improve test output.
30331         * tests/test-duplocale.c (main): Print reason for skipped test.
30332
30333 2010-04-05  Bruno Haible  <bruno@clisp.org>
30334
30335         Assume rmdir exists.
30336         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30337         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30338
30339 2010-04-05  Bruno Haible  <bruno@clisp.org>
30340
30341         Fix link error on Solaris 8 with cc.
30342         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30343
30344 2010-04-05  Bruno Haible  <bruno@clisp.org>
30345
30346         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30347         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30348
30349 2010-04-05  Bruno Haible  <bruno@clisp.org>
30350
30351         vasprintf: Update documentation.
30352         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30353
30354 2010-04-05  Bruno Haible  <bruno@clisp.org>
30355
30356         ptsname: Improve test.
30357         * tests/test-ptsname.c (main): Also try the various master names of BSD
30358         systems.
30359
30360 2010-04-05  Bruno Haible  <bruno@clisp.org>
30361
30362         memchr: Avoid a possible C++ test error.
30363         * lib/string.in.h (memchr): Provide declaration if function is missing.
30364         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30365         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30366         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30367         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30368
30369 2010-04-05  Bruno Haible  <bruno@clisp.org>
30370
30371         strtok_r: Improve idiom.
30372         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30373         AC_LIBOBJ is used.
30374
30375 2010-04-05  Bruno Haible  <bruno@clisp.org>
30376
30377         strdup: Improve idiom.
30378         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30379         AC_LIBOBJ is used.
30380         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30381         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30382         when AC_LIBOBJ is used.
30383
30384 2010-04-05  Bruno Haible  <bruno@clisp.org>
30385
30386         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30387         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30388         don't set REPLACE_MBSINIT to 1.
30389         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30390         don't set REPLACE_MBRTOWC to 1.
30391         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30392         exist, don't set REPLACE_MBSRTOWCS to 1.
30393         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30394         exist, don't set REPLACE_MBSNRTOWCS to 1.
30395         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30396         don't set REPLACE_WCRTOMB to 1.
30397         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30398         exist, don't set REPLACE_WCSRTOMBS to 1.
30399         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30400         exist, don't set REPLACE_WCSNRTOMBS to 1.
30401
30402 2010-04-05  Bruno Haible  <bruno@clisp.org>
30403
30404         ldexpl: Improve idiom.
30405         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30406         make sure to set HAVE_DECL_LDEXPL to 0.
30407
30408 2010-04-05  Jim Meyering  <meyering@redhat.com>
30409
30410         xstrtol-tests: convert to use init.sh
30411         * modules/xstrtol-tests (Files): Add tests/init.sh.
30412         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30413         Use Exit, not exit.
30414         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30415
30416         atexit-tests: convert to use init.sh
30417         * modules/atexit-tests (Files): Add tests/init.sh.
30418         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30419         Use Exit, not exit.
30420         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30421
30422         init.sh: fix typo
30423         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30424
30425         init.sh: make it easier for a test script to write to the tty, ...
30426         when using automake's parallel-tests mode.
30427         * tests/init.sh (stderr_fileno_): Define overridable variable.
30428         (warn_): New function, to use it.
30429         (fail_, skip_, framework_failure_): Use warn_.
30430
30431 2010-04-04  Bruno Haible  <bruno@clisp.org>
30432
30433         btowc: Avoid warning.
30434         * lib/btowc.c: Include <stdlib.h>.
30435         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30436
30437 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30438             Bruno Haible  <bruno@clisp.org>
30439
30440         wchar: Port to NetBSD 1.5.
30441         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30442         * lib/wctype.in.h (WEOF): Likewise.
30443
30444 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30445             Bruno Haible  <bruno@clisp.org>
30446
30447         Port extended stdio to NetBSD 1.5.
30448         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30449         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30450         older.
30451
30452 2010-04-04  Bruno Haible  <bruno@clisp.org>
30453
30454         string: Remove unused substitution.
30455         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30456         HAVE_DECL_STRERROR.
30457         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30458
30459 2010-04-04  Bruno Haible  <bruno@clisp.org>
30460
30461         strtod: Avoid a possible C++ test error.
30462         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30463         set REPLACE_STRTOD.
30464
30465 2010-04-04  Bruno Haible  <bruno@clisp.org>
30466
30467         strerror: Update documentation.
30468         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30469
30470 2010-04-04  Bruno Haible  <bruno@clisp.org>
30471
30472         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30473         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30474         _GL_CXXALIAS_SYS_CAST.
30475
30476 2010-04-04  Bruno Haible  <bruno@clisp.org>
30477
30478         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30479         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30480         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30481         REPLACE_FREXPL to 1.
30482         * doc/posix-functions/frexpl.texi: Update documentation.
30483
30484 2010-04-04  Bruno Haible  <bruno@clisp.org>
30485
30486         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30487         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30488
30489 2010-04-04  Bruno Haible  <bruno@clisp.org>
30490
30491         Implement nanosleep for native Windows.
30492         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30493
30494 2010-04-04  Bruno Haible  <bruno@clisp.org>
30495
30496         math: Fix some C++ test errors on Solaris 8.
30497         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30498
30499 2010-04-04  Bruno Haible  <bruno@clisp.org>
30500
30501         math: Fix some C++ test errors on Cygwin.
30502         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30503         truncl): Provide declaration if the system does not have it.
30504         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30505         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30506         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30507         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30508         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30509         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30510         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30511         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30512         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30513         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30514         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30515         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30516         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30517         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30518         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30519         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30521         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30522         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30523         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30524         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30525         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30526
30527 2010-04-04  Bruno Haible  <bruno@clisp.org>
30528
30529         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30530         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30531         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30532         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30533         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30534         * m4/isinf.m4 (gl_ISINF): Likewise.
30535         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30536
30537 2010-04-04  Bruno Haible  <bruno@clisp.org>
30538
30539         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30540         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30541
30542 2010-04-04  Bruno Haible  <bruno@clisp.org>
30543
30544         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30545         * modules/tmpfile (configure.ac): Update.
30546
30547         tmpfile: Fix C++ test error on mingw.
30548         * lib/stdio.in.h (tmpfile): New declaration.
30549         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30550         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30551         * modules/tmpfile (Depends-on): Add stdio.
30552         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30553         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30554         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30555         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30556         REPLACE_TMPFILE.
30557         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30558
30559 2010-04-04  Bruno Haible  <bruno@clisp.org>
30560
30561         ioctl: Fix C++ test error on mingw.
30562         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30563         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30564         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30565
30566 2010-04-03  Bruno Haible  <bruno@clisp.org>
30567
30568         wcwidth: Fix C++ test error on mingw.
30569         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30570         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30571         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30572
30573 2010-04-03  Bruno Haible  <bruno@clisp.org>
30574
30575         nanosleep: Fix C++ test error on mingw.
30576         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30577         * lib/time.in.h (nanosleep): Use modern idiom.
30578         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30579         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30580         REPLACE_NANOSLEEP to 1.
30581         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30582         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30583
30584 2010-04-03  Bruno Haible  <bruno@clisp.org>
30585
30586         strptime: Fix C++ test error on mingw.
30587         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30588         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30589         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30590         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30591         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30592         not REPLACE_STRPTIME.
30593         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30594         REPLACE_STRPTIME.
30595
30596 2010-04-03  Bruno Haible  <bruno@clisp.org>
30597
30598         timegm: Fix C++ test error on mingw.
30599         * lib/time.in.h (timegm): Use modern idiom.
30600         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30601         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30602         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30603         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30604
30605 2010-04-03  Bruno Haible  <bruno@clisp.org>
30606
30607         timegm: Assume declaration if function exists.
30608         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30609         if it exists. Don't clobber ac_cv_func_timegm.
30610
30611 2010-04-03  Bruno Haible  <bruno@clisp.org>
30612
30613         time_r: Fix C++ test error on mingw.
30614         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30615         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30616         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30617         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30618         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30619
30620 2010-04-03  Bruno Haible  <bruno@clisp.org>
30621
30622         time_r: Minor updates.
30623         * modules/time_r (Description): Mention the provided functions.
30624         * lib/time_r.c: Don't include <string.h>.
30625         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30626         * doc/posix-functions/localtime_r.texi: Likewise.
30627
30628 2010-04-03  Bruno Haible  <bruno@clisp.org>
30629
30630         time: Fix regression introduced on 2010-03-08.
30631         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30632         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30633
30634 2010-04-03  Jim Meyering  <meyering@redhat.com>
30635
30636         maint.mk: don't silently disable project-specific syntax-check rules
30637         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30638         that they need to convert their project-specific syntax-check rules
30639         to use the new _sc_search_regexp.
30640
30641 2010-04-03  Bruno Haible  <bruno@clisp.org>
30642
30643         fchdir: Fix regression introduced on 2010-03-08.
30644         * lib/unistd.in.h (fchdir): Fix declaration.
30645         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30647         REPLACE_FCHDIR.
30648         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30649         REPLACE_FCHDIR.
30650
30651 2010-04-03  Bruno Haible  <bruno@clisp.org>
30652
30653         getpagesize: Fix C++ test error on mingw.
30654         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30655         system does not declare the function.
30656         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30657         declared.
30658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30659         HAVE_DECL_GETPAGESIZE.
30660         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30661
30662 2010-04-03  Bruno Haible  <bruno@clisp.org>
30663
30664         stdio: Make C++ tests work on mingw.
30665         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30666         does not declare the function.
30667
30668 2010-04-03  Bruno Haible  <bruno@clisp.org>
30669
30670         ftello: Fix C++ test error on mingw.
30671         * lib/stdio.in.h (ftello): Use modern idiom.
30672         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30673         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30674         is missing and that it needs to be replaced.
30675         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30676         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30677         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30678
30679 2010-04-03  Bruno Haible  <bruno@clisp.org>
30680
30681         fseeko: Fix C++ test error on mingw.
30682         * lib/stdio.in.h (fseeko): Use modern idiom.
30683         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30684         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30685         is missing and that it needs to be replaced.
30686         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30688         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30689
30690 2010-04-03  Bruno Haible  <bruno@clisp.org>
30691
30692         mkstemp: Fix C++ test error on mingw.
30693         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30694         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30695         function is missing and that it needs to be replaced.
30696         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30697         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30698
30699 2010-04-03  Bruno Haible  <bruno@clisp.org>
30700
30701         stpncpy: Fix C++ test error on mingw.
30702         * lib/string.in.h (stpncpy): Use modern idiom.
30703         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30704         function is missing and that it needs to be replaced.
30705         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30706         REPLACE_STPNCPY.
30707         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30708
30709 2010-04-03  Bruno Haible  <bruno@clisp.org>
30710
30711         sys_stat: Fix C++ test error on mingw.
30712         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30713         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30714
30715 2010-04-03  Bruno Haible  <bruno@clisp.org>
30716
30717         pty: Update doc.
30718         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30719
30720 2010-04-03  Bruno Haible  <bruno@clisp.org>
30721
30722         unistd: Fix C++ test error on mingw.
30723         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30724
30725 2010-04-03  Bruno Haible  <bruno@clisp.org>
30726
30727         Update doc regarding mingw.
30728         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30729         * doc/glibc-functions/login_tty.texi: Likewise.
30730         * doc/glibc-functions/forkpty.texi: Likewise.
30731
30732 2010-04-03  Bruno Haible  <bruno@clisp.org>
30733
30734         stdlib: Avoid compilation failure of c-strtold on mingw.
30735         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30736
30737 2010-04-03  Bruno Haible  <bruno@clisp.org>
30738
30739         locale: Make C++ tests work on Cygwin and mingw.
30740         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30741         cannot provide the function.
30742         Reported by Simon Josefsson.
30743
30744 2010-04-03  Bruno Haible  <bruno@clisp.org>
30745
30746         localename: Port to MacOS X 10.6.
30747         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30748         memory layout of the locales in MacOS X 10.6 as well.
30749         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30750
30751 2010-04-02  Bruno Haible  <bruno@clisp.org>
30752
30753         gnulib-tool: Ensure that long-running tests are executed last.
30754         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30755         running tests after the one for the other tests.
30756
30757 2010-04-02  Bruno Haible  <bruno@clisp.org>
30758
30759         gnulib-tool: Ensure the tests in the main directory are executed first.
30760         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30761         start with the current directory.
30762
30763 2010-04-02  Bruno Haible  <bruno@clisp.org>
30764
30765         Tests for module 'havelib', moved here from GNU gettext.
30766         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30767         modifications.
30768         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30769         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30770         with modifications.
30771         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30772         modifications.
30773         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30774         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30775         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30776         with modifications.
30777         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30778         with modifications.
30779         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30780         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30781         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30782         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30783         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30784         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30785         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30786         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30787         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30788         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30789         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30790         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30791         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30792         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30793         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30794         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30795         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30796         with modifications.
30797         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30798         with modifications.
30799         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30800         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30801         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30802         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30803         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30804         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30805         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30806         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30807         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30808         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30809         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30810         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30811         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30812         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30813         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30814         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30815         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30816         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30817         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30818         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30819         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30820         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30821         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30822         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30823         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30824         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30825         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30826         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30827         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30828         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30829         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30830         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30831         * tests/havelib/rpathx/rpathx.c: New file, from
30832         gettext/autoconf-lib-link.
30833         * tests/havelib/rpathx/Makefile.am: New file, from
30834         gettext/autoconf-lib-link.
30835         * tests/havelib/rpathx/configure.ac: New file, from
30836         gettext/autoconf-lib-link with modifications.
30837         * tests/havelib/rpathy/rpathy.c: New file, from
30838         gettext/autoconf-lib-link.
30839         * tests/havelib/rpathy/Makefile.am: New file, from
30840         gettext/autoconf-lib-link.
30841         * tests/havelib/rpathy/configure.ac: New file, from
30842         gettext/autoconf-lib-link with modifications.
30843         * tests/havelib/rpathz/rpathz.c: New file, from
30844         gettext/autoconf-lib-link.
30845         * tests/havelib/rpathz/Makefile.am: New file, from
30846         gettext/autoconf-lib-link.
30847         * tests/havelib/rpathz/configure.ac: New file, from
30848         gettext/autoconf-lib-link with modifications.
30849         * tests/havelib/rpathlx/usex.c: New file, from
30850         gettext/autoconf-lib-link.
30851         * tests/havelib/rpathlx/Makefile.am: New file, from
30852         gettext/autoconf-lib-link.
30853         * tests/havelib/rpathlx/configure.ac: New file, from
30854         gettext/autoconf-lib-link with modifications.
30855         * tests/havelib/rpathly/usey.c: New file, from
30856         gettext/autoconf-lib-link.
30857         * tests/havelib/rpathly/Makefile.am: New file, from
30858         gettext/autoconf-lib-link.
30859         * tests/havelib/rpathly/configure.ac: New file, from
30860         gettext/autoconf-lib-link with modifications.
30861         * tests/havelib/rpathlz/usez.c: New file, from
30862         gettext/autoconf-lib-link.
30863         * tests/havelib/rpathlz/Makefile.am: New file, from
30864         gettext/autoconf-lib-link.
30865         * tests/havelib/rpathlz/configure.ac: New file, from
30866         gettext/autoconf-lib-link with modifications.
30867         * tests/havelib/rpathlyx/usey.c: New file, from
30868         gettext/autoconf-lib-link.
30869         * tests/havelib/rpathlyx/Makefile.am: New file, from
30870         gettext/autoconf-lib-link.
30871         * tests/havelib/rpathlyx/configure.ac: New file, from
30872         gettext/autoconf-lib-link with modifications.
30873         * tests/havelib/rpathlzyx/usez.c: New file, from
30874         gettext/autoconf-lib-link.
30875         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30876         gettext/autoconf-lib-link.
30877         * tests/havelib/rpathlzyx/configure.ac: New file, from
30878         gettext/autoconf-lib-link with modifications.
30879         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30880         with modifications.
30881
30882 2010-04-02  Bruno Haible  <bruno@clisp.org>
30883
30884         gnulib-tool: Create distributed built sources also for the tests.
30885         * gnulib-tool (func_create_testdir): Also generate distributed built
30886         sources in the tests directory.
30887
30888 2010-04-02  Bruno Haible  <bruno@clisp.org>
30889
30890         gnulib-tool: Obey user's environment variables.
30891         * gnulib-tool (func_create_testdir): When creating built sources,
30892         respect the environment variables for autoconf, automake, etc. given by
30893         the user.
30894
30895 2010-04-02  Bruno Haible  <bruno@clisp.org>
30896
30897         gnulib-tool: Provide the value of --m4-base to modules.
30898         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30899         of gl_m4_base.
30900
30901 2010-04-02  Eric Blake  <eblake@redhat.com>
30902
30903         maint.mk: fix some fallout
30904         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30905         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30906
30907 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30908
30909         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30910         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30911         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30912         (sc_cast_of_x_alloc_return_value): Likewise.
30913         (sc_cast_of_alloca_return_value): Likewise.
30914         (sc_space_tab): Likewise.
30915         (sc_prohibit_atoi_atof): Likewise.
30916         (sc_prohibit_magic_number_exit): Likewise.
30917         (sc_error_exit_success): Likewise.
30918         (sc_file_system): Likewise.
30919         (sc_prohibit_have_config_h): Likewise.
30920         (sc_require_config_h): Likewise.
30921         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30922         (sc_obsolete_symbols): Likewise.
30923         (sc_changelog): Likewise.
30924         (sc_program_name): Likewise.
30925         (sc_the_the): Likewise.
30926         (sc_trailing_blank): Likewise.
30927         (sc_two_space_separator_in_usage): Likewise.
30928         (sc_useless_cpp_parens): Likewise.
30929         (sc_GPL_version): Likewise.
30930         (sc_GFDL_version): Likewise.
30931         (sc_texinfo_acronym): Likewise.
30932         (sc_prohibit_cvs_keyword): Likewise.
30933         (sc_prohibit_stat_st_blocks): Likewise.
30934         (sc_prohibit_S_IS_definition): Likewise.
30935         (sc_redundant_const): Likewise.
30936         (sc_makefile_TAB_only_indentation): Likewise.
30937         (sc_m4_quote_check): Likewise.
30938         (sc_makefile_path_separator_check): Likewise.
30939         (sc_copyright_check): Likewise.
30940         (sc_Wundef_boolean): Likewise.
30941         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30942
30943         maint.mk: match 0 or more whitespace-before-function-call '('
30944         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30945         that have zero or two-and-more spaces between the function name
30946         and the open parenthesis.
30947         (sc_error_message_warn_fatal): Likewise.
30948         (sc_error_message_uppercase): Likewise.
30949         (sc_error_message_period): Likewise.
30950
30951 2010-03-31  Eric Blake  <eblake@redhat.com>
30952
30953         maint.mk: check for [ as well as test
30954         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30955         Based on a libvirt report by Matthias Bolte.
30956
30957         gnumakefile: don't squelch _version output
30958         * top/GNUmakefile (_version): Create one-shot dependency rather
30959         than using $(shell) when version must be regenerated.
30960         (_autoreconf): Run verbosely, by default.
30961
30962         sys_time: avoid compiler warnings
30963         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30964         unconditional, fixing regression from 2010-03-29.
30965         Reported by Simon Josefsson.
30966
30967 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30968
30969         maint.mk: s/_header_without_use/_sc_header_without_use/
30970         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30971         (sc_prohibit_assert_without_use): Use the new name.
30972         (sc_prohibit_close_stream_without_use): Likewise.
30973         (sc_prohibit_getopt_without_use): Likewise.
30974         (sc_prohibit_quotearg_without_use): Likewise.
30975         (sc_prohibit_quote_without_use): Likewise.
30976         (sc_prohibit_long_options_without_use): Likewise.
30977         (sc_prohibit_inttostr_without_use): Likewise.
30978         (sc_prohibit_ignore_value_without_use): Likewise.
30979         (sc_prohibit_error_without_use): Likewise.
30980         (sc_prohibit_xalloc_without_use): Likewise.
30981         (sc_prohibit_hash_without_use): Likewise.
30982         (sc_prohibit_hash_pjw_without_use): Likewise.
30983         (sc_prohibit_safe_read_without_use): Likewise.
30984         (sc_prohibit_argmatch_without_use): Likewise.
30985         (sc_prohibit_canonicalize_without_use): Likewise.
30986         (sc_prohibit_root_dev_ino_without_use): Likewise.
30987         (sc_prohibit_openat_without_use): Likewise.
30988         (sc_prohibit_c_ctype_without_use): Likewise.
30989         (sc_prohibit_signal_without_use): Likewise.
30990         (sc_prohibit_intprops_without_use): Likewise.
30991
30992 2010-03-30  Eric Blake  <eblake@redhat.com>
30993
30994         maint: improve module indicators
30995         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30996         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30997         columns, and avoid extra macro expansion.
30998
30999         fdopendir: work around FreeBSD bug
31000         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31001         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31002         * modules/dirent (Makefile.am): Substitute it.
31003         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31004         declaration.
31005         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31006         fix.
31007         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31008
31009 2010-03-29  Bruno Haible  <bruno@clisp.org>
31010
31011         Emit #pragma system_header after the inclusion guard, not before.
31012         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31013         guard that spans the entire file, not before. This enables an
31014         optimization in GCC's preprocessor.
31015         * lib/ctype.in.h: Likewise.
31016         * lib/dirent.in.h: Likewise.
31017         * lib/errno.in.h: Likewise.
31018         * lib/float.in.h: Likewise.
31019         * lib/getopt.in.h: Likewise.
31020         * lib/iconv.in.h: Likewise.
31021         * lib/langinfo.in.h: Likewise.
31022         * lib/locale.in.h: Likewise.
31023         * lib/math.in.h: Likewise.
31024         * lib/netdb.in.h: Likewise.
31025         * lib/netinet_in.in.h: Likewise.
31026         * lib/pty.in.h: Likewise.
31027         * lib/sched.in.h: Likewise.
31028         * lib/se-selinux.in.h: Likewise.
31029         * lib/search.in.h: Likewise.
31030         * lib/spawn.in.h: Likewise.
31031         * lib/stdarg.in.h: Likewise.
31032         * lib/stdint.in.h: Likewise.
31033         * lib/string.in.h: Likewise.
31034         * lib/strings.in.h: Likewise.
31035         * lib/sys_file.in.h: Likewise.
31036         * lib/sys_ioctl.in.h: Likewise.
31037         * lib/sys_time.in.h: Likewise.
31038         * lib/sys_times.in.h: Likewise.
31039         * lib/sys_utsname.in.h: Likewise.
31040         * lib/sys_wait.in.h: Likewise.
31041         * lib/sysexits.in.h: Likewise.
31042         * lib/wctype.in.h: Likewise.
31043
31044 2010-03-28  James Youngman  <jay@gnu.org>
31045
31046         save-cwd: don't leak a file descriptor when the caller execs.
31047         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31048         saved file descriptor.
31049         * modules/save-cwd (Depends-on): Depend on cloexec.
31050
31051 2010-03-29  Bruno Haible  <bruno@clisp.org>
31052
31053         Remove vestiges of fts-lgpl module.
31054         * lib/fts_.h: Assume GNULIB_FTS is 1.
31055         * lib/fts.c: Likewise.
31056         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31057
31058 2010-03-28  Bruno Haible  <bruno@clisp.org>
31059
31060         Fix definition of tests witness macro.
31061         * gnulib-tool (func_import): Fix definition of witness macro.
31062
31063 2010-03-28  Bruno Haible  <bruno@clisp.org>
31064
31065         Fix ioctl's protoype on glibc systems.
31066         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31067         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31068         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31069         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31070         signature. If not, arrange to replace the ioctl function.
31071         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31072         REPLACE_IOCTL.
31073         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31074         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31075         Reported by Ludovic Courtès <ludo@gnu.org>.
31076
31077 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31078
31079         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31080         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31081         made it so grep -r --include=GLOB* ... did not work.
31082
31083 2010-03-26  Jim Meyering  <meyering@redhat.com>
31084             Eric Blake  <eblake@redhat.com>
31085
31086         maint.mk: prohibit use of test's -o and -a operators
31087         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31088
31089 2010-03-28  Bruno Haible  <bruno@clisp.org>
31090
31091         Remove unused GNULIB_XYZ macro definitions.
31092         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31093         invocation.
31094
31095 2010-03-28  Bruno Haible  <bruno@clisp.org>
31096
31097         Mark privileged tests modules.
31098         * modules/idpriv-drop-tests (Status): New section.
31099         * modules/idpriv-droptemp-tests (Status): New section.
31100
31101 2010-03-28  Bruno Haible  <bruno@clisp.org>
31102
31103         Split C++ tests into separate tests modules.
31104         * modules/dirent-c++-tests: New file, extracted from
31105         modules/dirent-tests.
31106         * modules/dirent-tests: Depend on it.
31107         * modules/fcntl-h-c++-tests: New file, extracted from
31108         modules/fcntl-h-tests.
31109         * modules/fcntl-h-tests: Depend on it.
31110         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31111         * modules/glob-tests: Depend on it.
31112         * modules/iconv-h-c++-tests: New file, extracted from
31113         modules/iconv-h-tests.
31114         * modules/iconv-h-tests: Depend on it.
31115         * modules/langinfo-c++-tests: New file, extracted from
31116         modules/langinfo-tests.
31117         * modules/langinfo-tests: Depend on it.
31118         * modules/locale-c++-tests: New file, extracted from
31119         modules/locale-tests.
31120         * modules/locale-tests: Depend on it.
31121         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31122         * modules/math-tests: Depend on it.
31123         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31124         * modules/pty-tests: Depend on it.
31125         * modules/search-c++-tests: New file, extracted from
31126         modules/search-tests.
31127         * modules/search-tests: Depend on it.
31128         * modules/signal-c++-tests: New file, extracted from
31129         modules/signal-tests.
31130         * modules/signal-tests: Depend on it.
31131         * modules/spawn-c++-tests: New file, extracted from
31132         modules/spawn-tests.
31133         * modules/spawn-tests: Depend on it.
31134         * modules/stdio-c++-tests: New file, extracted from
31135         modules/stdio-tests.
31136         * modules/stdio-tests: Depend on it.
31137         * modules/stdlib-c++-tests: New file, extracted from
31138         modules/stdlib-tests.
31139         * modules/stdlib-tests: Depend on it.
31140         * modules/string-c++-tests: New file, extracted from
31141         modules/string-tests.
31142         * modules/string-tests: Depend on it.
31143         * modules/sys_ioctl-c++-tests: New file, extracted from
31144         modules/sys_ioctl-tests.
31145         * modules/sys_ioctl-tests: Depend on it.
31146         * modules/sys_select-c++-tests: New file, extracted from
31147         modules/sys_select-tests.
31148         * modules/sys_select-tests: Depend on it.
31149         * modules/sys_socket-c++-tests: New file, extracted from
31150         modules/sys_socket-tests.
31151         * modules/sys_socket-tests: Depend on it.
31152         * modules/sys_stat-c++-tests: New file, extracted from
31153         modules/sys_stat-tests.
31154         * modules/sys_stat-tests: Depend on it.
31155         * modules/sys_time-c++-tests: New file, extracted from
31156         modules/sys_time-tests.
31157         * modules/sys_time-tests: Depend on it.
31158         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31159         * modules/time-tests: Depend on it.
31160         * modules/unistd-c++-tests: New file, extracted from
31161         modules/unistd-tests.
31162         * modules/unistd-tests: Depend on it.
31163         * modules/wchar-c++-tests: New file, extracted from
31164         modules/wchar-tests.
31165         * modules/wchar-tests: Depend on it.
31166         * modules/wctype-c++-tests: New file, extracted from
31167         modules/wctype-tests.
31168         * modules/wctype-tests: Depend on it.
31169         Reported by Simon Josefsson.
31170
31171 2010-03-28  Bruno Haible  <bruno@clisp.org>
31172
31173         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31174         * gnulib-tool (func_exists_module): New function, extracted from
31175         func_verify_module.
31176         (func_verify_module): Use it.
31177         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31178         'foo' only if 'foo' exists.
31179         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31180         module.
31181
31182 2010-03-28  Bruno Haible  <bruno@clisp.org>
31183
31184         gnulib-tool: Add support for special categories of tests.
31185         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31186         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31187         (func_usage): Document them.
31188         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31189         inc_unportable_tests, inc_all_tests): New variables.
31190         (func_acceptable): Consider these variables.
31191         (func_modules_transitive_closure): Make it work when the 'Status' field
31192         consists of multiple words.
31193         (func_import): Store and restore the values of inc_cxx_tests,
31194         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31195         inc_all_tests in gnulib-comp.m4.
31196         (func_create_testdir): Set inc_all_tests to true.
31197         * doc/gnulib.texi (Extra tests modules): New section.
31198         Suggested by Jim Meyering.
31199
31200 2010-03-28  Bruno Haible  <bruno@clisp.org>
31201
31202         ansi-c++-opt: Allow turning off the C++ build by default.
31203         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31204         gl_CXX_CHOICE_DEFAULT_NO is defined.
31205         Requested by Eric Blake.
31206
31207 2010-03-28  Bruno Haible  <bruno@clisp.org>
31208
31209         unistd: Avoid #define replacements in C++ mode.
31210         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31211         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31212         setsockopt, shutdown, select): In C++, attach a warning to the function
31213         if possible, rather than #defining the symbol to a dysfunctional alias.
31214         Reported by John W. Eaton <jwe@gnu.org>.
31215
31216 2010-03-28  Bruno Haible  <bruno@clisp.org>
31217
31218         Fix link errors on mingw.
31219         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31220         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31221         $(LIBSOCKET).
31222         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31223         $(LIBSOCKET).
31224
31225 2010-03-28  Bruno Haible  <bruno@clisp.org>
31226             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31227
31228         lib-ignore: Determine different options for different compilers.
31229         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31230         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31231         Add comments.
31232         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31233         * NEWS: Mention the change.
31234
31235 2010-03-27  Bruno Haible  <bruno@clisp.org>
31236
31237         Remove unused GNULIB_XYZ macro definitions.
31238         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31239         * modules/fseek (configure.ac): Likewise.
31240         * modules/ioctl (configure.ac): Likewise.
31241         * modules/open (configure.ac): Likewise.
31242         * modules/stdlib-safer (configure.ac): Likewise.
31243
31244 2010-03-27  Bruno Haible  <bruno@clisp.org>
31245
31246         Add a remark about certain modules.
31247         * modules/malloc (Comment): New section.
31248         * modules/realloc (Comment): Likewise.
31249         * modules/sigpipe (Comment): Likewise.
31250
31251 2010-03-27  Bruno Haible  <bruno@clisp.org>
31252
31253         Resolve conflict between the two kinds of module indicators.
31254         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31255         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31256         * modules/canonicalize (configure.ac): Invoke
31257         gl_MODULE_INDICATOR_FOR_TESTS.
31258         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31259         GNULIB_XYZ.
31260         * tests/test-dirent-c++.cc: Likewise.
31261         * tests/test-dirent-safer.c: Likewise.
31262         * tests/test-dup2.c: Likewise.
31263         * tests/test-fchdir.c: Likewise.
31264         * tests/test-fcntl-h-c++.cc: Likewise.
31265         * tests/test-getopt.c: Likewise.
31266         * tests/test-getopt.h: Likewise.
31267         * tests/test-langinfo-c++.cc: Likewise.
31268         * tests/test-locale-c++.cc: Likewise.
31269         * tests/test-math-c++.cc: Likewise.
31270         * tests/test-pty-c++.cc: Likewise.
31271         * tests/test-search-c++.cc: Likewise.
31272         * tests/test-signal-c++.cc: Likewise.
31273         * tests/test-spawn-c++.cc: Likewise.
31274         * tests/test-stdio-c++.cc: Likewise.
31275         * tests/test-stdlib-c++.cc: Likewise.
31276         * tests/test-string-c++.cc: Likewise.
31277         * tests/test-sys_ioctl-c++.cc: Likewise.
31278         * tests/test-sys_select-c++.cc: Likewise.
31279         * tests/test-sys_socket-c++.cc: Likewise.
31280         * tests/test-sys_stat-c++.cc: Likewise.
31281         * tests/test-sys_time-c++.cc: Likewise.
31282         * tests/test-time-c++.cc: Likewise.
31283         * tests/test-unistd-c++.cc: Likewise.
31284         * tests/test-wchar-c++.cc: Likewise.
31285         * tests/uninorm/test-u8-nfc.c: Likewise.
31286         * tests/uninorm/test-u8-nfd.c: Likewise.
31287         * tests/uninorm/test-u8-nfkc.c: Likewise.
31288         * tests/uninorm/test-u8-nfkd.c: Likewise.
31289         * tests/uninorm/test-u16-nfc.c: Likewise.
31290         * tests/uninorm/test-u16-nfd.c: Likewise.
31291         * tests/uninorm/test-u16-nfkc.c: Likewise.
31292         * tests/uninorm/test-u16-nfkd.c: Likewise.
31293         * tests/uninorm/test-u32-nfc.c: Likewise.
31294         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31295         * tests/uninorm/test-u32-nfd.c: Likewise.
31296         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31297         * tests/uninorm/test-u32-nfkc.c: Likewise.
31298         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31299         * tests/uninorm/test-u32-nfkd.c: Likewise.
31300         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31301         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31302
31303 2010-03-27  Bruno Haible  <bruno@clisp.org>
31304
31305         Distinguish two kinds of module indicators.
31306         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31307         gl_MODULE_INDICATOR.
31308         (gl_MODULE_INDICATOR): New macro.
31309         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31310         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31311         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31312         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31313         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31314         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31315         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31316         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31317         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31318         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31319         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31320         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31321         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31322         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31323         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31324         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31325         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31326         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31327         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31328         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31329         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31330         * modules/cloexec (configure.ac): Likewise.
31331         * modules/getopt-gnu (configure.ac): Likewise.
31332         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31333         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31334         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31335         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31336
31337 2010-03-27  Bruno Haible  <bruno@clisp.org>
31338
31339         New module description field 'Comment'.
31340         * gnulib-tool: New option --extract-comment.
31341         (func_usage): Document it.
31342         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31343         (func_get_comment): New function.
31344         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31345
31346 2010-03-27  Bruno Haible  <bruno@clisp.org>
31347
31348         Addendum to 2010-02-07 commit.
31349         * gnulib-tool (func_usage): Document --extract-applicability option.
31350
31351 2010-03-27  Bruno Haible  <bruno@clisp.org>
31352
31353         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31354         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31355         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31356         rather than link errors.
31357
31358 2010-03-27  Bruno Haible  <bruno@clisp.org>
31359
31360         Avoid side effects from tests-related modules on the compilation of lib.
31361         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31362         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31363         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31364         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31365         macro.
31366         (func_import): Define a witness macro. Assign it a value that depends
31367         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31368         tests-related modules.
31369         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31370         Reported by Jim Meyering.
31371
31372 2010-03-27  Bruno Haible  <bruno@clisp.org>
31373
31374         Factorize common .m4 code.
31375         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31376         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31377         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31378         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31379         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31380         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31381         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31382         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31383         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31384         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31385         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31386         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31387         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31388         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31389         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31390         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31391         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31392         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31393         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31394         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31395         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31396         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31397         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31398         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31399         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31400         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31401         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31402         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31403         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31404         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31405         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31406         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31407
31408 2010-03-27  Bruno Haible  <bruno@clisp.org>
31409
31410         Fix a compilation error on Cygwin with g++ >= 4.3.
31411         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31412         if it is undefined or if we alias it to chmod.
31413         (lstat): Don't warn about the use of this function if it is undefined
31414         or if we alias it to stat.
31415         Reported by Simon Josefsson.
31416
31417 2010-03-27  Bruno Haible  <bruno@clisp.org>
31418
31419         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31420         * modules/getlogin (configure.ac): Update.
31421
31422         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31423         * modules/getlogin_r (configure.ac): Update.
31424
31425         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31426         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31427         * modules/inet_ntop (configure.ac): Update.
31428
31429         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31430         * modules/inet_pton (configure.ac): Update.
31431
31432         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31433         * modules/mbslen (configure.ac): Update.
31434
31435         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31436         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31437         * modules/forkpty (configure.ac): Update.
31438         * modules/openpty (configure.ac): Update.
31439
31440 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31441
31442         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31443         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31444
31445 2010-03-25  Eric Blake  <eblake@redhat.com>
31446
31447         maint: use pragma consistently across replacement headers
31448         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31449         * lib/dirent.in.h (system_header): Likewise.
31450         * lib/errno.in.h (system_header): Likewise.
31451         * lib/float.in.h (system_header): Likewise.
31452         * lib/getopt.in.h (system_header): Likewise.
31453         * lib/iconv.in.h (system_header): Likewise.
31454         * lib/inttypes.in.h (system_header): Likewise.
31455         * lib/langinfo.in.h (system_header): Likewise.
31456         * lib/locale.in.h (system_header): Likewise.
31457         * lib/math.in.h (system_header): Likewise.
31458         * lib/netdb.in.h (system_header): Likewise.
31459         * lib/netinet_in.in.h (system_header): Likewise.
31460         * lib/pty.in.h (system_header): Likewise.
31461         * lib/sched.in.h (system_header): Likewise.
31462         * lib/se-selinux.in.h (system_header): Likewise.
31463         * lib/search.in.h (system_header): Likewise.
31464         * lib/spawn.in.h (system_header): Likewise.
31465         * lib/stdarg.in.h (system_header): Likewise.
31466         * lib/stdint.in.h (system_header): Likewise.
31467         * lib/string.in.h (system_header): Likewise.
31468         * lib/strings.in.h (system_header): Likewise.
31469         * lib/sys_file.in.h (system_header): Likewise.
31470         * lib/sys_ioctl.in.h (system_header): Likewise.
31471         * lib/sys_socket.in.h (system_header): Likewise.
31472         * lib/sys_times.in.h (system_header): Likewise.
31473         * lib/sys_utsname.in.h (system_header): Likewise.
31474         * lib/sys_wait.in.h (system_header): Likewise.
31475         * lib/sysexits.in.h (system_header): Likewise.
31476         * lib/unistd.in.h (system_header): Likewise.
31477         * lib/wctype.in.h (system_header): Likewise.
31478
31479         arpa/inet: fix mingw compilation warning
31480         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31481         Reported by Matthew Bolte.
31482
31483 2010-03-25  Bruno Haible  <bruno@clisp.org>
31484
31485         Avoid collision between gnulib wrapper and libintl wrapper.
31486         * lib/printf.c (printf): Don't define if a printf wrapper is already
31487         defined in intl/printf.c.
31488         Reported by Michel Boaventura <michel@michelboaventura.com>.
31489
31490 2010-03-25  Bruno Haible  <bruno@clisp.org>
31491
31492         Use ANSI C.
31493         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31494
31495 2010-03-25  Bruno Haible  <bruno@clisp.org>
31496
31497         Minor formatting changes.
31498         * lib/acosl.c: Insert space before function argument list.
31499         * lib/argz.c: Likewise.
31500         * lib/asinl.c: Likewise.
31501         * lib/expl.c: Likewise.
31502         * lib/gen-uni-tables.c: Likewise.
31503         * lib/gettext.h: Likewise.
31504         * lib/glthread/lock.h: Likewise.
31505         * lib/tanl.c: Likewise.
31506         * lib/uniname/uniname.c: Likewise.
31507         * tests/test-idpriv-drop.c: Likewise.
31508         * tests/test-idpriv-droptemp.c: Likewise.
31509         * tests/test-lock.c: Likewise.
31510         * tests/test-tls.c: Likewise.
31511         * lib/argp-help.c: Insert space before function-like macro argument
31512         list.
31513         * lib/memcmp.c: Likewise.
31514         * tests/test-base64.c: Likewise.
31515         * lib/localename.c: Insert space before sizeof's argument list.
31516         * lib/safe-alloc.h: Likewise.
31517         * lib/file-set.h: Insert space before macro argument list.
31518         * tests/test-argp.c: Likewise.
31519         * lib/argp-namefrob.h: Insert space before function parameter list.
31520         * lib/getaddrinfo.c: Likewise.
31521         * lib/netdb.in.h: Likewise.
31522         * lib/parse-duration.h: Likewise.
31523         * lib/parse-duration.c: Likewise.
31524         * lib/poll.c: Likewise.
31525         * lib/select.c: Likewise.
31526         * lib/trim.h: Likewise.
31527         * tests/test-usleep.c: Likewise.
31528         * lib/ldexpl.c: Insert space before function parameter list and before
31529         function argument list.
31530         * lib/logl.c: Likewise.
31531         * lib/sqrtl.c: Likewise.
31532         * lib/trim.c: Likewise.
31533         * lib/cosl.c: Use GNU style indentation. Insert space before function
31534         argument list.
31535         * lib/sinl.c: Likewise.
31536         * lib/tsearch.c: Insert space after 'for'.
31537         Reported by Jim Meyering.
31538
31539 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31540
31541         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31542         config header before grepping, as it's not present before
31543         autoreconf/configure are run.  Reported by Simon Josefsson.
31544
31545 2010-03-23  Bruno Haible  <bruno@clisp.org>
31546
31547         pt_chown: Make it work with automake < 1.11.
31548         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31549         Reported by Simon Josefsson.
31550
31551 2010-03-23  Bruno Haible  <bruno@clisp.org>
31552
31553         pt_chown: Don't depend on GPLed modules.
31554         * lib/pt_chown.c: Don't include idpriv.h.
31555         (main): Don't drop privileges.
31556         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31557         Reported by Simon Josefsson.
31558
31559 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31560
31561         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31562         suggestions from karl@freefriends.org (Karl Berry).
31563
31564 2010-03-22  Eric Blake  <eblake@redhat.com>
31565
31566         gethostname: further tweaks
31567         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31568         are overriding gethostname.
31569         Suggested by Bruno Haible.
31570
31571 2010-03-21  Bruno Haible  <bruno@clisp.org>
31572
31573         Fix comments.
31574         * lib/forkpty.c (rpl_forkpty): Fix comment.
31575         * lib/openpty.c (rpl_openpty): Likewise.
31576         Reported by Eric Blake.
31577
31578 2010-03-22  Eric Blake  <eblake@redhat.com>
31579
31580         gethostname: fix build on mingw
31581         * lib/unistd.in.h (includes): Work around fact that mingw
31582         <winsock2.h> re-includes <unistd.h>, by avoiding any
31583         redeclarations if we are being included by <winsock2.h>.
31584         Reported by Matthias Bolte.
31585
31586 2010-03-21  Bruno Haible  <bruno@clisp.org>
31587
31588         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31589         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31590         modifications.
31591         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31592         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31593         provide the replacement.
31594         * modules/forkpty (Depends-on): Add openpty, login_tty.
31595         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31596         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31597         * doc/glibc-functions/forkpty.texi: More supported platforms.
31598         * config/srclist.txt: Add forkpty.c (commented).
31599
31600 2010-03-21  Bruno Haible  <bruno@clisp.org>
31601
31602         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31603         (Makefile.am): Verify that PTY_LIB is defined.
31604
31605         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31606
31607 2010-03-21  Bruno Haible  <bruno@clisp.org>
31608
31609         Tests for module 'login_tty'.
31610         * modules/login_tty-tests: New file.
31611         * tests/test-login_tty.c: New file.
31612
31613         New module 'login_tty'.
31614         * lib/login_tty.c: New file.
31615         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31616         * modules/login_tty: New file.
31617         * doc/glibc-functions/login_tty.texi: Mention the new module.
31618
31619 2010-03-21  Bruno Haible  <bruno@clisp.org>
31620
31621         login_tty: Documentation.
31622         * doc/glibc-functions/login_tty.texi: New file.
31623         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31624
31625 2010-03-21  Bruno Haible  <bruno@clisp.org>
31626
31627         pty: Consistent macro naming.
31628         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31629         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31630         * modules/pty (configure.ac): Update.
31631
31632 2010-03-21  Bruno Haible  <bruno@clisp.org>
31633
31634         Tests for openpty: Make stricter.
31635         * tests/test-openpty.c (main): Add test of canonical processing and
31636         erase.
31637         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31638
31639         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31640         * lib/openpty.c (openpty): New replacement function.
31641         * lib/pty.in.h: Include <termios.h>.
31642         (openpty): Update declaration. Add comments.
31643         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31644         is not declared, arrange to provide the replacement. Check for _getpty
31645         and posix_openpt.
31646         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31647         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31648         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31649         * modules/pty-tests (test_pty_c___LDADD): New variable.
31650         * doc/glibc-functions/openpty.texi: More supported platforms.
31651
31652 2010-03-21  Bruno Haible  <bruno@clisp.org>
31653
31654         setenv: Tweaks.
31655         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31656         the test program.
31657         * doc/posix-functions/setenv.texi: Update platforms list.
31658
31659 2010-03-21  Bruno Haible  <bruno@clisp.org>
31660
31661         New module 'unlockpt'.
31662         * lib/unlockpt.c: New file, from glibc with modifications.
31663         * m4/unlockpt.m4: New file.
31664         * modules/unlockpt: New file.
31665         * lib/stdlib.in.h (unlockpt): New declaration.
31666         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31667         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31668         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31669         HAVE_UNLOCKPT.
31670         * doc/posix-functions/unlockpt.texi: Mention the new module.
31671         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31672         * config/srclist.txt: Add unlockpt.c (commented).
31673
31674 2010-03-21  Jim Meyering  <meyering@redhat.com>
31675
31676         maint.mk: prohibit inclusion of "intprops.h" without use
31677         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31678
31679 2010-03-21  Bruno Haible  <bruno@clisp.org>
31680
31681         New module 'grantpt'.
31682         * lib/grantpt.c: New file, from glibc with modifications.
31683         * m4/grantpt.m4: New file.
31684         * modules/grantpt: New file.
31685         * lib/stdlib.in.h (grantpt): New declaration.
31686         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31687         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31688         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31689         HAVE_GRANTPT.
31690         * doc/posix-functions/grantpt.texi: Mention the new module.
31691         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31692         * config/srclist.txt: Add grantpt.c (commented).
31693
31694 2010-03-21  Bruno Haible  <bruno@clisp.org>
31695
31696         New module 'pt_chown'.
31697         * lib/pt_chown.c: New file, from glibc with modifications.
31698         * lib/pty-private.h: New file, from glibc with modifications.
31699         * modules/pt_chown: New file.
31700         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31701
31702 2010-03-21  Bruno Haible  <bruno@clisp.org>
31703
31704         Tests for module 'ptsname'.
31705         * modules/ptsname-tests: New file.
31706         * tests/test-ptsname.c: New file.
31707
31708         New module 'ptsname'.
31709         * lib/ptsname.c: New file, from glibc with modifications.
31710         * m4/ptsname.m4: New file.
31711         * modules/ptsname: New file.
31712         * lib/stdlib.in.h (ptsname): New declaration.
31713         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31714         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31715         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31716         HAVE_PTSNAME.
31717         * doc/posix-functions/ptsname.texi: Mention the new module.
31718         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31719         * config/srclist.txt: Add ptsname.c (commented).
31720
31721 2010-03-21  Bruno Haible  <bruno@clisp.org>
31722
31723         Tests for module 'ttyname_r'.
31724         * modules/ttyname_r-tests: New file.
31725         * tests/test-ttyname_r.c: New file.
31726
31727         New module 'ttyname_r'.
31728         * lib/ttyname_r.c: New file.
31729         * m4/ttyname_r.m4: New file.
31730         * modules/ttyname_r: New file.
31731         * lib/unistd.in.h (ttyname_r): New declaration.
31732         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31733         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31734         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31735         HAVE_TTYNAME_R.
31736         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31737         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31738
31739 2010-03-20  Bruno Haible  <bruno@clisp.org>
31740
31741         signal: Undefine macro definitions in C++ mode.
31742         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31743         sigfillset): Undefine macro definitions from the system header in C++
31744         mode.
31745         Reported by John W. Eaton <jwe@gnu.org>.
31746
31747 2010-03-20  Bruno Haible  <bruno@clisp.org>
31748
31749         Ensure no #include statements inside extern "C" { ... }.
31750         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31751         contain #include statements.
31752         * lib/time.in.h: Likewise.
31753
31754 2010-03-20  Bruno Haible  <bruno@clisp.org>
31755
31756         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31757         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31758         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31759         Reported by John W. Eaton <jwe@gnu.org>.
31760
31761 2010-03-20  Bruno Haible  <bruno@clisp.org>
31762
31763         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31764         Reported by Jim Meyering.
31765
31766 2010-03-20  Bruno Haible  <bruno@clisp.org>
31767
31768         pipe: Set errno upon failure.
31769         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31770         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31771         errno value in error message.
31772
31773 2010-03-20  Bruno Haible  <bruno@clisp.org>
31774             Jim Meyering  <meyering@redhat.com>
31775
31776         lchown: Avoid "unused variable" warning.
31777         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31778
31779 2010-03-20  Bruno Haible  <bruno@clisp.org>
31780
31781         Work around unlink() bug on MacOS X 10.5.6.
31782         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31783         attempting to unlink a parent directory.
31784         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31785         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31786         activate for the replacement function.
31787         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31788
31789 2010-03-20  Bruno Haible  <bruno@clisp.org>
31790
31791         Fix link errors on Solaris 8.
31792         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31793         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31794
31795 2010-03-19  Jim Meyering  <meyering@redhat.com>
31796
31797         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31798         The _LIBC implementation of build_range_exp correctly honors the
31799         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31800         However, the non-_LIBC implementation would ignore that syntax-bit
31801         flag and return REG_ERANGE unconditionally.
31802         This change makes it honor that flag.
31803         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31804         Make two pointer parameters "const".
31805         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31806         (parse_bracket_exp): Update caller.
31807
31808         regex.m4: correct the reversed range endpoint ([b-a]) test
31809         * m4/regex.m4: When requiring that [b-a] evoke failure,
31810         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31811         test pass once again for x86-based systems.
31812
31813 2010-03-19  Bruno Haible  <bruno@clisp.org>
31814
31815         scandir: Fix link error on Solaris 8.
31816         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31817         macros.
31818
31819 2010-03-19  Bruno Haible  <bruno@clisp.org>
31820
31821         getusershell: Fix documentation.
31822         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31823         module.
31824         * doc/glibc-functions/setusershell.texi: Likewise.
31825
31826         getusershell: Provide declaration, missing on Solaris 9.
31827         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31828         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31829         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31830         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31832         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31833         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31834         HAVE_GETUSERSHELL.
31835         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31836
31837 2010-03-19  Bruno Haible  <bruno@clisp.org>
31838
31839         wctype: Provide iswblank function.
31840         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31841         exists and is fine.
31842         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31843         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31844         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31845         * doc/posix-functions/iswblank.texi: Update.
31846
31847 2010-03-19  Bruno Haible  <bruno@clisp.org>
31848
31849         Tests of module 'pty' in C++ mode.
31850         * modules/pty-tests: New file.
31851         * tests/test-pty-c++.cc: New file.
31852         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31853
31854 2010-03-19  Eric Blake  <eblake@redhat.com>
31855
31856         logb: fix documentation
31857         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31858         1.5 declaration bug.
31859
31860         forkpty, openpty: prefer glibc's const-safe prototype
31861         * lib/forkpty.c (rpl_forkpty): New file.
31862         * lib/openpty.c (rpl_openpty): Likewise.
31863         * modules/forkpty (Files): Distribute it.
31864         * modules/openpty (Files): Likewise.
31865         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31866         check...
31867         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31868         replacement for for non-const BSD signature.
31869         * modules/pty (Makefile.am): Substitute witnesses.
31870         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31871         * tests/test-forkpty.c: Update signature check.
31872         * tests/test-openpty.c: Likewise.
31873         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31874         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31875
31876         forkpty, openpty: split functions into new modules
31877         * modules/pty (Makefile.am): Substitute new witnesses.
31878         (Libraries): Move library detection...
31879         * modules/forkpty: ...into new module.
31880         * modules/openpty: Another new module.
31881         * modules/pty-tests: Rename and split...
31882         * modules/forkpty-tests: ...to this...
31883         * modules/openpty-tests: ...and this.
31884         * tests/test-pty.c: Rename and split...
31885         * tests/test-forkpty.c: ...to this...
31886         * tests/test-openpty.c: ...and this.
31887         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31888         (gl_PTY): Split library searching...
31889         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31890         (gl_FORKPTY, gl_OPENPTY): New macros.
31891         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31892         * NEWS: Mention the split.
31893         * MODULES.html.sh (Misc): Document the modules.
31894         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31895         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31896
31897         pty: improve replacement header
31898         * lib/pty.in.h: New file.
31899         * modules/pty (Files): Ship it.
31900         (Makefile.am): Always build replacement.
31901         * m4/pty.m4: Rename...
31902         * m4/pty_h.m4: ...to this.
31903         (gl_PTY): Modernize setting of witness macros; update check of
31904         forkpty to take proper advantage of cache.
31905         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31906
31907         getopt: avoid compiler warning
31908         * lib/getopt.c (attribute_hidden): Remove unused macro.
31909
31910 2010-03-18  Bruno Haible  <bruno@clisp.org>
31911
31912         Fix link errors on Solaris 8.
31913         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31914         * modules/search-tests (test_search_c___LDADD): Likewise.
31915         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31916         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31917         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31918         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31919         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31920         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31921         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31922
31923 2010-03-18  Bruno Haible  <bruno@clisp.org>
31924
31925         Fix bug introduced on 2010-03-14.
31926         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31927         (gl_SPAWN_H): Require it.
31928         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31929         Reported by Simon Josefsson.
31930
31931 2010-03-18  Bruno Haible  <bruno@clisp.org>
31932
31933         Fix typo introduced on 2009-12-31.
31934         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31935         posix_spawn_file_actions_adddup2.
31936
31937 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31938         and Eric Blake  <eblake@redhat.com>
31939
31940         test-vc-list-files-git: make more robust
31941         * tests/test-vc-list-files-git.sh: Unset problematic environment
31942         variables.  Chain commands together.
31943
31944 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31945
31946         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31947         `AC_CHECK_DECL' invocation.
31948
31949 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31950
31951         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31952         appears before executable statements. Suggested by Petr Sumbera
31953         <Petr.Sumbera@Sun.COM>.
31954
31955 2010-03-14  Bruno Haible  <bruno@clisp.org>
31956
31957         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31958         portability problems. Instead use a simpler test.
31959         (main): Check that invalid arguments are rejected only on Linux.
31960
31961 2010-03-14  Bruno Haible  <bruno@clisp.org>
31962
31963         Fix bug introduced on 2009-12-31.
31964         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31965         gl_PREREQ_SYS_H_WINSOCK2 always.
31966         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31967         SYS_SOCKET_H variable.
31968         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31969         Update comments.
31970         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31971         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31972         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31973         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31974         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31975
31976 2010-03-14  Bruno Haible  <bruno@clisp.org>
31977
31978         Fix values returned by sinl, cosl.
31979         * lib/trigl.h: Add specification comments.
31980         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31981         that combines the values from the precomputed table with the values of
31982         the Chebyshev polynomials.
31983
31984 2010-03-14  Bruno Haible  <bruno@clisp.org>
31985
31986         Fix compilation error when modules 'posix_spawn[p]' are not used.
31987         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31988         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31989
31990 2010-03-14  Bruno Haible  <bruno@clisp.org>
31991
31992         Fix compilation error on mingw when module 'time_r' is not used.
31993         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31994         is 1.
31995         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31996         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31997         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31998         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31999
32000 2010-03-14  Bruno Haible  <bruno@clisp.org>
32001
32002         Fix compilation error with Sun C.
32003         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32004         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32005         instead of GCC specific ULONG_LONG_MAX.
32006         * lib/xstrtoll.c: Likewise.
32007         * lib/xstrtoull.c: Likewise.
32008
32009 2010-03-13  Bruno Haible  <bruno@clisp.org>
32010
32011         Allow the user to disable C++ code and tests.
32012         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32013         (gl_PROG_ANSI_CXX): Require it.
32014
32015 2010-03-13  Bruno Haible  <bruno@clisp.org>
32016
32017         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32018         cases.
32019
32020 2010-03-13  Bruno Haible  <bruno@clisp.org>
32021
32022         Test that gnulib does not break the standard C++ headers.
32023         * tests/test-locale-c++2.cc: New file.
32024         * modules/locale-tests (Files): Add it.
32025         (Makefile.am): Compile it for test-locale-c++.
32026         * tests/test-math-c++2.cc: New file.
32027         * modules/math-tests (Files): Add it.
32028         (Makefile.am): Compile it for test-math-c++.
32029         * tests/test-signal-c++2.cc: New file.
32030         * modules/signal-tests (Files): Add it.
32031         (Makefile.am): Compile it for test-signal-c++.
32032         * tests/test-stdio-c++2.cc: New file.
32033         * modules/stdio-tests (Files): Add it.
32034         (Makefile.am): Compile it for test-stdio-c++.
32035         * tests/test-stdlib-c++2.cc: New file.
32036         * modules/stdlib-tests (Files): Add it.
32037         (Makefile.am): Compile it for test-stdlib-c++.
32038         * tests/test-string-c++2.cc: New file.
32039         * modules/string-tests (Files): Add it.
32040         (Makefile.am): Compile it for test-string-c++.
32041         * tests/test-time-c++2.cc: New file.
32042         * modules/time-tests (Files): Add it.
32043         (Makefile.am): Compile it for test-time-c++.
32044         Reported by John W. Eaton <jwe@gnu.org>.
32045
32046 2010-03-13  Bruno Haible  <bruno@clisp.org>
32047
32048         * gnulib-tool (func_usage): Clarify which options are available for
32049         --create-testdir and --create-megatestdir.
32050
32051 2010-03-13  Bruno Haible  <bruno@clisp.org>
32052
32053         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32054         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32055         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32056         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32057         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32058         when appropriate.
32059         Reported by Jim Meyering.
32060
32061 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32062
32063         * gnulib-tool (func_import): Explain origin of code.
32064
32065 2010-03-12  Bruno Haible  <bruno@clisp.org>
32066
32067         Fix problem with automake's definition of CXXLINK.
32068         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32069         Reported by Simon Josefsson and Ludovic Courtès.
32070
32071 2010-03-12  Bruno Haible  <bruno@clisp.org>
32072
32073         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32074         stable releases.
32075
32076 2010-03-11  Bruno Haible  <bruno@clisp.org>
32077
32078         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32079         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32080         whether the system provides one variant or multiple variants of the
32081         function.
32082         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32083         C++ compilers.
32084         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32085         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32086         Reported by Jim Meyering.
32087
32088 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32089
32090         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32091
32092 2010-03-08  Bruno Haible  <bruno@clisp.org>
32093
32094         gnulib-tool: Add support for --libtool in --create-testdir.
32095         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32096         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32097
32098 2010-03-08  Eric Blake  <eblake@redhat.com>
32099
32100         gnulib-tool.texi: mention possibility of git submodule
32101         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32102         submodules.
32103         * doc/.gitignore: Ignore another generated file.
32104
32105 2010-03-08  Karl Berry  <karl@gnu.org>
32106
32107         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32108         of committing gnulib files while skipping others.
32109
32110 2010-03-07  Bruno Haible  <bruno@clisp.org>
32111
32112         Tests of module 'wctype' in C++ mode.
32113         * tests/test-wctype-c++.cc: New file.
32114         * modules/wctype-tests (Files): Add it and tests/signature.h.
32115         (Depends-on): Add ansi-c++-opt.
32116         (Makefile.am): Arrange to compile and run test-wctype-c++.
32117
32118         Tests of module 'wchar' in C++ mode.
32119         * tests/test-wchar-c++.cc: New file.
32120         * modules/wchar-tests (Files): Add it and tests/signature.h.
32121         (Depends-on): Add ansi-c++-opt.
32122         (Makefile.am): Arrange to compile and run test-wchar-c++.
32123         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32124         gl_MODULE_INDICATOR.
32125
32126         Tests of module 'unistd' in C++ mode.
32127         * tests/test-unistd-c++.cc: New file.
32128         * modules/unistd-tests (Files): Add it and tests/signature.h.
32129         (Depends-on): Add ansi-c++-opt.
32130         (Makefile.am): Arrange to compile and run test-unistd-c++.
32131         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32132         gl_MODULE_INDICATOR.
32133
32134         Tests of module 'time' in C++ mode.
32135         * tests/test-time-c++.cc: New file.
32136         * modules/time-tests (Files): Add it and tests/signature.h.
32137         (Depends-on): Add ansi-c++-opt.
32138         (Makefile.am): Arrange to compile and run test-time-c++.
32139         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32140
32141         Tests of module 'sys_time' in C++ mode.
32142         * tests/test-sys_time-c++.cc: New file.
32143         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32144         (Depends-on): Add ansi-c++-opt.
32145         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32146         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32147         gl_MODULE_INDICATOR.
32148
32149         Tests of module 'sys_stat' in C++ mode.
32150         * tests/test-sys_stat-c++.cc: New file.
32151         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32152         (Depends-on): Add ansi-c++-opt.
32153         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32154         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32155         gl_MODULE_INDICATOR.
32156
32157         Tests of module 'sys_socket' in C++ mode.
32158         * tests/test-sys_socket-c++.cc: New file.
32159         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32160         (Depends-on): Add ansi-c++-opt.
32161         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32162         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32163         gl_MODULE_INDICATOR.
32164
32165         Tests of module 'sys_select' in C++ mode.
32166         * tests/test-sys_select-c++.cc: New file.
32167         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32168         (Depends-on): Add ansi-c++-opt.
32169         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32170         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32171         gl_MODULE_INDICATOR.
32172
32173         Tests of module 'sys_ioctl' in C++ mode.
32174         * tests/test-sys_ioctl-c++.cc: New file.
32175         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32176         (Depends-on): Add ansi-c++-opt.
32177         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32178         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32179         gl_MODULE_INDICATOR.
32180
32181         Tests of module 'string' in C++ mode.
32182         * tests/test-string-c++.cc: New file.
32183         * modules/string-tests (Files): Add it and tests/signature.h.
32184         (Depends-on): Add ansi-c++-opt.
32185         (Makefile.am): Arrange to compile and run test-string-c++.
32186         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32187         gl_MODULE_INDICATOR.
32188
32189         Tests of module 'stdlib' in C++ mode.
32190         * tests/test-stdlib-c++.cc: New file.
32191         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32192         (Depends-on): Add ansi-c++-opt.
32193         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32194         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32195         gl_MODULE_INDICATOR.
32196
32197         Tests of module 'stdio' in C++ mode.
32198         * tests/test-stdio-c++.cc: New file.
32199         * modules/stdio-tests (Files): Add it and tests/signature.h.
32200         (Depends-on): Add ansi-c++-opt.
32201         (Makefile.am): Arrange to compile and run test-stdio-c++.
32202         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32203         gl_MODULE_INDICATOR.
32204
32205         Tests of module 'spawn' in C++ mode.
32206         * tests/test-spawn-c++.cc: New file.
32207         * modules/spawn-tests (Files): Add it and tests/signature.h.
32208         (Depends-on): Add ansi-c++-opt.
32209         (Makefile.am): Arrange to compile and run test-spawn-c++.
32210         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32211         gl_MODULE_INDICATOR.
32212
32213         Tests of module 'signal' in C++ mode.
32214         * tests/test-signal-c++.cc: New file.
32215         * modules/signal-tests (Files): Add it and tests/signature.h.
32216         (Depends-on): Add ansi-c++-opt.
32217         (Makefile.am): Arrange to compile and run test-signal-c++.
32218         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32219         gl_MODULE_INDICATOR.
32220
32221         Tests of module 'search' in C++ mode.
32222         * tests/test-search-c++.cc: New file.
32223         * modules/search-tests (Files): Add it and tests/signature.h.
32224         (Depends-on): Add ansi-c++-opt.
32225         (Makefile.am): Arrange to compile and run test-search-c++.
32226         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32227         gl_MODULE_INDICATOR.
32228
32229         Tests of module 'math' in C++ mode.
32230         * tests/test-math-c++.cc: New file.
32231         * modules/math-tests (Files): Add it and tests/signature.h.
32232         (Depends-on): Add ansi-c++-opt.
32233         (Makefile.am): Arrange to compile and run test-math-c++.
32234         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32235
32236         Tests of module 'locale' in C++ mode.
32237         * tests/test-locale-c++.cc: New file.
32238         * modules/locale-tests (Files): Add it and tests/signature.h.
32239         (Depends-on): Add ansi-c++-opt.
32240         (Makefile.am): Arrange to compile and run test-locale-c++.
32241         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32242         gl_MODULE_INDICATOR.
32243
32244         Tests of module 'langinfo' in C++ mode.
32245         * tests/test-langinfo-c++.cc: New file.
32246         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32247         (Depends-on): Add ansi-c++-opt.
32248         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32249         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32250         gl_MODULE_INDICATOR.
32251
32252         Tests of module 'iconv-h' in C++ mode.
32253         * tests/test-iconv-h-c++.cc: New file.
32254         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32255         (Depends-on): Add ansi-c++-opt.
32256         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32257
32258         Tests of module 'glob' in C++ mode.
32259         * tests/test-glob-c++.cc: New file.
32260         * modules/glob-tests (Files): Add it.
32261         (Depends-on): Add ansi-c++-opt.
32262         (Makefile.am): Arrange to compile and run test-glob-c++.
32263
32264         Tests of module 'fcntl-h' in C++ mode.
32265         * tests/test-fcntl-h-c++.cc: New file.
32266         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32267         (Depends-on): Add ansi-c++-opt.
32268         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32269         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32270         gl_MODULE_INDICATOR.
32271
32272         Tests of module 'dirent' in C++ mode.
32273         * tests/test-dirent-c++.cc: New file.
32274         * modules/dirent-tests (Files): Add it and tests/signature.h.
32275         (Depends-on): Add ansi-c++-opt.
32276         (Makefile.am): Arrange to compile and run test-dirent-c++.
32277         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32278         gl_MODULE_INDICATOR.
32279
32280         New module 'ansi-c++-opt'.
32281         * modules/ansi-c++-opt: New file.
32282         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32283
32284         Document C++ namespace mode.
32285         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32286
32287         wctype: Avoid #define replacements in C++ mode.
32288         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32289         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32290         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32291         In C++, define a namespaced alias symbol.
32292         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32293         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32294         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32295         rule.
32296
32297         wchar: Avoid #define replacements in C++ mode.
32298         * lib/wchar.in.h: Include c++defs.h.
32299         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32300         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32301         symbol.
32302         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32303         * modules/wchar (Depends-on): Add c++defs.
32304         (Makefile.am): Update wchar.h rule.
32305
32306         unistd: Avoid #define replacements in C++ mode.
32307         * lib/unistd.in.h: Include c++defs.h.
32308         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32309         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32310         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32311         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32312         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32313         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32314         symbol.
32315         (environ): Update.
32316         * modules/unistd (Depends-on): Add c++defs.
32317         (Makefile.am): Update unistd.h rule.
32318
32319         time: Avoid #define replacements in C++ mode.
32320         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32321         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32322         define a namespaced alias symbol.
32323         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32324         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32325         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32326         * modules/time (Depends-on): Add c++defs, warn-on-use.
32327         (Makefile.am): Update time.h rule.
32328         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32329         * modules/nanosleep (configure.ac): Likewise.
32330         * modules/strptime (configure.ac): Likewise.
32331         * modules/timegm (configure.ac): Likewise.
32332
32333         sys_time: Avoid #define replacements in C++ mode.
32334         * lib/sys_time.in.h: Include c++defs.h.
32335         (gettimeofday): In C++, define a namespaced alias symbol.
32336         * modules/sys_time (Depends-on): Add c++defs.
32337         (Makefile.am): Update sys/time.h rule.
32338
32339         sys_stat: Avoid #define replacements in C++ mode.
32340         * lib/sys_stat.in.h: Include c++defs.h.
32341         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32342         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32343         namespaced alias symbol.
32344         In C++, define a namespaced alias symbol.
32345         * modules/sys_stat (Depends-on): Add c++defs.
32346         (Makefile.am): Update sys/stat.h rule.
32347
32348         sys_socket: Avoid #define replacements in C++ mode.
32349         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32350         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32351         definitions also when the system has a <sys/socket.h>.
32352         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32353         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32354         In C++, define a namespaced alias symbol.
32355         * modules/sys_socket (Depends-on): Add c++defs.
32356         (Makefile.am): Update sys/socket.h rule.
32357
32358         sys_select: Avoid #define replacements in C++ mode.
32359         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32360         definitions also when the system has a <sys/select.h>.
32361         (select): In C++, define a namespaced alias symbol.
32362         * modules/sys_select (Depends-on): Add c++defs.
32363         (Makefile.am): Update sys/select.h rule.
32364
32365         sys_ioctl: Avoid #define replacements in C++ mode.
32366         * lib/sys_ioctl.in.h: Include c++defs.h.
32367         (ioctl): In C++, define a namespaced alias symbol.
32368         * modules/sys_ioctl (Depends-on): Add c++defs.
32369         (Makefile.am): Update sys/ioctl.h rule.
32370
32371         string: Avoid #define replacements in C++ mode.
32372         * lib/string.in.h: Include c++defs.h.
32373         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32374         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32375         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32376         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32377         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32378         * modules/string (Depends-on): Add c++defs.
32379         (Makefile.am): Update string.h rule.
32380
32381         stdlib: Avoid #define replacements in C++ mode.
32382         * lib/stdlib.in.h: Include c++defs.h.
32383         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32384         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32385         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32386         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32387         symbol.
32388         * modules/stdlib (Depends-on): Add c++defs.
32389         (Makefile.am): Update stdlib.h rule.
32390
32391         stdio: Avoid #define replacements in C++ mode.
32392         * lib/stdio.in.h: Include c++defs.h.
32393         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32394         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32395         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32396         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32397         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32398         namespaced alias symbol.
32399         * modules/stdio (Depends-on): Add c++defs.
32400         (Makefile.am): Update stdio.h rule.
32401
32402         spawn: Avoid #define replacements in C++ mode.
32403         * lib/spawn.in.h: Include c++defs.h.
32404         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32405         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32406         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32407         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32408         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32409         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32410         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32411         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32412         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32413         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32414         In C++, define a namespaced alias symbol.
32415         * modules/spawn (Depends-on): Add c++defs.
32416         (Makefile.am): Update spawn.h rule.
32417
32418         signal: Avoid #define replacements in C++ mode.
32419         * lib/signal.in.h: Include c++defs.h.
32420         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32421         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32422         namespaced alias symbol.
32423         * modules/signal (Depends-on): Add c++defs.
32424         (Makefile.am): Update signal.h rule.
32425
32426         search: Avoid #define replacements in C++ mode.
32427         * lib/search.in.h: Include c++defs.h.
32428         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32429         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32430         symbol.
32431         * modules/search (Depends-on): Add c++defs.
32432         (Makefile.am): Update search.h rule.
32433
32434         math: Avoid #define replacements in C++ mode.
32435         * lib/math.in.h: Include c++defs.h.
32436         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32437         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32438         trunc, truncl): In C++, define a namespaced alias symbol.
32439         * modules/math (Depends-on): Add c++defs.
32440         (Makefile.am): Update math.h rule.
32441
32442         locale: Avoid #define replacements in C++ mode.
32443         * lib/locale.in.h: Include c++defs.h.
32444         (duplocale): In C++, define a namespaced alias symbol.
32445         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32446         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32447         * modules/locale (Depends-on): Add c++defs.
32448         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32449
32450         langinfo: Avoid #define replacements in C++ mode.
32451         * lib/langinfo.in.h: Include c++defs.h.
32452         (nl_langinfo): In C++, define a namespaced alias symbol.
32453         * modules/langinfo (Depends-on): Add c++defs.
32454         (Makefile.am): Update langinfo.h rule.
32455
32456         iconv-h: Avoid #define replacements in C++ mode.
32457         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32458         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32459         symbol.
32460         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32461         whenever iconv is present.
32462         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32463         (Makefile.am): Update iconv.h rule.
32464
32465         glob: Avoid #define replacements in C++ mode.
32466         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32467         (_gl_glob_errfunc_fn): New type.
32468         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32469         symbol.
32470         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32471         (Makefile.am): Update glob.h rule.
32472
32473         fcntl-h: Avoid #define replacements in C++ mode.
32474         * lib/fcntl.in.h: Include c++defs.h.
32475         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32476         * modules/fcntl-h (Depends-on): Add c++defs.
32477         (Makefile.am): Update fcntl.h rule.
32478
32479         dirent: Avoid #define replacements in C++ mode.
32480         * lib/dirent.in.h: Include c++defs.h.
32481         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32482         namespaced alias symbol.
32483         (dirfd): Update declaration.
32484         * modules/dirent (Depends-on): Add c++defs.
32485         (Makefile.am): Update dirent.h rule.
32486
32487         ctype: Make it usable in C++ code.
32488         * lib/ctype.in.h: Include c++defs.h.
32489         (isblank): Declare as extern "C".
32490         * modules/ctype (Depends-on): Add c++defs.
32491         (Makefile.am): Update ctype.h rule.
32492
32493         New module 'c++defs'.
32494         * modules/c++defs: New file.
32495         * build-aux/c++defs.h: New file.
32496         Reported by John W. Eaton <jwe@gnu.org>.
32497
32498 2010-03-07  Bruno Haible  <bruno@clisp.org>
32499
32500         logb: Provide missing declaration for Cygwin.
32501         * lib/math.in.h (logb): New declaration.
32502         * m4/logb.m4: New file.
32503         * modules/logb (Files): Add m4/logb.m4.
32504         (Depends-on): Add math.
32505         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32506         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32507         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32508         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32509         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32510
32511 2010-03-07  Bruno Haible  <bruno@clisp.org>
32512
32513         Fix test-cond link error.
32514         * tests/test-cond.c: Include <stdio.h>.
32515
32516 2010-03-07  Bruno Haible  <bruno@clisp.org>
32517
32518         Fix test-dirent-safer link error.
32519         * modules/dirent-safer-tests (Makefile.am): Define
32520         test_dirent_safer_LDADD.
32521
32522 2010-03-07  Bruno Haible  <bruno@clisp.org>
32523
32524         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32525         among default module list.
32526
32527 2010-03-07  Bruno Haible  <bruno@clisp.org>
32528
32529         Fix link error on platforms with GNU libiconv.
32530         * modules/unistr/u8-strcoll-tests (Makefile): Define
32531         test_u8_strcoll_LDADD.
32532         * modules/unistr/u16-strcoll-tests (Makefile): Define
32533         test_u16_strcoll_LDADD.
32534         * modules/unistr/u32-strcoll-tests (Makefile): Define
32535         test_u32_strcoll_LDADD.
32536
32537 2010-03-07  Bruno Haible  <bruno@clisp.org>
32538
32539         Use POSIX declarations for socket functions.
32540         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32541         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32542         rpl_sendto): Change declaration to match POSIX.
32543         * lib/connect.c (rpl_connect): Likewise.
32544         * lib/accept.c (rpl_accept): Likewise.
32545         * lib/bind.c (rpl_bind): Likewise.
32546         * lib/getpeername.c (rpl_getpeername): Likewise.
32547         * lib/getsockname.c (rpl_getsockname): Likewise.
32548         * lib/recv.c (rpl_recv): Likewise.
32549         * lib/send.c (rpl_send): Likewise.
32550         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32551         * lib/sendto.c (rpl_sendto): Likewise.
32552
32553 2010-03-06  Bruno Haible  <bruno@clisp.org>
32554
32555         Clarify access, euidaccess, faccessat.
32556         * doc/posix-functions/faccessat.texi: Mention security problem under
32557         "Other problems", not "Portability problems".
32558         * doc/posix-functions/access.texi: Likewise. Mention a related security
32559         problem.
32560         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32561         * lib/euidaccess.c: Add comments about platforms.
32562         * lib/unistd.in.h (access, euidaccess): Add warnings.
32563
32564 2010-03-07  Bruno Haible  <bruno@clisp.org>
32565
32566         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32567         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32568         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32569         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32570         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32571         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32572         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32573         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32574         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32575         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32576         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32577         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32578         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32579         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32580         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32581         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32582         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32583         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32584         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32585         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32586         Likewise.
32587         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32588         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32589         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32590         Likewise.
32591         * tests/test-spawn.c (main): Make it work when
32592         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32593
32594 2010-03-07  Bruno Haible  <bruno@clisp.org>
32595
32596         Fix incorrect Makefile.am generation in German locale.
32597         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32598         Execute sed command with character range in C locale.
32599
32600 2010-03-06  Bruno Haible  <bruno@clisp.org>
32601
32602         Tests for module 'iconv-h'.
32603         * modules/iconv-h-tests: New file.
32604         * tests/test-iconv-h.c: New file.
32605
32606         New module 'iconv-h'.
32607         * modules/iconv-h: New file.
32608         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32609         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32610         (configure.ac): Remove gl_ICONV_H.
32611         (Makefile.am): Remove rule for iconv.h.
32612
32613 2010-03-06  Bruno Haible  <bruno@clisp.org>
32614
32615         More consistent naming of *.m4 files.
32616         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32617         * modules/wctype (Files): Update.
32618
32619         More consistent naming of *.m4 files.
32620         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32621         * modules/wchar (Files): Update.
32622
32623 2010-03-06  Jim Meyering  <meyering@redhat.com>
32624
32625         euidaccess: relax license to LGPLv2+
32626         * modules/euidaccess (License): Relax to LGPLv2+.
32627
32628 2010-03-06  Bruno Haible  <bruno@clisp.org>
32629
32630         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32631         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32632         (Makefile.am): Augment lib_SOURCES instead.
32633
32634 2010-03-04  Jim Meyering  <meyering@redhat.com>
32635
32636         utime: remove obsolete module
32637         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32638         unnecessary for years, and has been marked as obsolete for 10 months.
32639         * modules/utime: Remove file.
32640         * lib/utime.c: Remove file.
32641         * m4/utime.m4: Remove file.
32642         * m4/utimes-null.m4: Remove file.
32643         * doc/posix-functions/utime.texi (utime): Remove reference to
32644         the module.  Move the sole "fixed by gnulib" item into the
32645         "problems not fixed by Gnulib" list.
32646         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32647
32648 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32649
32650         * modules/exit (License): Relax license to LGPLv2+.
32651         (Status): Mark as obsolete.
32652         * NEWS: Mention deprecated 'exit' module.
32653         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32654         of now obsolete 'exit'.
32655
32656 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32657
32658         fts-lgpl: remove unused module
32659         * modules/fts-lgpl: Remove.
32660         * MODULES.html.sh (func_all_modules): Adjust.
32661         * check-module (find_included_lib_files): Adjust.
32662         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32663
32664 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32665
32666         copy-acl: enhance Solaris ACL error handling
32667         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32668         * lib/set-mode-acl.c (qset_acl): Likewise.
32669
32670 2010-03-02  Bruno Haible  <bruno@clisp.org>
32671
32672         spawn: Don't override the system defined values on FreeBSD 8.
32673         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32674         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32675         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32676         if HAVE_POSIX_SPAWN is 1.
32677         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32678
32679 2010-03-01  Bruno Haible  <bruno@clisp.org>
32680
32681         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32682         regarding Automake.
32683
32684 2010-02-25  Bruno Haible  <bruno@clisp.org>
32685
32686         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32687         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32688         setting, not afterwards.
32689         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32690
32691 2010-02-24  Eric Blake  <eblake@redhat.com>
32692
32693         bootstrap, git-version-gen: use timestamp
32694         * build-aux/git-version-gen (scriptversion): Force UTC.
32695         * build-aux/bootstrap (scriptversion): New variable.
32696
32697         bootstrap: allow older git
32698         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32699         older than 1.6.4.  Requested by the libvirt project.
32700
32701 2010-02-23  Eric Blake  <eblake@redhat.com>
32702
32703         warn-on-use: work with old autoconf
32704         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32705         AS_VAR semantics of autoconf 2.60.
32706         Reported by Bruno Haible.
32707
32708         bootstrap: improve some comments
32709         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32710         clarification comments.
32711
32712         gettimeofday: provide correct function
32713         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32714         when replacement is declared, otherwise provide gettimeofday.
32715         Reported by Michael Goffioul.
32716
32717 2010-02-23  Jim Meyering  <meyering@redhat.com>
32718
32719         lib-ignore: relax license to "unlimited", not LGPLv2+
32720         * modules/lib-ignore (License): Relax to "unlimited".
32721
32722 2010-02-23  Jim Meyering  <meyering@redhat.com>
32723
32724         lib-ignore: relax license to LGPLv2+
32725         * modules/lib-ignore (License): Relax to LGPLv2+.
32726
32727 2010-02-22  Eric Blake  <eblake@redhat.com>
32728
32729         lseek: avoid bash 3.2 broken pipe bug
32730         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32731         warning from bash 3.2.
32732         Reported by Ben Pfaff, with analysis from Bruno Haible.
32733
32734         bootstrap: support non-FSF copyright holder
32735         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32736         bootstrap.conf override of COPYRIGHT_HOLDER.
32737         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32738
32739         bootstrap: interoperate with gettext 0.14.1
32740         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32741
32742         bootstrap: allow for alternate submodule location
32743         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32744         hardcoding submodule location.
32745         (gnulib_mk): Allow direct use of Makefile.am.
32746
32747         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32748         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32749         rather than reconfiguring where the submodule points.
32750
32751         gettimeofday: restore support for platforms that lack function
32752         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32753         replacement if function is missing.
32754         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32755         * modules/sys_time (Makefile.am): Substitute it.
32756         * lib/sys_time.in.h (gettimeofday): Check it.
32757         Reported by Michael Goffioul.
32758
32759 2010-02-21  Bruno Haible  <bruno@clisp.org>
32760
32761         * lib/stdio.in.h (obstack_printf): Fix typo.
32762
32763 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32764
32765         vc-list-files: use bzr ls's -R option
32766         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32767         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32768
32769 2010-02-21  Jim Meyering  <meyering@redhat.com>
32770
32771         init.sh: fix EXEEXT shims to work also for names like test-prog
32772         * tests/init.sh: Re-exec a better shell, when needed.
32773         If the current shell lacks support for posix $(...), an init.sh-using
32774         test will now try to find a shell that supports that.  If EXEEXT is
32775         nonempty, we also require support for hyphen-in-alias-name and shell
32776         substitutions like ${var#glob}.  Failure to find such a shell results
32777         in a skipped test.
32778
32779 2010-02-21  Bruno Haible  <bruno@clisp.org>
32780
32781         Really work around around "broken pipe" error message from bash 3.2.
32782         * gnulib-tool (func_reset_sigpipe): Remove function.
32783         (echo): In bash 3.2, define to a function that uses printf.
32784         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32785
32786 2010-02-20  Bruno Haible  <bruno@clisp.org>
32787
32788         Restore support for automake 1.9.6 with autoconf 2.61.
32789         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32790         Reported by James Youngman <jay@gnu.org>.
32791
32792 2010-02-20  Bruno Haible  <bruno@clisp.org>
32793
32794         Improve *printf warning condition.
32795         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32796         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32797         and the function is overridden due to SIGPIPE emulation.
32798
32799 2010-02-20  Bruno Haible  <bruno@clisp.org>
32800
32801         * lib/stdio.in.h: Tweak comments.
32802
32803 2010-02-19  Bruno Haible  <bruno@clisp.org>
32804
32805         Make it easier to find modules. New gnulib-tool option '--find'.
32806         * gnulib-tool: New option --find.
32807         (func_usage): Document it.
32808         (func_sanitize_modulelist): New function, extracted from
32809         func_all_modules.
32810         (func_all_modules): Invoke it.
32811         * doc/gnulib-tool.texi (Which modules?): New node.
32812
32813 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32814
32815         * lib/sys_select.in.h: Provide select replacement even if
32816         sys/select.h exists on a system, for Interix.
32817
32818 2010-02-18  Jim Meyering  <meyering@redhat.com>
32819
32820         init.sh: don't use $(...) just yet
32821         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32822         to accommodate e.g., Solaris' /bin/sh.
32823
32824 2010-02-17  Bruno Haible  <bruno@clisp.org>
32825
32826         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32827         Reported by Ludovic Courtès <ludo@gnu.org>.
32828
32829 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32830
32831         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32832         linking with -lintl.
32833
32834 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32835
32836         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32837         if not provided by the system's netdb.h.  Reported by
32838         ludo@gnu.org (Ludovic Courtès).
32839
32840 2010-02-15  Jim Meyering  <meyering@redhat.com>
32841
32842         init.sh: improve portability and efficiency
32843         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32844         "dummy" in a for loop.
32845         Use '!', not '^' to select the complement of a character set used
32846         in a "case" statement.
32847         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32848         Suggestions from Eric Blake.
32849
32850         init.sh: automatically accommodate programs with the .exe suffix
32851         Automatically arrange for an invocation of "prog" to execute the
32852         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32853         may use the simpler "prog", yet still work when built on a system
32854         that requires specifying the added suffix.
32855         Do this by constructing a function named "prog" that invokes
32856         "prog.exe" for each .exe file in selected directories.
32857         * tests/init.sh (find_exe_basenames_): New function.
32858         (create_exe_shim_functions_): New function.
32859         (path_prepend_): Use it.
32860
32861         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32862         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32863         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32864
32865 2010-02-14  Jim Meyering  <meyering@redhat.com>
32866
32867         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32868         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32869         (sc_prohibit_hash_pjw_without_use): New rule.
32870
32871         maint.mk: allow the default upload destination dir to be overridden
32872         * top/maint.mk (upload_dest_dir_): Define with a default that
32873         preserves the status quo.
32874         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32875         Reported by Peter Simons.
32876
32877         maint.mk: prohibit inclusion of "hash.h" without_use
32878         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32879
32880 2010-02-10  Jim Meyering  <meyering@redhat.com>
32881
32882         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32883         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32884
32885 2010-02-09  Eric Blake  <ebb9@byu.net>
32886         and Bruno Haible  <bruno@clisp.org>
32887
32888         obstack-printf-posix: ensure declaration
32889         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32890         extracted from gl_FUNC_OBSTACK_PRINTF.
32891         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32892         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32893         Likewise.
32894         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32895         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32896         0.
32897
32898 2010-02-08  Bruno Haible  <bruno@clisp.org>
32899
32900         gnulib-tool: Fix typo in 2010-02-07 commit.
32901         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32902         Reported by Eric Blake.
32903
32904 2010-02-07  Bruno Haible  <bruno@clisp.org>
32905
32906         gnulib-tool: Fix up caching patches.
32907         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32908         option --no-cache. Use associative arrays when supported by the shell.
32909         (sed_comments): New variable.
32910         (modcache): Renamed from do_cache.
32911         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32912         abbreviate unnecessarily.
32913         (have_associative): New variable.
32914         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32915         way also for ksh and zsh.
32916         (func_init_sed_convert_to_cache_statements): New function, extracted
32917         from func_cache_lookup_module. Add support for associative arrays.
32918         Don't set the c_MODULE_cached variable here. Ignore all lines before
32919         the first field header. Remove only the final newline, not all trailing
32920         newlines. Support empty fields correctly. Limit the use of 'eval' to
32921         assignments.
32922         (func_get_description, func_get_status, func_get_notice,
32923         func_get_applicability, func_get_filelist, func_get_dependencies,
32924         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32925         func_get_automake_snippet, func_get_include_directive,
32926         func_get_link_directive, func_get_license, func_get_maintainer):
32927         Update documentation. List the unoptimized code first. Add support for
32928         associative arrays. Limit the use of 'eval' to assignments.
32929         (func_get_applicability): Undo stylistic pessimisations.
32930         (func_get_automake_snippet, func_get_include_directive): Reduce code
32931         duplication.
32932         (func_modules_transitive_closure, func_modules_add_dummy,
32933         func_modules_notice, func_modules_to_filelist, func_add_file,
32934         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32935         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32936         func_create_testdir, func_create_megatestdir): Update documentation.
32937
32938 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32939
32940         * gnulib-tool (func_cache_lookup_module): Store the module name
32941         belonging to the cache variable; error out if two different
32942         module names map to the same cache variable name.
32943
32944 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32945
32946         gnulib-tool: Make caching optional.
32947         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32948         Update matching short versions of --no-changelog.
32949         (func_usage): Update.
32950         (sed_extract_cache_prog): Renamed from ...
32951         (sed_extract_prog): ... this; revert to old extraction script.
32952         (func_get_description, func_get_status)
32953         (func_get_notice, func_get_applicability, func_get_filelist)
32954         (func_get_dependencies, func_get_autoconf_early_snippet)
32955         (func_get_autoconf_snippet, func_get_automake_snippet)
32956         (func_get_include_directive, func_get_link_directive)
32957         (func_get_license, func_get_maintainer): If $do_cache is false,
32958         use old, non-caching extraction scripts.
32959         Suggestion by Bruno Haible.
32960
32961 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32962
32963         gnulib-tool: cache module metainformation.
32964         * gnulib-tool (sed_extract_prog): Match newline before each
32965         header, and rewrite header to a shell variable suffix.
32966         (func_cache_var, func_cache_lookup_module): New functions,
32967         to turn a module name into a cache variable prefix, and to
32968         look up and cache module metainformation.
32969         (func_get_description, func_get_status)
32970         (func_get_notice, func_get_applicability, func_get_filelist)
32971         (func_get_dependencies, func_get_autoconf_early_snippet)
32972         (func_get_autoconf_snippet, func_get_automake_snippet)
32973         (func_get_include_directive, func_get_link_directive)
32974         (func_get_license, func_get_maintainer): Use
32975         func_cache_lookup_module.
32976
32977 2010-02-07  Bruno Haible  <bruno@clisp.org>
32978
32979         fnctl: Fix missing dependency.
32980         * modules/fcntl (Depends-on): Add getdtablesize.
32981         Reported by John W. Eaton <jwe@gnu.org>.
32982
32983 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32984
32985         Argp: fix recognition of short alias options.
32986
32987         * lib/argp-parse.c (convert_options): Fix improper use of
32988         `|' between character values.
32989         * tests/test-argp.c (group1_option): New alias option
32990         --read (-r).
32991         (group1_parser): Special handling for 'r'.
32992         (test15): New test case.
32993         (test_fun): Add test15.
32994         * tests/test-argp-2.sh: Update expected --help and --usage
32995         outputs.
32996
32997 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32998
32999         * tests/test-argp.c: Fix indentation.
33000
33001 2010-02-04  Eric Blake  <ebb9@byu.net>
33002
33003         gettimeofday: expose type of second argument
33004         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33005         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33006         * tests/test-gettimeofday.c: Use it to silence warning.
33007         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33008         the issue.
33009
33010 2010-02-03  Jim Meyering  <meyering@redhat.com>
33011
33012         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33013         * lib/regcomp.c (TYPE_SIGNED): Define.
33014         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33015
33016         regcomp.c: avoid a new -Wshadow warning
33017         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33018
33019 2010-02-01  Jim Meyering  <meyering@redhat.com>
33020
33021         removing useless parentheses in cpp #define directives
33022         For motivation, see commit c0221df4, "define STREQ(a,b)
33023         consistently, removing useless parentheses"
33024         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33025         * lib/mountlist.c (MNT_IGNORE): Likewise.
33026         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33027
33028 2010-02-01  Eric Blake  <ebb9@byu.net>
33029
33030         sys_time: use link-warning
33031         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33032         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33033         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33034         * modules/sys_time (Depends-on): Add warn-on-use.
33035         (Makefile.am): Always build replacement.
33036         (configure.ac): Update substitutions.
33037         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33038         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33039         bother with SYS_TIME_H.
33040         * modules/gettimeofday (configure.ac): Declare indicator.
33041         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33042         in use.
33043
33044         closein-tests: silence compiler warning
33045         * tests/test-closein.c (main): Ignore fread result.
33046         * modules/closein-tests (Depends-on): Add ignore-value.
33047
33048         tests: silence warning about system return
33049         * tests/test-areadlink-with-size.c (main): Ignore system result.
33050         * tests/test-areadlink.c (main): Likewise.
33051         * tests/test-areadlinkat-with-size.c (main): Likewise.
33052         * tests/test-areadlinkat.c (main): Likewise.
33053         * tests/test-canonicalize-lgpl.c (main): Likewise.
33054         * tests/test-canonicalize.c (main): Likewise.
33055         * tests/test-chown.c (main): Likewise.
33056         * tests/test-fchownat.c (main): Likewise.
33057         * tests/test-fdutimensat.c (main): Likewise.
33058         * tests/test-fstatat.c (main): Likewise.
33059         * tests/test-futimens.c (main): Likewise.
33060         * tests/test-lchown.c (main): Likewise.
33061         * tests/test-link.c (main): Likewise.
33062         * tests/test-linkat.c (main): Likewise.
33063         * tests/test-lstat.c (main): Likewise.
33064         * tests/test-mkdir.c (main): Likewise.
33065         * tests/test-mkdirat.c (main): Likewise.
33066         * tests/test-mkfifo.c (main): Likewise.
33067         * tests/test-mkfifoat.c (main): Likewise.
33068         * tests/test-mknod.c (main): Likewise.
33069         * tests/test-readlink.c (main): Likewise.
33070         * tests/test-remove.c (main): Likewise.
33071         * tests/test-rename.c (main): Likewise.
33072         * tests/test-renameat.c (main): Likewise.
33073         * tests/test-rmdir.c (main): Likewise.
33074         * tests/test-symlink.c (main): Likewise.
33075         * tests/test-symlinkat.c (main): Likewise.
33076         * tests/test-unlink.c (main): Likewise.
33077         * tests/test-unlinkat.c (main): Likewise.
33078         * tests/test-utimens.c (main): Likewise.
33079         * tests/test-utimensat.c (main): Likewise.
33080         * modules/areadlink-tests (Depends-on): Add ignore-value.
33081         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33082         * modules/areadlinkat-tests (Depends-on): Likewise.
33083         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33084         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33085         * modules/canonicalize-tests (Depends-on): Likewise.
33086         * modules/chown-tests (Depends-on): Likewise.
33087         * modules/fdutimensat-tests (Depends-on): Likewise.
33088         * modules/futimens-tests (Depends-on): Likewise.
33089         * modules/lchown-tests (Depends-on): Likewise.
33090         * modules/link-tests (Depends-on): Likewise.
33091         * modules/linkat-tests (Depends-on): Likewise.
33092         * modules/lstat-tests (Depends-on): Likewise.
33093         * modules/mkdir-tests (Depends-on): Likewise.
33094         * modules/mkfifo-tests (Depends-on): Likewise.
33095         * modules/mkfifoat-tests (Depends-on): Likewise.
33096         * modules/mknod-tests (Depends-on): Likewise.
33097         * modules/openat-tests (Depends-on): Likewise.
33098         * modules/readlink-tests (Depends-on): Likewise.
33099         * modules/remove-tests (Depends-on): Likewise.
33100         * modules/rename-tests (Depends-on): Likewise.
33101         * modules/renameat-tests (Depends-on): Likewise.
33102         * modules/rmdir-tests (Depends-on): Likewise.
33103         * modules/symlink-tests (Depends-on): Likewise.
33104         * modules/symlinkat-tests (Depends-on): Likewise.
33105         * modules/unlink-tests (Depends-on): Likewise.
33106         * modules/utimens-tests (Depends-on): Likewise.
33107         * modules/utimensat-tests (Depends-on): Likewise.
33108
33109 2010-01-31  Bruno Haible  <bruno@clisp.org>
33110
33111         Perform the same test for many <math.h> functions.
33112         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33113         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33114         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33115         of gl_MATHFUNC.
33116         * modules/acos (configure.ac): Likewise.
33117         * modules/asin (configure.ac): Likewise.
33118         * modules/atan (configure.ac): Likewise.
33119         * modules/atan2 (configure.ac): Likewise.
33120         * modules/cbrt (configure.ac): Likewise.
33121         * modules/copysign (configure.ac): Likewise.
33122         * modules/cos (configure.ac): Likewise.
33123         * modules/cosh (configure.ac): Likewise.
33124         * modules/erf (configure.ac): Likewise.
33125         * modules/erfc (configure.ac): Likewise.
33126         * modules/exp (configure.ac): Likewise.
33127         * modules/fmod (configure.ac): Likewise.
33128         * modules/hypot (configure.ac): Likewise.
33129         * modules/j0 (configure.ac): Likewise.
33130         * modules/j1 (configure.ac): Likewise.
33131         * modules/jn (configure.ac): Likewise.
33132         * modules/lgamma (configure.ac): Likewise.
33133         * modules/log (configure.ac): Likewise.
33134         * modules/log10 (configure.ac): Likewise.
33135         * modules/log1p (configure.ac): Likewise.
33136         * modules/pow (configure.ac): Likewise.
33137         * modules/remainder (configure.ac): Likewise.
33138         * modules/sin (configure.ac): Likewise.
33139         * modules/sinh (configure.ac): Likewise.
33140         * modules/tan (configure.ac): Likewise.
33141         * modules/tanh (configure.ac): Likewise.
33142         * modules/y0 (configure.ac): Likewise.
33143         * modules/y1 (configure.ac): Likewise.
33144         * modules/yn (configure.ac): Likewise.
33145         Suggested by Paolo Bonzini.
33146
33147 2010-01-31  Bruno Haible  <bruno@clisp.org>
33148
33149         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33150
33151 2010-01-31  Bruno Haible  <bruno@clisp.org>
33152
33153         Work around getdelim() bug on FreeBSD 8.0.
33154         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33155         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33156         not work.
33157         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33158         is 1.
33159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33160         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33161         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33162         a non-zero size.
33163         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33164
33165 2010-01-31  Bruno Haible  <bruno@clisp.org>
33166
33167         Work around getline() bug on FreeBSD 8.0.
33168         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33169         and a non-zero size.
33170         * tests/test-getline.c (main): Likewise.
33171         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33172         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33173
33174 2010-01-28  Eric Blake  <ebb9@byu.net>
33175
33176         regex: fix build failure
33177         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33178         platforms.
33179
33180 2010-01-28  Jim Meyering  <meyering@redhat.com>
33181
33182         regex: do not ignore memory allocation failure
33183         * lib/regex_internal.c (create_cd_newstate): Detect
33184         re_node_set_init_copy failure.   Extracted from glibc commit
33185         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33186
33187         regex: sync more white-space changes from libc
33188         * lib/regex_internal.c: White-space only changes.
33189         * lib/regexec.c: Likewise.
33190
33191         regex: add many uses of __attribute_warn_unused_result__
33192         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33193         * lib/regexec.c: Likewise.
33194         Extracted from a messy glibc commit.
33195
33196         regcomp.c: spelling and merge-artifact from glibc
33197         * lib/regcomp.c: Merge remainder of glibc's
33198         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33199
33200         regcomp.c: sync white-space changes from glibc
33201         * lib/regcomp.c: Merge to accommodate white space
33202         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33203
33204         regcomp.c: do not ignore internal return values
33205         * lib/regcomp.c: Do not ignore internal return values.
33206         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33207         but without its white-space changes and spelling fixes.
33208
33209         regex_internal.h: define __attribute_warn_unused_result__
33210         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33211
33212         maint: add a syntax-check rule to check for vulnerable Makefile.in
33213         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33214
33215 2010-01-27  Jim Meyering  <meyering@redhat.com>
33216
33217         ncftpput-ftp: clean up spaces
33218         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33219         Remove trailing blanks.
33220
33221 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33222
33223         * build-aux/git-version-gen: Fix copyright statement.
33224         * build-aux/gnupload: Likewise.
33225         * tests/test-arcfour.c: Likewise.
33226         * tests/test-arctwo.c: Likewise.
33227         * tests/test-count-one-bits.c: Likewise.
33228         * tests/test-crc.c: Likewise.
33229         * tests/test-des.c: Likewise.
33230         * tests/test-gc-arcfour.c: Likewise.
33231         * tests/test-gc-arctwo.c: Likewise.
33232         * tests/test-gc-des.c: Likewise.
33233         * tests/test-gc-hmac-md5.c: Likewise.
33234         * tests/test-gc-hmac-sha1.c: Likewise.
33235         * tests/test-gc-md2.c: Likewise.
33236         * tests/test-gc-md4.c: Likewise.
33237         * tests/test-gc-md5.c: Likewise.
33238         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33239         * tests/test-gc-rijndael.c: Likewise.
33240         * tests/test-gc-sha1.c: Likewise.
33241         * tests/test-gc.c: Likewise.
33242         * tests/test-gethostname.c: Likewise.
33243         * tests/test-gettimeofday.c: Likewise.
33244         * tests/test-hash.c: Likewise.
33245         * tests/test-hmac-md5.c: Likewise.
33246         * tests/test-hmac-sha1.c: Likewise.
33247         * tests/test-md2.c: Likewise.
33248         * tests/test-md4.c: Likewise.
33249         * tests/test-md5.c: Likewise.
33250         * tests/test-memchr.c: Likewise.
33251         * tests/test-memchr2.c: Likewise.
33252         * tests/test-memcmp.c: Likewise.
33253         * tests/test-memmem.c: Likewise.
33254         * tests/test-memrchr.c: Likewise.
33255         * tests/test-rawmemchr.c: Likewise.
33256         * tests/test-read-file.c: Likewise.
33257         * tests/test-rijndael.c: Likewise.
33258         * tests/test-sockets.c: Likewise.
33259         * tests/test-strchrnul.c: Likewise.
33260         * tests/test-strstr.c: Likewise.
33261         * tests/test-strtod.c: Likewise.
33262         * build-aux/ncftpput-ftp: Likewise.
33263
33264 2010-01-26  Eric Blake  <ebb9@byu.net>
33265
33266         ignore-value: update recommended header name
33267         * modules/ignore-value (Include): Only use <> for headers that
33268         exist in glibc.
33269
33270 2010-01-26  Jim Meyering  <meyering@redhat.com>
33271
33272         test-userspec.c: avoid compiler warnings
33273         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33274         and "initialization discards qualifiers..." warnings.
33275         Put the first "uid" in its own scope, and make char* members "const".
33276
33277 2010-01-25  Bruno Haible  <bruno@clisp.org>
33278
33279         gnulib-tool: Make warning diagnostics consistent.
33280         * gnulib-tool (func_warning): New function.
33281         Use it everywhere where gnulib-tool produces output to stderr and it is
33282         not a fatal error.
33283
33284 2010-01-25  Bruno Haible  <bruno@clisp.org>
33285
33286         Fix test dependencies.
33287         * modules/xstrtol-tests (Depends-on): Add inttypes.
33288         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33289
33290 2010-01-25 Pádraig Brady <P@draigBrady.com>
33291
33292         syntax-check: detect incorrect boolean macro values in config.h
33293         * modules/maintainer-makefile (configure.ac): Parameterize the location
33294         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33295         The logic is from Eric Blake and the location indicated by Jim Meyering.
33296         Note the more natural CONFIG_HEADER name is prohibited by automake
33297         for backwards compatibility reasons.
33298         * top/maint.mk (sc_Wundef_boolean): New rule.
33299
33300 2010-01-25  Jim Meyering  <meyering@redhat.com>
33301
33302         bootstrap: detect MacOS 10.6's shasum, too
33303         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33304         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33305
33306 2010-01-23  Jim Meyering  <meyering@redhat.com>
33307
33308         xstrtoll: new module
33309         * modules/xstrtoll: New file.
33310         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33311         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33312         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33313         ./configure fails if you use this module and lack "long long".
33314         * modules/xstrtoll-tests: New module.
33315         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33316         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33317         new init.sh-based test framework.
33318
33319 2010-01-24  Bruno Haible  <bruno@clisp.org>
33320
33321         Tests for module 'yn'.
33322         * modules/yn-tests: New file.
33323         * tests/test-yn.c: New file.
33324
33325         Tests for module 'y1'.
33326         * modules/y1-tests: New file.
33327         * tests/test-y1.c: New file.
33328
33329         Tests for module 'y0'.
33330         * modules/y0-tests: New file.
33331         * tests/test-y0.c: New file.
33332
33333         Tests for module 'tanh'.
33334         * modules/tanh-tests: New file.
33335         * tests/test-tanh.c: New file.
33336
33337         Tests for module 'tan'.
33338         * modules/tan-tests: New file.
33339         * tests/test-tan.c: New file.
33340
33341         Tests for module 'sqrt'.
33342         * modules/sqrt-tests: New file.
33343         * tests/test-sqrt.c: New file.
33344
33345         Tests for module 'sinh'.
33346         * modules/sinh-tests: New file.
33347         * tests/test-sinh.c: New file.
33348
33349         Tests for module 'sin'.
33350         * modules/sin-tests: New file.
33351         * tests/test-sin.c: New file.
33352
33353         Tests for module 'rint'.
33354         * modules/rint-tests: New file.
33355         * tests/test-rint.c: New file.
33356
33357         Tests for module 'remainder'.
33358         * modules/remainder-tests: New file.
33359         * tests/test-remainder.c: New file.
33360
33361         Tests for module 'pow'.
33362         * modules/pow-tests: New file.
33363         * tests/test-pow.c: New file.
33364
33365         Tests for module 'nextafter'.
33366         * modules/nextafter-tests: New file.
33367         * tests/test-nextafter.c: New file.
33368
33369         Tests for module 'modf'.
33370         * modules/modf-tests: New file.
33371         * tests/test-modf.c: New file.
33372
33373         Tests for module 'logb'.
33374         * modules/logb-tests: New file.
33375         * tests/test-logb.c: New file.
33376
33377         Tests for module 'log1p'.
33378         * modules/log1p-tests: New file.
33379         * tests/test-log1p.c: New file.
33380
33381         Tests for module 'log10'.
33382         * modules/log10-tests: New file.
33383         * tests/test-log10.c: New file.
33384
33385         Tests for module 'log'.
33386         * modules/log-tests: New file.
33387         * tests/test-log.c: New file.
33388
33389         Tests for module 'lgamma'.
33390         * modules/lgamma-tests: New file.
33391         * tests/test-lgamma.c: New file.
33392
33393         Tests for module 'ldexp'.
33394         * modules/ldexp-tests: New file.
33395         * tests/test-ldexp.c: New file.
33396
33397         Tests for module 'jn'.
33398         * modules/jn-tests: New file.
33399         * tests/test-jn.c: New file.
33400
33401         Tests for module 'j1'.
33402         * modules/j1-tests: New file.
33403         * tests/test-j1.c: New file.
33404
33405         Tests for module 'j0'.
33406         * modules/j0-tests: New file.
33407         * tests/test-j0.c: New file.
33408
33409         Tests for module 'hypot'.
33410         * modules/hypot-tests: New file.
33411         * tests/test-hypot.c: New file.
33412
33413         Tests for module 'fmod'.
33414         * modules/fmod-tests: New file.
33415         * tests/test-fmod.c: New file.
33416
33417         Tests for module 'fabs'.
33418         * modules/fabs-tests: New file.
33419         * tests/test-fabs.c: New file.
33420
33421         Tests for module 'exp'.
33422         * modules/exp-tests: New file.
33423         * tests/test-exp.c: New file.
33424
33425         Tests for module 'erfc'.
33426         * modules/erfc-tests: New file.
33427         * tests/test-erfc.c: New file.
33428
33429         Tests for module 'erf'.
33430         * modules/erf-tests: New file.
33431         * tests/test-erf.c: New file.
33432
33433         Tests for module 'cosh'.
33434         * modules/cosh-tests: New file.
33435         * tests/test-cosh.c: New file.
33436
33437         Tests for module 'cos'.
33438         * modules/cos-tests: New file.
33439         * tests/test-cos.c: New file.
33440
33441         Tests for module 'copysign'.
33442         * modules/copysign-tests: New file.
33443         * tests/test-copysign.c: New file.
33444
33445         Tests for module 'cbrt'.
33446         * modules/cbrt-tests: New file.
33447         * tests/test-cbrt.c: New file.
33448
33449         Tests for module 'atan2'.
33450         * modules/atan2-tests: New file.
33451         * tests/test-atan2.c: New file.
33452
33453         Tests for module 'atan'.
33454         * modules/atan-tests: New file.
33455         * tests/test-atan.c: New file.
33456
33457         Tests for module 'asin'.
33458         * modules/asin-tests: New file.
33459         * tests/test-asin.c: New file.
33460
33461         Tests for module 'acos'.
33462         * modules/acos-tests: New file.
33463         * tests/test-acos.c: New file.
33464
33465 2010-01-24  Bruno Haible  <bruno@clisp.org>
33466
33467         Fix tests for common <math.h> functions.
33468         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33469         code snippet that references the function pointer, rather than merely
33470         calling the function. Substitute the FUNC_LIBM variable.
33471         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33472         * modules/acos (configure.ac): Likewise.
33473         * modules/asin (configure.ac): Likewise.
33474         * modules/atan (configure.ac): Likewise.
33475         * modules/atan2 (configure.ac): Likewise.
33476         * modules/cbrt (configure.ac): Likewise.
33477         * modules/copysign (configure.ac): Likewise.
33478         * modules/cos (configure.ac): Likewise.
33479         * modules/cosh (configure.ac): Likewise.
33480         * modules/erf (configure.ac): Likewise.
33481         * modules/erfc (configure.ac): Likewise.
33482         * modules/exp (configure.ac): Likewise.
33483         * modules/fabs (configure.ac): Likewise.
33484         * modules/fmod (configure.ac): Likewise.
33485         * modules/hypot (configure.ac): Likewise.
33486         * modules/j0 (configure.ac): Likewise.
33487         * modules/j1 (configure.ac): Likewise.
33488         * modules/jn (configure.ac): Likewise.
33489         * modules/ldexp (configure.ac): Likewise.
33490         * modules/lgamma (configure.ac): Likewise.
33491         * modules/log (configure.ac): Likewise.
33492         * modules/log10 (configure.ac): Likewise.
33493         * modules/log1p (configure.ac): Likewise.
33494         * modules/logb (configure.ac): Likewise.
33495         * modules/modf (configure.ac): Likewise.
33496         * modules/nextafter (configure.ac): Likewise.
33497         * modules/pow (configure.ac): Likewise.
33498         * modules/remainder (configure.ac): Likewise.
33499         * modules/rint (configure.ac): Likewise.
33500         * modules/sin (configure.ac): Likewise.
33501         * modules/sinh (configure.ac): Likewise.
33502         * modules/tan (configure.ac): Likewise.
33503         * modules/tanh (configure.ac): Likewise.
33504         * modules/y0 (configure.ac): Likewise.
33505         * modules/y1 (configure.ac): Likewise.
33506         * modules/yn (configure.ac): Likewise.
33507
33508 2010-01-24  Bruno Haible  <bruno@clisp.org>
33509
33510         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33511         * tests/test-acosl.c (x): New variable.
33512         (main): Store argument in x and fetch it from x.
33513         * tests/test-asinl.c (x): New variable.
33514         (main): Store argument in x and fetch it from x.
33515         * tests/test-atanl.c (x): New variable.
33516         (main): Store argument in x and fetch it from x.
33517         * tests/test-cosl.c (x): New variable.
33518         (main): Store argument in x and fetch it from x.
33519         * tests/test-expl.c (x): New variable.
33520         (main): Store argument in x and fetch it from x.
33521         * tests/test-logl.c (x): New variable.
33522         (main): Store argument in x and fetch it from x.
33523         * tests/test-sinl.c (x): New variable.
33524         (main): Store argument in x and fetch it from x.
33525         * tests/test-sqrtl.c (x): New variable.
33526         (main): Store argument in x and fetch it from x.
33527         * tests/test-tanl.c (x): New variable.
33528         (main): Store argument in x and fetch it from x.
33529
33530 2010-01-24  Bruno Haible  <bruno@clisp.org>
33531
33532         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33533         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33534         assignments to the initial TESTS_ENVIRONMENT.
33535         * doc/gnulib.texi (Unit test modules): Document it.
33536         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33537         TESTS_ENVIRONMENT.
33538         * modules/btowc-tests (Makefile.am): Likewise.
33539         * modules/c-stack-tests (Makefile.am): Likewise.
33540         * modules/c-strcase-tests (Makefile.am): Likewise.
33541         * modules/copy-file-tests (Makefile.am): Likewise.
33542         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33543         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33544         * modules/mbrtowc-tests (Makefile.am): Likewise.
33545         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33546         * modules/mbscasestr-tests (Makefile.am): Likewise.
33547         * modules/mbschr-tests (Makefile.am): Likewise.
33548         * modules/mbscspn-tests (Makefile.am): Likewise.
33549         * modules/mbsinit-tests (Makefile.am): Likewise.
33550         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33551         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33552         * modules/mbspbrk-tests (Makefile.am): Likewise.
33553         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33554         * modules/mbsrchr-tests (Makefile.am): Likewise.
33555         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33556         * modules/mbsspn-tests (Makefile.am): Likewise.
33557         * modules/mbsstr-tests (Makefile.am): Likewise.
33558         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33559         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33560         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33561         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33562         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33563         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33564         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33565         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33566         * modules/wcrtomb-tests (Makefile.am): Likewise.
33567         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33568         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33569         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33570         assignments from TESTS_ENVIRONMENT.
33571         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33572         augmentation.
33573         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33574         * modules/atexit-tests (Makefile.am): Likewise.
33575         * modules/binary-io-tests (Makefile.am): Likewise.
33576         * modules/closein-tests (Makefile.am): Likewise.
33577         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33578         * modules/exclude-tests (Makefile.am): Likewise.
33579         * modules/fflush-tests (Makefile.am): Likewise.
33580         * modules/fpending-tests (Makefile.am): Likewise.
33581         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33582         * modules/freadahead-tests (Makefile.am): Likewise.
33583         * modules/freadptr-tests (Makefile.am): Likewise.
33584         * modules/freadseek-tests (Makefile.am): Likewise.
33585         * modules/fseek-tests (Makefile.am): Likewise.
33586         * modules/fseeko-tests (Makefile.am): Likewise.
33587         * modules/ftell-tests (Makefile.am): Likewise.
33588         * modules/ftello-tests (Makefile.am): Likewise.
33589         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33590         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33591         * modules/lseek-tests (Makefile.am): Likewise.
33592         * modules/parse-duration-tests (Makefile.am): Likewise.
33593         * modules/perror-tests (Makefile.am): Likewise.
33594         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33595         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33596         * modules/pipe-tests (Makefile.am): Likewise.
33597         * modules/pread-tests (Makefile.am): Likewise.
33598         * modules/printf-posix-tests (Makefile.am): Likewise.
33599         * modules/select-tests (Makefile.am): Likewise.
33600         * modules/sigpipe-tests (Makefile.am): Likewise.
33601         * modules/tsearch-tests (Makefile.am): Likewise.
33602         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33603         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33604         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33605         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33606         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33607         * modules/version-etc-tests (Makefile.am): Likewise.
33608         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33609         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33610         * modules/xalloc-die-tests (Makefile.am): Likewise.
33611         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33612         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33613         * modules/xstrtol-tests (Makefile.am): Likewise.
33614         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33615         * modules/yesno-tests (Makefile.am): Likewise.
33616         Suggested by Jim Meyering.
33617
33618 2010-01-24  Bruno Haible  <bruno@clisp.org>
33619
33620         More documentation.
33621         * doc/gnulib.texi (Writing modules): New chapter.
33622         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33623         the new chapter.
33624
33625 2010-01-24  Jim Meyering  <meyering@redhat.com>
33626
33627         maint.mk: do not prepend "./" after filtering
33628         * top/maint.mk (_prepend_srcdir_prefix): New variable
33629         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33630         "./" when $(srcdir) is ".".
33631
33632         define STREQ(a,b) consistently, removing useless parentheses
33633         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33634         since the only risk is that "a" or "b" contains an unparenthesized
33635         comma, but if either did that, STREQ would have 3 or more arguments.
33636         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33637         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33638         * lib/hash-triple.c (STREQ): Likewise.
33639         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33640         * lib/getugroups.c (STREQ): Likewise.
33641
33642 2010-01-23  Jim Meyering  <meyering@redhat.com>
33643
33644         maint.mk: fix syntax-check in a non-srcdir build directory
33645         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33646         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33647
33648 2010-01-22  Jim Meyering  <meyering@redhat.com>
33649
33650         userspec: add unit tests
33651         * tests/test-userspec.c: New file.
33652         * modules/userspec-tests: Likewise.
33653
33654 2010-01-21  Jim Meyering  <meyering@redhat.com>
33655
33656         maint.mk: handle source file names containing "." robustly
33657         * top/maint.mk (_dot_escaped_srcdir): Define.
33658         (VC_LIST): Use it in LHS of sed substitution.
33659
33660 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33661
33662         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33663         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33664         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33665         from a non-srcdir build.
33666
33667 2010-01-20  Eric Blake  <ebb9@byu.net>
33668
33669         warn-on-use: use instead of link-warning
33670         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33671         * modules/unistd (Depends-on, Makefile.am): Likewise.
33672         * modules/arpa_inet (Depends-on): Replace link-warning with
33673         warn-on-use.
33674         (Makefile.am): Update rules accordingly.
33675         * modules/ctype (Depends-on, Makefile.am): Likewise.
33676         * modules/dirent (Depends-on, Makefile.am): Likewise.
33677         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33678         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33679         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33680         * modules/locale (Depends-on, Makefile.am): Likewise.
33681         * modules/math (Depends-on, Makefile.am): Likewise.
33682         * modules/search (Depends-on, Makefile.am): Likewise.
33683         * modules/signal (Depends-on, Makefile.am): Likewise.
33684         * modules/spawn (Depends-on, Makefile.am): Likewise.
33685         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33686         * modules/string (Depends-on, Makefile.am): Likewise.
33687         * modules/strings (Depends-on, Makefile.am): Likewise.
33688         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33689         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33690         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33691         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33692         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33693         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33694         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33695         * modules/wchar (Depends-on, Makefile.am): Likewise.
33696         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33697         should be poisoned.
33698         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33699         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33700         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33701         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33702         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33703         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33704         * m4/math_h.m4 (gl_MATH_H): Likewise.
33705         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33706         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33707         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33708         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33709         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33710         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33711         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33712         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33713         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33714         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33715         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33716         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33717         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33718         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33719         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33720         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33721         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33722         GL_LINK_WARNING.
33723         * lib/ctype.in.h: Likewise.
33724         * lib/dirent.in.h: Likewise.
33725         * lib/fcntl.in.h: Likewise.
33726         * lib/inttypes.in.h: Likewise.
33727         * lib/langinfo.in.h: Likewise.
33728         * lib/locale.in.h: Likewise.
33729         * lib/math.in.h: Likewise.
33730         * lib/search.in.h: Likewise.
33731         * lib/signal.in.h: Likewise.
33732         * lib/spawn.in.h: Likewise.
33733         * lib/stdio.in.h: Likewise.
33734         * lib/stdlib.in.h: Likewise.
33735         * lib/string.in.h: Likewise.
33736         * lib/strings.in.h: Likewise.
33737         * lib/sys_file.in.h: Likewise.
33738         * lib/sys_ioctl.in.h: Likewise.
33739         * lib/sys_select.in.h: Likewise.
33740         * lib/sys_socket.in.h: Likewise.
33741         * lib/sys_stat.in.h: Likewise.
33742         * lib/sys_times.in.h: Likewise.
33743         * lib/sys_utsname.in.h: Likewise.
33744         * lib/unistd.in.h: Likewise.
33745         * lib/wchar.in.h: Likewise.
33746
33747 2010-01-20  Bruno Haible  <bruno@clisp.org>
33748
33749         Avoid duplicate -lm.
33750         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33751         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33752         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33753         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33754         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33755         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33756         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33757         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33758         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33759         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33760         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33761         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33762         Reported by Paolo Bonzini.
33763
33764 2010-01-19  Bruno Haible  <bruno@clisp.org>
33765
33766         langinfo, nl_langinfo: Relicense under LGPLv2+.
33767         * modules/langinfo (License): Change to LGPLv2+.
33768         * modules/nl_langinfo (License): Likewise.
33769         Patch by David Lutterkort <lutter@redhat.com>.
33770
33771 2010-01-19  Bruno Haible  <bruno@clisp.org>
33772
33773         Avoid compilation error with cc on OSF/1 5.1.
33774         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33775         statement, not before.
33776         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33777
33778 2010-01-18  Bruno Haible  <bruno@clisp.org>
33779
33780         Avoid a link error due to the __printf__ symbol.
33781         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33782         and 2.6.x.
33783         (__format__, __printf__): Remove definitions.
33784         * lib/argp-fmtstream.h: Likewise.
33785         * lib/argp.h: Likewise.
33786         * lib/error.h: Likewise.
33787         * lib/vasnprintf.h: Likewise.
33788         * lib/xprintf.h: Likewise.
33789         * lib/xvasprintf.h: Likewise.
33790         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33791
33792 2010-01-18  Bruno Haible  <bruno@clisp.org>
33793
33794         Tests for module 'tanl'.
33795         * modules/tanl-tests: New file.
33796         * tests/test-tanl.c: New file.
33797
33798         Tests for module 'sqrtl'.
33799         * modules/sqrtl-tests: New file.
33800         * tests/test-sqrtl.c: New file.
33801
33802         Tests for module 'sinl'.
33803         * modules/sinl-tests: New file.
33804         * tests/test-sinl.c: New file.
33805
33806         Tests for module 'logl'.
33807         * modules/logl-tests: New file.
33808         * tests/test-logl.c: New file.
33809
33810         Tests for module 'expl'.
33811         * modules/expl-tests: New file.
33812         * tests/test-expl.c: New file.
33813
33814         Tests for module 'cosl'.
33815         * modules/cosl-tests: New file.
33816         * tests/test-cosl.c: New file.
33817
33818         Tests for module 'atanl'.
33819         * modules/atanl-tests: New file.
33820         * tests/test-atanl.c: New file.
33821
33822         Tests for module 'asinl'.
33823         * modules/asinl-tests: New file.
33824         * tests/test-asinl.c: New file.
33825
33826         Tests for module 'acosl'.
33827         * modules/acosl-tests: New file.
33828         * tests/test-acosl.c: New file.
33829
33830         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33831         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33832         tanl): Use the standard gnulib idiom.
33833         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33834         * lib/sinl.c: Likewise.
33835         * lib/tanl.c: Don't include trigl.c.
33836         (kernel_tanl): Make static.
33837         * lib/sincosl.c: Include trigl.h first.
33838         * lib/trigl.c: Likewise.
33839         * m4/acosl.m4: New file.
33840         * m4/asinl.m4: New file.
33841         * m4/atanl.m4: New file.
33842         * m4/cosl.m4: New file.
33843         * m4/expl.m4: New file.
33844         * m4/logl.m4: New file.
33845         * m4/sinl.m4: New file.
33846         * m4/sqrtl.m4: New file.
33847         * m4/tanl.m4: New file.
33848         * m4/mathl.m4: Remove file.
33849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33850         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33851         Don't initialize GNULIB_MATHL.
33852         * modules/acosl: New file.
33853         * modules/asinl: New file.
33854         * modules/atanl: New file.
33855         * modules/cosl: New file.
33856         * modules/expl: New file.
33857         * modules/logl: New file.
33858         * modules/sinl: New file.
33859         * modules/sqrtl: New file.
33860         * modules/tanl: New file.
33861         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33862         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33863         substitute GNULIB_MATHL.
33864         * modules/mathl: Rewritten.
33865         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33866         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33867         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33868         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33869         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33870         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33871         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33872         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33873         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33874
33875 2010-01-18  Bruno Haible  <bruno@clisp.org>
33876
33877         sqrt: Make gl_FUNC_SQRT requirable.
33878         * m4/sqrt.m4: New file.
33879         * modules/sqrt (Files): Add it.
33880         (configure.ac): Invoke gl_FUNC_SQRT.
33881
33882 2010-01-18  Bruno Haible  <bruno@clisp.org>
33883
33884         New modules for common <math.h> functions.
33885         * m4/mathfunc.m4: New file.
33886         * modules/acos: New file.
33887         * modules/asin: New file.
33888         * modules/atan: New file.
33889         * modules/atan2: New file.
33890         * modules/cbrt: New file.
33891         * modules/copysign: New file.
33892         * modules/cos: New file.
33893         * modules/cosh: New file.
33894         * modules/erf: New file.
33895         * modules/erfc: New file.
33896         * modules/exp: New file.
33897         * modules/fabs: New file.
33898         * modules/fmod: New file.
33899         * modules/hypot: New file.
33900         * modules/j0: New file.
33901         * modules/j1: New file.
33902         * modules/jn: New file.
33903         * modules/ldexp: New file.
33904         * modules/lgamma: New file.
33905         * modules/log: New file.
33906         * modules/log10: New file.
33907         * modules/log1p: New file.
33908         * modules/logb: New file.
33909         * modules/modf: New file.
33910         * modules/nextafter: New file.
33911         * modules/pow: New file.
33912         * modules/remainder: New file.
33913         * modules/rint: New file.
33914         * modules/sin: New file.
33915         * modules/sinh: New file.
33916         * modules/sqrt: New file.
33917         * modules/tan: New file.
33918         * modules/tanh: New file.
33919         * modules/y0: New file.
33920         * modules/y1: New file.
33921         * modules/yn: New file.
33922         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33923         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33924         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33925         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33926         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33927         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33928         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33929         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33930         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33931         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33932         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33933         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33934         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33935         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33936         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33937         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33938         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33939         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33940         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33941         * doc/posix-functions/log.texi: Mention the 'log' module.
33942         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33943         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33944         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33945         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33946         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33947         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33948         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33949         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33950         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33951         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33952         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33953         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33954         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33955         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33956         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33957         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33958
33959 2010-01-18  Jim Meyering  <meyering@redhat.com>
33960
33961         ignore-value: relax license to LGPLv2+
33962         * modules/ignore-value (License): Relax to LGPLv2+.
33963
33964         getdate: don't leak when TZ contains two or more '"'s
33965         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33966         double quote in TZ after the first one.
33967
33968         readtokens: do not leak internal token_lengths buffer
33969         * lib/readtokens.c (readtokens): Free the local, lengths,
33970         when the supplied "token_lengths" parameter is NULL.
33971
33972 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33973
33974         Fix a couple of missing LIBTHREAD link failures on AIX.
33975         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33976         $(LIBTHREAD).
33977         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33978
33979         Link test-poll against INET_PTON_LIB.
33980         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33981         for inet_pton on Solaris 10.
33982
33983 2010-01-17  Bruno Haible  <bruno@clisp.org>
33984
33985         unistdio/*-sprintf: Fix typo in module description.
33986         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33987         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33988         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33989         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33990         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33991         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33992         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33993         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33994
33995 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33996
33997         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33998         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33999         variables in shell case patterns, for AIX and HP-UX ksh.
34000
34001         Split large sed scripts, for HP-UX sed.
34002         * modules/stdio: Split sed scripts around 50 sed commands,
34003         to avoid HP-UX limit of 99 commands, in the near future.
34004         * modules/string: Likewise.
34005         * modules/unistd: Likewise.
34006
34007         gnulib-tool: avoid writing in the current directory.
34008         * gnulib-tool (func_emit_lib_Makefile_am)
34009         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34010         not in the current directory, so concurrent gnulib-tool
34011         instances do not interfere.
34012
34013 2010-01-16  Jim Meyering  <meyering@redhat.com>
34014
34015         doc: update users.txt
34016         * users.txt: Add grep.
34017         (diffutils, gzip): Update URLs.
34018
34019 2010-01-12  Bruno Haible  <bruno@clisp.org>
34020
34021         posix_spawn: Avoid test failure on Cygwin.
34022         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34023         characters.
34024         Reported by Simon Josefsson.
34025
34026 2010-01-12  Bruno Haible  <bruno@clisp.org>
34027
34028         * tests/test-cond.c (main): When skipping the test, show the reason.
34029
34030 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34031
34032         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34033
34034 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34035
34036         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34037         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34038
34039 2010-01-12  Eric Blake  <ebb9@byu.net>
34040
34041         build: guarantee AS_VAR_IF
34042         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34043         (gl_AS_VAR_IF): Move...
34044         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34045         Reported by Simon Josefsson.
34046
34047 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34048
34049         * lib/stdio.in.h: Fix typo.
34050
34051 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34052
34053         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34054         libgpg-error.
34055
34056 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34057
34058         * tests/test-xalloc-die.sh: Use $EXEEXT.
34059
34060 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34061             Bruno Haible  <bruno@clisp.org>
34062
34063         getlogin, getlogin_r: Avoid test failure.
34064         * tests/test-getlogin.c: Include <stdio.h>.
34065         (main): Skip the test when the function fails because stdin is not a
34066         tty.
34067         * tests/test-getlogin_r.c: Include <stdio.h>.
34068         (main): Skip the test when the function fails because stdin is not a
34069         tty.
34070
34071 2010-01-11  Eric Blake  <ebb9@byu.net>
34072
34073         tests: avoid more large file warnings
34074         * tests/test-fflush.c: Avoid warning about ftell use.
34075         * tests/test-fseek.c: Avoid warning about fseek use.
34076
34077 2010-01-10  Bruno Haible  <bruno@clisp.org>
34078
34079         nproc: Work better on Linux when /proc and /sys are not mounted.
34080         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34081         as lower bound when, on glibc/Linux systems,
34082         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34083         Suggested by Pádraig Brady <P@draigbrady.com>.
34084         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34085
34086         nproc: Refactor.
34087         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34088         extracted from num_processors.
34089         (num_processors): Call it.
34090
34091 2010-01-11  Jim Meyering  <meyering@redhat.com>
34092
34093         utimecmp: avoid new warning from upcoming gcc-4.5.0
34094         * lib/utimecmp.c (BILLION): Define using #define rather than an
34095         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34096
34097 2010-01-11  Eric Blake  <ebb9@byu.net>
34098
34099         math: add portability warnings for classification macros
34100         * modules/math (Depends-on): Add warn-on-use.
34101         (Makefile.am): Provide new substitutions.
34102         * m4/math_h.m4 (gl_MATH_H): Require inline.
34103         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34104         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34105         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34106         implement warnings.
34107
34108         unistd: warn on use of environ without module
34109         * modules/unistd (Depends-on): Add warn-on-use.
34110         (Makefile.am): Provide new substitutions.
34111         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34112         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34113
34114         stdio: warn on suspicious uses
34115         * modules/stdio (Depends-on): Add warn-on-use.
34116         (Makefile.am): Provide new substitutions.
34117         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34118         fseeko.
34119         * lib/stdio.in.h (gets): Always warn on use.
34120         (fseek, ftell): Adjust when warnings are issued, and honor
34121         _GL_NO_LARGE_FILES as a way to silence the warning.
34122         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34123         any warning about large file offsets.
34124         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34125         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34126         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34127         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34128         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34129         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34130         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34131         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34132
34133         warn-on-use: new module
34134         * modules/warn-on-use: New file.
34135         * build-aux/warn-on-use.h: Likewise.
34136         * m4/warn-on-use.m4: Likewise.
34137         * MODULES.html.sh (Support for building): Mention it.
34138
34139 2010-01-10  Bruno Haible  <bruno@clisp.org>
34140
34141         Tests for module 'unistr/u32-strdup'.
34142         * modules/unistr/u32-strdup-tests: New file.
34143         * tests/unistr/test-u32-strdup.c: New file.
34144
34145         Tests for module 'unistr/u16-strdup'.
34146         * modules/unistr/u16-strdup-tests: New file.
34147         * tests/unistr/test-u16-strdup.c: New file.
34148
34149         Tests for module 'unistr/u8-strdup'.
34150         * modules/unistr/u8-strdup-tests: New file.
34151         * tests/unistr/test-u8-strdup.c: New file.
34152         * tests/unistr/test-strdup.h: New file.
34153
34154         Tests for module 'unistr/u32-strncmp'.
34155         * modules/unistr/u32-strncmp-tests: New file.
34156         * tests/unistr/test-u32-strncmp.c: New file.
34157
34158         Tests for module 'unistr/u16-strncmp'.
34159         * modules/unistr/u16-strncmp-tests: New file.
34160         * tests/unistr/test-u16-strncmp.c: New file.
34161
34162         Tests for module 'unistr/u8-strncmp'.
34163         * modules/unistr/u8-strncmp-tests: New file.
34164         * tests/unistr/test-u8-strncmp.c: New file.
34165         * tests/unistr/test-strncmp.h: New file.
34166
34167         Tests for module 'unistr/u32-strcoll'.
34168         * modules/unistr/u32-strcoll-tests: New file.
34169         * tests/unistr/test-u32-strcoll.c: New file.
34170
34171         Tests for module 'unistr/u16-strcoll'.
34172         * modules/unistr/u16-strcoll-tests: New file.
34173         * tests/unistr/test-u16-strcoll.c: New file.
34174
34175         Tests for module 'unistr/u8-strcoll'.
34176         * modules/unistr/u8-strcoll-tests: New file.
34177         * tests/unistr/test-u8-strcoll.c: New file.
34178
34179         Tests for module 'unistr/u32-strcmp'.
34180         * modules/unistr/u32-strcmp-tests: New file.
34181         * tests/unistr/test-u32-strcmp.c: New file.
34182         * tests/unistr/test-u32-strcmp.h: New file.
34183
34184         Tests for module 'unistr/u16-strcmp'.
34185         * modules/unistr/u16-strcmp-tests: New file.
34186         * tests/unistr/test-u16-strcmp.c: New file.
34187         * tests/unistr/test-u16-strcmp.h: New file.
34188
34189         Tests for module 'unistr/u8-strcmp'.
34190         * modules/unistr/u8-strcmp-tests: New file.
34191         * tests/unistr/test-u8-strcmp.c: New file.
34192         * tests/unistr/test-u8-strcmp.h: New file.
34193         * tests/unistr/test-strcmp.h: New file.
34194
34195         Tests for module 'unistr/u32-strncat'.
34196         * modules/unistr/u32-strncat-tests: New file.
34197         * tests/unistr/test-u32-strncat.c: New file.
34198
34199         Tests for module 'unistr/u16-strncat'.
34200         * modules/unistr/u16-strncat-tests: New file.
34201         * tests/unistr/test-u16-strncat.c: New file.
34202
34203         Tests for module 'unistr/u8-strncat'.
34204         * modules/unistr/u8-strncat-tests: New file.
34205         * tests/unistr/test-u8-strncat.c: New file.
34206         * tests/unistr/test-strncat.h: New file.
34207
34208         Tests for module 'unistr/u32-strcat'.
34209         * modules/unistr/u32-strcat-tests: New file.
34210         * tests/unistr/test-u32-strcat.c: New file.
34211
34212         Tests for module 'unistr/u16-strcat'.
34213         * modules/unistr/u16-strcat-tests: New file.
34214         * tests/unistr/test-u16-strcat.c: New file.
34215
34216         Tests for module 'unistr/u8-strcat'.
34217         * modules/unistr/u8-strcat-tests: New file.
34218         * tests/unistr/test-u8-strcat.c: New file.
34219         * tests/unistr/test-strcat.h: New file.
34220
34221         Tests for module 'unistr/u32-stpncpy'.
34222         * modules/unistr/u32-stpncpy-tests: New file.
34223         * tests/unistr/test-u32-stpncpy.c: New file.
34224
34225         Tests for module 'unistr/u16-stpncpy'.
34226         * modules/unistr/u16-stpncpy-tests: New file.
34227         * tests/unistr/test-u16-stpncpy.c: New file.
34228
34229         Tests for module 'unistr/u8-stpncpy'.
34230         * modules/unistr/u8-stpncpy-tests: New file.
34231         * tests/unistr/test-u8-stpncpy.c: New file.
34232         * tests/unistr/test-stpncpy.h: New file.
34233
34234         Tests for module 'unistr/u32-strncpy'.
34235         * modules/unistr/u32-strncpy-tests: New file.
34236         * tests/unistr/test-u32-strncpy.c: New file.
34237
34238         Tests for module 'unistr/u16-strncpy'.
34239         * modules/unistr/u16-strncpy-tests: New file.
34240         * tests/unistr/test-u16-strncpy.c: New file.
34241
34242         Tests for module 'unistr/u8-strncpy'.
34243         * modules/unistr/u8-strncpy-tests: New file.
34244         * tests/unistr/test-u8-strncpy.c: New file.
34245         * tests/unistr/test-strncpy.h: New file.
34246
34247         Tests for module 'unistr/u32-stpcpy'.
34248         * modules/unistr/u32-stpcpy-tests: New file.
34249         * tests/unistr/test-u32-stpcpy.c: New file.
34250
34251         Tests for module 'unistr/u16-stpcpy'.
34252         * modules/unistr/u16-stpcpy-tests: New file.
34253         * tests/unistr/test-u16-stpcpy.c: New file.
34254
34255         Tests for module 'unistr/u8-stpcpy'.
34256         * modules/unistr/u8-stpcpy-tests: New file.
34257         * tests/unistr/test-u8-stpcpy.c: New file.
34258         * tests/unistr/test-stpcpy.h: New file.
34259
34260         Tests for module 'unistr/u32-strcpy'.
34261         * modules/unistr/u32-strcpy-tests: New file.
34262         * tests/unistr/test-u32-strcpy.c: New file.
34263
34264         Tests for module 'unistr/u16-strcpy'.
34265         * modules/unistr/u16-strcpy-tests: New file.
34266         * tests/unistr/test-u16-strcpy.c: New file.
34267
34268         Tests for module 'unistr/u8-strcpy'.
34269         * modules/unistr/u8-strcpy-tests: New file.
34270         * tests/unistr/test-u8-strcpy.c: New file.
34271         * tests/unistr/test-strcpy.h: New file.
34272
34273         Tests for module 'unistr/u32-strnlen'.
34274         * modules/unistr/u32-strnlen-tests: New file.
34275         * tests/unistr/test-u32-strnlen.c: New file.
34276
34277         Tests for module 'unistr/u16-strnlen'.
34278         * modules/unistr/u16-strnlen-tests: New file.
34279         * tests/unistr/test-u16-strnlen.c: New file.
34280
34281         Tests for module 'unistr/u8-strnlen'.
34282         * modules/unistr/u8-strnlen-tests: New file.
34283         * tests/unistr/test-u8-strnlen.c: New file.
34284         * tests/unistr/test-strnlen.h: New file.
34285
34286         Tests for module 'unistr/u32-strlen'.
34287         * modules/unistr/u32-strlen-tests: New file.
34288         * tests/unistr/test-u32-strlen.c: New file.
34289
34290         Tests for module 'unistr/u16-strlen'.
34291         * modules/unistr/u16-strlen-tests: New file.
34292         * tests/unistr/test-u16-strlen.c: New file.
34293
34294         Tests for module 'unistr/u8-strlen'.
34295         * modules/unistr/u8-strlen-tests: New file.
34296         * tests/unistr/test-u8-strlen.c: New file.
34297
34298         Tests for module 'unistr/u32-prev'.
34299         * modules/unistr/u32-prev-tests: New file.
34300         * tests/unistr/test-u32-prev.c: New file.
34301
34302         Tests for module 'unistr/u16-prev'.
34303         * modules/unistr/u16-prev-tests: New file.
34304         * tests/unistr/test-u16-prev.c: New file.
34305
34306         Tests for module 'unistr/u8-prev'.
34307         * modules/unistr/u8-prev-tests: New file.
34308         * tests/unistr/test-u8-prev.c: New file.
34309
34310         Tests for module 'unistr/u32-next'.
34311         * modules/unistr/u32-next-tests: New file.
34312         * tests/unistr/test-u32-next.c: New file.
34313
34314         Tests for module 'unistr/u16-next'.
34315         * modules/unistr/u16-next-tests: New file.
34316         * tests/unistr/test-u16-next.c: New file.
34317
34318         Tests for module 'unistr/u8-next'.
34319         * modules/unistr/u8-next-tests: New file.
34320         * tests/unistr/test-u8-next.c: New file.
34321
34322         Tests for module 'unistr/u32-strmbtouc'.
34323         * modules/unistr/u32-strmbtouc-tests: New file.
34324         * tests/unistr/test-u32-strmbtouc.c: New file.
34325
34326         Tests for module 'unistr/u16-strmbtouc'.
34327         * modules/unistr/u16-strmbtouc-tests: New file.
34328         * tests/unistr/test-u16-strmbtouc.c: New file.
34329
34330         Tests for module 'unistr/u8-strmbtouc'.
34331         * modules/unistr/u8-strmbtouc-tests: New file.
34332         * tests/unistr/test-u8-strmbtouc.c: New file.
34333
34334         Tests for module 'unistr/u32-strmblen'.
34335         * modules/unistr/u32-strmblen-tests: New file.
34336         * tests/unistr/test-u32-strmblen.c: New file.
34337
34338         Tests for module 'unistr/u16-strmblen'.
34339         * modules/unistr/u16-strmblen-tests: New file.
34340         * tests/unistr/test-u16-strmblen.c: New file.
34341
34342         Tests for module 'unistr/u8-strmblen'.
34343         * modules/unistr/u8-strmblen-tests: New file.
34344         * tests/unistr/test-u8-strmblen.c: New file.
34345
34346         Tests for module 'unistr/u32-cpy-alloc'.
34347         * modules/unistr/u32-cpy-alloc-tests: New file.
34348         * tests/unistr/test-u32-cpy-alloc.c: New file.
34349
34350         Tests for module 'unistr/u16-cpy-alloc'.
34351         * modules/unistr/u16-cpy-alloc-tests: New file.
34352         * tests/unistr/test-u16-cpy-alloc.c: New file.
34353
34354         Tests for module 'unistr/u8-cpy-alloc'.
34355         * modules/unistr/u8-cpy-alloc-tests: New file.
34356         * tests/unistr/test-u8-cpy-alloc.c: New file.
34357         * tests/unistr/test-cpy-alloc.h: New file.
34358
34359         Tests for module 'unistr/u32-mbsnlen'.
34360         * modules/unistr/u32-mbsnlen-tests: New file.
34361         * tests/unistr/test-u32-mbsnlen.c: New file.
34362
34363         Tests for module 'unistr/u16-mbsnlen'.
34364         * modules/unistr/u16-mbsnlen-tests: New file.
34365         * tests/unistr/test-u16-mbsnlen.c: New file.
34366
34367         Tests for module 'unistr/u8-mbsnlen'.
34368         * modules/unistr/u8-mbsnlen-tests: New file.
34369         * tests/unistr/test-u8-mbsnlen.c: New file.
34370
34371         Tests for module 'unistr/u32-chr'.
34372         * modules/unistr/u32-chr-tests: New file.
34373         * tests/unistr/test-u32-chr.c: New file.
34374
34375         Tests for module 'unistr/u16-chr'.
34376         * modules/unistr/u16-chr-tests: New file.
34377         * tests/unistr/test-u16-chr.c: New file.
34378
34379         Tests for module 'unistr/u8-chr'.
34380         * modules/unistr/u8-chr-tests: New file.
34381         * tests/unistr/test-u8-chr.c: New file.
34382         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34383
34384         Tests for module 'unistr/u32-cmp2'.
34385         * modules/unistr/u32-cmp2-tests: New file.
34386         * tests/unistr/test-u32-cmp2.c: New file.
34387
34388         Tests for module 'unistr/u16-cmp2'.
34389         * modules/unistr/u16-cmp2-tests: New file.
34390         * tests/unistr/test-u16-cmp2.c: New file.
34391
34392         Tests for module 'unistr/u8-cmp2'.
34393         * modules/unistr/u8-cmp2-tests: New file.
34394         * tests/unistr/test-u8-cmp2.c: New file.
34395         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34396
34397         Tests for module 'unistr/u32-cmp'.
34398         * modules/unistr/u32-cmp-tests: New file.
34399         * tests/unistr/test-u32-cmp.c: New file.
34400
34401         Tests for module 'unistr/u16-cmp'.
34402         * modules/unistr/u16-cmp-tests: New file.
34403         * tests/unistr/test-u16-cmp.c: New file.
34404
34405         Tests for module 'unistr/u8-cmp'.
34406         * modules/unistr/u8-cmp-tests: New file.
34407         * tests/unistr/test-u8-cmp.c: New file.
34408         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34409
34410         Tests for module 'unistr/u32-set'.
34411         * modules/unistr/u32-set-tests: New file.
34412         * tests/unistr/test-u32-set.c: New file.
34413
34414         Tests for module 'unistr/u16-set'.
34415         * modules/unistr/u16-set-tests: New file.
34416         * tests/unistr/test-u16-set.c: New file.
34417
34418         Tests for module 'unistr/u8-set'.
34419         * modules/unistr/u8-set-tests: New file.
34420         * tests/unistr/test-u8-set.c: New file.
34421         * tests/unistr/test-set.h: New file.
34422
34423         Tests for module 'unistr/u32-move'.
34424         * modules/unistr/u32-move-tests: New file.
34425         * tests/unistr/test-u32-move.c: New file.
34426
34427         Tests for module 'unistr/u16-move'.
34428         * modules/unistr/u16-move-tests: New file.
34429         * tests/unistr/test-u16-move.c: New file.
34430
34431         Tests for module 'unistr/u8-move'.
34432         * modules/unistr/u8-move-tests: New file.
34433         * tests/unistr/test-u8-move.c: New file.
34434         * tests/unistr/test-move.h: New file.
34435
34436         Tests for module 'unistr/u32-cpy'.
34437         * modules/unistr/u32-cpy-tests: New file.
34438         * tests/unistr/test-u32-cpy.c: New file.
34439
34440         Tests for module 'unistr/u16-cpy'.
34441         * modules/unistr/u16-cpy-tests: New file.
34442         * tests/unistr/test-u16-cpy.c: New file.
34443
34444         Tests for module 'unistr/u8-cpy'.
34445         * modules/unistr/u8-cpy-tests: New file.
34446         * tests/unistr/test-u8-cpy.c: New file.
34447         * tests/unistr/test-cpy.h: New file.
34448
34449 2010-01-09  Bruno Haible  <bruno@clisp.org>
34450
34451         Tests for module 'unistr/u32-uctomb'.
34452         * modules/unistr/u32-uctomb-tests: New file.
34453         * tests/unistr/test-u32-uctomb.c: New file.
34454
34455         Tests for module 'unistr/u16-uctomb'.
34456         * modules/unistr/u16-uctomb-tests: New file.
34457         * tests/unistr/test-u16-uctomb.c: New file.
34458
34459         Tests for module 'unistr/u8-uctomb'.
34460         * modules/unistr/u8-uctomb-tests: New file.
34461         * tests/unistr/test-u8-uctomb.c: New file.
34462
34463         Tests for module 'unistr/u32-mbtoucr'.
34464         * modules/unistr/u32-mbtoucr-tests: New file.
34465         * tests/unistr/test-u32-mbtoucr.c: New file.
34466
34467         Tests for module 'unistr/u16-mbtoucr'.
34468         * modules/unistr/u16-mbtoucr-tests: New file.
34469         * tests/unistr/test-u16-mbtoucr.c: New file.
34470
34471         Tests for module 'unistr/u8-mbtoucr'.
34472         * modules/unistr/u8-mbtoucr-tests: New file.
34473         * tests/unistr/test-u8-mbtoucr.c: New file.
34474
34475         Tests for module 'unistr/u32-mbtouc'.
34476         * modules/unistr/u32-mbtouc-tests: New file.
34477         * tests/unistr/test-u32-mbtouc.c: New file.
34478
34479         Tests for module 'unistr/u16-mbtouc'.
34480         * modules/unistr/u16-mbtouc-tests: New file.
34481         * tests/unistr/test-u16-mbtouc.c: New file.
34482
34483         Tests for module 'unistr/u8-mbtouc'.
34484         * modules/unistr/u8-mbtouc-tests: New file.
34485         * tests/unistr/test-u8-mbtouc.c: New file.
34486
34487         Tests for module 'unistr/u32-mbtouc-unsafe'.
34488         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34489         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34490         * tests/unistr/test-u32-mbtouc.h: New file.
34491
34492         Tests for module 'unistr/u16-mbtouc-unsafe'.
34493         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34494         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34495         * tests/unistr/test-u16-mbtouc.h: New file.
34496
34497         Tests for module 'unistr/u8-mbtouc-unsafe'.
34498         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34499         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34500         * tests/unistr/test-u8-mbtouc.h: New file.
34501
34502         Tests for module 'unistr/u32-mblen'.
34503         * modules/unistr/u32-mblen-tests: New file.
34504         * tests/unistr/test-u32-mblen.c: New file.
34505
34506         Tests for module 'unistr/u16-mblen'.
34507         * modules/unistr/u16-mblen-tests: New file.
34508         * tests/unistr/test-u16-mblen.c: New file.
34509
34510         Tests for module 'unistr/u8-mblen'.
34511         * modules/unistr/u8-mblen-tests: New file.
34512         * tests/unistr/test-u8-mblen.c: New file.
34513
34514         Tests for module 'unistr/u32-to-u16'.
34515         * modules/unistr/u32-to-u16-tests: New file.
34516         * tests/unistr/test-u32-to-u16.c: New file.
34517
34518         Tests for module 'unistr/u32-to-u8'.
34519         * modules/unistr/u32-to-u8-tests: New file.
34520         * tests/unistr/test-u32-to-u8.c: New file.
34521
34522         Tests for module 'unistr/u16-to-u32'.
34523         * modules/unistr/u16-to-u32-tests: New file.
34524         * tests/unistr/test-u16-to-u32.c: New file.
34525
34526         Tests for module 'unistr/u16-to-u8'.
34527         * modules/unistr/u16-to-u8-tests: New file.
34528         * tests/unistr/test-u16-to-u8.c: New file.
34529
34530         Tests for module 'unistr/u8-to-u32'.
34531         * modules/unistr/u8-to-u32-tests: New file.
34532         * tests/unistr/test-u8-to-u32.c: New file.
34533
34534         Tests for module 'unistr/u8-to-u16'.
34535         * modules/unistr/u8-to-u16-tests: New file.
34536         * tests/unistr/test-u8-to-u16.c: New file.
34537
34538         Tests for module 'unistr/u32-check'.
34539         * modules/unistr/u32-check-tests: New file.
34540         * tests/unistr/test-u32-check.c: New file.
34541
34542         Tests for module 'unistr/u16-check'.
34543         * modules/unistr/u16-check-tests: New file.
34544         * tests/unistr/test-u16-check.c: New file.
34545
34546         Tests for module 'unistr/u8-check'.
34547         * modules/unistr/u8-check-tests: New file.
34548         * tests/unistr/test-u8-check.c: New file.
34549
34550         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34551         (category_equals): New function.
34552         (main): Add more tests.
34553         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34554
34555         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34556
34557 2010-01-10  Bruno Haible  <bruno@clisp.org>
34558
34559         unistr/u*-strcoll: Try harder to distinguish different strings.
34560         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34561         compare s1 and s2 to see if they are different.
34562
34563 2010-01-10  Bruno Haible  <bruno@clisp.org>
34564
34565         unistr/u*-stpncpy: Fix the return value.
34566         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34567         description of the return value consistent with stpncpy in glibc.
34568         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34569         written non-NUL unit.
34570
34571 2010-01-10  Bruno Haible  <bruno@clisp.org>
34572
34573         unistr/u*-next: Add missing dependencies.
34574         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34575         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34576         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34577
34578 2010-01-10  Bruno Haible  <bruno@clisp.org>
34579
34580         unistr/u8-mbsnlen: Fix return value for incomplete character.
34581         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34582         u8_mblen.
34583         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34584         Remove unistr/u8-mblen.
34585         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34586         u16_mblen.
34587         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34588         Remove unistr/u16-mblen.
34589
34590 2010-01-10  Bruno Haible  <bruno@clisp.org>
34591
34592         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34593         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34594         Reported by Brian Gough <bjg@gnu.org> and
34595         Chris Clayton <chris2553@googlemail.com> via
34596         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34597
34598 2010-01-09  Bruno Haible  <bruno@clisp.org>
34599
34600         unistr/u16-to-u32: Reject invalid input.
34601         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34602         u16_mbtouc.
34603         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34604         Remove unistr/u16-mbtouc.
34605
34606         unistr/u16-to-u8: Reject invalid input.
34607         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34608         u16_mbtouc.
34609         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34610         Remove unistr/u16-mbtouc.
34611
34612         unistr/u8-to-u32: Reject invalid input.
34613         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34614         u8_mbtouc.
34615         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34616         Remove unistr/u8-mbtouc.
34617
34618         unistr/u8-to-u16: Reject invalid input.
34619         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34620         u8_mbtouc.
34621         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34622         Remove unistr/u8-mbtouc.
34623
34624 2010-01-09  Bruno Haible  <bruno@clisp.org>
34625
34626         Tests for module 'getlogin'.
34627         * modules/getlogin-tests: New file.
34628         * tests/test-getlogin.c: New file.
34629
34630         New module 'getlogin'.
34631         * lib/unistd.in.h (getlogin): New declaration.
34632         * lib/getlogin.c: New file.
34633         * m4/getlogin.m4: New file.
34634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34635         HAVE_GETLOGIN.
34636         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34637         HAVE_GETLOGIN.
34638         * modules/getlogin: New file.
34639         * doc/posix-functions/getlogin.texi: Mention the new module.
34640         Reported by John W. Eaton <jwe@gnu.org>.
34641
34642 2010-01-09  Bruno Haible  <bruno@clisp.org>
34643
34644         getlogin_r: Support for native Windows.
34645         * lib/getlogin_r.c: Include <windows.h>
34646         (getlogin_r): Implement for native Windows.
34647         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34648         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34649         via John W. Eaton <jwe@gnu.org>.
34650
34651 2010-01-09  Bruno Haible  <bruno@clisp.org>
34652
34653         getlogin_r: Small fixes.
34654         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34655         succeeds.
34656         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34657         before testing whether getlogin_r is declared. No need to set
34658         HAVE_DECL_GETLOGIN_R to 1.
34659         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34660
34661 2010-01-09  Bruno Haible  <bruno@clisp.org>
34662
34663         * lib/unistd.in.h (getlogin_r): Add comment.
34664
34665 2010-01-09  Bruno Haible  <bruno@clisp.org>
34666
34667         Tests for module 'getlogin_r'.
34668         * modules/getlogin_r-tests: New file.
34669         * tests/test-getlogin_r.c: New file.
34670
34671 2010-01-09  Jim Meyering  <meyering@redhat.com>
34672
34673         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34674         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34675         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34676
34677 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34678
34679         * lib/dup2.c (rpl_dup2): Improve comment.
34680
34681 2010-01-08  Eric Blake  <ebb9@byu.net>
34682
34683         maint.mk: allow packages to add makefile @@ exceptions
34684         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34685         (sc_makefile_check): Rename...
34686         (sc_makefile_at_at_check): ...to this, and use hook.
34687
34688         dup2: work around mingw bug
34689         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34690         Reported by Simon Josefsson.
34691
34692 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34693
34694         glob: Fix C++ compilation.
34695         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34696         C++.
34697
34698 2010-01-07  Bruno Haible  <bruno@clisp.org>
34699
34700         Fix indentation of wctype.in.h, broken since 2007-01-06.
34701         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34702
34703 2010-01-07  Bruno Haible  <bruno@clisp.org>
34704
34705         mbslen: Avoid collision with system function.
34706         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34707         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34708         * m4/mbslen.m4: New file.
34709         * modules/mbslen (Files): Add it.
34710         (configure.ac): Invoke gl_MBSLEN.
34711         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34712         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34713         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34714         via Ian Beckwith <ianb@erislabs.net>.
34715
34716 2010-01-07  Bruno Haible  <bruno@clisp.org>
34717
34718         dirent: Document the last fix.
34719         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34720
34721 2010-01-07  Bruno Haible  <bruno@clisp.org>
34722
34723         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34724         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34725         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34726         va_list are defined.
34727         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34728         Reported by Eric Blake.
34729
34730 2010-01-07  Bruno Haible  <bruno@clisp.org>
34731
34732         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34733         * modules/xlist (Depends-on): Add 'list',
34734         * modules/xoset (Depends-on): Add 'oset'.
34735         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34736
34737 2010-01-07  Bruno Haible  <bruno@clisp.org>
34738
34739         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34740         * doc/posix-functions/strncasecmp.texi: Likewise.
34741
34742 2010-01-07  Bruno Haible  <bruno@clisp.org>
34743
34744         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34745
34746 2010-01-07  John W. Eaton  <jwe@octave.org>
34747
34748         wctype: allow C++ use
34749         * lib/wctype.in.h: Add extern "C" block for C++.
34750
34751 2010-01-06  Eric Blake  <ebb9@byu.net>
34752
34753         maint.mk: detect incorrect GFDL usage
34754         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34755
34756 2010-01-06  Jim Meyering  <meyering@redhat.com>
34757         and Eric Blake  <ebb9@byu.net>
34758
34759         maint.mk: ignore multi-line copyright in NEWS
34760         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34761
34762 2010-01-06  Eric Blake  <ebb9@byu.net>
34763
34764         select: add missing dependency
34765         * modules/select-tests (Depends-on): Move sockets dependency...
34766         * modules/select (Depends-on): ...here.
34767         Reported by Ian Beckwith.
34768
34769         doc: regenerate INSTALL
34770         * doc/INSTALL: Reflect recent autoconf update.
34771         * doc/INSTALL.ISO: Likewise.
34772         * doc/INSTALL.UTF-8: Likewise.
34773
34774         pread: fix compilation on glibc
34775         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34776         Reported by Ralf Wildenhues.
34777
34778         dirent: fix test failure
34779         * lib/dirent.in.h (includes): Guarantee ino_t.
34780         Reported by Ralf Wildenhues.
34781
34782 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34783
34784         linkat, renameat: avoid bad free
34785         * lib/at-func2.c (at_func2): Fix typo.
34786         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34787
34788 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34789
34790         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34791         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34792         to avoid failure of symlink test later.
34793
34794 2010-01-06  Eric Blake  <ebb9@byu.net>
34795
34796         stdio, unistd: guarantee ssize_t
34797         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34798         2008 are exposed when needed.
34799         * lib/stdio.in.h (includes): Likewise.
34800         Reported by Ralf Wildenhues.
34801
34802 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34803
34804         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34805         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34806         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34807
34808 2010-01-06  Jim Meyering  <meyering@redhat.com>
34809
34810         readtokens: this module *does* require xalloc.h
34811         It uses only functions that were omitted by the old syntax-check rule.
34812         * lib/readtokens.c: Include "xalloc.h" once again.
34813         * modules/readtokens (Depends-on): Add xalloc.
34814         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34815
34816 2010-01-05  Eric Blake  <ebb9@byu.net>
34817
34818         maint: support 'make announcement' from a VPATH build
34819         * top/maint.mk (announcement): Look for correct NEWS file.
34820
34821 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34822
34823         utimens (fdutimens): ignore a negative FD, per contract
34824         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34825         when we have a valid file descriptor.  Otherwise, using a brand
34826         new glibc (with just-patched futimens that now fails with EBADF)
34827         would cause this function to fail with ENOSYS.
34828         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34829         See also http://bugzilla.redhat.com/552320.
34830
34831 2010-01-05  Eric Blake  <ebb9@byu.net>
34832
34833         strcase: document what it provides
34834         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34835         gnulib module.
34836         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34837         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34838
34839 2010-01-05  Jim Meyering  <meyering@redhat.com>
34840
34841         maint: remove useless inclusions of "xalloc.h"
34842         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34843         * lib/readtokens.c: Likewise.
34844         * lib/same.c: Likewise.
34845         * modules/getloadavg (Depends-on): Remove xalloc.
34846         * modules/readtokens: Likewise.
34847         * modules/same: Likewise.
34848
34849         maint.mk: include 4 more function names in alloca.h-checking regexp
34850         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34851         regexp.  Before, we would give a false-positive (saying alloca.h
34852         is included unnecessarily) when the only uses involved omitted symbols.
34853
34854         xalloc.h: use consistent formatting
34855         * lib/xalloc.h: Move declarations to start in the first column.
34856
34857 2010-01-05  Eric Blake  <ebb9@byu.net>
34858
34859         mkdir: avoid xalloc
34860         * lib/mkdir.c (includes): Drop unused header.
34861         Reported by John W. Eaton.
34862
34863 2010-01-04  Jim Meyering  <meyering@redhat.com>
34864
34865         nl_langinfo: avoid configure-time syntax error
34866         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34867         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34868         the empty string.  Don't let that provoke a shell syntax error.
34869
34870         regcomp, regexec, fnmatch: avoid array bounds read error
34871         * lib/regcomp.c (build_equiv_class): From glibc:
34872         Use only the low 24 bits of a findidx return value as an index
34873         into the weights array.  Patch by Ulrich Drepper:
34874         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34875         * lib/regexec.c (check_node_accept_bytes): Likewise.
34876         * lib/fnmatch_loop.c (FCT): Likewise.
34877
34878         regcomp: skip collseq lookup when there are no rules
34879         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34880         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34881
34882         regcomp: recognize ill-formed { } expressions
34883         * lib/regcomp.c (parse_dup_op): From glibc:
34884         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34885
34886         regcomp: fix typo in comment
34887         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34888         s/satisfy/satisfies/.
34889
34890         regcomp: sync from glibc: remove dead store
34891         * lib/regcomp.c (duplicate_node_closure): Remove useless
34892         search_duplicated_node call and dead store.
34893
34894         regcomp: sync from glibc; always use nl_langinfo
34895         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34896         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34897         * modules/regex (Depends-on): Add nl_langinfo.
34898
34899 2010-01-04  Eric Blake  <ebb9@byu.net>
34900
34901         fdopendir: fix configure test
34902         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34903
34904 2010-01-01  Bruno Haible  <bruno@clisp.org>
34905
34906         wchar: Remove unused configure check.
34907         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34908
34909 2010-01-01  Eric Blake  <ebb9@byu.net>
34910
34911         headers: make check of system header explicit
34912         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34913         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34914         ourselves.
34915         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34916         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34917         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34918         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34919         internals.
34920         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34921         missing.
34922         Suggested by Bruno Haible.
34923
34924 2010-01-01  Jim Meyering  <meyering@redhat.com>
34925
34926         ChangeLog: tweak to eliminate unnecessary copyright line
34927         * ChangeLog: Remove a copyright line that was mistakenly updated
34928         by today's update-copyright run.  Reported by Eric Blake.
34929
34930         test-update-copyright: don't let envvar setting cause test failure
34931         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34932
34933 2010-01-01  Bruno Haible  <bruno@clisp.org>
34934
34935         localename: Avoid gcc warning.
34936         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34937         function if it is not used.
34938
34939 2010-01-01  Jim Meyering  <meyering@redhat.com>
34940
34941         update nearly all FSF copyright year lists to include 2010
34942         Use the same procedure as for 2009, outlined in
34943         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34944
34945         version-etc: set COPYRIGHT_YEAR to 2010
34946         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34947
34948 2009-12-31  Eric Blake  <ebb9@byu.net>
34949
34950         doc: correct availability of cygwin 1.5.x getopt
34951         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34952         variables.
34953         * doc/posix-functions/opterr.texi (opterr): Likewise.
34954         * doc/posix-functions/optind.texi (optind): Likewise.
34955         * doc/posix-functions/optopt.texi (optopt): Likewise.
34956         * doc/posix-functions/tzname.texi (tzname): Likewise.
34957
34958         openat: update maintainer
34959         * modules/openat (Maintainer): Add myself.
34960
34961         utimens: avoid shadowing warning
34962         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34963         buffers into one, to avoid shadowing, as well as avoiding a
34964         redundant stat.
34965         Reported by Jim Meyering.
34966
34967         test-dup2: avoid compiler warning
34968         * tests/test-dup2.c (is_inheritable): Only define if used.
34969
34970 2010-01-01  Bruno Haible  <bruno@clisp.org>
34971
34972         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34973         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34974         defined, use wctomb instead of wcrtomb.
34975
34976 2010-01-01  Bruno Haible  <bruno@clisp.org>
34977
34978         iconv: Reject native Solaris iconv.
34979         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34980         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34981
34982 2009-12-31  Bruno Haible  <bruno@clisp.org>
34983
34984         * tests/test-signal.c (main): Remove test of 'SIG'.
34985
34986 2009-12-31  Bruno Haible  <bruno@clisp.org>
34987
34988         spawn: Fix incomplete fix.
34989         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34990         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34991         warnings for GNULIB_POSIXCHECK again.
34992         Reported by Eric Blake.
34993
34994 2009-12-31  Bruno Haible  <bruno@clisp.org>
34995
34996         Avoid namespace pollution on glibc systems.
34997         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34998         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34999         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35000         glibc systems.
35001
35002 2009-12-31  Bruno Haible  <bruno@clisp.org>
35003
35004         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35005         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35006         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35007         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35008         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35009         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35010         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35011
35012 2009-12-31  Bruno Haible  <bruno@clisp.org>
35013
35014         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35015         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35016         afterwards.
35017
35018 2009-12-31  Bruno Haible  <bruno@clisp.org>
35019
35020         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35021         SYS_UTSNAME_H.
35022
35023 2009-12-31  Bruno Haible  <bruno@clisp.org>
35024
35025         spawn: Fix misapplied patch.
35026         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35027         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35028         warnings for GNULIB_POSIXCHECK.
35029
35030 2009-12-31  Bruno Haible  <bruno@clisp.org>
35031
35032         times: Update after sys_times changed.
35033         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35034         * modules/times (Files): Add it.
35035         (configure.ac): Invoke gl_FUNC_TIMES.
35036
35037 2009-12-31  Bruno Haible  <bruno@clisp.org>
35038
35039         Use AC_C_INLINE where necessary.
35040         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35041         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35042         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35043         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35044         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35045         * m4/mbiter.m4 (gl_MBITER): Likewise.
35046         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35047         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35048         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35049         * modules/u64 (configure.ac): Likewise.
35050
35051 2009-12-31  Bruno Haible  <bruno@clisp.org>
35052
35053         Use AC_C_INLINE instead of module 'inline' where possible.
35054         * modules/inline (Description): Clarify purpose.
35055         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35056         * modules/count-one-bits (Depends-on): Remove inline.
35057         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35058         * modules/openat (Depends-on): Remove inline.
35059         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35060         instead of depending on module 'inline'.
35061         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35062         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35063         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35064         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35065         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35066         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35067         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35068         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35069         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35070         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35071         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35072         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35073         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35074         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35075         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35076         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35077         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35078         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35079         Likewise.
35080         * modules/unictype/property-ascii-hex-digit (Depends-on,
35081         configure.ac): Likewise.
35082         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35083         configure.ac): Likewise.
35084         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35085         configure.ac): Likewise.
35086         * modules/unictype/property-bidi-block-separator (Depends-on,
35087         configure.ac): Likewise.
35088         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35089         configure.ac): Likewise.
35090         * modules/unictype/property-bidi-common-separator (Depends-on,
35091         configure.ac): Likewise.
35092         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35093         Likewise.
35094         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35095         configure.ac): Likewise.
35096         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35097         configure.ac): Likewise.
35098         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35099         configure.ac): Likewise.
35100         * modules/unictype/property-bidi-european-digit (Depends-on,
35101         configure.ac): Likewise.
35102         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35103         configure.ac): Likewise.
35104         * modules/unictype/property-bidi-left-to-right (Depends-on,
35105         configure.ac): Likewise.
35106         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35107         configure.ac): Likewise.
35108         * modules/unictype/property-bidi-other-neutral (Depends-on,
35109         configure.ac): Likewise.
35110         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35111         Likewise.
35112         * modules/unictype/property-bidi-segment-separator (Depends-on,
35113         configure.ac): Likewise.
35114         * modules/unictype/property-bidi-whitespace (Depends-on,
35115         configure.ac): Likewise.
35116         * modules/unictype/property-combining (Depends-on, configure.ac):
35117         Likewise.
35118         * modules/unictype/property-composite (Depends-on, configure.ac):
35119         Likewise.
35120         * modules/unictype/property-currency-symbol (Depends-on,
35121         configure.ac): Likewise.
35122         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35123         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35124         Likewise.
35125         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35126         configure.ac): Likewise.
35127         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35128         Likewise.
35129         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35130         Likewise.
35131         * modules/unictype/property-extender (Depends-on, configure.ac):
35132         Likewise.
35133         * modules/unictype/property-format-control (Depends-on, configure.ac):
35134         Likewise.
35135         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35136         Likewise.
35137         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35138         Likewise.
35139         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35140         Likewise.
35141         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35142         Likewise.
35143         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35144         Likewise.
35145         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35146         Likewise.
35147         * modules/unictype/property-id-start (Depends-on, configure.ac):
35148         Likewise.
35149         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35150         Likewise.
35151         * modules/unictype/property-ids-binary-operator (Depends-on,
35152         configure.ac): Likewise.
35153         * modules/unictype/property-ids-trinary-operator (Depends-on,
35154         configure.ac): Likewise.
35155         * modules/unictype/property-ignorable-control (Depends-on,
35156         configure.ac): Likewise.
35157         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35158         Likewise.
35159         * modules/unictype/property-join-control (Depends-on, configure.ac):
35160         Likewise.
35161         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35162         Likewise.
35163         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35164         Likewise.
35165         * modules/unictype/property-logical-order-exception (Depends-on,
35166         configure.ac): Likewise.
35167         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35168         Likewise.
35169         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35170         * modules/unictype/property-non-break (Depends-on, configure.ac):
35171         Likewise.
35172         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35173         Likewise.
35174         * modules/unictype/property-numeric (Depends-on, configure.ac):
35175         Likewise.
35176         * modules/unictype/property-other-alphabetic (Depends-on,
35177         configure.ac): Likewise.
35178         * modules/unictype/property-other-default-ignorable-code-point
35179         (Depends-on, configure.ac): Likewise.
35180         * modules/unictype/property-other-grapheme-extend (Depends-on,
35181         configure.ac): Likewise.
35182         * modules/unictype/property-other-id-continue (Depends-on,
35183         configure.ac): Likewise.
35184         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35185         Likewise.
35186         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35187         Likewise.
35188         * modules/unictype/property-other-math (Depends-on, configure.ac):
35189         Likewise.
35190         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35191         Likewise.
35192         * modules/unictype/property-paired-punctuation (Depends-on,
35193         configure.ac): Likewise.
35194         * modules/unictype/property-paragraph-separator (Depends-on,
35195         configure.ac): Likewise.
35196         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35197         Likewise.
35198         * modules/unictype/property-pattern-white-space (Depends-on,
35199         configure.ac): Likewise.
35200         * modules/unictype/property-private-use (Depends-on, configure.ac):
35201         Likewise.
35202         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35203         Likewise.
35204         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35205         Likewise.
35206         * modules/unictype/property-radical (Depends-on, configure.ac):
35207         Likewise.
35208         * modules/unictype/property-sentence-terminal (Depends-on,
35209         configure.ac): Likewise.
35210         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35211         Likewise.
35212         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35213         * modules/unictype/property-terminal-punctuation (Depends-on,
35214         configure.ac): Likewise.
35215         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35216         Likewise.
35217         * modules/unictype/property-unassigned-code-value (Depends-on,
35218         configure.ac): Likewise.
35219         * modules/unictype/property-unified-ideograph (Depends-on,
35220         configure.ac): Likewise.
35221         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35222         Likewise.
35223         * modules/unictype/property-variation-selector (Depends-on,
35224         configure.ac): Likewise.
35225         * modules/unictype/property-white-space (Depends-on, configure.ac):
35226         Likewise.
35227         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35228         Likewise.
35229         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35230         Likewise.
35231         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35232         Likewise.
35233         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35234         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35235         Likewise.
35236
35237 2009-12-31  Bruno Haible  <bruno@clisp.org>
35238
35239         Remove unnecessary AC_C_INLINE invocation.
35240         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35241         since 2009-08-21.
35242
35243 2009-12-31  Jim Meyering  <meyering@redhat.com>
35244
35245         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35246         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35247         With this change, we can all remove the gpg_key_ID = ... definition
35248         from our respective cfg.mk files.
35249
35250         maint.mk: create announcement template in ~/, not in /tmp
35251         * top/maint.mk (emit_upload_commands): Adjust.
35252         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35253         Remove temporary file, .ci-msg.
35254
35255 2009-12-31  Eric Blake  <ebb9@byu.net>
35256
35257         link-warning: always build headers with link warnings
35258         * modules/arpa_inet (Makefile.am): Always build replacement
35259         header.
35260         * modules/ctype (Makefile.am): Likewise.
35261         * modules/dirent (Makefile.am): Likewise.
35262         * modules/inttypes (Makefile.am): Likewise.
35263         * modules/langinfo (Makefile.am): Likewise.
35264         * modules/locale (Makefile.am): Likewise.
35265         * modules/spawn (Makefile.am): Likewise.
35266         * modules/sys_file (Makefile.am): Likewise.
35267         * modules/sys_ioctl (Makefile.am): Likewise.
35268         * modules/sys_select (Makefile.am): Likewise.
35269         * modules/sys_socket (Makefile.am): Likewise.
35270         * modules/sys_times (Makefile.am): Likewise.
35271         * modules/sys_utsname (Makefile.am): Likewise.
35272         * modules/sys_wait (Makefile.am): Likewise.
35273         * modules/wchar (Makefile.am): Likewise.
35274         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35275         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35276         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35277         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35278         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35279         Likewise.
35280         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35281         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35282         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35283         Likewise.
35284         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35285         Likewise.
35286         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35287         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35288         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35289         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35290         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35291         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35292         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35293         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35294         (gl_WCHAR_H_DEFAULTS): Likewise.
35295
35296 2009-12-31  Eric Blake  <ebb9@byu.net>
35297
35298         signal, spawn: use link warnings
35299         * lib/signal.in.h (sigset_t): Make unconditional.
35300         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35301         (sigpending, sigprocmask, sigaction): Add link warnings.
35302         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35303         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35304         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35305         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35306         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35307         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35308         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35309         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35310         (posix_spawn_file_actions_destroy)
35311         (posix_spawn_file_actions_addopen)
35312         (posix_spawn_file_actions_addclose)
35313         (posix_spawn_file_actions_adddup2): Likewise.
35314         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35315         * tests/test-signal.c (main): Enhance test.
35316
35317         spawn: improve wrapper support
35318         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35319         (gl_SPAWN_H_DEFAULTS): New defaults.
35320         * modules/spawn (Makefile.am): Substitute them.
35321         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35322         Only declare if missing or broken.
35323
35324         sys_times, sys_utsname: use include_next
35325         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35326         header.
35327         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35328         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35329         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35330         * modules/sys_times (Depends-on): Add include_next.
35331         (Makefile.am): Substitute additional values.
35332         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35333         * lib/sys_times.in.h (includes): Include native header, if
35334         available.
35335         * lib/sys_utsname.in.h (includes): Likewise.
35336         * tests/test-sys_times.c (main): Enhance test.
35337
35338         fdutimensat: revert prior patch
35339         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35340         utimens.h.
35341         Reported by Bruno Haible.
35342
35343 2009-12-30  Eric Blake  <ebb9@byu.net>
35344
35345         sys_wait: drop link-warning dependency
35346         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35347         link-warning efforts.
35348         * lib/sys_wait.in.h: Likewise.
35349
35350         fdutimensat: remove bogus dependency
35351         * modules/fdutimensat (Depends-on): Drop inline.
35352
35353         unistd: fix typo
35354         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35355
35356 2009-12-30  Bruno Haible  <bruno@clisp.org>
35357
35358         Fix compilation error with Solaris cc.
35359         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35360         * lib/unicase/u16-is-invariant.c: Likewise.
35361         * lib/unicase/u32-is-invariant.c: Likewise.
35362         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35363
35364 2009-12-30  Bruno Haible  <bruno@clisp.org>
35365
35366         Fix test crash.
35367         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35368         locales.
35369         Reported by Simon Josefsson <simon@josefsson.org>.
35370
35371 2009-12-30  Bruno Haible  <bruno@clisp.org>
35372
35373         Fix compilation error on most platforms.
35374         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35375         Reported by Simon Josefsson <simon@josefsson.org>
35376         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35377
35378 2009-12-30  Eric Blake  <ebb9@byu.net>
35379
35380         futimens, utimensat: work around ntfs-3g bug
35381         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35382         a ctime bug is present, and expand workaround to cover ntfs-3g.
35383         * lib/utimens.c (fdutimens, lutimens): Likewise.
35384         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35385         (validate_timespec): Adjust return value.
35386         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35387         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35388         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35389
35390 2009-12-29  Eric Blake  <ebb9@byu.net>
35391
35392         link-warning: make usage consistent
35393         * modules/ctype (Depends-on): Add link-warning.
35394         (Makefile.am): Update rules accordingly.
35395         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35396         * modules/locale (Depends-on, Makefile.am): Likewise.
35397         * modules/sys_file (Makefile.am): Likewise.
35398         * modules/getopt-posix (Makefile.am): Delete unused link warning
35399         efforts.
35400         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35401         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35402         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35403         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35404
35405         stdio: remove unused variables
35406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35407         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35408         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35409
35410         tests: test more substitute headers
35411         * modules/ctype-tests: New file.
35412         * modules/dirent-tests: Likewise.
35413         * modules/spawn-tests: Likewise.
35414         * modules/sys_file-tests: Likewise.
35415         * modules/sys_ioctl-tests: Likewise.
35416         * modules/sys_wait-tests: Likewise.
35417         * tests/test-ctype.c: Likewise.
35418         * tests/test-dirent.c: Likewise.
35419         * tests/test-spawn.c: Likewise.
35420         * tests/test-sys_file.c: Likewise.
35421         * tests/test-sys_ioctl.c: Likewise.
35422         * tests/test-sys_wait.c: Likewise.
35423         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35424         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35425         whether or not flock is in use.
35426
35427         tests: remove License section from module
35428         * modules/arpa_inet-tests: Remove unneeded section.
35429         * modules/byteswap-tests: Likewise.
35430         * modules/ceilf-tests: Likewise.
35431         * modules/ceill-tests: Likewise.
35432         * modules/crypto/des-tests: Likewise.
35433         * modules/crypto/gc-arcfour-tests: Likewise.
35434         * modules/crypto/gc-arctwo-tests: Likewise.
35435         * modules/crypto/gc-des-tests: Likewise.
35436         * modules/crypto/gc-hmac-md5-tests: Likewise.
35437         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35438         * modules/crypto/gc-md2-tests: Likewise.
35439         * modules/crypto/gc-md4-tests: Likewise.
35440         * modules/crypto/gc-md5-tests: Likewise.
35441         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35442         * modules/crypto/gc-rijndael-tests: Likewise.
35443         * modules/crypto/gc-sha1-tests: Likewise.
35444         * modules/crypto/gc-tests: Likewise.
35445         * modules/crypto/md2-tests: Likewise.
35446         * modules/crypto/md4-tests: Likewise.
35447         * modules/fcntl-h-tests: Likewise.
35448         * modules/floorf-tests: Likewise.
35449         * modules/floorl-tests: Likewise.
35450         * modules/frexp-nolibm-tests: Likewise.
35451         * modules/frexp-tests: Likewise.
35452         * modules/frexpl-nolibm-tests: Likewise.
35453         * modules/frexpl-tests: Likewise.
35454         * modules/getaddrinfo-tests: Likewise.
35455         * modules/inttypes-tests: Likewise.
35456         * modules/isfinite-tests: Likewise.
35457         * modules/isinf-tests: Likewise.
35458         * modules/ldexpl-tests: Likewise.
35459         * modules/locale-tests: Likewise.
35460         * modules/math-tests: Likewise.
35461         * modules/netdb-tests: Likewise.
35462         * modules/netinet_in-tests: Likewise.
35463         * modules/printf-frexp-tests: Likewise.
35464         * modules/printf-frexpl-tests: Likewise.
35465         * modules/priv-set-tests: Likewise.
35466         * modules/random_r-tests: Likewise.
35467         * modules/round-tests: Likewise.
35468         * modules/roundf-tests: Likewise.
35469         * modules/roundl-tests: Likewise.
35470         * modules/search-tests: Likewise.
35471         * modules/select-tests: Likewise.
35472         * modules/signal-tests: Likewise.
35473         * modules/stdbool-tests: Likewise.
35474         * modules/stddef-tests: Likewise.
35475         * modules/stdint-tests: Likewise.
35476         * modules/stdio-tests: Likewise.
35477         * modules/stdlib-tests: Likewise.
35478         * modules/string-tests: Likewise.
35479         * modules/strings-tests: Likewise.
35480         * modules/sys_select-tests: Likewise.
35481         * modules/sys_socket-tests: Likewise.
35482         * modules/sys_stat-tests: Likewise.
35483         * modules/sys_time-tests: Likewise.
35484         * modules/sys_utsname-tests: Likewise.
35485         * modules/sysexits-tests: Likewise.
35486         * modules/time-tests: Likewise.
35487         * modules/trunc-tests: Likewise.
35488         * modules/truncf-tests: Likewise.
35489         * modules/truncl-tests: Likewise.
35490         * modules/tsearch-tests: Likewise.
35491         * modules/unistd-tests: Likewise.
35492         * modules/wchar-tests: Likewise.
35493         * modules/wctype-tests: Likewise.
35494
35495         tests: fix license on several tests
35496         * tests/test-des.c: Update to GPLv3+.
35497         * tests/test-flock.c: Likewise.
35498         * tests/test-fsync.c: Likewise.
35499         * tests/test-futimens.h: Likewise.
35500         * tests/test-gc-arcfour.c: Likewise.
35501         * tests/test-gc-arctwo.c: Likewise.
35502         * tests/test-gc-des.c: Likewise.
35503         * tests/test-gc-hmac-md5.c: Likewise.
35504         * tests/test-gc-hmac-sha1.c: Likewise.
35505         * tests/test-gc-md2.c: Likewise.
35506         * tests/test-gc-md4.c: Likewise.
35507         * tests/test-gc-md5.c: Likewise.
35508         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35509         * tests/test-gc-rijndael.c: Likewise.
35510         * tests/test-gc-sha1.c: Likewise.
35511         * tests/test-gc.c: Likewise.
35512         * tests/test-getcwd.c: Likewise.
35513         * tests/test-link.c: Likewise.
35514         * tests/test-link.h: Likewise.
35515         * tests/test-lutimens.h: Likewise.
35516         * tests/test-md2.c: Likewise.
35517         * tests/test-md4.c: Likewise.
35518         * tests/test-mkdir.h: Likewise.
35519         * tests/test-rename.c: Likewise.
35520         * tests/test-rename.h: Likewise.
35521         * tests/test-safe-alloc.c: Likewise.
35522         * tests/test-utimens-common.h: Likewise.
35523         * tests/test-utimens.h: Likewise.
35524
35525         maint: sync license texts
35526         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35527         * doc/gpl-3.0.texi: Revert copyright year update.
35528         * doc/lgpl-3.0.texi: Likewise.
35529
35530 2009-12-29  Jim Meyering  <meyering@redhat.com>
35531
35532         update nearly all FSF copyright year lists to include 2009
35533         The files named by the following are exempted:
35534             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35535               test -f "$dst" && { echo "$dst"; continue; }
35536               test -d "$dst" || continue
35537               echo "$dst"/$(basename "$src")
35538             done > exempt
35539             git ls-files tests/unictype >> exempt
35540         In the remaining files, convert to all-interval notation if
35541         - there is already at least one year interval like 2000-2003
35542         - the file is maintained by me
35543         - the file is in lib/uni*/, where that style already prevails
35544         Otherwise, use update-copyright's default.
35545
35546 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35547         and Eric Blake  <ebb9@byu.net>
35548
35549         tests: don't require debug system() to pass
35550         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35551         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35552         * tests/test-unlink.h (test_unlink_func): Likewise.
35553         * tests/test-fstatat.c (main): ...into callers.
35554         * tests/test-lstat.c (main): Likewise.
35555         * tests/test-rmdir.c (main): Likewise.
35556         * tests/test-unlink.c (main): Likewise.
35557         * tests/test-unlinkat.c (main): Likewise.
35558         * tests/test-areadlink-with-size.c (main): Don't require a
35559         debug-only system call to pass, aiding cross-testing to mingw.
35560         * tests/test-areadlink.c (main): Likewise.
35561         * tests/test-areadlinkat-with-size.c (main): Likewise.
35562         * tests/test-areadlinkat.c (main): Likewise.
35563         * tests/test-canonicalize-lgpl.c (main): Likewise.
35564         * tests/test-canonicalize.c (main): Likewise.
35565         * tests/test-chown.c (main): Likewise.
35566         * tests/test-fchownat.c (main): Likewise.
35567         * tests/test-lchown.c (main): Likewise.
35568         * tests/test-fdutimensat.c (main): Likewise.
35569         * tests/test-futimens.c (main): Likewise.
35570         * tests/test-link.c (main): Likewise.
35571         * tests/test-linkat.c (main): Likewise.
35572         * tests/test-mkdir.c (main): Likewise.
35573         * tests/test-mkdirat.c (main): Likewise.
35574         * tests/test-mkfifo.c (main): Likewise.
35575         * tests/test-mkfifoat.c (main): Likewise.
35576         * tests/test-mknod.c (main): Likewise.
35577         * tests/test-readlink.c (main): Likewise.
35578         * tests/test-remove.c (main): Likewise.
35579         * tests/test-rename.c (main): Likewise.
35580         * tests/test-renameat.c (main): Likewise.
35581         * tests/test-symlink.c (main): Likewise.
35582         * tests/test-symlinkat.c (main): Likewise.
35583         * tests/test-utimens.c (main): Likewise.
35584         * tests/test-utimensat.c (main): Likewise.
35585
35586 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35587
35588         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35589         on $(UNUSED_PARAMETER_H) to avoid build failure.
35590
35591 2009-12-28  Jim Meyering  <meyering@redhat.com>
35592
35593         update-copyright: you may specify a max. line length other than 72
35594         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35595
35596         maint: use consistent FSF copyright line syntax
35597         * lib/posixtm.c: Add missing comma in FSF copyright line.
35598         * lib/posixtm.h: Likewise.
35599         * lib/getugroups.c: Add missing ", Inc.".
35600
35601         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35602         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35603         FSF copyright line.  Remove trailing blanks.
35604
35605 2009-12-28  Eric Blake  <ebb9@byu.net>
35606
35607         test-dup2: reduce dependencies
35608         * modules/cloexec (Configure.ac): Set witness.
35609         * modules/dup2-tests (Depends-on): Drop cloexec.
35610         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35611         not present.
35612         Suggested by Bruno Haible.
35613
35614 2009-12-26  Bruno Haible  <bruno@clisp.org>
35615
35616         Remove an unneeded dependency.
35617         * modules/fseterr (Depends-on): Remove dup2.
35618
35619 2009-12-26  Eric Blake  <ebb9@byu.net>
35620
35621         tests: use macros.h in more places
35622         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35623         (ASSERT_STREAM): Provide default of stderr.
35624         * tests/test-dirent-safer.c: Include macros.h, using alternate
35625         stream for assertions.
35626         * tests/test-dup-safer.c: Likewise.
35627         * tests/test-freopen-safer.c: Likewise.
35628         * tests/test-getopt.c: Likewise.
35629         * tests/test-openat-safer.c: Likewise.
35630         * tests/test-pipe.c: Likewise.
35631         * tests/test-popen-safer.c: Likewise.
35632         * modules/dirent-safer-tests (Files): Include macros.h.
35633         * modules/unistd-safer-tests (Files): Likewise.
35634         * modules/freopen-safer-tests (Files): Likewise.
35635         * modules/getopt-posix-tests (Files): Likewise.
35636         * modules/openat-safer-tests (Files): Likewise.
35637         * modules/pipe-tests (Files): Likewise.
35638
35639 2009-12-26  Bruno Haible  <bruno@clisp.org>
35640
35641         javacomp: Portability fix.
35642         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35643         that it also works on Solaris.
35644
35645 2009-12-26  Bruno Haible  <bruno@clisp.org>
35646
35647         localename: Fix storage allocation of gl_locale_name_thread's result.
35648         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35649         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35650         all platforms that have 'uselocale'.
35651         (gl_locale_name_thread_unsafe): New function, extracted from
35652         gl_locale_name_thread.
35653         (gl_locale_name_thread): Call struniq on all platforms that have
35654         'uselocale'.
35655         * tests/test-localename.c (test_locale_name_thread): Check that the
35656         resulting strings are permanently allocated.
35657         * modules/localename-tests (Depends-on): Add strdup.
35658
35659 2009-12-26  Bruno Haible  <bruno@clisp.org>
35660
35661         * tests/test-localename.c (categories): Fill in the strings.
35662
35663 2009-12-26  Jim Meyering  <meyering@redhat.com>
35664
35665         isdir: complete the removal of m4/isdir.m4
35666         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35667
35668         isdir: clean up, since at least grep still uses it
35669         * lib/isdir.c: Include "isdir.h".
35670         (S_ISDIR): Remove now-unneeded definition.
35671         * modules/isdir (Files): Add lib/isdir.h.
35672         * lib/isdir.h: New file, with declaration.
35673         * m4/isdir.m4: Remove file -- unneeded.
35674
35675 2009-12-25  Bruno Haible  <bruno@clisp.org>
35676
35677         selinux-h: Make generated .h files standalone.
35678         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35679         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35680         * lib/se-selinux.in.h: Likewise.
35681         * modules/selinux-h (Depends-on): Add unused-parameter.
35682         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35683         selinux/selinux.h and selinux/context.h.
35684         Suggested by Eric Blake.
35685
35686 2009-12-25  Bruno Haible  <bruno@clisp.org>
35687
35688         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35689         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35690         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35691         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35692         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35693
35694 2009-12-24  Bruno Haible  <bruno@clisp.org>
35695
35696         openat: Fix warning.
35697         * lib/openat-proc.c: Include <unistd.h>.
35698
35699 2009-12-24  Bruno Haible  <bruno@clisp.org>
35700
35701         New module 'unused-parameter'.
35702         * build-aux/unused-parameter.h: New file, extracted from earlier
35703         gnulib-common.m4.
35704         * modules/unused-parameter: New file.
35705         * lib/unistr.h: Include unused-parameter.h.
35706         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35707         _GL_UNUSED.
35708         * modules/unistr/base (Depends-on): Add unused-parameter.
35709
35710 2009-12-24  Bruno Haible  <bruno@clisp.org>
35711
35712         Add missing dependencies to 'extensions' module.
35713         * m4/extensions.m4: Add comment.
35714         * modules/accept4 (Depends-on): Add extensions.
35715         * modules/dup3 (Depends-on): Likewise.
35716         * modules/fcntl (Depends-on): Likewise.
35717         * modules/futimens (Depends-on): Likewise.
35718         * modules/mknod (Depends-on): Likewise.
35719         * modules/pipe2 (Depends-on): Likewise.
35720         * modules/stat-time (Depends-on): Likewise.
35721         * modules/strcasestr-simple (Depends-on): Likewise.
35722         * modules/strsignal (Depends-on): Likewise.
35723         * modules/utimensat (Depends-on): Likewise.
35724         * modules/localcharset (Depends-on): Likewise. Needed because of
35725         gl_FCNTL_O_FLAGS.
35726         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35727         AC_TYPE_MBSTATE_T.
35728         * modules/wcsnrtombs (Depends-on): Likewise.
35729         * modules/wcsrtombs (Depends-on): Likewise.
35730
35731 2009-12-24  Bruno Haible  <bruno@clisp.org>
35732
35733         binary-io: Avoid gcc warning due to SET_BINARY.
35734         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35735         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35736
35737 2009-12-24  Bruno Haible  <bruno@clisp.org>
35738
35739         Avoid future namespace pollution on glibc systems.
35740         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35741         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35742         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35743         glibc systems.
35744
35745 2009-12-24  Bruno Haible  <bruno@clisp.org>
35746
35747         Refactor common macros used in tests.
35748         * tests/macros.h: New file.
35749         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35750         and/or <stdlib.h>, if appropriate.
35751         (ASSERT, SIZEOF): Remove macros.
35752         * tests/test-areadlink-with-size.c: Likewise.
35753         * tests/test-areadlinkat.c: Likewise.
35754         * tests/test-areadlinkat-with-size.c: Likewise.
35755         * tests/test-argmatch.c: Likewise.
35756         * tests/test-argv-iter.c: Likewise.
35757         * tests/test-array-mergesort.c: Likewise.
35758         * tests/test-array_list.c: Likewise.
35759         * tests/test-array_oset.c: Likewise.
35760         * tests/test-avltree_list.c: Likewise.
35761         * tests/test-avltree_oset.c: Likewise.
35762         * tests/test-avltreehash_list.c: Likewise.
35763         * tests/test-base64.c: Likewise.
35764         * tests/test-binary-io.c: Likewise.
35765         * tests/test-bitrotate.c: Likewise.
35766         * tests/test-btowc.c: Likewise.
35767         * tests/test-byteswap.c: Likewise.
35768         * tests/test-c-ctype.c: Likewise.
35769         * tests/test-c-stack.c: Likewise.
35770         * tests/test-c-strcasecmp.c: Likewise.
35771         * tests/test-c-strcasestr.c: Likewise.
35772         * tests/test-c-strncasecmp.c: Likewise.
35773         * tests/test-c-strstr.c: Likewise.
35774         * tests/test-canonicalize-lgpl.c: Likewise.
35775         * tests/test-canonicalize.c: Likewise.
35776         * tests/test-carray_list.c: Likewise.
35777         * tests/test-ceilf1.c: Likewise.
35778         * tests/test-ceilf2.c: Likewise.
35779         * tests/test-ceill.c: Likewise.
35780         * tests/test-chown.c: Likewise.
35781         * tests/test-cloexec.c: Likewise.
35782         * tests/test-copy-acl.c: Likewise.
35783         * tests/test-copy-file.c: Likewise.
35784         * tests/test-count-one-bits.c: Likewise.
35785         * tests/test-dprintf-posix.c: Likewise.
35786         * tests/test-dup2.c: Likewise.
35787         * tests/test-dup3.c: Likewise.
35788         * tests/test-duplocale.c: Likewise.
35789         * tests/test-fbufmode.c: Likewise.
35790         * tests/test-fchdir.c: Likewise.
35791         * tests/test-fchownat.c: Likewise.
35792         * tests/test-fcntl-safer.c: Likewise.
35793         * tests/test-fcntl.c: Likewise.
35794         * tests/test-fdopendir.c: Likewise.
35795         * tests/test-fdutimensat.c: Likewise.
35796         * tests/test-fflush2.c: Likewise.
35797         * tests/test-file-has-acl.c: Likewise.
35798         * tests/test-filevercmp.c: Likewise.
35799         * tests/test-flock.c: Likewise.
35800         * tests/test-floorf1.c: Likewise.
35801         * tests/test-floorf2.c: Likewise.
35802         * tests/test-floorl.c: Likewise.
35803         * tests/test-fnmatch.c: Likewise.
35804         * tests/test-fopen.h: Likewise.
35805         * tests/test-fpending.c: Likewise.
35806         * tests/test-fprintf-posix.c: Likewise.
35807         * tests/test-fpurge.c: Likewise.
35808         * tests/test-freadable.c: Likewise.
35809         * tests/test-freadahead.c: Likewise.
35810         * tests/test-freading.c: Likewise.
35811         * tests/test-freadptr.c: Likewise.
35812         * tests/test-freadptr2.c: Likewise.
35813         * tests/test-freadseek.c: Likewise.
35814         * tests/test-freopen.c: Likewise.
35815         * tests/test-frexp.c: Likewise.
35816         * tests/test-frexpl.c: Likewise.
35817         * tests/test-fseek.c: Likewise.
35818         * tests/test-fseeko.c: Likewise.
35819         * tests/test-fstatat.c: Likewise.
35820         * tests/test-fstrcmp.c: Likewise.
35821         * tests/test-fsync.c: Likewise.
35822         * tests/test-ftell.c: Likewise.
35823         * tests/test-ftello.c: Likewise.
35824         * tests/test-func.c: Likewise.
35825         * tests/test-futimens.c: Likewise.
35826         * tests/test-fwritable.c: Likewise.
35827         * tests/test-fwriting.c: Likewise.
35828         * tests/test-getcwd.c: Likewise.
35829         * tests/test-getdate.c: Likewise.
35830         * tests/test-getdelim.c: Likewise.
35831         * tests/test-getdtablesize.c: Likewise.
35832         * tests/test-getgroups.c: Likewise.
35833         * tests/test-getline.c: Likewise.
35834         * tests/test-getndelim2.c: Likewise.
35835         * tests/test-glob.c: Likewise.
35836         * tests/test-hash.c: Likewise.
35837         * tests/test-i-ring.c: Likewise.
35838         * tests/test-iconv-utf.c: Likewise.
35839         * tests/test-iconv.c: Likewise.
35840         * tests/test-idpriv-drop.c: Likewise.
35841         * tests/test-idpriv-droptemp.c: Likewise.
35842         * tests/test-inet_ntop.c: Likewise.
35843         * tests/test-inet_pton.c: Likewise.
35844         * tests/test-isblank.c: Likewise.
35845         * tests/test-isfinite.c: Likewise.
35846         * tests/test-isinf.c: Likewise.
35847         * tests/test-isnan.c: Likewise.
35848         * tests/test-isnand.h: Likewise.
35849         * tests/test-isnanf.h: Likewise.
35850         * tests/test-isnanl.h: Likewise.
35851         * tests/test-lchown.c: Likewise.
35852         * tests/test-ldexpl.c: Likewise.
35853         * tests/test-link.c: Likewise.
35854         * tests/test-linkat.c: Likewise.
35855         * tests/test-linked_list.c: Likewise.
35856         * tests/test-linkedhash_list.c: Likewise.
35857         * tests/test-localename.c: Likewise.
35858         * tests/test-lseek.c: Likewise.
35859         * tests/test-lstat.c: Likewise.
35860         * tests/test-mbmemcasecmp.c: Likewise.
35861         * tests/test-mbmemcasecoll.c: Likewise.
35862         * tests/test-mbrtowc.c: Likewise.
35863         * tests/test-mbscasecmp.c: Likewise.
35864         * tests/test-mbscasestr1.c: Likewise.
35865         * tests/test-mbscasestr2.c: Likewise.
35866         * tests/test-mbscasestr3.c: Likewise.
35867         * tests/test-mbscasestr4.c: Likewise.
35868         * tests/test-mbschr.c: Likewise.
35869         * tests/test-mbscspn.c: Likewise.
35870         * tests/test-mbsinit.c: Likewise.
35871         * tests/test-mbsncasecmp.c: Likewise.
35872         * tests/test-mbsnrtowcs.c: Likewise.
35873         * tests/test-mbspbrk.c: Likewise.
35874         * tests/test-mbspcasecmp.c: Likewise.
35875         * tests/test-mbsrchr.c: Likewise.
35876         * tests/test-mbsrtowcs.c: Likewise.
35877         * tests/test-mbsspn.c: Likewise.
35878         * tests/test-mbsstr1.c: Likewise.
35879         * tests/test-mbsstr2.c: Likewise.
35880         * tests/test-mbsstr3.c: Likewise.
35881         * tests/test-memchr.c: Likewise.
35882         * tests/test-memchr2.c: Likewise.
35883         * tests/test-memcmp.c: Likewise.
35884         * tests/test-memmem.c: Likewise.
35885         * tests/test-memrchr.c: Likewise.
35886         * tests/test-mkdir.c: Likewise.
35887         * tests/test-mkdirat.c: Likewise.
35888         * tests/test-mkfifo.c: Likewise.
35889         * tests/test-mkfifoat.c: Likewise.
35890         * tests/test-mknod.c: Likewise.
35891         * tests/test-nanosleep.c: Likewise.
35892         * tests/test-nl_langinfo.c: Likewise.
35893         * tests/test-obstack-printf.c: Likewise.
35894         * tests/test-open.c: Likewise.
35895         * tests/test-openat.c: Likewise.
35896         * tests/test-pipe-filter-gi1.c: Likewise.
35897         * tests/test-pipe-filter-gi2-main.c: Likewise.
35898         * tests/test-pipe-filter-ii1.c: Likewise.
35899         * tests/test-pipe-filter-ii2-main.c: Likewise.
35900         * tests/test-pipe2.c: Likewise.
35901         * tests/test-popen.h: Likewise.
35902         * tests/test-posixtm.c: Likewise.
35903         * tests/test-pread.c: Likewise.
35904         * tests/test-printf-frexp.c: Likewise.
35905         * tests/test-printf-frexpl.c: Likewise.
35906         * tests/test-printf-posix.c: Likewise.
35907         * tests/test-priv-set.c: Likewise.
35908         * tests/test-quotearg.c: Likewise.
35909         * tests/test-random_r.c: Likewise.
35910         * tests/test-rawmemchr.c: Likewise.
35911         * tests/test-rbtree_list.c: Likewise.
35912         * tests/test-rbtree_oset.c: Likewise.
35913         * tests/test-rbtreehash_list.c: Likewise.
35914         * tests/test-readlink.c: Likewise.
35915         * tests/test-remove.c: Likewise.
35916         * tests/test-rename.c: Likewise.
35917         * tests/test-renameat.c: Likewise.
35918         * tests/test-rmdir.c: Likewise.
35919         * tests/test-round1.c: Likewise.
35920         * tests/test-roundf1.c: Likewise.
35921         * tests/test-roundl.c: Likewise.
35922         * tests/test-safe-alloc.c: Likewise.
35923         * tests/test-sameacls.c: Likewise.
35924         * tests/test-set-mode-acl.c: Likewise.
35925         * tests/test-setenv.c: Likewise.
35926         * tests/test-sigaction.c: Likewise.
35927         * tests/test-signbit.c: Likewise.
35928         * tests/test-sleep.c: Likewise.
35929         * tests/test-snprintf-posix.c: Likewise.
35930         * tests/test-snprintf.c: Likewise.
35931         * tests/test-sprintf-posix.c: Likewise.
35932         * tests/test-stat-time.c: Likewise.
35933         * tests/test-stat.c: Likewise.
35934         * tests/test-strcasestr.c: Likewise.
35935         * tests/test-strchrnul.c: Likewise.
35936         * tests/test-strerror.c: Likewise.
35937         * tests/test-striconv.c: Likewise.
35938         * tests/test-striconveh.c: Likewise.
35939         * tests/test-striconveha.c: Likewise.
35940         * tests/test-strsignal.c: Likewise.
35941         * tests/test-strstr.c: Likewise.
35942         * tests/test-strtod.c: Likewise.
35943         * tests/test-strverscmp.c: Likewise.
35944         * tests/test-symlink.c: Likewise.
35945         * tests/test-symlinkat.c: Likewise.
35946         * tests/test-trunc1.c: Likewise.
35947         * tests/test-trunc2.c: Likewise.
35948         * tests/test-truncf1.c: Likewise.
35949         * tests/test-truncf2.c: Likewise.
35950         * tests/test-truncl.c: Likewise.
35951         * tests/test-uname.c: Likewise.
35952         * tests/test-unlink.c: Likewise.
35953         * tests/test-unlinkat.c: Likewise.
35954         * tests/test-unsetenv.c: Likewise.
35955         * tests/test-usleep.c: Likewise.
35956         * tests/test-utimens.c: Likewise.
35957         * tests/test-utimensat.c: Likewise.
35958         * tests/test-vasnprintf-posix.c: Likewise.
35959         * tests/test-vasnprintf-posix2.c: Likewise.
35960         * tests/test-vasnprintf.c: Likewise.
35961         * tests/test-vasprintf-posix.c: Likewise.
35962         * tests/test-vasprintf.c: Likewise.
35963         * tests/test-vdprintf-posix.c: Likewise.
35964         * tests/test-vfprintf-posix.c: Likewise.
35965         * tests/test-vprintf-posix.c: Likewise.
35966         * tests/test-vsnprintf-posix.c: Likewise.
35967         * tests/test-vsnprintf.c: Likewise.
35968         * tests/test-vsprintf-posix.c: Likewise.
35969         * tests/test-wcrtomb.c: Likewise.
35970         * tests/test-wcsnrtombs.c: Likewise.
35971         * tests/test-wcsrtombs.c: Likewise.
35972         * tests/test-wctype.c: Likewise.
35973         * tests/test-wcwidth.c: Likewise.
35974         * tests/test-xfprintf-posix.c: Likewise.
35975         * tests/test-xmemdup0.c: Likewise.
35976         * tests/test-xprintf-posix.c: Likewise.
35977         * tests/test-xvasprintf.c: Likewise.
35978         * tests/unicase/test-locale-language.c: Likewise.
35979         * tests/unicase/test-mapping-part1.h: Likewise.
35980         * tests/unicase/test-predicate-part1.h: Likewise.
35981         * tests/unicase/test-u8-casecmp.c: Likewise.
35982         * tests/unicase/test-u8-casecoll.c: Likewise.
35983         * tests/unicase/test-u8-casefold.c: Likewise.
35984         * tests/unicase/test-u8-is-cased.c: Likewise.
35985         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35986         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35987         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35988         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35989         * tests/unicase/test-u8-tolower.c: Likewise.
35990         * tests/unicase/test-u8-totitle.c: Likewise.
35991         * tests/unicase/test-u8-toupper.c: Likewise.
35992         * tests/unicase/test-u16-casecmp.c: Likewise.
35993         * tests/unicase/test-u16-casecoll.c: Likewise.
35994         * tests/unicase/test-u16-casefold.c: Likewise.
35995         * tests/unicase/test-u16-is-cased.c: Likewise.
35996         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35997         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35998         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35999         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36000         * tests/unicase/test-u16-tolower.c: Likewise.
36001         * tests/unicase/test-u16-totitle.c: Likewise.
36002         * tests/unicase/test-u16-toupper.c: Likewise.
36003         * tests/unicase/test-u32-casecmp.c: Likewise.
36004         * tests/unicase/test-u32-casecoll.c: Likewise.
36005         * tests/unicase/test-u32-casefold.c: Likewise.
36006         * tests/unicase/test-u32-is-cased.c: Likewise.
36007         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36008         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36009         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36010         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36011         * tests/unicase/test-u32-tolower.c: Likewise.
36012         * tests/unicase/test-u32-totitle.c: Likewise.
36013         * tests/unicase/test-u32-toupper.c: Likewise.
36014         * tests/unicase/test-ulc-casecmp.c: Likewise.
36015         * tests/unicase/test-ulc-casecoll.c: Likewise.
36016         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36017         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36018         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36019         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36020         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36021         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36022         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36023         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36024         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36025         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36026         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36027         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36028         * tests/unictype/test-bidi_byname.c: Likewise.
36029         * tests/unictype/test-bidi_name.c: Likewise.
36030         * tests/unictype/test-bidi_of.c: Likewise.
36031         * tests/unictype/test-bidi_test.c: Likewise.
36032         * tests/unictype/test-block_list.c: Likewise.
36033         * tests/unictype/test-block_of.c: Likewise.
36034         * tests/unictype/test-block_test.c: Likewise.
36035         * tests/unictype/test-categ_and.c: Likewise.
36036         * tests/unictype/test-categ_and_not.c: Likewise.
36037         * tests/unictype/test-categ_byname.c: Likewise.
36038         * tests/unictype/test-categ_name.c: Likewise.
36039         * tests/unictype/test-categ_none.c: Likewise.
36040         * tests/unictype/test-categ_of.c: Likewise.
36041         * tests/unictype/test-categ_or.c: Likewise.
36042         * tests/unictype/test-categ_test_withtable.c: Likewise.
36043         * tests/unictype/test-combining.c: Likewise.
36044         * tests/unictype/test-decdigit.c: Likewise.
36045         * tests/unictype/test-digit.c: Likewise.
36046         * tests/unictype/test-mirror.c: Likewise.
36047         * tests/unictype/test-numeric.c: Likewise.
36048         * tests/unictype/test-pr_byname.c: Likewise.
36049         * tests/unictype/test-pr_test.c: Likewise.
36050         * tests/unictype/test-predicate-part1.h: Likewise.
36051         * tests/unictype/test-scripts.c: Likewise.
36052         * tests/unictype/test-sy_c_ident.c: Likewise.
36053         * tests/unictype/test-sy_java_ident.c: Likewise.
36054         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36055         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36056         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36057         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36058         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36059         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36060         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36061         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36062         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36063         * tests/uninorm/test-compat-decomposition.c: Likewise.
36064         * tests/uninorm/test-composition.c: Likewise.
36065         * tests/uninorm/test-decomposing-form.c: Likewise.
36066         * tests/uninorm/test-decomposition.c: Likewise.
36067         * tests/uninorm/test-u8-nfc.c: Likewise.
36068         * tests/uninorm/test-u8-nfd.c: Likewise.
36069         * tests/uninorm/test-u8-nfkc.c: Likewise.
36070         * tests/uninorm/test-u8-nfkd.c: Likewise.
36071         * tests/uninorm/test-u8-normcmp.c: Likewise.
36072         * tests/uninorm/test-u8-normcoll.c: Likewise.
36073         * tests/uninorm/test-u16-nfc.c: Likewise.
36074         * tests/uninorm/test-u16-nfd.c: Likewise.
36075         * tests/uninorm/test-u16-nfkc.c: Likewise.
36076         * tests/uninorm/test-u16-nfkd.c: Likewise.
36077         * tests/uninorm/test-u16-normcmp.c: Likewise.
36078         * tests/uninorm/test-u16-normcoll.c: Likewise.
36079         * tests/uninorm/test-u32-nfc.c: Likewise.
36080         * tests/uninorm/test-u32-nfd.c: Likewise.
36081         * tests/uninorm/test-u32-nfkc.c: Likewise.
36082         * tests/uninorm/test-u32-nfkd.c: Likewise.
36083         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36084         * tests/uninorm/test-u32-normcmp.c: Likewise.
36085         * tests/uninorm/test-u32-normcoll.c: Likewise.
36086         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36087         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36088         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36089         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36090         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36091         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36092         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36093         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36094         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36095         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36096         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36097         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36098         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36099         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36100         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36101         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36102         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36103         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36104         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36105         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36106         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36107         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36108         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36109         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36110         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36111         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36112         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36113         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36114         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36115         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36116         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36117         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36118         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36119         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36120         * tests/uniwidth/test-u8-width.c: Likewise.
36121         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36122         * tests/uniwidth/test-u16-width.c: Likewise.
36123         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36124         * tests/uniwidth/test-u32-width.c: Likewise.
36125         * tests/uniwidth/test-uc_width.c: Likewise.
36126         * tests/uniwidth/test-uc_width2.c: Likewise.
36127         * modules/acl-tests (Files): Add tests/macros.h.
36128         * modules/areadlink-tests (Files): Likewise.
36129         * modules/areadlink-with-size-tests (Files): Likewise.
36130         * modules/areadlinkat-tests (Files): Likewise.
36131         * modules/areadlinkat-with-size-tests (Files): Likewise.
36132         * modules/argmatch-tests (Files): Likewise.
36133         * modules/argv-iter-tests (Files): Likewise.
36134         * modules/array-list-tests (Files): Likewise.
36135         * modules/array-mergesort-tests (Files): Likewise.
36136         * modules/array-oset-tests (Files): Likewise.
36137         * modules/avltree-list-tests (Files): Likewise.
36138         * modules/avltree-oset-tests (Files): Likewise.
36139         * modules/avltreehash-list-tests (Files): Likewise.
36140         * modules/base64-tests (Files): Likewise.
36141         * modules/binary-io-tests (Files): Likewise.
36142         * modules/bitrotate-tests (Files): Likewise.
36143         * modules/btowc-tests (Files): Likewise.
36144         * modules/byteswap-tests (Files): Likewise.
36145         * modules/c-ctype-tests (Files): Likewise.
36146         * modules/c-stack-tests (Files): Likewise.
36147         * modules/c-strcase-tests (Files): Likewise.
36148         * modules/c-strcasestr-tests (Files): Likewise.
36149         * modules/c-strstr-tests (Files): Likewise.
36150         * modules/canonicalize-lgpl-tests (Files): Likewise.
36151         * modules/canonicalize-tests (Files): Likewise.
36152         * modules/carray-list-tests (Files): Likewise.
36153         * modules/ceilf-tests (Files): Likewise.
36154         * modules/ceill-tests (Files): Likewise.
36155         * modules/chown-tests (Files): Likewise.
36156         * modules/cloexec-tests (Files): Likewise.
36157         * modules/copy-file-tests (Files): Likewise.
36158         * modules/count-one-bits-tests (Files): Likewise.
36159         * modules/dprintf-posix-tests (Files): Likewise.
36160         * modules/dup2-tests (Files): Likewise.
36161         * modules/dup3-tests (Files): Likewise.
36162         * modules/duplocale-tests (Files): Likewise.
36163         * modules/fbufmode-tests (Files): Likewise.
36164         * modules/fchdir-tests (Files): Likewise.
36165         * modules/fcntl-safer-tests (Files): Likewise.
36166         * modules/fcntl-tests (Files): Likewise.
36167         * modules/fdopendir-tests (Files): Likewise.
36168         * modules/fdutimensat-tests (Files): Likewise.
36169         * modules/fflush-tests (Files): Likewise.
36170         * modules/filevercmp-tests (Files): Likewise.
36171         * modules/flock-tests (Files): Likewise.
36172         * modules/floorf-tests (Files): Likewise.
36173         * modules/floorl-tests (Files): Likewise.
36174         * modules/fnmatch-tests (Files): Likewise.
36175         * modules/fopen-safer-tests (Files): Likewise.
36176         * modules/fopen-tests (Files): Likewise.
36177         * modules/fpending-tests (Files): Likewise.
36178         * modules/fprintf-posix-tests (Files): Likewise.
36179         * modules/fpurge-tests (Files): Likewise.
36180         * modules/freadable-tests (Files): Likewise.
36181         * modules/freadahead-tests (Files): Likewise.
36182         * modules/freading-tests (Files): Likewise.
36183         * modules/freadptr-tests (Files): Likewise.
36184         * modules/freadseek-tests (Files): Likewise.
36185         * modules/freopen-tests (Files): Likewise.
36186         * modules/frexp-nolibm-tests (Files): Likewise.
36187         * modules/frexp-tests (Files): Likewise.
36188         * modules/frexpl-nolibm-tests (Files): Likewise.
36189         * modules/frexpl-tests (Files): Likewise.
36190         * modules/fseek-tests (Files): Likewise.
36191         * modules/fseeko-tests (Files): Likewise.
36192         * modules/fstrcmp-tests (Files): Likewise.
36193         * modules/fsync-tests (Files): Likewise.
36194         * modules/ftell-tests (Files): Likewise.
36195         * modules/ftello-tests (Files): Likewise.
36196         * modules/func-tests (Files): Likewise.
36197         * modules/futimens-tests (Files): Likewise.
36198         * modules/fwritable-tests (Files): Likewise.
36199         * modules/fwriting-tests (Files): Likewise.
36200         * modules/getcwd-tests (Files): Likewise.
36201         * modules/getdate-tests (Files): Likewise.
36202         * modules/getdelim-tests (Files): Likewise.
36203         * modules/getdtablesize-tests (Files): Likewise.
36204         * modules/getgroups-tests (Files): Likewise.
36205         * modules/getline-tests (Files): Likewise.
36206         * modules/getndelim2-tests (Files): Likewise.
36207         * modules/glob-tests (Files): Likewise.
36208         * modules/hash-tests (Files): Likewise.
36209         * modules/i-ring-tests (Files): Likewise.
36210         * modules/iconv-tests (Files): Likewise.
36211         * modules/iconv_open-utf-tests (Files): Likewise.
36212         * modules/idpriv-drop-tests (Files): Likewise.
36213         * modules/idpriv-droptemp-tests (Files): Likewise.
36214         * modules/inet_ntop-tests (Files): Likewise.
36215         * modules/inet_pton-tests (Files): Likewise.
36216         * modules/isblank-tests (Files): Likewise.
36217         * modules/isfinite-tests (Files): Likewise.
36218         * modules/isinf-tests (Files): Likewise.
36219         * modules/isnan-tests (Files): Likewise.
36220         * modules/isnand-nolibm-tests (Files): Likewise.
36221         * modules/isnand-tests (Files): Likewise.
36222         * modules/isnanf-nolibm-tests (Files): Likewise.
36223         * modules/isnanf-tests (Files): Likewise.
36224         * modules/isnanl-nolibm-tests (Files): Likewise.
36225         * modules/isnanl-tests (Files): Likewise.
36226         * modules/lchown-tests (Files): Likewise.
36227         * modules/ldexpl-tests (Files): Likewise.
36228         * modules/link-tests (Files): Likewise.
36229         * modules/linkat-tests (Files): Likewise.
36230         * modules/linked-list-tests (Files): Likewise.
36231         * modules/linkedhash-list-tests (Files): Likewise.
36232         * modules/localename-tests (Files): Likewise.
36233         * modules/lseek-tests (Files): Likewise.
36234         * modules/lstat-tests (Files): Likewise.
36235         * modules/mbmemcasecmp-tests (Files): Likewise.
36236         * modules/mbmemcasecoll-tests (Files): Likewise.
36237         * modules/mbrtowc-tests (Files): Likewise.
36238         * modules/mbscasecmp-tests (Files): Likewise.
36239         * modules/mbscasestr-tests (Files): Likewise.
36240         * modules/mbschr-tests (Files): Likewise.
36241         * modules/mbscspn-tests (Files): Likewise.
36242         * modules/mbsinit-tests (Files): Likewise.
36243         * modules/mbsncasecmp-tests (Files): Likewise.
36244         * modules/mbsnrtowcs-tests (Files): Likewise.
36245         * modules/mbspbrk-tests (Files): Likewise.
36246         * modules/mbspcasecmp-tests (Files): Likewise.
36247         * modules/mbsrchr-tests (Files): Likewise.
36248         * modules/mbsrtowcs-tests (Files): Likewise.
36249         * modules/mbsspn-tests (Files): Likewise.
36250         * modules/mbsstr-tests (Files): Likewise.
36251         * modules/memchr-tests (Files): Likewise.
36252         * modules/memchr2-tests (Files): Likewise.
36253         * modules/memcmp-tests (Files): Likewise.
36254         * modules/memmem-tests (Files): Likewise.
36255         * modules/memrchr-tests (Files): Likewise.
36256         * modules/mkdir-tests (Files): Likewise.
36257         * modules/mkfifo-tests (Files): Likewise.
36258         * modules/mkfifoat-tests (Files): Likewise.
36259         * modules/mknod-tests (Files): Likewise.
36260         * modules/nanosleep-tests (Files): Likewise.
36261         * modules/nl_langinfo-tests (Files): Likewise.
36262         * modules/obstack-printf-tests (Files): Likewise.
36263         * modules/open-tests (Files): Likewise.
36264         * modules/openat-tests (Files): Likewise.
36265         * modules/pipe-filter-gi-tests (Files): Likewise.
36266         * modules/pipe-filter-ii-tests (Files): Likewise.
36267         * modules/pipe2-tests (Files): Likewise.
36268         * modules/popen-safer-tests (Files): Likewise.
36269         * modules/popen-tests (Files): Likewise.
36270         * modules/posixtm-tests (Files): Likewise.
36271         * modules/pread-tests (Files): Likewise.
36272         * modules/printf-frexp-tests (Files): Likewise.
36273         * modules/printf-frexpl-tests (Files): Likewise.
36274         * modules/printf-posix-tests (Files): Likewise.
36275         * modules/priv-set-tests (Files): Likewise.
36276         * modules/quotearg-tests (Files): Likewise.
36277         * modules/random_r-tests (Files): Likewise.
36278         * modules/rawmemchr-tests (Files): Likewise.
36279         * modules/rbtree-list-tests (Files): Likewise.
36280         * modules/rbtree-oset-tests (Files): Likewise.
36281         * modules/rbtreehash-list-tests (Files): Likewise.
36282         * modules/readlink-tests (Files): Likewise.
36283         * modules/remove-tests (Files): Likewise.
36284         * modules/rename-tests (Files): Likewise.
36285         * modules/renameat-tests (Files): Likewise.
36286         * modules/rmdir-tests (Files): Likewise.
36287         * modules/round-tests (Files): Likewise.
36288         * modules/roundf-tests (Files): Likewise.
36289         * modules/roundl-tests (Files): Likewise.
36290         * modules/safe-alloc-tests (Files): Likewise.
36291         * modules/setenv-tests (Files): Likewise.
36292         * modules/sigaction-tests (Files): Likewise.
36293         * modules/signbit-tests (Files): Likewise.
36294         * modules/sleep-tests (Files): Likewise.
36295         * modules/snprintf-posix-tests (Files): Likewise.
36296         * modules/snprintf-tests (Files): Likewise.
36297         * modules/sprintf-posix-tests (Files): Likewise.
36298         * modules/stat-tests (Files): Likewise.
36299         * modules/stat-time-tests (Files): Likewise.
36300         * modules/strcasestr-tests (Files): Likewise.
36301         * modules/strchrnul-tests (Files): Likewise.
36302         * modules/strerror-tests (Files): Likewise.
36303         * modules/striconv-tests (Files): Likewise.
36304         * modules/striconveh-tests (Files): Likewise.
36305         * modules/striconveha-tests (Files): Likewise.
36306         * modules/strsignal-tests (Files): Likewise.
36307         * modules/strstr-tests (Files): Likewise.
36308         * modules/strtod-tests (Files): Likewise.
36309         * modules/strverscmp-tests (Files): Likewise.
36310         * modules/symlink-tests (Files): Likewise.
36311         * modules/symlinkat-tests (Files): Likewise.
36312         * modules/trunc-tests (Files): Likewise.
36313         * modules/truncf-tests (Files): Likewise.
36314         * modules/truncl-tests (Files): Likewise.
36315         * modules/uname-tests (Files): Likewise.
36316         * modules/unicase/cased-tests (Files): Likewise.
36317         * modules/unicase/ignorable-tests (Files): Likewise.
36318         * modules/unicase/locale-language-tests (Files): Likewise.
36319         * modules/unicase/tolower-tests (Files): Likewise.
36320         * modules/unicase/totitle-tests (Files): Likewise.
36321         * modules/unicase/toupper-tests (Files): Likewise.
36322         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36323         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36324         * modules/unicase/u8-casefold-tests (Files): Likewise.
36325         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36326         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36327         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36328         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36329         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36330         * modules/unicase/u8-tolower-tests (Files): Likewise.
36331         * modules/unicase/u8-totitle-tests (Files): Likewise.
36332         * modules/unicase/u8-toupper-tests (Files): Likewise.
36333         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36334         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36335         * modules/unicase/u16-casefold-tests (Files): Likewise.
36336         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36337         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36338         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36339         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36340         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36341         * modules/unicase/u16-tolower-tests (Files): Likewise.
36342         * modules/unicase/u16-totitle-tests (Files): Likewise.
36343         * modules/unicase/u16-toupper-tests (Files): Likewise.
36344         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36345         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36346         * modules/unicase/u32-casefold-tests (Files): Likewise.
36347         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36348         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36349         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36350         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36351         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36352         * modules/unicase/u32-tolower-tests (Files): Likewise.
36353         * modules/unicase/u32-totitle-tests (Files): Likewise.
36354         * modules/unicase/u32-toupper-tests (Files): Likewise.
36355         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36356         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36357         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36358         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36359         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36360         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36361         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36362         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36363         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36364         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36365         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36366         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36367         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36368         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36369         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36370         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36371         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36372         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36373         * modules/unictype/block-list-tests (Files): Likewise.
36374         * modules/unictype/block-of-tests (Files): Likewise.
36375         * modules/unictype/block-test-tests (Files): Likewise.
36376         * modules/unictype/category-C-tests (Files): Likewise.
36377         * modules/unictype/category-Cc-tests (Files): Likewise.
36378         * modules/unictype/category-Cf-tests (Files): Likewise.
36379         * modules/unictype/category-Cn-tests (Files): Likewise.
36380         * modules/unictype/category-Co-tests (Files): Likewise.
36381         * modules/unictype/category-Cs-tests (Files): Likewise.
36382         * modules/unictype/category-L-tests (Files): Likewise.
36383         * modules/unictype/category-Ll-tests (Files): Likewise.
36384         * modules/unictype/category-Lm-tests (Files): Likewise.
36385         * modules/unictype/category-Lo-tests (Files): Likewise.
36386         * modules/unictype/category-Lt-tests (Files): Likewise.
36387         * modules/unictype/category-Lu-tests (Files): Likewise.
36388         * modules/unictype/category-M-tests (Files): Likewise.
36389         * modules/unictype/category-Mc-tests (Files): Likewise.
36390         * modules/unictype/category-Me-tests (Files): Likewise.
36391         * modules/unictype/category-Mn-tests (Files): Likewise.
36392         * modules/unictype/category-N-tests (Files): Likewise.
36393         * modules/unictype/category-Nd-tests (Files): Likewise.
36394         * modules/unictype/category-Nl-tests (Files): Likewise.
36395         * modules/unictype/category-No-tests (Files): Likewise.
36396         * modules/unictype/category-P-tests (Files): Likewise.
36397         * modules/unictype/category-Pc-tests (Files): Likewise.
36398         * modules/unictype/category-Pd-tests (Files): Likewise.
36399         * modules/unictype/category-Pe-tests (Files): Likewise.
36400         * modules/unictype/category-Pf-tests (Files): Likewise.
36401         * modules/unictype/category-Pi-tests (Files): Likewise.
36402         * modules/unictype/category-Po-tests (Files): Likewise.
36403         * modules/unictype/category-Ps-tests (Files): Likewise.
36404         * modules/unictype/category-S-tests (Files): Likewise.
36405         * modules/unictype/category-Sc-tests (Files): Likewise.
36406         * modules/unictype/category-Sk-tests (Files): Likewise.
36407         * modules/unictype/category-Sm-tests (Files): Likewise.
36408         * modules/unictype/category-So-tests (Files): Likewise.
36409         * modules/unictype/category-Z-tests (Files): Likewise.
36410         * modules/unictype/category-Zl-tests (Files): Likewise.
36411         * modules/unictype/category-Zp-tests (Files): Likewise.
36412         * modules/unictype/category-Zs-tests (Files): Likewise.
36413         * modules/unictype/category-and-not-tests (Files): Likewise.
36414         * modules/unictype/category-and-tests (Files): Likewise.
36415         * modules/unictype/category-byname-tests (Files): Likewise.
36416         * modules/unictype/category-name-tests (Files): Likewise.
36417         * modules/unictype/category-none-tests (Files): Likewise.
36418         * modules/unictype/category-of-tests (Files): Likewise.
36419         * modules/unictype/category-or-tests (Files): Likewise.
36420         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36421         * modules/unictype/combining-class-tests (Files): Likewise.
36422         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36423         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36424         * modules/unictype/ctype-blank-tests (Files): Likewise.
36425         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36426         * modules/unictype/ctype-digit-tests (Files): Likewise.
36427         * modules/unictype/ctype-graph-tests (Files): Likewise.
36428         * modules/unictype/ctype-lower-tests (Files): Likewise.
36429         * modules/unictype/ctype-print-tests (Files): Likewise.
36430         * modules/unictype/ctype-punct-tests (Files): Likewise.
36431         * modules/unictype/ctype-space-tests (Files): Likewise.
36432         * modules/unictype/ctype-upper-tests (Files): Likewise.
36433         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36434         * modules/unictype/decimal-digit-tests (Files): Likewise.
36435         * modules/unictype/digit-tests (Files): Likewise.
36436         * modules/unictype/mirror-tests (Files): Likewise.
36437         * modules/unictype/numeric-tests (Files): Likewise.
36438         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36439         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36440         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36441         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36442         Likewise.
36443         * modules/unictype/property-bidi-block-separator-tests (Files):
36444         Likewise.
36445         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36446         Likewise.
36447         * modules/unictype/property-bidi-common-separator-tests (Files):
36448         Likewise.
36449         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36450         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36451         Likewise.
36452         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36453         Likewise.
36454         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36455         Likewise.
36456         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36457         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36458         Likewise.
36459         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36460         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36461         Likewise.
36462         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36463         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36464         * modules/unictype/property-bidi-segment-separator-tests (Files):
36465         Likewise.
36466         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36467         * modules/unictype/property-byname-tests (Files): Likewise.
36468         * modules/unictype/property-combining-tests (Files): Likewise.
36469         * modules/unictype/property-composite-tests (Files): Likewise.
36470         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36471         * modules/unictype/property-dash-tests (Files): Likewise.
36472         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36473         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36474         Likewise.
36475         * modules/unictype/property-deprecated-tests (Files): Likewise.
36476         * modules/unictype/property-diacritic-tests (Files): Likewise.
36477         * modules/unictype/property-extender-tests (Files): Likewise.
36478         * modules/unictype/property-format-control-tests (Files): Likewise.
36479         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36480         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36481         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36482         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36483         * modules/unictype/property-hyphen-tests (Files): Likewise.
36484         * modules/unictype/property-id-continue-tests (Files): Likewise.
36485         * modules/unictype/property-id-start-tests (Files): Likewise.
36486         * modules/unictype/property-ideographic-tests (Files): Likewise.
36487         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36488         * modules/unictype/property-ids-trinary-operator-tests (Files):
36489         Likewise.
36490         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36491         * modules/unictype/property-iso-control-tests (Files): Likewise.
36492         * modules/unictype/property-join-control-tests (Files): Likewise.
36493         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36494         * modules/unictype/property-line-separator-tests (Files): Likewise.
36495         * modules/unictype/property-logical-order-exception-tests (Files):
36496         Likewise.
36497         * modules/unictype/property-lowercase-tests (Files): Likewise.
36498         * modules/unictype/property-math-tests (Files): Likewise.
36499         * modules/unictype/property-non-break-tests (Files): Likewise.
36500         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36501         * modules/unictype/property-numeric-tests (Files): Likewise.
36502         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36503         * modules/unictype/property-other-default-ignorable-code-point-tests
36504         (Files): Likewise.
36505         * modules/unictype/property-other-grapheme-extend-tests (Files):
36506         Likewise.
36507         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36508         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36509         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36510         * modules/unictype/property-other-math-tests (Files): Likewise.
36511         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36512         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36513         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36514         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36515         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36516         * modules/unictype/property-private-use-tests (Files): Likewise.
36517         * modules/unictype/property-punctuation-tests (Files): Likewise.
36518         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36519         * modules/unictype/property-radical-tests (Files): Likewise.
36520         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36521         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36522         * modules/unictype/property-space-tests (Files): Likewise.
36523         * modules/unictype/property-terminal-punctuation-tests (Files):
36524         Likewise.
36525         * modules/unictype/property-test-tests (Files): Likewise.
36526         * modules/unictype/property-titlecase-tests (Files): Likewise.
36527         * modules/unictype/property-unassigned-code-value-tests (Files):
36528         Likewise.
36529         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36530         * modules/unictype/property-uppercase-tests (Files): Likewise.
36531         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36532         * modules/unictype/property-white-space-tests (Files): Likewise.
36533         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36534         * modules/unictype/property-xid-start-tests (Files): Likewise.
36535         * modules/unictype/property-zero-width-tests (Files): Likewise.
36536         * modules/unictype/scripts-tests (Files): Likewise.
36537         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36538         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36539         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36540         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36541         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36542         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36543         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36544         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36545         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36546         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36547         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36548         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36549         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36550         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36551         * modules/uninorm/composition-tests (Files): Likewise.
36552         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36553         * modules/uninorm/decomposition-tests (Files): Likewise.
36554         * modules/uninorm/filter-tests (Files): Likewise.
36555         * modules/uninorm/nfc-tests (Files): Likewise.
36556         * modules/uninorm/nfd-tests (Files): Likewise.
36557         * modules/uninorm/nfkc-tests (Files): Likewise.
36558         * modules/uninorm/nfkd-tests (Files): Likewise.
36559         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36560         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36561         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36562         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36563         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36564         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36565         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36566         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36567         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36568         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36569         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36570         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36571         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36572         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36573         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36574         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36575         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36576         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36577         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36578         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36579         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36580         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36581         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36582         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36583         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36584         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36585         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36586         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36587         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36588         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36589         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36590         * modules/uniwidth/u8-width-tests (Files): Likewise.
36591         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36592         * modules/uniwidth/u16-width-tests (Files): Likewise.
36593         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36594         * modules/uniwidth/u32-width-tests (Files): Likewise.
36595         * modules/uniwidth/width-tests (Files): Likewise.
36596         * modules/unlink-tests (Files): Likewise.
36597         * modules/unsetenv-tests (Files): Likewise.
36598         * modules/usleep-tests (Files): Likewise.
36599         * modules/utimens-tests (Files): Likewise.
36600         * modules/utimensat-tests (Files): Likewise.
36601         * modules/vasnprintf-posix-tests (Files): Likewise.
36602         * modules/vasnprintf-tests (Files): Likewise.
36603         * modules/vasprintf-posix-tests (Files): Likewise.
36604         * modules/vasprintf-tests (Files): Likewise.
36605         * modules/vdprintf-posix-tests (Files): Likewise.
36606         * modules/vfprintf-posix-tests (Files): Likewise.
36607         * modules/vprintf-posix-tests (Files): Likewise.
36608         * modules/vsnprintf-posix-tests (Files): Likewise.
36609         * modules/vsnprintf-tests (Files): Likewise.
36610         * modules/vsprintf-posix-tests (Files): Likewise.
36611         * modules/wcrtomb-tests (Files): Likewise.
36612         * modules/wcsnrtombs-tests (Files): Likewise.
36613         * modules/wcsrtombs-tests (Files): Likewise.
36614         * modules/wctype-tests (Files): Likewise.
36615         * modules/wcwidth-tests (Files): Likewise.
36616         * modules/xmemdup0-tests (Files): Likewise.
36617         * modules/xprintf-posix-tests (Files): Likewise.
36618         * modules/xvasprintf-tests (Files): Likewise.
36619
36620 2009-12-24  Eric Blake  <ebb9@byu.net>
36621
36622         test-nanosleep: fix typo
36623         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36624         patch.
36625         Reported by Bruno Haible.
36626
36627 2009-12-24  Bruno Haible  <bruno@clisp.org>
36628
36629         Reduce namespace pollution on glibc systems.
36630         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36631         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36632         systems.
36633         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36634         <getopt.h> on glibc systems.
36635         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36636         systems.
36637         * lib/fcntl.c: Include <unistd.h> here instead.
36638
36639 2009-12-24  Bruno Haible  <bruno@clisp.org>
36640
36641         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36642
36643 2009-12-24  Eric Blake  <ebb9@byu.net>
36644
36645         tests: add signature checks
36646         * tests/signature.h (SIGNATURE_CHECK): New file.
36647         * modules/atexit-tests (Files): Use it.
36648         * modules/btowc-tests (Files): Likewise.
36649         * modules/canonicalize-lgpl-tests (Files): Likewise.
36650         * modules/ceilf-tests (Files): Likewise.
36651         * modules/ceill-tests (Files): Likewise.
36652         * modules/chown-tests (Files): Likewise.
36653         * modules/dprintf-posix-tests (Files): Likewise.
36654         * modules/dup2-tests (Files): Likewise.
36655         * modules/dup3-tests (Files): Likewise.
36656         * modules/duplocale-tests (Files): Likewise.
36657         * modules/fchdir-tests (Files): Likewise.
36658         * modules/fcntl-tests (Files): Likewise.
36659         * modules/fdopendir-tests (Files): Likewise.
36660         * modules/fflush-tests (Files): Likewise.
36661         * modules/flock-tests (Files): Likewise.
36662         * modules/floorf-tests (Files): Likewise.
36663         * modules/floorl-tests (Files): Likewise.
36664         * modules/fnmatch-tests (Files): Likewise.
36665         * modules/fopen-tests (Files): Likewise.
36666         * modules/fprintf-posix-tests (Files): Likewise.
36667         * modules/freopen-tests (Files): Likewise.
36668         * modules/frexp-nolibm-tests (Files): Likewise.
36669         * modules/frexp-tests (Files): Likewise.
36670         * modules/frexpl-nolibm-tests (Files): Likewise.
36671         * modules/frexpl-tests (Files): Likewise.
36672         * modules/fseek-tests (Files): Likewise.
36673         * modules/fseeko-tests (Files): Likewise.
36674         * modules/fsync-tests (Files): Likewise.
36675         * modules/ftell-tests (Files): Likewise.
36676         * modules/ftello-tests (Files): Likewise.
36677         * modules/futimens-tests (Files): Likewise.
36678         * modules/getaddrinfo-tests (Files): Likewise.
36679         * modules/getcwd-tests (Files): Likewise.
36680         * modules/getdelim-tests (Files): Likewise.
36681         * modules/getdtablesize-tests (Files): Likewise.
36682         * modules/getgroups-tests (Files): Likewise.
36683         * modules/gethostname-tests (Files): Likewise.
36684         * modules/getline-tests (Files): Likewise.
36685         * modules/getopt-posix-tests (Files): Likewise.
36686         * modules/gettimeofday-tests (Files): Likewise.
36687         * modules/glob-tests (Files): Likewise.
36688         * modules/iconv-tests (Files): Likewise.
36689         * modules/inet_ntop-tests (Files): Likewise.
36690         * modules/inet_pton-tests (Files): Likewise.
36691         * modules/isblank-tests (Files): Likewise.
36692         * modules/lchown-tests (Files): Likewise.
36693         * modules/ldexpl-tests (Files): Likewise.
36694         * modules/link-tests (Files): Likewise.
36695         * modules/linkat-tests (Files): Likewise.
36696         * modules/lseek-tests (Files): Likewise.
36697         * modules/lstat-tests (Files): Likewise.
36698         * modules/mbrtowc-tests (Files): Likewise.
36699         * modules/mbsinit-tests (Files): Likewise.
36700         * modules/mbsnrtowcs-tests (Files): Likewise.
36701         * modules/mbsrtowcs-tests (Files): Likewise.
36702         * modules/memchr-tests (Files): Likewise.
36703         * modules/memcmp-tests (Files): Likewise.
36704         * modules/memmem-tests (Files): Likewise.
36705         * modules/memrchr-tests (Files): Likewise.
36706         * modules/mkdir-tests (Files): Likewise.
36707         * modules/mkfifo-tests (Files): Likewise.
36708         * modules/mkfifoat-tests (Files): Likewise.
36709         * modules/mknod-tests (Files): Likewise.
36710         * modules/nanosleep-tests (Files): Likewise.
36711         * modules/nl_langinfo-tests (Files): Likewise.
36712         * modules/obstack-printf-tests (Files): Likewise.
36713         * modules/open-tests (Files): Likewise.
36714         * modules/openat-tests (Files): Likewise.
36715         * modules/perror-tests (Files): Likewise.
36716         * modules/pipe2-tests (Files): Likewise.
36717         * modules/poll-tests (Files): Likewise.
36718         * modules/popen-tests (Files): Likewise.
36719         * modules/posix_spawn-tests (Files): Likewise.
36720         * modules/posix_spawnp-tests (Files): Likewise.
36721         * modules/pread-tests (Files): Likewise.
36722         * modules/printf-posix-tests (Files): Likewise.
36723         * modules/pty-tests (Files): Likewise.
36724         * modules/random_r-tests (Files): Likewise.
36725         * modules/rawmemchr-tests (Files): Likewise.
36726         * modules/readlink-tests (Files): Likewise.
36727         * modules/remove-tests (Files): Likewise.
36728         * modules/rename-tests (Files): Likewise.
36729         * modules/renameat-tests (Files): Likewise.
36730         * modules/rmdir-tests (Files): Likewise.
36731         * modules/round-tests (Files): Likewise.
36732         * modules/roundf-tests (Files): Likewise.
36733         * modules/roundl-tests (Files): Likewise.
36734         * modules/select-tests (Files): Likewise.
36735         * modules/setenv-tests (Files): Likewise.
36736         * modules/sigaction-tests (Files): Likewise.
36737         * modules/sleep-tests (Files): Likewise.
36738         * modules/snprintf-posix-tests (Files): Likewise.
36739         * modules/snprintf-tests (Files): Likewise.
36740         * modules/sprintf-posix-tests (Files): Likewise.
36741         * modules/stat-tests (Files): Likewise.
36742         * modules/strcasestr-tests (Files): Likewise.
36743         * modules/strchrnul-tests (Files): Likewise.
36744         * modules/strerror-tests (Files): Likewise.
36745         * modules/strsignal-tests (Files): Likewise.
36746         * modules/strstr-tests (Files): Likewise.
36747         * modules/strtod-tests (Files): Likewise.
36748         * modules/strverscmp-tests (Files): Likewise.
36749         * modules/symlink-tests (Files): Likewise.
36750         * modules/symlinkat-tests (Files): Likewise.
36751         * modules/times-tests (Files): Likewise.
36752         * modules/trunc-tests (Files): Likewise.
36753         * modules/truncf-tests (Files): Likewise.
36754         * modules/truncl-tests (Files): Likewise.
36755         * modules/tsearch-tests (Files): Likewise.
36756         * modules/uname-tests (Files): Likewise.
36757         * modules/unlink-tests (Files): Likewise.
36758         * modules/unsetenv-tests (Files): Likewise.
36759         * modules/usleep-tests (Files): Likewise.
36760         * modules/utimensat-tests (Files): Likewise.
36761         * modules/vasprintf-tests (Files): Likewise.
36762         * modules/vdprintf-posix-tests (Files): Likewise.
36763         * modules/vfprintf-posix-tests (Files): Likewise.
36764         * modules/vprintf-posix-tests (Files): Likewise.
36765         * modules/vsnprintf-posix-tests (Files): Likewise.
36766         * modules/vsnprintf-tests (Files): Likewise.
36767         * modules/vsprintf-posix-tests (Files): Likewise.
36768         * modules/wcrtomb-tests (Files): Likewise.
36769         * modules/wcsnrtombs-tests (Files): Likewise.
36770         * modules/wcsrtombs-tests (Files): Likewise.
36771         * modules/wcwidth-tests (Files): Likewise.
36772         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36773         * tests/test-isinf.c (isinf): Likewise.
36774         * tests/test-isnan.c (isnan): Likewise.
36775         * tests/test-signbit.c (signbit): Likewise.
36776         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36777         declaration, either as macro or with correct signature.
36778         (select): Ensure function under test is declared with correct
36779         signature in correct header.
36780         * tests/test-atexit.c (atexit): Likewise.
36781         * tests/test-btowc.c (btowc): Likewise.
36782         * tests/test-canonicalize-lgpl.c (realpath)
36783         (canonicalize_file_name): Likewise.
36784         * tests/test-ceilf1.c (ceilf): Likewise.
36785         * tests/test-ceill.c (ceill): Likewise.
36786         * tests/test-chown.c (chown): Likewise.
36787         * tests/test-dprintf-posix.c (dprintf): Likewise.
36788         * tests/test-dup2.c (dup2): Likewise.
36789         * tests/test-dup3.c (dup3): Likewise.
36790         * tests/test-duplocale.c (duplocale): Likewise.
36791         * tests/test-fchdir.c (fchdir): Likewise.
36792         * tests/test-fchownat.c (fchownat): Likewise.
36793         * tests/test-fcntl.c (fcntl): Likewise.
36794         * tests/test-fdopendir.c (fdopendir): Likewise.
36795         * tests/test-fflush.c (fflush): Likewise.
36796         * tests/test-flock.c (flock): Likewise.
36797         * tests/test-floorf1.c (floorf): Likewise.
36798         * tests/test-floorl.c (floorl): Likewise.
36799         * tests/test-fnmatch.c (fnmatch): Likewise.
36800         * tests/test-fopen.c (fopen): Likewise.
36801         * tests/test-fprintf-posix.c (fprintf): Likewise.
36802         * tests/test-freopen.c (freopen): Likewise.
36803         * tests/test-frexp.c (frexp): Likewise.
36804         * tests/test-frexpl.c (frexpl): Likewise.
36805         * tests/test-fseek.c (fseek): Likewise.
36806         * tests/test-fseeko.c (fseeko): Likewise.
36807         * tests/test-fstatat.c (fstatat): Likewise.
36808         * tests/test-fsync.c (fsync): Likewise.
36809         * tests/test-ftell.c (ftell): Likewise.
36810         * tests/test-ftello.c (ftello): Likewise.
36811         * tests/test-futimens.c (futimens): Likewise.
36812         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36813         (gai_strerror): Likewise.
36814         * tests/test-getcwd.c (getcwd): Likewise.
36815         * tests/test-getdelim.c (getdelim): Likewise.
36816         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36817         * tests/test-getgroups.c (getgroups): Likewise.
36818         * tests/test-gethostname.c (gethostname): Likewise.
36819         * tests/test-getline.c (getline): Likewise.
36820         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36821         Likewise.
36822         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36823         * tests/test-glob.c (glob, globfree): Likewise.
36824         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36825         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36826         * tests/test-inet_pton.c (inet_pton): Likewise.
36827         * tests/test-isblank.c (isblank): Likewise.
36828         * tests/test-lchown.c (lchown): Likewise.
36829         * tests/test-ldexpl.c (ldexpl): Likewise.
36830         * tests/test-link.c (link): Likewise.
36831         * tests/test-linkat.c (linkat): Likewise.
36832         * tests/test-lseek.c (lseek): Likewise.
36833         * tests/test-lstat.c (lstat): Likewise.
36834         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36835         * tests/test-mbsinit.c (mbsinit): Likewise.
36836         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36837         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36838         * tests/test-memchr.c (memchr): Likewise.
36839         * tests/test-memcmp.c (memcmp): Likewise.
36840         * tests/test-memmem.c (memmem): Likewise.
36841         * tests/test-memrchr.c (memrchr): Likewise.
36842         * tests/test-mkdir.c (mkdir): Likewise.
36843         * tests/test-mkdirat.c (mkdirat): Likewise.
36844         * tests/test-mkfifo.c (mkfifo): Likewise.
36845         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36846         * tests/test-mknod.c (mknod): Likewise.
36847         * tests/test-nanosleep.c (nanosleep): Likewise.
36848         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36849         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36850         Likewise.
36851         * tests/test-open.c (open): Likewise.
36852         * tests/test-openat.c (openat): Likewise.
36853         * tests/test-perror.c (perror): Likewise.
36854         * tests/test-pipe2.c (pipe2): Likewise.
36855         * tests/test-poll.c (poll): Likewise.
36856         * tests/test-popen.c (popen, pclose): Likewise.
36857         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36858         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36859         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36860         (posix_spawn_file_actions_destroy)
36861         (posix_spawn_file_actions_addclose)
36862         (posix_spawn_file_actions_addopen)
36863         (posix_spawn_file_actions_adddup2): Likewise.
36864         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36865         * tests/test-pread.c (pread): Likewise.
36866         * tests/test-printf-posix.c (printf): Likewise.
36867         * tests/test-pty.c (openpty, forkpty): Likewise.
36868         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36869         (random_r): Likewise.
36870         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36871         * tests/test-readlink.c (readlink): Likewise.
36872         * tests/test-remove.c (remove): Likewise.
36873         * tests/test-rename.c (rename): Likewise.
36874         * tests/test-renameat.c (renameat): Likewise.
36875         * tests/test-rmdir.c (rmdir): Likewise.
36876         * tests/test-round1.c (round): Likewise.
36877         * tests/test-roundf1.c (roundf): Likewise.
36878         * tests/test-roundl.c (roundl): Likewise.
36879         * tests/test-setenv.c (setenv): Likewise.
36880         * tests/test-sigaction.c (sigaction): Likewise.
36881         * tests/test-sleep.c (sleep): Likewise.
36882         * tests/test-snprintf.c (snprintf): Likewise.
36883         * tests/test-sprintf-posix.c (sprintf): Likewise.
36884         * tests/test-stat.c (stat): Likewise.
36885         * tests/test-stpncpy.c (stpncpy): Likewise.
36886         * tests/test-strcasestr.c (strcasestr): Likewise.
36887         * tests/test-strchrnul.c (strchrnul): Likewise.
36888         * tests/test-strerror.c (strerror): Likewise.
36889         * tests/test-strsignal.c (strsignal): Likewise.
36890         * tests/test-strstr.c (strstr): Likewise.
36891         * tests/test-strtod.c (strtod): Likewise.
36892         * tests/test-strverscmp.c (strverscmp): Likewise.
36893         * tests/test-symlink.c (symlink): Likewise.
36894         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36895         * tests/test-times.c (times): Likewise.
36896         * tests/test-trunc1.c (trunc): Likewise.
36897         * tests/test-truncf1.c (truncf): Likewise.
36898         * tests/test-truncl.c (truncl): Likewise.
36899         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36900         Likewise.
36901         * tests/test-uname.c (uname): Likewise.
36902         * tests/test-unlink.c (unlink): Likewise.
36903         * tests/test-unlinkat.c (unlinkat): Likewise.
36904         * tests/test-unsetenv.c (unsetenv): Likewise.
36905         * tests/test-usleep.c (usleep): Likewise.
36906         * tests/test-utimensat.c (utimensat): Likewise.
36907         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36908         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36909         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36910         * tests/test-vprintf-posix.c (vprintf): Likewise.
36911         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36912         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36913         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36914         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36915         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36916         * tests/test-wcwidth.c (wcwidth): Likewise.
36917
36918         build: pull in conditional headers during GNULIB_POSIXCHECK
36919         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36920         definitions from any conditionally-included headers.
36921         * lib/stdlib.in.h (includes): Likewise.
36922         * lib/unistd.in.h (includes): Likewise.
36923
36924 2009-12-24  Bruno Haible  <bruno@clisp.org>
36925
36926         * tests/test-argv-iter.c: Include header file being tested immediately
36927         after config.h.
36928         * tests/test-base64.c: Likewise.
36929         * tests/test-flock.c: Likewise.
36930         * tests/test-fsync.c: Likewise.
36931         * tests/test-getdate.c: Likewise.
36932         * tests/test-getndelim2.c: Likewise.
36933         * tests/test-isfinite.c: Likewise.
36934         * tests/test-isinf.c: Likewise.
36935         * tests/test-strerror.c: Likewise.
36936         * tests/test-strsignal.c: Likewise.
36937
36938 2009-12-23  Eric Blake  <ebb9@byu.net>
36939
36940         unistd: work around cygwin bug
36941         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36942         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36943         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36944
36945 2009-12-23  Bruno Haible  <bruno@clisp.org>
36946
36947         localename: More tests.
36948         * tests/test-localename.c (SIZEOF): New macro.
36949         (categories): New variable.
36950         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36951         test_locale_name_default): Add test w.r.t. thread locale.
36952         (test_locale_name_thread): New function.
36953         (main): Invoke it.
36954
36955         localename: Make aware of thread locale.
36956         * lib/localename.h (gl_locale_name_thread): New declaration.
36957         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36958         behaviour with respect to thread locale.
36959         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36960         <langinfo.h>, glthread/lock.h.
36961         (SIZE_BITS): New macro.
36962         (string_hash): New function.
36963         (struct hash_node): New type.
36964         (HASH_TABLE_SIZE): New macro.
36965         (struniq_hash_table, struniq_lock): New variables.
36966         (struniq): New function.
36967         (gl_locale_name_thread): New function.
36968         (gl_locale_name): Invoke it.
36969         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36970         * modules/localename (Depends-on): Add lock.
36971         Reported by Mike Gran <spk121@yahoo.com>.
36972
36973 2009-12-23  Eric Blake  <ebb9@byu.net>
36974
36975         va-args: new module
36976         * modules/va-args: New file.
36977         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36978         * MODULES.html.sh (Core language properties): Mention it.
36979
36980         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36981         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36982         named alias for __attribute__((__unused__)).
36983         * lib/chown.c: Update client.
36984         * lib/fchmodat.c: Likewise.
36985         * lib/fts.c: Likewise.
36986         * lib/getdate.y: Likewise.
36987         * lib/getgroups.c: Likewise.
36988         * lib/getopt.c: Likewise.
36989         * lib/getugroups.c: Likewise.
36990         * lib/mkdir.c: Likewise.
36991         * lib/mkfifo.c: Likewise.
36992         * lib/mkfifoat.c: Likewise.
36993         * lib/mknod.c: Likewise.
36994         * lib/mknodat.c: Likewise.
36995         * lib/readlink.c: Likewise.
36996         * lib/se-context.in.h: Likewise.
36997         * lib/se-selinux.in.h: Likewise.
36998         * lib/sockets.c: Likewise.
36999         * lib/symlink.c: Likewise.
37000         * lib/symlinkat.c: Likewise.
37001         * lib/unicodeio.c: Likewise.
37002         * lib/unistr.h: Likewise.
37003         * tests/test-areadlink.c: Likewise.
37004         * tests/test-areadlinkat.c: Likewise.
37005         * tests/test-filenamecat.c: Likewise.
37006         * tests/test-fseeko.c: Likewise.
37007         * tests/test-ftello.c: Likewise.
37008         * tests/test-getdate.c: Likewise.
37009         * tests/test-getgroups.c: Likewise.
37010         * tests/test-gethostname.c: Likewise.
37011         * tests/test-quotearg.c: Likewise.
37012         * tests/test-version-etc.c: Likewise.
37013         * tests/test-xalloc-die.c: Likewise.
37014         * tests/test-xfprintf-posix.c: Likewise.
37015         * tests/test-xprintf-posix.c: Likewise.
37016         * tests/test-xvasprintf.c: Likewise.
37017
37018         tests: avoid compiler warnings
37019         * tests/test-fcntl.c (main): Delete unused parameters.
37020         * tests/test-freopen-safer.c (main): Likewise.
37021         * tests/test-xalloc-die.c (main): Mark unused parameters.
37022         * tests/test-fseeko.c (main): Likewise.
37023         * tests/test-ftello.c (main): Likewise.
37024         * tests/test-nanosleep.c (main): Avoid declaration warning.
37025         * tests/test-sleep.c (main): Likewise.
37026         * tests/test-unsetenv.c (main): Silence warning about string
37027         literal.
37028         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37029
37030 2009-12-23  Bruno Haible  <bruno@clisp.org>
37031
37032         * tests/test-localename.c (test_locale_name): New function, extracted
37033         from main. Also test mixed situations.
37034         (test_locale_name_posix, test_locale_name_environ,
37035         test_locale_name_default): New functions.
37036         (main): Invoke them all.
37037         * modules/localename-tests (configure.ac): Test for newlocale.
37038
37039 2009-12-23  Bruno Haible  <bruno@clisp.org>
37040
37041         unistd: Ensure getcwd gets declared before being overridden.
37042         * lib/unistd.in.h: Conditionally include <io.h>.
37043
37044 2009-12-22  Bruno Haible  <bruno@clisp.org>
37045
37046         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37047         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37048         (gl_WCHAR_H): Invoke it.
37049         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37050         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37051         Reported by Karl Berry <karl@freefriends.org>.
37052
37053 2009-12-22  Eric Blake  <ebb9@byu.net>
37054
37055         math, unistd: avoid redundant includes
37056         * lib/math.in.h (isnan): No need to re-include <math.h>.
37057         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37058
37059         getsubopt: work around cygwin bug
37060         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37061         avoid conflicting with system getsubopt.
37062         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37063         bug.
37064
37065         getopt: synchronize from glibc
37066         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37067         parameter order.  Adjust all callers.
37068         (_getopt_internal_r, main): Adjust quoting in error messages.
37069         Drop considerations for outdated POSIX 1003.2 error message.
37070         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37071         callers.
37072         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37073
37074         test-getopt: test stderr behavior
37075         * modules/getopt-posix-tests (Depends-on): Add dup2.
37076         * tests/test-getopt.c (ASSERT): Avoid stderr.
37077         (main): Move stderr to a temporary file.
37078         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37079         Instead, add parameter to inform caller if output occurred.
37080         (test_getopt): Adjust all existing tests to expect silence, and
37081         add new tests of leading ":".
37082         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37083         glibc shortcomings with leading "-:" or "+:" in optstring.
37084         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37085         Likewise.
37086         * doc/posix-functions/getopt.texi (getopt): Likewise.
37087
37088         test-getopt: enhance test
37089         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37090         supports optind=0.
37091         * tests/test-getopt.c (OPTIND_MIN): Move...
37092         * tests/test-getopt.h (OPTIND_MIN): ...here.
37093         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37094         Require that optind=0 works, since modern BSD supports it in
37095         addition to optreset, and since coreutils expects it.
37096         (test_getopt_long_only): New test.
37097         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37098         glibc shortcomings with 'W;', and enforcement of optind=0.
37099         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37100         Likewise.
37101
37102 2009-12-21  Bruno Haible  <bruno@clisp.org>
37103
37104         localename: Improvements for MacOS X and Cygwin.
37105         * lib/localename.h (gl_locale_name_environ): New declaration.
37106         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37107         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37108         (gl_locale_name_posix): Invoke it.
37109         (gl_locale_name_default): Add comments. Use Windows native API also on
37110         Cygwin.
37111
37112 2009-12-21  Bruno Haible  <bruno@clisp.org>
37113
37114         Update list of Win32 locale ids.
37115         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37116         (LANG_SAMI): Renamed from LANG_SAAMI.
37117         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37118         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37119         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37120         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37121         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37122         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37123         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37124         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37125         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37126         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37127         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37128         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37129         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37130         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37131         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37132         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37133         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37134         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37135         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37136         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37137         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37138         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37139         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37140         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37141         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37142         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37143         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37144         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37145         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37146         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37147         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37148         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37149         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37150         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37151         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37152         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37153         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37154         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37155         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37156         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37157         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37158         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37159         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37160         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37161         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37162         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37163         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37164         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37165         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37166         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37167         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37168         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37169         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37170         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37171         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37172         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37173         Add more languages and countries for Sami, Sorbian. Add more countries
37174         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37175         for Pashto. Change country for Syriac, Tswana.
37176
37177 2009-12-21  Eric Blake  <ebb9@byu.net>
37178
37179         test-utimens: avoid spurious failure
37180         * tests/test-chown.h (nap): Factor...
37181         * tests/nap.h: ...into new file.
37182         * tests/test-lchown.h (nap): Avoid duplication.
37183         * tests/test-utimens-common.h (nap): Use shared implementation,
37184         necessary on file systems with 1-second resolution.
37185         * modules/chown-tests (Files): Include new file.
37186         * modules/fdutimensat-tests (Files): Likewise.
37187         * modules/futimens-tests (Files): Likewise.
37188         * modules/lchown-tests (Files): Likewise.
37189         * modules/openat-tests (Files): Likewise.
37190         * modules/utimens-tests (Files): Likewise.
37191         * modules/utimensat-tests (Files): Likewise.
37192
37193 2009-12-19  Eric Blake  <ebb9@byu.net>
37194
37195         futimens, utimensat: work around Linux bug
37196         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37197         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37198         * lib/utimensat.c (rpl_utimensat): Work around it.
37199         * lib/futimens.c (rpl_futimens): Adjust comment.
37200
37201         utimens: work around Linux ctime bug
37202         * lib/utimens.c (detect_ctime_bug): New helper function.
37203         (update_timespec): Differentiate between workaround needed for
37204         this bug vs. what is needed for systems that lack utimensat.
37205         (fdutimens, lutimens): Work around bug.
37206
37207         utimens: check for ctime update
37208         * tests/test-utimens-common.h (check_ctime): Define.
37209         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37210         * tests/test-futimens.h (test_futimens): Likewise.
37211         * tests/test-lutimens.h (test_lutimens): Likewise.
37212         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37213         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37214
37215 2009-12-19  Bruno Haible  <bruno@clisp.org>
37216
37217         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37218         * tests/test-dprintf-posix2.sh: New file.
37219         * tests/test-dprintf-posix2.c: New file.
37220         * modules/dprintf-posix-tests (Files): Add them.
37221         (configure.ac): Check for getrlimit and setrlimit.
37222         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37223
37224 2009-12-19  Bruno Haible  <bruno@clisp.org>
37225
37226         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37227         * tests/test-fprintf-posix3.sh: New file.
37228         * tests/test-fprintf-posix3.c: New file.
37229         * modules/fprintf-posix-tests (Files): Add them.
37230         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37231
37232 2009-12-19  Eric Blake  <ebb9@byu.net>
37233
37234         dirfd: fix prototype
37235         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37236         * lib/dirfd.c (dirfd): Likewise.
37237
37238         canonicalize: reduce memory usage
37239         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37240         allocation to size.
37241         Reported by Solar Designer <solar@openwall.com>.
37242
37243 2009-12-19  Bruno Haible  <bruno@clisp.org>
37244
37245         New module attribute 'Applicability'.
37246         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37247         * gnulib-tool: New option --extract-applicability.
37248         (func_usage): Document it.
37249         (sed_extract_prog): Recognize it.
37250         (func_get_applicability): New function.
37251         (func_import): Generalize handling of 'link-warning' module.
37252         * modules/link-warning (Applicability): New section.
37253         * modules/arg-nonnull (Applicability): New section.
37254         Repoted by Simon Josefsson <simon@josefsson.org>.
37255
37256 2009-12-19  Bruno Haible  <bruno@clisp.org>
37257
37258         fflush: tweak
37259         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37260         * lib/fseeko.c (rpl_fseeko): Likewise.
37261
37262 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37263
37264         * lib/gl_list.h: Fix typo in comment.
37265
37266 2009-12-16  Eric Blake  <ebb9@byu.net>
37267
37268         fcntl: use to simplify other modules
37269         * modules/cloexec (Depends-on): Add fcntl.
37270         * modules/fchdir (Depends-on): Likewise.
37271         * modules/fd-safer-flag (Depends-on): Likewise.
37272         * modules/unistd-safer (Depends-on): Likewise.
37273         * modules/dup3 (configure.ac): Set module indicator.
37274         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37275         missing.
37276         * lib/fchdir.c (_gl_register_dup): Fix comment.
37277         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37278         * lib/dup-safer.c (dup_safer): Likewise.
37279         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37280         * lib/dup3.c (dup3): Likewise.
37281         * tests/test-fchdir.c (main): Enhance test.
37282         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
37283
37284         fcntl: port portions of fcntl to mingw
37285         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37286         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37287         replacement for mingw.
37288         * modules/fcntl (Description): Update.
37289         (Depends-on): Add dup2.
37290         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37291         * modules/fcntl-h (Makefile.am): Substitute it.
37292         * lib/fcntl.in.h (fcntl): Update declaration.
37293         (F_DUPFD, F_GETFD): New macros, when needed.
37294         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37295         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37296         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37297         we now guarantee.
37298
37299         fcntl: work around cygwin bug in F_DUPFD
37300         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37301         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37302         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37303         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37304         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37305
37306         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37307         * modules/fcntl (Files): List new files.
37308         (configure.ac): Run a test.
37309         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37310         * lib/fcntl.c (rpl_fcntl): Likewise.
37311         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37312         (gl_FCNTL_H): Always replace fcntl.h.
37313         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37314         * lib/fcntl.in.h (fcntl): Declare replacement.
37315         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37316         needed, plus a witness.
37317         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37318         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37319         * tests/test-fcntl.c: New file.
37320         * modules/fcntl-tests: Likewise.
37321
37322         binary-io: avoid potential compilation warning
37323         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37324         directives.
37325
37326         fflush: avoid compilation error on NetBSD
37327         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37328         between off_t and fpos_t, since the latter is sometimes a struct.
37329         * lib/fseeko.c (rpl_fseeko): Likewise.
37330         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37331
37332 2009-12-15  Eric Blake  <ebb9@byu.net>
37333
37334         fcntl-h, stdio, sys_ioctl: fix declarations
37335         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37336         function must not take arguments.
37337         * lib/sys_ioctl.in.h (ioctl): Likewise.
37338         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37339         (open): Add a link warning.
37340
37341 2009-12-15  Jim Meyering  <meyering@redhat.com>
37342
37343         areadlink, areadlink-with-size: relax license to LGPLv2+
37344         * modules/areadlink (License): Relax to LGPLv2+.
37345         * modules/areadlink-with-size (License): Likewise.
37346
37347 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37348             Bruno Haible  <bruno@clisp.org>
37349
37350         *printf: Fix memory leak.
37351         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37352         * lib/vfprintf.c (vfprintf): Likewise.
37353         * lib/dprintf.c (dprintf): Likewise.
37354         * lib/vdprintf.c (vdprintf): Likewise.
37355
37356 2009-12-14  Eric Blake  <ebb9@byu.net>
37357
37358         accept4: adjust module dependencies
37359         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37360
37361         utimens: one more try at avoiding compiler warning
37362         * lib/utimens.c (lutimens): Lower scope of result.
37363
37364 2009-12-13  Bruno Haible  <bruno@clisp.org>
37365
37366         Move the malloc checking from module 'list' to new module 'xlist'.
37367         * modules/xlist: New file.
37368         * lib/gl_xlist.h: New file.
37369         * lib/gl_xlist.c: New file.
37370         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37371         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37372         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37373         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37374         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37375         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37376         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37377         gl_sortedlist_nx_add): New declarations.
37378         (struct gl_list_implementation): Rename and change methods accordingly.
37379         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37380         (gl_list_nx_create): Renamed from gl_list_create.
37381         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37382         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37383         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37384         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37385         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37386         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37387         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37388         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37389         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37390         gl_list_create_empty.
37391         (gl_list_nx_create): Renamed from gl_list_create.
37392         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37393         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37394         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37395         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37396         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37397         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37398         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37399         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37400         * lib/gl_array_list.c: Don't include xalloc.h.
37401         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37402         NULL upon out-of-memory.
37403         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37404         out-of-memory.
37405         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37406         Change return type to 'int'.
37407         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37408         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37409         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37410         upon out-of-memory.
37411         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37412         upon out-of-memory.
37413         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37414         upon out-of-memory.
37415         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37416         upon out-of-memory.
37417         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37418         out-of-memory.
37419         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37420         Update.
37421         (gl_array_list_implementation): Update.
37422         * lib/gl_carray_list.c: Don't include xalloc.h.
37423         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37424         Return NULL upon out-of-memory.
37425         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37426         out-of-memory.
37427         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37428         Change return type to 'int'.
37429         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37430         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37431         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37432         upon out-of-memory.
37433         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37434         upon out-of-memory.
37435         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37436         out-of-memory.
37437         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37438         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37439         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37440         Update.
37441         (gl_carray_list_implementation): Update.
37442         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37443         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37444         gl_linked_create_empty. Return NULL upon out-of-memory.
37445         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37446         out-of-memory.
37447         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37448         Change return type to 'int'. Return -1 upon out-of-memory.
37449         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37450         out-of-memory.
37451         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37452         upon out-of-memory.
37453         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37454         upon out-of-memory.
37455         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37456         NULL upon out-of-memory.
37457         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37458         upon out-of-memory.
37459         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37460         out-of-memory.
37461         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37462         Update.
37463         * lib/gl_linked_list.c: Don't include xalloc.h.
37464         (gl_linked_list_implementation): Update.
37465         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37466         (add_to_bucket): Change return type to 'int'.
37467         (gl_linkedhash_list_implementation): Update.
37468         * lib/gl_anytree_list1.h (free_subtree): New function.
37469         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37470         gl_tree_create_empty. Return NULL upon out-of-memory.
37471         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37472         Change return type to 'int'. Return -1 upon out-of-memory.
37473         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37474         out-of-memory.
37475         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37476         (gl_tree_remove_node): New function, moved here from
37477         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37478         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37479         Update.
37480         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37481         malloc, not xmalloc. Return NULL upon out-of-memory.
37482         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37483         out-of-memory.
37484         (gl_tree_remove_node_from_tree): New function, extracted from
37485         gl_tree_remove_node.
37486         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37487         upon out-of-memory.
37488         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37489         out-of-memory.
37490         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37491         upon out-of-memory.
37492         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37493         upon out-of-memory.
37494         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37495         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37496         not xmalloc. Return NULL upon out-of-memory.
37497         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37498         out-of-memory.
37499         (gl_tree_remove_node_from_tree): New function, extracted from
37500         gl_tree_remove_node.
37501         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37502         upon out-of-memory.
37503         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37504         out-of-memory.
37505         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37506         upon out-of-memory.
37507         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37508         upon out-of-memory.
37509         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37510         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37511         gl_anytree_list1.h before gl_anyavltree_list2.h.
37512         (gl_avltree_list_implementation): Update.
37513         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37514         gl_anytree_list1.h before gl_anyavltree_list2.h.
37515         (gl_rbtree_list_implementation): Update.
37516         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37517         Change return type to 'int'. Return -1 upon out-of-memory. Use
37518         __builtin_expect.
37519         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37520         (gl_avltreehash_list_implementation): Update.
37521         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37522         (gl_rbtreehash_list_implementation): Update.
37523         * modules/array-list (Depends-on): Remove xalloc.
37524         * modules/carray-list (Depends-on): Likewise.
37525         * modules/linked-list (Depends-on): Likewise.
37526         * modules/linkedhash-list (Depends-on): Likewise.
37527         * modules/avltree-list (Depends-on): Likewise.
37528         * modules/rbtree-list (Depends-on): Likewise.
37529         * modules/avltreehash-list (Depends-on): Likewise.
37530         * modules/rbtreehash-list (Depends-on): Likewise.
37531
37532         * modules/xsublist: New file.
37533         * lib/gl_xsublist.h: New file.
37534         * lib/gl_xsublist.c: New file.
37535         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37536         (gl_sublist_nx_create): New declaration.
37537         * lib/gl_sublist.c: Don't include xalloc.h.
37538         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37539         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37540         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37541         Change return type to 'int'. Return -1 upon out-of-memory.
37542         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37543         upon out-of-memory.
37544         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37545         NULL upon out-of-memory.
37546         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37547         upon out-of-memory.
37548         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37549         NULL upon out-of-memory.
37550         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37551         NULL upon out-of-memory.
37552         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37553         upon out-of-memory.
37554         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37555         (gl_sublist_list_implementation): Update.
37556         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37557         upon out-of-memory.
37558         * modules/sublist (Depends-on): Remove xalloc.
37559
37560         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37561         * tests/test-carray_list.c: Likewise.
37562         * tests/test-linked_list.c: Likewise.
37563         * tests/test-linkedhash_list.c: Likewise.
37564         * tests/test-avltree_list.c: Likewise.
37565         * tests/test-rbtree_list.c: Likewise.
37566         * tests/test-avltreehash_list.c: Likewise.
37567         * tests/test-rbtreehash_list.c: Likewise.
37568         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37569         * modules/carray-list-tests (Makefile.am): Likewise.
37570         * modules/linked-list-tests (Makefile.am): Likewise.
37571         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37572         * modules/avltree-list-tests (Makefile.am): Likewise.
37573         * modules/rbtree-list-tests (Makefile.am): Likewise.
37574         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37575         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37576
37577         * NEWS: Mention the changes.
37578
37579         * lib/clean-temp.c: Include gl_xlist.h.
37580         * modules/clean-temp (Depends-on): Add xlist.
37581
37582         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37583         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37584
37585         * tests/test-array_oset.c: Include gl_xlist.h.
37586         * modules/array-oset-tests (Depends-on): Add xlist.
37587
37588         Reported by José E. Marchesi <jemarch@gnu.org>.
37589
37590 2009-12-13  Bruno Haible  <bruno@clisp.org>
37591
37592         Move the malloc checking from module 'oset' to new module 'xoset'.
37593         * modules/xoset: New file.
37594         * lib/gl_xoset.h: New file.
37595         * lib/gl_xoset.c: New file.
37596         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37597         declarations.
37598         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37599         (struct gl_oset_implementation): Rename and change methods accordingly.
37600         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37601         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37602         'int'. Mark as __warn_unused_result__.
37603         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37604         gl_oset_create_empty.
37605         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37606         'int'.
37607         * lib/gl_array_oset.c: Don't include xalloc.h.
37608         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37609         malloc, not xmalloc.
37610         (grow): Change return type to 'int'. Don't call xalloc_die.
37611         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37612         to 'int'.
37613         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37614         'int'.
37615         (gl_array_oset_implementation): Update.
37616         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37617         gl_tree_create_empty.
37618         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37619         'int'.
37620         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37621         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37622         xmalloc.
37623         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37624         not xmalloc.
37625         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37626         xmalloc.
37627         (gl_avltree_oset_implementation): Update.
37628         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37629         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37630         xmalloc.
37631         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37632         not xmalloc.
37633         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37634         xmalloc.
37635         (gl_rbtree_oset_implementation): Update.
37636         * modules/array-oset (Depends-on): Remove xalloc.
37637         * modules/avltree-oset (Depends-on): Likewise.
37638         * modules/rbtree-oset (Depends-on): Likewise.
37639         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37640         * tests/test-avltree_oset.c: Likewise.
37641         * tests/test-rbtree_oset.c: Likewise.
37642         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37643         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37644         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37645         * NEWS: Mention the change.
37646
37647 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37648
37649         maint.mk: allow a project to override release-prep commands
37650         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37651         commands into a new rule.
37652         (release-prep): New rule.
37653         (release-prep-hook): New overridable variable.
37654
37655 2009-12-13  Bruno Haible  <bruno@clisp.org>
37656
37657         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37658
37659 2009-12-13  Jim Meyering  <meyering@redhat.com>
37660
37661         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37662         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37663
37664 2009-12-12  Bruno Haible  <bruno@clisp.org>
37665
37666         duplocale: Tweak.
37667         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37668
37669 2009-12-12  Karl Berry  <karl@gnu.org>
37670
37671         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37672
37673 2009-12-12  Bruno Haible  <bruno@clisp.org>
37674
37675         * m4/po.m4: Undo incorrect untabification.
37676
37677 2009-12-12  Bruno Haible  <bruno@clisp.org>
37678
37679         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37680         * modules/c-strtod (Depends-on): Add locale.
37681         * modules/c-strtold (Depends-on): Likewise.
37682
37683 2009-12-12  Bruno Haible  <bruno@clisp.org>
37684
37685         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37686
37687 2009-12-11  Eric Blake  <ebb9@byu.net>
37688
37689         setenv: relax requirement in light of POSIX ruling
37690         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37691         not NULL.
37692         * tests/test-setenv.c (main): Relax test.
37693         * tests/test-unsetenv.c (main): Likewise.
37694         * doc/posix-functions/setenv.texi (setenv): Document this.
37695         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37696
37697 2009-12-11  Bruno Haible  <bruno@clisp.org>
37698
37699         New module 'fd-safer-flag'.
37700         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37701         * lib/dup-safer.c (dup_safer_flag): Remove function.
37702         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37703         * lib/fd-safer.c (fd_safer_flag): Remove function.
37704         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37705         * modules/cloexec (configure.ac): Drop indicator macro.
37706         * modules/fd-safer-flag: New file.
37707         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37708         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37709         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37710
37711 2009-12-11  Bruno Haible  <bruno@clisp.org>
37712
37713         Tests for module 'nl_langinfo'.
37714         * modules/nl_langinfo-tests: New file.
37715         * tests/test-nl_langinfo.sh: New file.
37716         * tests/test-nl_langinfo.c: New file.
37717
37718         New module 'nl_langinfo'.
37719         * lib/nl_langinfo.c: New file.
37720         * m4/nl_langinfo.m4: New file.
37721         * modules/nl_langinfo: New file.
37722         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37723
37724 2009-12-11  Bruno Haible  <bruno@clisp.org>
37725
37726         Tests for module 'langinfo'.
37727         * modules/langinfo-tests: New file.
37728         * tests/test-langinfo.c: New file.
37729
37730         New module 'langinfo'.
37731         * lib/langinfo.in.h: New file.
37732         * m4/langinfo_h.m4: New file.
37733         * modules/langinfo: New file.
37734         * doc/posix-headers/langinfo.texi: Mention the new module.
37735
37736 2009-12-11  Bruno Haible  <bruno@clisp.org>
37737
37738         * lib/config.charset: Untabify.
37739
37740 2009-12-11  Bruno Haible  <bruno@clisp.org>
37741
37742         * modules/unistd-safer (configure.ac): Drop indicator macro.
37743
37744 2009-12-11  Bruno Haible  <bruno@clisp.org>
37745
37746         Move pipe2-safer code to its own file.
37747         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37748         * lib/pipe-safer.c (pipe2_safer): Remove function.
37749         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37750         (Makefile.am): Add it to lib_SOURCES.
37751
37752 2009-12-10  Bruno Haible  <bruno@clisp.org>
37753
37754         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37755
37756 2009-12-10  Bruno Haible  <bruno@clisp.org>
37757
37758         Declare which arguments expect non-NULL values, for GCC and clang.
37759         * build-aux/arg-nonnull.h: New file.
37760         * modules/arg-nonnull: New file.
37761         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37762         (inet_ntop, inet_pton): Use it.
37763         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37764         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37765         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37766         (open, openat): Use it.
37767         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37768         (fnmatch): Use it.
37769         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37770         (getopt, getopt_long, getopt_long_only): Use it.
37771         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37772         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37773         Use it.
37774         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37775         (iconv_open): Use it.
37776         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37777         (strtoimax, strtoumax): Use it.
37778         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37779         (duplocale): Use it.
37780         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37781         (frexp, frexpl): Use it.
37782         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37783         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37784         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37785         (tsearch, tfind, tdelete, twalk): Use it.
37786         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37787         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37788         sigpending): Use it.
37789         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37790         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37791         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37792         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37793         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37794         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37795         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37796         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37797         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37798         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37799         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37800         Use it.
37801         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37802         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37803         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37804         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37805         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37806         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37807         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37808         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37809         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37810         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37811         strtoull, unsetenv): Use it.
37812         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37813         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37814         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37815         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37816         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37817         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37818         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37819         (strcasecmp, strncasecmp): Use it.
37820         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37821         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37822         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37823         rpl_setsockopt): Use it.
37824         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37825         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37826         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37827         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37828         (gettimeofday): Use it.
37829         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37830         (times): Use it.
37831         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37832         (uname): Use it.
37833         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37834         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37835         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37836         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37837         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37838         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37839         unlinkat, write): Use it.
37840         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37841         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37842         * lib/argv-iter.h: Include arg-nonnull.h.
37843         (_ATTRIBUTE_NONNULL_): Remove macro.
37844         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37845         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37846         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37847         optimization.
37848         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37849         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37850         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37851         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37852         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37853         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37854         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37855         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37856         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37857         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37858         * modules/dirent (Depends-on): Add arg-nonnull.
37859         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37860         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37861         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37862         * modules/fnmatch (Depends-on): Add arg-nonnull.
37863         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37864         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37865         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37866         * modules/glob (Depends-on): Add arg-nonnull.
37867         (Makefile.am): Insert arg-nonnull.h into glob.h.
37868         * modules/iconv_open (Depends-on): Add arg-nonnull.
37869         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37870         * modules/inttypes (Depends-on): Add arg-nonnull.
37871         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37872         * modules/locale (Depends-on): Add arg-nonnull.
37873         (Makefile.am): Insert arg-nonnull.h into locale.h.
37874         * modules/math (Depends-on): Add arg-nonnull.
37875         (Makefile.am): Insert arg-nonnull.h into math.h.
37876         * modules/netdb (Depends-on): Add arg-nonnull.
37877         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37878         * modules/search (Depends-on): Add arg-nonnull.
37879         (Makefile.am): Insert arg-nonnull.h into search.h.
37880         * modules/signal (Depends-on): Add arg-nonnull.
37881         (Makefile.am): Insert arg-nonnull.h into signal.h.
37882         * modules/spawn (Depends-on): Add arg-nonnull.
37883         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37884         * modules/stdio (Depends-on): Add arg-nonnull.
37885         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37886         * modules/stdlib (Depends-on): Add arg-nonnull.
37887         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37888         * modules/string (Depends-on): Add arg-nonnull.
37889         (Makefile.am): Insert arg-nonnull.h into string.h.
37890         * modules/strings (Depends-on): Add arg-nonnull.
37891         (Makefile.am): Insert arg-nonnull.h into strings.h.
37892         * modules/sys_socket (Depends-on): Add arg-nonnull.
37893         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37894         * modules/sys_stat (Depends-on): Add arg-nonnull.
37895         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37896         * modules/sys_time (Depends-on): Add arg-nonnull.
37897         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37898         * modules/sys_times (Depends-on): Add arg-nonnull.
37899         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37900         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37901         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37902         * modules/time (Depends-on): Add arg-nonnull.
37903         (Makefile.am): Insert arg-nonnull.h into time.h.
37904         * modules/unistd (Depends-on): Add arg-nonnull.
37905         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37906         * modules/wchar (Depends-on): Add arg-nonnull.
37907         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37908         * modules/argv-iter (Depends-on): Add arg-nonnull.
37909         * tests/test-canonicalize.c (null_ptr): New function.
37910         (main): Use it.
37911         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37912         (main): Use it.
37913         * tests/test-memmem.c (null_ptr): New function.
37914         (main): Use it.
37915         Reported by Jim Meyering.
37916
37917 2009-12-10  Bruno Haible  <bruno@clisp.org>
37918
37919         Use spaces for indentation, not tabs.
37920         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37921         * m4/*.m4: Untabify.
37922         * build-aux/*.h: Untabify.
37923         * tests/**/*.[hc]: Untabify.
37924         * README: New section "Indent with spaces, not TABs", based on
37925         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37926         * NEWS: Mention the change.
37927
37928 2009-12-10  Bruno Haible  <bruno@clisp.org>
37929
37930         pty test: Fix link error.
37931         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37932         test_pty_LDADD.
37933
37934 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37935
37936         * modules/pty: New file.
37937         * modules/pty-tests: New file.
37938         * m4/pty.m4: New file.
37939         * tests/test-pty.c: New file.
37940         * doc/glibc-headers/pty.texi: Modified.
37941         * doc/glibc-functions/forkpty.texi: Modified.
37942         * doc/glibc-functions/openpty.texi: Modified.
37943
37944 2009-12-10  Bruno Haible  <bruno@clisp.org>
37945
37946         Avoid syntax error in C++ mode.
37947         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37948
37949 2009-12-10  Bruno Haible  <bruno@clisp.org>
37950
37951         Use sed with option -e.
37952         * gnulib-tool (func_version, func_emit_copyright_notice,
37953         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37954         option -e to sed.
37955         * modules/link-warning (Makefile.am): Likewise.
37956
37957 2009-12-10  Jim Meyering  <meyering@redhat.com>
37958
37959         mgetgroups: do not write bytes beyond end of malloc'd buffer
37960         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37961         username, we call getgroups with a one-element-shorter buffer,
37962         but still told it the length was original, max_n_groups.
37963
37964 2009-12-09  Eric Blake  <ebb9@byu.net>
37965
37966         cloexec: relax license
37967         * modules/cloexec (Maintainer): Add myself.
37968         (License): Use LGPL, not GPL.
37969
37970         link-warning: optimize generation
37971         * modules/link-warning (Makefile.am): Reduce process usage.
37972
37973 2009-12-09  Bruno Haible  <bruno@clisp.org>
37974
37975         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37976         workaround was added on 2009-11-17.
37977
37978 2009-12-09  Jim Meyering  <meyering@redhat.com>
37979             Bruno Haible  <bruno@clisp.org>
37980
37981         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37982         * modules/link-warning (Makefile.am): Make the comment-removing sed
37983         command more robust in the face of bootstrap-prepended comment lines.
37984
37985 2009-12-09  Bruno Haible  <bruno@clisp.org>
37986
37987         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37988         most one group.
37989
37990 2009-12-09  Simon Josefsson <simon@josefsson.org>
37991             Bruno Haible  <bruno@clisp.org>
37992
37993         * build-aux/link-warning.h: Add copyright notice.
37994         * modules/link-warning (Makefile.am): Generate link-warning.h from
37995         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37996         * NEWS: Mention change in link-warning module.
37997         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37998         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37999         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38000         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38001         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38002         * modules/math (Makefile.am): Add dependency to math.h.
38003         * modules/search (Makefile.am): Add dependency to search.h.
38004         * modules/signal (Makefile.am): Add dependency to signal.h.
38005         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38006         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38007         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38008         * modules/string (Makefile.am): Add dependency to string.h.
38009         * modules/strings (Makefile.am): Add dependency to strings.h.
38010         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38011         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38012         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38013         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38014         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38015         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38016         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38017         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38018         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38019
38020 2009-12-09  Bruno Haible  <bruno@clisp.org>
38021
38022         fchdir: Optimize away rpl_fstat when possible.
38023         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38024         REPLACE_OPEN_DIRECTORY.
38025         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38026
38027 2009-12-09  Bruno Haible  <bruno@clisp.org>
38028
38029         * lib/fchdir.c: Update comment.
38030
38031 2009-12-09  Bruno Haible  <bruno@clisp.org>
38032
38033         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38034
38035 2009-12-08  Eric Blake  <ebb9@byu.net>
38036
38037         fchdir: avoid memory leak on re-registration.
38038         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38039
38040 2009-12-08  Jim Meyering  <meyering@redhat.com>
38041
38042         init.sh: avoid Solaris 10 /bin/sh portability problem
38043         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38044         sourced script:
38045           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38046           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38047           bar
38048         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38049         and two tests used that idiom.
38050         * tests/init.sh: Update suggested usage comments.
38051         (path_prepend_): New function, to be used in place
38052         of the --src-path=DIR option.
38053         (setup_): Move PATH-prepending code into path_prepend_.
38054         * tests/test-pread.sh: Adapt to new usage.
38055         * tests/test-xalloc-die.sh: Likewise.
38056
38057 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38058
38059         * doc/gnulib.texi (Glibc pty.h): Add.
38060         * doc/glibc-functions/forkpty.texi: Add.
38061         * doc/glibc-functions/openpty.texi: Add.
38062         Suggested by Bruno Haible.
38063
38064 2009-12-08  Eric Blake  <ebb9@byu.net>
38065
38066         fchdir: fix logic bugs
38067         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38068         * tests/test-fchdir.c (main): Enhance test.
38069         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38070         is in use.
38071
38072         dup2: fix logic bugs
38073         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38074         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38075         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38076         exists.
38077         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38078
38079 2009-12-07  Eric Blake  <ebb9@byu.net>
38080
38081         unlink: fix m4 detection
38082         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38083
38084         unistd-safer: add unit test
38085         * modules/unistd-safer-tests: New file.
38086         * tests/test-dup-safer.c: Likewise.
38087         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38088         * tests/test-dup2.c (setmode): Likewise.
38089         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38090
38091         cloexec: preserve text vs. binary across dup_cloexec
38092         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38093         mode.
38094         * modules/dup2-tests (Depends-on): Add binary-io.
38095         * modules/cloexec-tests (Depends-on): Likewise.
38096         * tests/test-dup2.c (setmode, is_mode): New helpers.
38097         (main): Add tests that translation mode is preserved.
38098         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38099         Reported by Bruno Haible.
38100
38101         mgetgroups: reduce duplicate listings
38102         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38103         resulting array.
38104         * tests/test-chown.h (test_chown): Simplify client.
38105         * tests/test-lchown.h (test_lchown): Likewise.
38106
38107 2009-12-06  Bruno Haible  <bruno@clisp.org>
38108
38109         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38110         value.
38111
38112 2009-12-06  Bruno Haible  <bruno@clisp.org>
38113
38114         * lib/progname.c: Include stdio.h, stdlib.h.
38115         (set_program_name): Reject a NULL argument.
38116
38117 2009-12-05  Eric Blake  <ebb9@byu.net>
38118
38119         pipe2-safer: new module
38120         * modules/pipe2-safer: New file.
38121         * lib/unistd-safer.h (pipe2_safer): New prototype.
38122         * lib/unistd--.h (pipe2): New wrapper.
38123         * lib/pipe-safer.c (pipe2_safer): New function.
38124         * modules/pipe (Depends-on): Add pipe2-safer.
38125         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38126
38127         stdlib-safer: preserve cloexec flag for mkostemp[s]
38128         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38129         fd_safer_flag.
38130
38131         unistd-safer: allow preservation of cloexec status via flag
38132         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38133         prototypes.
38134         * lib/dup-safer.c (dup_safer_flag): New function.
38135         * lib/fd-safer.c (fd_safer_flag): Likewise.
38136         * modules/cloexec (configure.ac): Set witness.
38137
38138         test-dup2: enhance test
38139         * modules/dup2-tests (Depends-on): Add cloexec.
38140         * tests/test-dup2.c (main): Enhance test.
38141
38142         cloexec: add dup_cloexec
38143         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38144         header and comments.
38145         * lib/cloexec.c (set_cloexec_flag): Add comments.
38146         (dup_cloexec): New function, with mingw implementation borrowed
38147         from...
38148         * lib/w32spawn.h (dup_noinherit): ...here.
38149         * modules/execute (Depends-on): Add cloexec.
38150         * modules/pipe (Depends-on): Likewise.
38151         * modules/cloexec (Depends-on): Add dup2.
38152         * modules/cloexec-tests (Files): New file.
38153         * tests/test-cloexec.c: Likewise.
38154
38155         test-xalloc-die: fix test for mingw
38156         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38157         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38158         directory and .exe suffix off argv[0] output.
38159
38160         test-fseeko: fix test for mingw
38161         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38162         than undefining fseek, so test will pass on mingw.
38163
38164 2009-12-05  Bruno Haible  <bruno@clisp.org>
38165
38166         * lib/progname.h (set_program_name): Clarify specification.
38167         * lib/progname.c (set_program_name): Likewise.
38168         Reported by Jim Meyering.
38169
38170 2009-12-05  Jim Meyering  <meyering@redhat.com>
38171
38172         maint.mk: backslash-escape parens in default regexp
38173         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38174         backslash-escape the literal parentheses.
38175
38176         maint.mk: news-date-check: use grep -E
38177         * top/maint.mk (today): Define a Make variable, not a...
38178         (news-date-check): ...shell variable.
38179         (news-date-regexp): Use the Make variable.
38180         Use grep's -E option.  Change the failing diagnostic to mention
38181         the variable, $(news-date-regexp).
38182
38183 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38184
38185         maintainer-makefile: allow customization of NEWS entry format
38186         * top/maint.mk (news-date-regexp): New overridable variable.
38187         (news-date-check): Use it.
38188
38189 2009-12-04  Eric Blake  <ebb9@byu.net>
38190
38191         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38192         * lib/mgetgroups.h (xgetgroups): New prototype.
38193         * lib/mgetgroups.c (xgetgroups): New wrapper.
38194         (mgetgroups): Handle ENOSYS.
38195         * modules/mgetgroups (Depends-on): Add realloc.
38196         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38197
38198         mgetgroups: avoid argument promotion issues with -1
38199         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38200         for invalid gid_t.
38201         * tests/test-chown.h (getegid, test_chown): Likewise.
38202         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38203
38204 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38205
38206         exclude: Fix header file problems.
38207         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38208
38209 2009-12-01  Jim Meyering  <meyering@redhat.com>
38210
38211         fts: fts_open: do not let an empty string cause immediate failure
38212         This is required in support of GNU rm, for which the command
38213         "rm A '' B" must process and remove both A and B, in spite of
38214         the empty string argument.
38215         * lib/fts.c (fts_open): Do not let the presence of an empty string
38216         cause fts_open to fail immediately.  Most fts-using tools must be
38217         able to process all arguments, in order, and can be expected to
38218         diagnose such arguments themselves.
38219
38220 2009-11-30  Eric Blake  <ebb9@byu.net>
38221
38222         utimens: fix compilation error
38223         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38224         Declare variable at right scope.
38225
38226 2009-11-29  Jim Meyering  <meyering@redhat.com>
38227
38228         bootstrap: handle perl-5.11's changed --version output
38229         * build-aux/bootstrap (get_version): Handle perl separately,
38230         since perl-5.11's --version output is different.
38231
38232 2009-11-28  Jim Meyering  <meyering@redhat.com>
38233
38234         userspec: depend on the inttostr module, too
38235         * modules/userspec (Depends-on): Add inttostr.
38236
38237         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38238         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38239         number of MAXUID when it evaluates to (uid_t) -1.
38240         Likewise for group ID.  Reported by Matt McCutchen in
38241         <http://savannah.gnu.org/bugs/?28113>
38242
38243         userspec: reformat to use spaces, not TABs
38244         * lib/userspec.c: Expand TABs to spaces.
38245         Add Emacs' "indent-tabs-mode: nil" hint.
38246
38247 2009-11-27  Eric Blake  <ebb9@byu.net>
38248
38249         getopt-gnu: flush out another BSD bug
38250         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38251         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38252         flush out BSD bug.
38253         * tests/test-getopt.h (test_getopt): End lists with NULL.
38254         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38255         (test_getopt_long_posix): Enhance test.
38256         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38257         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38258         getopt-gnu.
38259         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38260         Likewise.
38261
38262 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38263
38264         * modules/idpriv-droptemp-tests (Notice): Fix text.
38265
38266 2009-11-27  Jim Meyering  <meyering@redhat.com>
38267
38268         test-xalloc-die: avoid spurious failure due to libtool argv difference
38269         In a libtool-enabled project, this test would fail due to a difference
38270         in the emitted program name, e.g.,
38271         -test-xalloc-die: memory exhausted
38272         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38273         Use program to avoid that.
38274         * modules/xalloc-die-tests (Depends-on): Add progname.
38275         * tests/test-xalloc-die.c: Include progname.h".
38276         (program_name): Remove decl.
38277         (main): Call set_program_name.
38278         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38279
38280 2009-11-26  Richard Jones  <rjones@redhat.com>
38281
38282         w32sock: leave win32 error in place.
38283         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38284
38285 2009-11-26  Eric Blake  <ebb9@byu.net>
38286
38287         init.sh: suggest to use skip_ and fail_ functions in comments
38288         * tests/init.sh: Add a sentence.
38289
38290 2009-11-25  Bruno Haible  <bruno@clisp.org>
38291
38292         init.sh: add documentation in comments
38293         * tests/init.sh: Add some developer and user documentation.
38294
38295 2009-11-26  Jim Meyering  <meyering@redhat.com>
38296
38297         init.sh: accommodate even those who specify bogus srcdir manually
38298         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38299         configure-time tests to be sanitized, so that there is no need to
38300         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38301         (with no double quotes) suffices.  However, since tests may be
38302         invoked manually, and since you may explicitly set srcdir to the
38303         name of a directory containing spaces, do quote its uses here.
38304         * tests/test-pread.sh: Likewise.
38305         Suggested by Bruno Haible.
38306
38307         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38308         * tests/test-pread.sh: Write no data into the pipe, because
38309         test-pread actually reads none.  This avoids a diagnostic,
38310         "bash: echo: write error: Broken pipe", that arises in the unusual
38311         event something is ignoring SIGPIPE, and might be interpreted
38312         as some sort of failure.  Reported by Bruno Haible.
38313
38314 2009-11-25  Jim Meyering  <meyering@redhat.com>
38315
38316         test-pread: cover failure with ESPIPE and EINVAL
38317         * tests/test-pread.c (main): Test for failure, too.
38318         * tests/test-pread.sh: Invoke with stdin on a pipe.
38319         Suggested by Eric Blake.
38320
38321         pread: improvement and fix
38322         * modules/pread (Depends-on): Depend on lseek, for portability to
38323         e.g., mingw.  Suggested by Eric Blake.
38324         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38325
38326         unistd.in.h: correct declaration of pread
38327         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38328         Reported by Richard W.M. Jones.
38329
38330         test-pread.sh: distribute the test script
38331         * modules/pread-tests (Files): Include test-pread.sh.
38332
38333         test-pread.sh: clean up
38334         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38335         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38336         That is unnecessary, since it's always ".".
38337         Suggestion from Eric Blake.
38338
38339         test-pread.sh: make executable
38340         * tests/test-pread.sh: Set executable bit.
38341         Reported by Eric Blake.
38342
38343         correct typo in test-pread.sh
38344         * tests/test-pread.sh: Add #! line.
38345
38346         test pread
38347         * tests/test-pread.c: New file.
38348         * tests/test-pread.sh: Likewise.
38349         * modules/pread-tests: Likewise.
38350
38351         pread: new module
38352         * modules/pread: New file.
38353         * lib/unistd.in.h (pread): Define/declare.
38354         * lib/pread.c (pread): New file.
38355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38356         * modules/unistd (Makefile.am): Substitute witnesses.
38357         * doc/posix-functions/pread.texi (pread): Update.
38358         * MODULES.html.sh: Add pread.
38359
38360 2009-11-25  Jim Meyering  <meyering@redhat.com>
38361
38362         tests/init.sh: new file to be used via most *.sh tests
38363         * tests/init.sh: New file.
38364
38365 2009-11-25  Eric Blake  <ebb9@byu.net>
38366
38367         utimens: work around older Linux failure with symlinks
38368         * lib/utimens.c (lutimensat_works_really): New variable.
38369         (fdutimens, lutimens): Use it to manage kernels that support
38370         nanosecond times on files, but not on symlinks.
38371         Reported by OndÅ™ej Vašík.
38372
38373         utimes: fix configure grammar
38374         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38375
38376 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38377
38378         regex: Fix fastmap for multibyte character ranges.
38379         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38380         characters when a multibyte character range is included.
38381
38382 2009-11-22  Andy Wingo  <wingo@pobox.com>
38383
38384         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38385         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38386
38387 2009-11-24  Bruno Haible  <bruno@clisp.org>
38388
38389         doc: Most *_l functions exist in MacOS X 10.5.
38390         * doc/posix-functions/duplocale.texi: Update platforms list.
38391         * doc/posix-functions/freelocale.texi: Likewise.
38392         * doc/posix-functions/newlocale.texi: Likewise.
38393         * doc/posix-functions/uselocale.texi: Likewise.
38394         * doc/posix-functions/isalnum_l.texi: Likewise.
38395         * doc/posix-functions/isalpha_l.texi: Likewise.
38396         * doc/posix-functions/isblank_l.texi: Likewise.
38397         * doc/posix-functions/iscntrl_l.texi: Likewise.
38398         * doc/posix-functions/isdigit_l.texi: Likewise.
38399         * doc/posix-functions/isgraph_l.texi: Likewise.
38400         * doc/posix-functions/islower_l.texi: Likewise.
38401         * doc/posix-functions/isprint_l.texi: Likewise.
38402         * doc/posix-functions/ispunct_l.texi: Likewise.
38403         * doc/posix-functions/isspace_l.texi: Likewise.
38404         * doc/posix-functions/isupper_l.texi: Likewise.
38405         * doc/posix-functions/iswalnum_l.texi: Likewise.
38406         * doc/posix-functions/iswalpha_l.texi: Likewise.
38407         * doc/posix-functions/iswblank_l.texi: Likewise.
38408         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38409         * doc/posix-functions/iswctype_l.texi: Likewise.
38410         * doc/posix-functions/iswdigit_l.texi: Likewise.
38411         * doc/posix-functions/iswgraph_l.texi: Likewise.
38412         * doc/posix-functions/iswlower_l.texi: Likewise.
38413         * doc/posix-functions/iswprint_l.texi: Likewise.
38414         * doc/posix-functions/iswpunct_l.texi: Likewise.
38415         * doc/posix-functions/iswspace_l.texi: Likewise.
38416         * doc/posix-functions/iswupper_l.texi: Likewise.
38417         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38418         * doc/posix-functions/isxdigit_l.texi: Likewise.
38419         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38420         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38421         * doc/posix-functions/strcoll_l.texi: Likewise.
38422         * doc/posix-functions/strfmon_l.texi: Likewise.
38423         * doc/posix-functions/strftime_l.texi: Likewise.
38424         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38425         * doc/posix-functions/strxfrm_l.texi: Likewise.
38426         * doc/posix-functions/tolower_l.texi: Likewise.
38427         * doc/posix-functions/toupper_l.texi: Likewise.
38428         * doc/posix-functions/towctrans_l.texi: Likewise.
38429         * doc/posix-functions/towlower_l.texi: Likewise.
38430         * doc/posix-functions/towupper_l.texi: Likewise.
38431         * doc/posix-functions/wcscoll_l.texi: Likewise.
38432         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38433         * doc/posix-functions/wctrans_l.texi: Likewise.
38434         * doc/posix-functions/wctype_l.texi: Likewise.
38435         * doc/glibc-functions/strptime_l.texi: Likewise.
38436         * doc/glibc-functions/strtod_l.texi: Likewise.
38437         * doc/glibc-functions/strtof_l.texi: Likewise.
38438         * doc/glibc-functions/strtol_l.texi: Likewise.
38439         * doc/glibc-functions/strtold_l.texi: Likewise.
38440         * doc/glibc-functions/strtoll_l.texi: Likewise.
38441         * doc/glibc-functions/strtoul_l.texi: Likewise.
38442         * doc/glibc-functions/strtoull_l.texi: Likewise.
38443         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38444         * doc/glibc-functions/wcstod_l.texi: Likewise.
38445         * doc/glibc-functions/wcstof_l.texi: Likewise.
38446         * doc/glibc-functions/wcstol_l.texi: Likewise.
38447         * doc/glibc-functions/wcstold_l.texi: Likewise.
38448         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38449         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38450         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38451
38452 2009-11-24  Bruno Haible  <bruno@clisp.org>
38453
38454         duplocale: Fix logic bug.
38455         * lib/duplocale.c: Don't include <langinfo.h>.
38456         (_NL_LOCALE_NAME): Remove macro.
38457         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38458         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38459
38460 2009-11-23  Jim Meyering  <meyering@redhat.com>
38461
38462         test-update-copyright: don't hard-code /usr/bin/perl
38463         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38464         perl to print the current year.  Gilles Espinasse reported that
38465         the replaced use of perl was hard-coded as /usr/bin/perl.
38466
38467 2009-11-23  Bruno Haible  <bruno@clisp.org>
38468
38469         duplocale: Add support for glibc 2.3.x.
38470         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38471
38472 2009-11-22  Bruno Haible  <bruno@clisp.org>
38473
38474         vasnprintf: Tiny optimization.
38475         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38476         MacOS X.
38477
38478 2009-11-22  Bruno Haible  <bruno@clisp.org>
38479
38480         Tests for module 'duplocale'.
38481         * modules/duplocale-tests: New file.
38482         * tests/test-duplocale.c: New file.
38483
38484         New module 'duplocale'.
38485         * m4/duplocale.m4: New file.
38486         * lib/locale.in.h (duplocale): New declaration.
38487         * lib/duplocale.c: New file.
38488         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38489         gl_LOCALE_H_DEFAULTS): New macros.
38490         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38491         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38492         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38493         REPLACE_DUPLOCALE.
38494         * modules/duplocale: New file.
38495         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38496
38497 2009-11-22  Bruno Haible  <bruno@clisp.org>
38498
38499         * modules/locale-tests (configure.ac): Test for newlocale function.
38500         * tests/test-locale.c: When the system has extended locale functions,
38501         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38502
38503         locale: Make locale_t available when possible.
38504         * lib/locale.in.h: Include <xlocale.h> when it exists.
38505         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38506         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38507         * modules/locale (Depends-on): Add extensions.
38508         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38509         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38510
38511 2009-11-22  Bruno Haible  <bruno@clisp.org>
38512
38513         Add comments.
38514         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38515         invocation.
38516         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38517         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38518         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38519
38520 2009-11-22  Bruno Haible  <bruno@clisp.org>
38521
38522         error: account for the possibility of freopen (stdout).
38523         * lib/error.c: Include <unistd.h>.
38524         (flush_stdout): New function, extracted from error and error_at_line.
38525         Determine stdout's fd dynamically.
38526         (error, error_at_line): Invoke flush_stdout.
38527         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38528         * modules/error (Depends-on): Add unistd.
38529
38530 2009-11-22  Bruno Haible  <bruno@clisp.org>
38531
38532         diffseq: Add comment.
38533         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38534
38535 2009-11-22  Jim Meyering  <meyering@redhat.com>
38536
38537         c-stack: avoid defining an unused static function
38538         * lib/c-stack.c (find_stack_direction): Do not define this function
38539         when it will not be used.
38540
38541         diffseq: avoid spurious gcc warnings
38542         * lib/diffseq.h (IF_LINT2): Define.
38543         (compareseq): Use it to initialize two members of "part".
38544         This avoids two used-uninitialized warnings.
38545
38546 2009-11-21  Jim Meyering  <meyering@redhat.com>
38547
38548         c-stack: avoid "ignoring return value of `write'" warning
38549         * lib/c-stack.c: Include "ignore-value.h".
38550         (die): Explicitly ignore each write return value.
38551         * modules/c-stack (Depends-on): Add ignore-value.
38552
38553 2009-11-21  Bruno Haible  <bruno@clisp.org>
38554
38555         diffseq: reduce scope of variable 'best'.
38556         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38557         variable, earlier used for two different purposes.
38558
38559 2009-11-21  Jim Meyering  <meyering@redhat.com>
38560
38561         diffseq: remove useless assignment to "best"
38562         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38563         assignment.  At that point "best" is already guaranteed to be zero.
38564
38565 2009-11-20  Eric Blake  <ebb9@byu.net>
38566
38567         build: mention ftp redirector in release announcements
38568         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38569         values that used to come from cfg.mk; mention FTP redirect URL.
38570         * build-aux/announce-gen: Mention the mirror list.
38571         Suggested by Karl Berry.
38572
38573         nanosleep: improve port to mingw
38574         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38575         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38576         LIB_NANOSLEEP, but only when needed.
38577         * modules/select (Link): Document LIBSOCKET.
38578         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38579         enough.
38580
38581         nanosleep: work around cygwin bug
38582         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38583         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38584         bug.
38585         (getnow): Delete, not needed.
38586         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38587         LIB_CLOCK_GETTIME.
38588         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38589         clock-time, gettime.
38590         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38591         bug.
38592         * modules/nanosleep-tests: New test.
38593         * tests/test-nanosleep.c: New file.
38594
38595         sleep: work around cygwin bug
38596         * lib/sleep.c (rpl_sleep): Work around the bug.
38597         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38598         (gl_PREREQ_SLEEP): Delete unused macro.
38599         * modules/sleep (Depends-on): Add verify.
38600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38601         * modules/unistd (Makefile.am): Substitute witness.
38602         * lib/unistd.in.h (sleep): Update prototype.
38603         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38604         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38605         * modules/sleep-tests (Depends-on): Check for alarm.
38606
38607 2009-11-20  Jim Meyering  <meyering@redhat.com>
38608
38609         maint.mk: improve sc_prohibit_magic_number_exit
38610         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38611         so it does not match uses like System.exit(1).
38612         Add comments showing how to correct all offenders.
38613
38614 2009-11-19  Eric Blake  <ebb9@byu.net>
38615
38616         xalloc-die-tests: add missing library
38617         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38618
38619         test-xvasprintf: silence compiler warnings
38620         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38621         empty string from gcc.
38622
38623 2009-11-19  Jim Meyering  <meyering@redhat.com>
38624
38625         xfreopen: new module, from coreutils
38626         * modules/xfreopen: New module.
38627         * lib/xfreopen.c: New file.
38628         * lib/xfreopen.h: New file.
38629         * MODULES.html.sh (File stream based Input/Output"): Add it.
38630
38631 2009-11-19  Eric Blake  <ebb9@byu.net>
38632
38633         manywarnings: depend on warnings
38634         * modules/manywarnings (Depends-on): Add warnings.
38635
38636         build: avoid compiler warnings
38637         * lib/select.c (rpl_select): Delete unused variable.
38638         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38639
38640 2009-11-18  Eric Blake  <ebb9@byu.net>
38641
38642         tests: avoid false negative with --with-packager
38643         * tests/test-version-etc.sh: Discard packager information.
38644         * tests/test-argp-version-etc-1.sh: Likewise.
38645         Reported by Mike Frysinger.
38646
38647         utimens: fix regression on Solaris
38648         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38649         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38650         can only change fd timestamps via futimesat.  Instead, use an
38651         additional witness macro to avoid BSD bug.
38652         Reported by Jim Meyering.
38653
38654 2009-11-17  Eric Blake  <ebb9@byu.net>
38655
38656         usleep: use it to simplify tests
38657         * modules/stat-time-tests (Depends-on): Add usleep.
38658         (configure.ac): Drop usleep check.
38659         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38660         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38661         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38662         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38663         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38664         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38665         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38666         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38667         Likewise.
38668         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38669         * tests/test-lchown.h (nap): Likewise.
38670         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38671         * tests/test-stat-time.c (nap): Likewise.
38672         * tests/test-utimens-common.h (nap): Update comments.
38673
38674         usleep: new module
38675         * modules/usleep: New file.
38676         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38677         * lib/usleep.c (usleep): Likewise.
38678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38679         * modules/unistd (Makefile.am): Substitute witnesses.
38680         * lib/unistd.in.h (usleep): Add declaration.
38681         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38682         * MODULES.html.sh (Date and time): Likewise.
38683         * modules/usleep-tests (Depends-on): New test.
38684         * tests/test-usleep.c: New file.
38685
38686         chown: work around OpenBSD bug
38687         * lib/chown.c (rpl_chown): Work around the bug.
38688         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38689         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38690         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38691         * modules/chown (Depends-on): Add stdbool.
38692         * modules/lchown (Depends-on): Likewise.
38693         * doc/posix-functions/chown.texi (chown): Document the bug.
38694         * doc/posix-functions/lchown.texi (lchown): Likewise.
38695         * tests/test-lchown.h (test_chown): Relax test.
38696
38697         mkstemp: avoid conflict with C++ keyword template
38698         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38699         * lib/mkostemp.c (mkostemp): Likewise.
38700         * lib/mkostemps.c (mkostemps): Likewise.
38701         * lib/mkstemp.c (mkstemp): Likewise.
38702         * lib/mkstemps.c (mkstemps): Likewise.
38703
38704         xalloc-die-tests: optimize
38705         * tests/test-xalloc-die.sh: Reduce number of processes.
38706
38707 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38708
38709         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38710         patch from ludo@gnu.org (Ludovic Courtès).
38711
38712 2009-11-17  Jim Meyering  <meyering@redhat.com>
38713
38714         version-etc: use proper license string
38715         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38716         * modules/version-etc-fsf: Likewise.
38717
38718 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38719
38720         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38721         printed to stdout.  Deal with EOL differences.
38722
38723 2009-11-17  Eric Blake  <ebb9@byu.net>
38724
38725         unsetenv: work around Solaris bug
38726         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38727         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38728         Reported by Jim Meyering.
38729
38730         vasnprintf: avoid compiler warnings
38731         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38732         variables.
38733         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38734
38735 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38736
38737         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38738         settings since xalloc-die is no longer the self test,
38739         xalloc-die.sh is.
38740
38741 2009-11-17  Jim Meyering  <meyering@redhat.com>
38742
38743         test-xalloc-die.sh: make the code agree with the commit log
38744         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38745         at the end, just in case you happen to have a test-xalloc-die
38746         program in some other PATH directory.
38747
38748         test-xalloc-die.sh: fix a portability bug
38749         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38750         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38751         Otherwise, argv[0] (as often seen in diagnostics) would be too
38752         system-dependent, sometimes with, and sometimes without the leading "./".
38753
38754         version-etc-fsf: relax license to LGPLv3+
38755         * modules/version-etc-fsf (License): Relax license.
38756
38757 2009-11-16  Eric Blake  <ebb9@byu.net>
38758
38759         xalloc-die-tests: avoid printing null pointer
38760         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38761         shell script.
38762         * tests/test-xalloc-die.c (program_name): Declare.
38763         * tests/test-xalloc-die.sh (tmpfiles): New file.
38764
38765         setenv, unsetenv: work around various bugs
38766         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38767         (setenv) [HAVE_SETENV]: Work around bugs.
38768         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38769         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38770         for bugs.
38771         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38772         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38773         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38774         * modules/stdlib (Makefile.am): Update substitutions.
38775         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38776         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38777         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38778         * modules/setenv-tests: New test.
38779         * modules/unsetenv-tests: Likewise.
38780         * tests/test-setenv.c: New file.
38781         * tests/test-unsetenv.c: Likewise.
38782
38783 2009-11-16  Jim Meyering  <meyering@redhat.com>
38784
38785         version-etc: relax license to LGPLv3+
38786         * modules/version-etc (License): Relax license.
38787
38788         better AC_REQUIRE expanded-before-required-warning avoidance
38789         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38790         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38791         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38792         which is no longer needed.
38793
38794 2009-11-16  Eric Blake  <ebb9@byu.net>
38795
38796         test-freading: clean up temporary file
38797         * tests/test-freading.c (main): Remove file on success, and use
38798         ASSERT more liberally.
38799         Reported by Jim Meyering.
38800
38801 2009-11-16  Jim Meyering  <meyering@redhat.com>
38802
38803         avoid new AC_REQUIRE expanded-before-required warnings
38804         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38805         merely using it.
38806         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38807         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38808
38809 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38810
38811         * tests/test-xalloc-die.c: New file.
38812         * modules/xalloc-die-tests: New file.
38813         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38814         XFAIL_TESTS so it can be appended by modules.
38815
38816 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38817
38818         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38819         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38820
38821 2009-11-14  Eric Blake  <ebb9@byu.net>
38822
38823         fnmatch: avoid compiler warning
38824         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38825         to silence compiler warning about mismatch signedness in ?:.
38826         Reported by Robert Millan.
38827
38828         intprops: add double-inclusion guard
38829         * lib/intprops.h: Allow idempotent includes.
38830         Suggested by Bruce Korb.
38831
38832         openat: detect Solaris fchownat bug
38833         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38834         penalizing glibc chownat when only lchownat is broken.
38835         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38836         trailing slash bugs.
38837         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38838         * modules/openat-tests (Files): Include more files.
38839         (Depends-on): Add mgetgroups, sleep, stat-time.
38840         (configure.ac): Add additional checks.
38841         (Makefile.am): Build new test.
38842         * tests/test-fchownat.c: New file.
38843
38844         lchown: detect Solaris and FreeBSD bug
38845         * lib/lchown.c (rpl_lchown): Work around bug.
38846         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38848         * modules/unistd (Makefile.am): Populate it.
38849         * lib/unistd.in.h (lchown): Update declaration.
38850         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38851         * modules/lchown-tests: New file.
38852         * tests/test-lchown.h (test_lchown): Likewise.
38853         * tests/test-lchown.c (main): Likewise.
38854
38855         chown: detect Solaris and FreeBSD bug
38856         * lib/chown.c (rpl_chown): Work around bug.
38857         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38858         (gl_PREREQ_CHOWN): Delete.
38859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38860         * modules/unistd (Makefile.am): Populate it.
38861         * lib/unistd.in.h (chown): Update declaration.
38862         * lib/lchown.c (chown): Update client.
38863         * modules/lchown (Depends-on): Add lstat.
38864         * doc/posix-functions/chown.texi (chown): Document the bug.
38865         * doc/posix-functions/getgroups.texi (getgroups): Document
38866         getgroups pitfall.
38867         * modules/chown-tests: New file.
38868         * tests/test-chown.h (test_chown): Likewise.
38869         * tests/test-chown.c (main): Likewise.
38870
38871 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38872
38873         gnulib-tool: correctly detect absence of m4 directories
38874         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38875
38876 2009-11-14  Jim Meyering  <meyering@redhat.com>
38877
38878         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38879         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38880
38881 2009-11-14  John W. Eaton  <jwe@gnu.org>
38882
38883         strftime.h: wrap funtion declaration in extern "C" block
38884         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38885
38886 2009-11-13  Eric Blake  <ebb9@byu.net>
38887
38888         getgroups: avoid compiler warning
38889         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38890
38891         getgroups: work around FreeBSD bug
38892         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38893         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38894         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38895         * tests/test-getgroups.c (main): Fix buffer overrun.
38896
38897         getgroups: avoid compilation failure
38898         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38899         * modules/getgroups (Depends-on): Add stdint.
38900
38901 2009-11-13  Jim Meyering  <meyering@redhat.com>
38902
38903         test-getgroups: avoid compilation failure
38904         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38905
38906 2009-11-13  Eric Blake  <ebb9@byu.net>
38907
38908         mgetgroups: new module, taken from coreutils
38909         * modules/mgetgroups: New file.
38910         * lib/mgetgroups.h: Likewise.
38911         * lib/mgetgroups.c (mgetgroups): Likewise.
38912         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38913         * MODULES.html.sh (Users and groups): Mention it.
38914
38915         getgroups: don't expose GETGROUPS_T to user
38916         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38917         an element at a time if GETGROUPS_T is wrong size.
38918         * lib/getugroups.h (getugroups): Change signature.
38919         * lib/unistd.in.h (getgroups): Likewise.
38920         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38921         signature needs fixing.
38922         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38923         AC_TYPE_GETGROUPS.
38924         * modules/group-member (Depends-on): Add getgroups.
38925         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38926         (group_member): Rely on getgroups replacement.
38927         * lib/getugroups.c (getugroups): Use gid_t.
38928         * tests/test-getgroups.c (main): Likewise.
38929         * NEWS: Mention the signature change.
38930         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38931         problem with signature.
38932         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38933         GETGROUPS_T is still useful for setgroups.
38934
38935         getgroups, getugroups: provide stubs for mingw
38936         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38937         * lib/getugroups.c (getugroups): Likewise.
38938         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38939         function.  Modernize replacement scheme.
38940         (gl_PREREQ_GETGROUPS): Delete.
38941         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38942         * modules/getgroups (configure.ac): Declare witness.
38943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38944         * modules/unistd (Depends-on): Substitute witness.
38945         * lib/unistd.in.h (getgroups): Declare replacement.
38946
38947         getgroups: avoid calling exit
38948         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38949         drop xalloc.
38950         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38951         dependencies.
38952         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38953         exiting, in the rare case of malloc failure.
38954
38955         getgroups: fix logic error
38956         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38957         has more than 20 groups.
38958         * modules/getgroups-tests: New test.
38959         * tests/test-getgroups.c: New file.
38960
38961 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38962
38963         * tests/test-base64.c: Improve.
38964
38965 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38966
38967         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38968         Blake <ebb9@byu.net>.
38969
38970 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38971
38972         * tests/test-xvasprintf.c: Add %s%s related checks.
38973
38974 2009-11-12  Eric Blake  <ebb9@byu.net>
38975
38976         version-etc: match standards.texi style
38977         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38978         and use <> only for URLs.
38979
38980 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38981
38982         fts: do not fail on a submount during traversal
38983         * lib/fts.c (fts_build): Read the stat info again after opening
38984         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38985         Original report at http://bugzilla.redhat.com/501848.
38986
38987 2009-11-12  Jim Meyering  <meyering@redhat.com>
38988
38989         bootstrap: sync from coreutils
38990         * build-aux/bootstrap (bootstrap_epilogue): New function.
38991         Use git_modules_config in one more place.  This make bootstrap's
38992         --gnulib-srcdir option more useful for testing.
38993
38994         bootstrap: generalize autoheader check
38995         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38996         AC_CONFIG_HEADERS.
38997
38998 2009-11-11  Eric Blake  <ebb9@byu.net>
38999
39000         mkfifoat: use new modules for Solaris and BSD bugs
39001         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39002         * lib/mkfifoat.c (mknodat): Split...
39003         * lib/mknodat.c (mknodat): ...into new file.
39004         * modules/mkfifoat (Files): Ship new file.
39005         (Depends-on): Add mkfifo, mknod.
39006         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39007         (Depends-on): Add symlink.
39008         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39009         redundant with test_mkfifo.h.
39010         (do_mkfifoat, do_mknodat): New helpers.
39011
39012         mknod: new module
39013         * modules/mknod: New file.
39014         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39015         * lib/mknod.c (mknod): Likewise.
39016         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39017         defaults.
39018         * modules/sys_stat (Makefile.am): Substitute them.
39019         * lib/sys_stat.in.h (mknod): Declare replacement.
39020         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39021         Document it.
39022         * doc/posix-functions/mknod.texi (mknod): Likewise.
39023         * modules/mknod-tests: New test.
39024         * tests/test-mknod.c: Likewise.
39025
39026         mkfifo: new module
39027         * modules/mkfifo: New file.
39028         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39029         * lib/mkfifo.c (mkfifo): Likewise.
39030         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39031         defaults.
39032         * modules/sys_stat (Makefile.am): Substitute them.
39033         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39034         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39035         Document it.
39036         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39037         * modules/mkfifo-tests: New test.
39038         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39039         from test-mkfifoat.c.
39040         * tests/test-mkfifo.c: New file.
39041
39042         readlink: detect FreeBSD bug
39043         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39044         slash on symlink.
39045         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39046         * tests/test-readlink.h (test_readlink): Enhance test.
39047
39048         symlink: detect FreeBSD bug
39049         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39050         slash on symlink.
39051         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39052         * tests/test-symlink.h (test_symlink): Enhance test.
39053
39054 2009-11-10  Eric Blake  <ebb9@byu.net>
39055
39056         link: detect FreeBSD bug
39057         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39058         symlink.
39059         * doc/posix-functions/link.texi (link): Document the bug.
39060         * tests/test-link.h (test_link): Enhance test.
39061         * tests/test-linkat.c (main): Update caller.
39062
39063         unlink, remove: detect FreeBSD bug
39064         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39065         slash on symlink.
39066         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39067         * doc/posix-functions/remove.texi (remove): Likewise.
39068         * tests/test-unlink.h (test_unlink): Enhance test.
39069         * tests/test-remove.c (main): Likewise.
39070
39071 2009-11-09  Eric Blake  <ebb9@byu.net>
39072
39073         rename: detect FreeBSD bug
39074         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39075         slash on symlink.
39076         * modules/renameat-tests (Depends-on): Add filenamecat.
39077         * tests/test-rename.h (test_rename): Allow one more errno.
39078         * tests/test-renameat.c (main): Likewise.
39079         * doc/posix-functions/rename.texi (rename): Document the bug.
39080
39081         open: detect FreeBSD bug
39082         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39083         symlink.
39084         * doc/posix-functions/open.texi (open): Document the bug.
39085         * doc/posix-functions/utimes.texi (utimes): Likewise.
39086         * tests/test-open.h (test_open): Add parameters, and test symlink
39087         handling.
39088         * tests/test-open.c (main): Adjust caller.
39089         * tests/test-fcntl-safer.c (main): Likewise.
39090         * modules/open-tests (Depends-on): Add stdbool, symlink.
39091         * modules/fcntl-safer-tests (Depends-on): Likewise.
39092         * tests/test-openat.c (main): Add test-open tests.
39093
39094         stat: detect FreeBSD bug
39095         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39096         symlink.
39097         * doc/posix-functions/stat.texi (stat): Document the bug.
39098         * tests/test-stat.h (test_stat_func): Add argument.
39099         * tests/test-stat.c (main): Adjust caller.
39100         * tests/test-fstatat.c (main): Likewise.
39101         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39102         Reported by Jim Meyering.
39103
39104 2009-11-09  James Youngman  <jay@gnu.org>
39105
39106         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39107         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39108
39109 2009-11-08  Jim Meyering  <meyering@redhat.com>
39110
39111         utimens: remove invalid futimesat call
39112         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39113         It used the file descriptor of the target file as the DIR_FD
39114         parameter and NULL as the file name.  That caused failure with
39115         errno == EFAULT on FreeBSD-8.0-rc2
39116
39117 2009-11-07  Eric Blake  <ebb9@byu.net>
39118
39119         fflush, freadseek: use fseeko, not fseek
39120         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39121         (clear_ungetc_buffer): Avoid potential problems on large files.
39122         * lib/freadseek.c (freadseek): Likewise.
39123         * modules/freadseek (Depends-on): Add fseeko.
39124         * modules/fseek (configure.ac): Set a witness.
39125         * tests/test-fflush.c (main): Use fseeko.
39126         * tests/test-fpurge.c (fseek): Disable link warning.
39127         * tests/test-freadable.c (fseek): Likewise.
39128         * tests/test-freading.c (fseek): Likewise.
39129         * tests/test-fseeko.c (fseek): Likewise.
39130         * tests/test-ftell.c (fseek): Likewise.
39131         * tests/test-ftello.c (fseek): Likewise.
39132         * tests/test-fwritable.c (fseek): Likewise.
39133         * tests/test-fwriting.c (fseek): Likewise.
39134
39135 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39136
39137         * modules/memchr (Depends-on): Drop getpagesize dependency.
39138
39139 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39140
39141         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39142         Reported by Ludovic Courtès.
39143         * build-aux/pmccabe2html: Improve example usage.
39144         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39145
39146 2009-11-06  Jim Meyering  <meyering@redhat.com>
39147
39148         do-release-commit-and-tag: New module.
39149         Automate the release-commit and tag process.
39150         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39151         * modules/do-release-commit-and-tag: New file.
39152         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39153
39154 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39155
39156         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39157         because test-select.c uses inet_pton.
39158
39159 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39160
39161         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39162         GETADDRINFO_LIB.  Bump serial number.
39163         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39164         Suggested by Eric Blake <ebb9@byu.net>.
39165
39166 2009-11-05  Eric Blake  <ebb9@byu.net>
39167
39168         strtod: detect darwin bug
39169         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39170         Reported by Leo Davis.
39171
39172         freopen-safer: new module
39173         * modules/freopen-safer: New module.
39174         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39175         * lib/freopen-safer.c (freopen_safer): New file.
39176         * lib/stdio-safer.h (freopen_safer): New declaration.
39177         * lib/stdio--.h (freopen): New override.
39178         * MODULES.html.sh (File stream based Input/Output): Mention it.
39179         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39180         freopen-safer module.
39181         * doc/posix-functions/stderr.texi (stderr): Likewise.
39182         * doc/posix-functions/stdin.texi (stdin): Likewise.
39183         * doc/posix-functions/stdout.texi (stdout): Likewise.
39184         * modules/freopen-safer-tests: New test.
39185         * tests/test-reopen-safer.c: New file.
39186
39187 2009-11-05  Jim Meyering  <meyering@redhat.com>
39188
39189         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39190         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39191
39192 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39193
39194         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39195
39196 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39197
39198         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39199
39200 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39201
39202         Fix link error.
39203         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39204         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39205
39206 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39207
39208         * tests/test-func.c: Also test value of __func__.
39209
39210 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39211
39212         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39213         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39214
39215 2009-11-05  Bruno Haible  <bruno@clisp.org>
39216
39217         Fix link error.
39218         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39219         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39220         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39221
39222 2009-11-05  Bruno Haible  <bruno@clisp.org>
39223
39224         Tests for module 'inet_pton'.
39225         * modules/inet_pton-tests: New file.
39226         * tests/test-inet_pton.c: New file.
39227
39228 2009-11-05  Bruno Haible  <bruno@clisp.org>
39229
39230         Tests for module 'inet_ntop'.
39231         * modules/inet_ntop-tests: New file.
39232         * tests/test-inet_ntop.c: New file.
39233
39234 2009-11-04  Eric Blake  <ebb9@byu.net>
39235
39236         stdlib-safer: wrap all mkstemp variants
39237         * modules/mkostemp (configure.ac): Set witness.
39238         * modules/mkostemps (configure.ac): Likewise.
39239         * modules/mkstemps (configure.ac): Likewise.
39240         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39241         (mkstemps_safer): Wrap more functions.
39242         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39243         wrapping.
39244         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39245         (mkstemps_safer): Implement the wrappers.
39246
39247         mkstemps, mkostemps: new modules
39248         * modules/mkostemps: New module.
39249         * modules/mkstemps: Likewise.
39250         * lib/mkostemps.c (mkostemps): New file.
39251         * lib/mkstemps.c (mkstemps): Likewise.
39252         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39253         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39255         * modules/stdlib (Makefile.am): Substitute them.
39256         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39257         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39258         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39259         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39260         * MODULES.html.sh (File system functions): Mention them.
39261
39262         tempname: resync from glibc
39263         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39264         same values for __GT_FILE as glibc.  Abort even when assertions
39265         are disabled.
39266         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39267         match its value otherwise.  Allow idempotent inclusion.
39268         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39269         * lib/mkostemp.c (mkostemp): Likewise.
39270         * lib/mkstemp.c (mkstemp): Likewise.
39271         * lib/tmpfile.c (tmpfile): Likewise.
39272         * NEWS: Document this.
39273
39274         utimens: fix use of futimens on older Linux
39275         * lib/utimens.c (fdutimens): Use updated, rather than original,
39276         timespec to avoid bug in older Linux kernel.
39277         Reported by Simon Josefsson.
39278
39279 2009-11-04  Bruno Haible  <bruno@clisp.org>
39280
39281         Make num_processors more flexible and consistent.
39282         * lib/nproc.h (enum nproc_query): New type.
39283         (num_processors): Add a 'query' argument.
39284         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39285         (num_processors): Add a 'query' argument. Test the value of the
39286         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39287         mingw, count the number of CPUs available for the current process.
39288         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39289         Check for sched_getaffinity and sched_getaffinity_np.
39290         * modules/nproc (Depends-on): Add c-ctype, extensions.
39291         * NEWS: Mention the change.
39292
39293 2009-11-03  Bruno Haible  <bruno@clisp.org>
39294
39295         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39296
39297 2009-11-03  Jim Meyering  <meyering@redhat.com>
39298
39299         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39300         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39301         if it is defined.
39302
39303 2009-11-02  Eric Blake  <ebb9@byu.net>
39304
39305         mktime, timegm: share common declaration
39306         * lib/mktime-internal.h: New file.
39307         * lib/mktime.c: Use it rather than open-coding a declaration.
39308         * lib/timegm.c: Likewise.
39309         * modules/mktime (Files): Ship it.
39310         * modules/timegm (Files): Likewise.
39311         Suggested by Bruno Haible.
39312
39313         test-update-copyright: update test to match script changes
39314         * tests/test-update-copyright.sh: Avoid hard-coding perl
39315         location.  Don't update *.bak created by earlier runs.
39316
39317 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39318             Simon Josefsson  <simon@josefsson.org>
39319             Bruno Haible  <bruno@clisp.org>
39320
39321         Fix link error on Solaris 8.
39322         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39323         also in libnsl. Define also INET_PTON_LIB.
39324         * modules/inet_pton (Link): New section.
39325
39326 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39327             Bruno Haible  <bruno@clisp.org>
39328
39329         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39330         * modules/inet_ntop (Link): New section.
39331         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39332
39333 2009-11-02  Eric Blake  <ebb9@byu.net>
39334
39335         maint: avoid compiler warnings in m4 macros
39336         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39337         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39338
39339 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39340
39341         * m4/pmccabe2html.m4: Remove file.
39342         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39343         function.  Change maintainer.
39344         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39345         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39346         Courtès).
39347
39348 2009-10-31  Eric Blake  <ebb9@byu.net>
39349
39350         fseeko: fix m4 regression
39351         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39352         regression from 2009-10-27.
39353         Reported by Ralf Wildenhues.
39354
39355 2009-10-31  Jim Meyering  <meyering@redhat.com>
39356
39357         inttostr: aesthetics and improved (compile-time) safety
39358         Define inttype_is_signed rather than inttype_is_unsigned,
39359         since the sole use is via "#if inttype_is_signed".
39360         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39361         inttype_is_unsigned.
39362         * lib/offtostr.c (inttype_is_signed): Likewise.
39363         * lib/uinttostr.c (inttype_is_signed): Likewise.
39364         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39365         * lib/inttostr.c (inttostr): Use verify to cross-check the
39366         inttype_is_signed value and the signedness of the actual type.
39367         * modules/inttostr (Depends-on): Add verify.
39368
39369 2009-10-30  Eric Blake  <ebb9@byu.net>
39370
39371         build: avoid compiler warnings
39372         * lib/fchmodat.c (lchmod): Mark unused variables.
39373         * lib/getopt.c (_getopt_initialize): Likewise.
39374         * lib/mktime.c (__mktime_internal): Provide prototype.
39375         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39376         older gcc that do not understand #pragma GCC diagnostic.
39377         * lib/uinttostr.c (inttype_is_unsigned): Define.
39378         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39379
39380 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39381
39382         stat: fix compilation on AIX
39383         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39384         only see struct stat64.
39385
39386 2009-10-30  Eric Blake  <ebb9@byu.net>
39387
39388         exclude: make more robust
39389         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39390         rather than masking a coding bug.
39391         Suggested by Bruno Haible.
39392
39393 2009-10-30  Jim Meyering  <meyering@redhat.com>
39394
39395         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39396         Rather than putting #!/usr/bin/perl on the first line,
39397         start with a variant of what's recommended by "man perlrun" that
39398         invokes the first "perl" program from your shell's search path.
39399         * build-aux/gitlog-to-changelog: Replace #!... as above.
39400         Add a "Local Variables" perl mode setting.
39401         Prompted by a patch from Ludovic Courtès.
39402         Improved by Eric Blake.
39403         * build-aux/useless-if-before-free: Likewise.
39404         * build-aux/announce-gen: Likewise.
39405         * build-aux/update-copyright: Likewise.
39406
39407 2009-10-29  Eric Blake  <ebb9@byu.net>
39408
39409         filenamecat-lgpl: adjust clients
39410         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39411         filenamecat.
39412         * modules/renameat (Depends-on): Likewise.
39413
39414         filenamecat: split into filenamecat-lgpl
39415         * modules/filenamecat-lgpl: New module.
39416         * modules/filenamecat (Files): Move library-safe files into
39417         filenamecat-lgpl.
39418         (Depends-on): Add filenamecat-lgpl.
39419         (configure.ac): Declare witness.
39420         * lib/filenamecat.h (file_name_concat): Only declare when using
39421         GPL module.
39422         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39423         Move...
39424         * lib/filenamecat-lgpl.c: ...into new file.
39425         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39426         (gl_FILE_NAME_CONCAT): Use it.
39427         * MODULES.html.sh (File system functions): Mention new module.
39428
39429         argp: avoid memory leak
39430         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39431         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39432         base_name, since the latter malloc()s and can call exit().
39433         Leak introduced 2006-07-03.
39434
39435         dirname-lgpl: adjust clients that don't need full dirname
39436         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39437         * modules/filenamecat (Depends-on): Likewise.
39438         * modules/linkat (Depends-on): Likewise.
39439         * modules/mkancesdirs (Depends-on): Likewise.
39440         * modules/mkdir (Depends-on): Likewise.
39441         * modules/openat (Depends-on): Likewise.
39442         * modules/savewd (Depends-on): Likewise.
39443         * modules/rename (Depends-on): Likewise.
39444         (License): Relax license.
39445         * modules/mkdir-tests (Depends-on): Drop progname.
39446         (Makefile.am): Delete unneeded LDADD.
39447         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39448
39449         dirname: split into dirname-lgpl
39450         * modules/dirname-lgpl: New module.
39451         * modules/dirname (Files): Move library-safe files into
39452         dirname-lgpl.
39453         (Depends-on): Add dirname-lgpl.
39454         (configure.ac): Declare witness.
39455         * modules/double-slash-root (License): Relax license.
39456         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39457         module.
39458         * lib/dirname.c (dir_len, mdir_name): Move...
39459         * lib/dirname-lgpl.c: ...into new file.
39460         * lib/basename.c (last_component, base_len): Move...
39461         * lib/basename-lgpl.c: ...into new file.
39462         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39463         (gl_DIRNAME): Use it.
39464         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39465         Mention new module.
39466         * modules/dirname-tests (Depends-on): Add progname.
39467         * tests/test-dirname.c (program_name): Delete.
39468
39469         mkdir: make safe for libraries
39470         * modules/mkdir (Depends-on): Drop xalloc.
39471         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39472         exit.
39473
39474         tests: avoid some compiler warnings
39475         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39476         literals.
39477         * tests/test-memchr.c (main): Avoid type mismatch.
39478         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39479         * tests/test-base64.c (main): Likewise.
39480         * tests/test-getdelim.c (main): Likewise.
39481         * tests/test-gethostname.c (main): Likewise.
39482         * tests/test-getline.c (main): Likewise.
39483         * tests/test-netinet_in.c (main): Likewise.
39484         * tests/test-select.c (open_server_socket, main): Likewise.
39485         * tests/test-select-stdin.c (main): Likewise.
39486         * tests/test-sockets.c (main): Likewise.
39487         * tests/test-strsignal.c (main): Likewise.
39488         * tests/test-sys_select.c (main): Likewise.
39489         * tests/test-sys_socket.c (main): Likewise.
39490         * tests/test-u64.c (main): Likewise.
39491         * tests/test-xfprintf-posix.c (main): Likewise.
39492         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39493
39494         sockets: avoid compiler warning
39495         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39496
39497         maint: detect usage(1) and other suspicious exits
39498         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39499
39500 2009-10-29  Jim Meyering  <meyering@redhat.com>
39501
39502         timespec: long-to-int truncation could make timespec_cmp malfunction
39503         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39504         a multiple of 2^32 nanoseconds as no difference.
39505
39506 2009-10-28  Jim Meyering  <meyering@redhat.com>
39507
39508         fprintftime: wrap macro code argument in "do {...} while(0)"
39509         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39510         cpy macro must be a statement that can be followed by a semicolon.
39511         Now that the else clause contains a comment and is hence longer
39512         than one line, I require curly braces.  That in turn requires
39513         that we wrap this code block in the standard do...while(0).
39514
39515         fprintftime: remove stray semicolon from previous change
39516         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39517
39518         fprintftime: avoid a warning about ignored fwrite return value
39519         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39520         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39521         that is unsafe.
39522         * modules/fprintftime (Depends-on): Add ignore-value.
39523
39524         exclude: avoid an unwarranted warning
39525         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39526
39527 2009-10-27  Eric Blake  <ebb9@byu.net>
39528
39529         fseek: avoid compilation failure when fflush is replaced
39530         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39531         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39532         module is in use.
39533         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39534         module is not in use; since REPLACE_FSEEK worked otherwise.
39535         (GNULIB_FTELLO): Likewise for ftell.
39536         Reported by Ian Beckwith and others.
39537
39538 2009-10-27  Bruno Haible  <bruno@clisp.org>
39539
39540         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39541         Reported by Jim Meyering.
39542
39543 2009-10-27  Jim Meyering  <jim@meyering.net>
39544             Bruno Haible  <bruno@clisp.org>
39545
39546         Avoid warning despite dropping the return value of fwrite.
39547         * lib/unicodeio.c: Include ignore-value.h.
39548         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39549         * modules/unicodeio (Depends-on): Add ignore-value.
39550
39551 2009-10-26  Eric Blake  <ebb9@byu.net>
39552
39553         areadlinkat: fix fallback path
39554         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39555         pointer and zero.
39556
39557 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39558
39559         Use a better IO block size for modern systems
39560         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39561         * lib/md2.c: Likewise.
39562         * lib/md4.c: Likewise.
39563         * lib/md5.c: Likewise.
39564         * lib/sha1.c: Likewise.
39565         * lib/sha256.c: Likewise.
39566         * lib/sha512.c: Likewise.
39567
39568 2009-10-22  Eric Blake  <ebb9@byu.net>
39569
39570         tests: avoid several compiler warnings
39571         * tests/test-getcwd.c (main): Avoid buffer underflow.
39572         * tests/test-getdate.c (main): String literals are not safe with
39573         putenv, so use setenv.  Declare unused argument.
39574         * modules/getdate-tests (Depends-on): Add setenv.
39575         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39576         problems with string literals in char *.
39577         * tests/test-hash.c (main): Avoid shadowing declaration.
39578         (insert_new): Treat string literals as char const *.
39579         * tests/test-getopt.h (test_getopt): Likewise.
39580         (getopt_loop): Alter types to minimize casting elsewhere.
39581         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39582         (test_getopt_long_posix): Likewise.
39583         (do_getopt_long): Add wrapper to minimize casting.
39584         * tests/test-atexit.c (clear_temp_file): Use void.
39585         * tests/test-areadlink-with-size.c (main): Declare unused
39586         arguments.
39587         * tests/test-areadlink.c (main): Likewise.
39588         * tests/test-areadlinkat-with-size.c (main): Likewise.
39589         * tests/test-areadlinkat.c (main): Likewise.
39590         * tests/test-canonicalize-lgpl.c (main): Likewise.
39591         * tests/test-canonicalize.c (main): Likewise.
39592         * tests/test-dirent-safer.c (main): Likewise.
39593         * tests/test-dirname.c (main): Likewise.
39594         * tests/test-dup2.c (main): Likewise.
39595         * tests/test-fchdir.c (main): Likewise.
39596         * tests/test-fcntl-h.c (main): Likewise.
39597         * tests/test-fcntl-safer.c (main): Likewise.
39598         * tests/test-fdopendir.c (main): Likewise.
39599         * tests/test-fdutimensat.c (main): Likewise.
39600         * tests/test-fflush.c (main): Likewise.
39601         * tests/test-filenamecat.c (main): Likewise.
39602         * tests/test-filevercmp.c (main): Likewise.
39603         * tests/test-fopen-safer.c (main): Likewise.
39604         * tests/test-fopen.c (main): Likewise.
39605         * tests/test-fpending.c (main): Likewise.
39606         * tests/test-fpurge.c (main): Likewise.
39607         * tests/test-freading.c (main): Likewise.
39608         * tests/test-fstatat.c (main): Likewise.
39609         * tests/test-fsync.c (main): Likewise.
39610         * tests/test-futimens.c (main): Likewise.
39611         * tests/test-getndelim2.c (main): Likewise.
39612         * tests/test-gettimeofday.c (main): Likewise.
39613         * tests/test-getopt.c (main): Likewise.
39614         * tests/test-i-ring.c (main): Likewise.
39615         * tests/test-inttypes.c (main): Likewise.
39616         * tests/test-link.c (main): Likewise.
39617         * tests/test-lstat.c (main): Likewise.
39618         * tests/test-math.c (main): Likewise.
39619         * tests/test-md5.c (main): Likewise.
39620         * tests/test-memchr2.c (main): Likewise.
39621         * tests/test-memrchr.c (main): Likewise.
39622         * tests/test-mkdir.c (main): Likewise.
39623         * tests/test-mkdirat.c (main): Likewise.
39624         * tests/test-mkfifoat.c (main): Likewise.
39625         * tests/test-open.c (main): Likewise.
39626         * tests/test-openat-safer.c (main): Likewise.
39627         * tests/test-openat.c (main): Likewise.
39628         * tests/test-quotearg.c (main): Likewise.
39629         * tests/test-rawmemchr.c (main): Likewise.
39630         * tests/test-readlink.c (main): Likewise.
39631         * tests/test-remove.c (main): Likewise.
39632         * tests/test-rename.c (main): Likewise.
39633         * tests/test-renameat.c (main): Likewise.
39634         * tests/test-rmdir.c (main): Likewise.
39635         * tests/test-sha1.c (main): Likewise.
39636         * tests/test-signal.c (main): Likewise.
39637         * tests/test-sigaction.c (main): Likewise.
39638         * tests/test-stat.c (main): Likewise.
39639         * tests/test-stat-time.c (main): Likewise.
39640         * tests/test-stddef.c (main): Likewise.
39641         * tests/test-stdint.c (main): Likewise.
39642         * tests/test-stdio.c (main): Likewise.
39643         * tests/test-stdlib.c (main): Likewise.
39644         * tests/test-strchrnul.c (main): Likewise.
39645         * tests/test-strerror.c (main): Likewise.
39646         * tests/test-string.c (main): Likewise.
39647         * tests/test-strtod.c (main): Likewise.
39648         * tests/test-strverscmp.c (main): Likewise.
39649         * tests/test-symlink.c (main): Likewise.
39650         * tests/test-symlinkat.c (main): Likewise.
39651         * tests/test-sys_stat.c (main): Likewise.
39652         * tests/test-sys_time.c (main): Likewise.
39653         * tests/test-time.c (main): Likewise.
39654         * tests/test-unistd.c (main): Likewise.
39655         * tests/test-unlink.c (main): Likewise.
39656         * tests/test-unlinkat.c (main): Likewise.
39657         * tests/test-utimens.c (main): Likewise.
39658         * tests/test-utimensat.c (main): Likewise.
39659         * tests/test-version-etc.c (main): Likewise.
39660         * tests/test-wchar.c (main): Likewise.
39661         * tests/test-wctype.c (main): Likewise.
39662         * tests/test-xprintf-posix.c (main): Likewise.
39663         * tests/test-posixtm.c (main): Likewise.
39664         (STREQ): Delete unused macro.
39665         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39666         shadowed variables.
39667         * tests/test-memchr.c (main): Likewise.
39668
39669 2009-10-21  Eric Blake  <ebb9@byu.net>
39670
39671         areadlinkat: avoid failure on older glibc
39672         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39673         rather than mis-comparing 0 against FUNC_RESULT of char*.
39674
39675 2009-10-21  Bruno Haible  <bruno@clisp.org>
39676
39677         * modules/stpncpy (License): Relicense under LGPLv2+.
39678         Reported by David Lutterkort <lutter@redhat.com>.
39679
39680 2009-10-20  Eric Blake  <ebb9@byu.net>
39681
39682         utimensat: work around Solaris 9 bug
39683         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39684         has trailing slash bugs.
39685         * tests/test-lutimens.h (test_lutimens): Enhance test.
39686         * tests/test-utimens.h (test_utimens): Likewise.
39687         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39688         * doc/posix-functions/utimes.texi (utimes): Likewise.
39689         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39690         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39691         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39692         * doc/posix-functions/futimens.texi (futimens): Likewise.
39693
39694         fdutimensat: new module
39695         * modules/fdutimensat: New file.
39696         * lib/fdutimensat.c (fdutimensat): Likewise.
39697         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39698         * MODULES.html.sh (File system functions): Mention module.
39699         * modules/fdutimensat-tests: New test.
39700         * tests/test-fdutimensat.c: Likewise.
39701
39702         doc: regenerate INSTALL
39703         * doc/INSTALL: Reflect recent autoconf update.
39704         * doc/INSTALL.ISO: Likewise.
39705         * doc/INSTALL.UTF-8: Likewise.
39706
39707 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39708
39709         acl: warn if ACL support is not detected
39710         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39711
39712 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39713
39714         * lib/nproc.h: Add extern "C" block for C++.
39715
39716 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39717             Bruno Haible  <bruno@clisp.org>
39718
39719         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39720         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39721         * doc/posix-functions/isalpha.texi: Likewise.
39722         * doc/posix-functions/isblank.texi: Likewise.
39723         * doc/posix-functions/iscntrl.texi: Likewise.
39724         * doc/posix-functions/isdigit.texi: Likewise.
39725         * doc/posix-functions/isgraph.texi: Likewise.
39726         * doc/posix-functions/islower.texi: Likewise.
39727         * doc/posix-functions/isprint.texi: Likewise.
39728         * doc/posix-functions/ispunct.texi: Likewise.
39729         * doc/posix-functions/isspace.texi: Likewise.
39730         * doc/posix-functions/isupper.texi: Likewise.
39731         * doc/posix-functions/isxdigit.texi: Likewise.
39732
39733 2009-10-18  Bruno Haible  <bruno@clisp.org>
39734
39735         Tests for module 'isblank'.
39736         * modules/isblank-tests: New file.
39737         * tests/test-isblank.c: New file.
39738
39739         New module 'isblank'.
39740         * lib/isblank.c: New file.
39741         * m4/isblank.m4: New file.
39742         * modules/isblank: New file.
39743         * doc/posix-functions/isblank.texi: Mention the new module.
39744
39745 2009-10-18  Bruno Haible  <bruno@clisp.org>
39746
39747         New module 'ctype'.
39748         * lib/ctype.in.h: New file.
39749         * m4/ctype.m4: New file.
39750         * modules/ctype: New file.
39751         * doc/posix-headers/ctype.texi: Mention the new module.
39752
39753 2009-10-18  Jim Meyering  <meyering@redhat.com>
39754
39755         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39756         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39757         right after its initialization, rather than farther down.
39758         Keeping these in close proximity makes it easier to ensure
39759         that each such variable is initialized.  E.g.,
39760
39761             LIB_CLOCK_GETTIME=
39762             AC_SUBST([LIB_CLOCK_GETTIME])
39763
39764         This change also increments these serial numbers.
39765         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39766         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39767         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39768
39769 2009-10-18  Bruno Haible  <bruno@clisp.org>
39770
39771         Don't let environment variables perturb build.
39772         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39773         (gl_PREREQ_GETHRXTIME): ... not here.
39774
39775 2009-10-18  Bruno Haible  <bruno@clisp.org>
39776
39777         Avoid symlink attack in localcharset module.
39778         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39779         (O_NOFOLLOW): Define fallback.
39780         (get_charset_aliases): Don't open the file if it is a symbolic link.
39781         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39782         gl_FCNTL_H.
39783         (gl_FCNTL_H): Require it.
39784         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39785         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39786         Reported by Fergal Glynn <fglynn@veracode.com>.
39787
39788 2009-10-18  Bruno Haible  <bruno@clisp.org>
39789
39790         Implement nproc for mingw.
39791         * lib/nproc.c: Include <windows.h>
39792         (num_processors): On native Windows platforms, try GetSystemInfo.
39793
39794 2009-10-18  Bruno Haible  <bruno@clisp.org>
39795
39796         Implement nproc for IRIX.
39797         * lib/nproc.c: Include <sys/sysmp.h>.
39798         (num_processors): On IRIX systems, try sysmp.
39799         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39800
39801 2009-10-18  Bruno Haible  <bruno@clisp.org>
39802
39803         Implement nproc for HP-UX.
39804         * lib/nproc.c: Include <sys/pstat.h>
39805         (num_processors): On HP-UX systems, try pstat_getdynamic.
39806         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39807         pstat_getdynamic.
39808
39809 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39810             Bruno Haible  <bruno@clisp.org>
39811
39812         Implement nproc for NetBSD, OpenBSD.
39813         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39814         (ARRAY_SIZE): New macro.
39815         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39816         * m4/nproc.m4: New file.
39817         * modules/nproc (Files): Add m4/nproc.m4.
39818         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39819         (Makefile.am): Instead, augment lib_SOURCES.
39820
39821 2009-10-18  Bruno Haible  <bruno@clisp.org>
39822
39823         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39824         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39825         sys/param.h.
39826
39827 2009-10-16  Eric Blake  <ebb9@byu.net>
39828
39829         utimensat: new module
39830         * modules/utimensat: New file.
39831         * lib/utimensat.c (utimensat): Likewise.
39832         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39833         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39834         so we can work around Linux bugs.
39835         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39836         * modules/sys_stat (Makefile.am): Substitute them.
39837         * lib/sys_stat.in.h (utimensat): Declare it.
39838         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39839         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39840         * modules/utimensat-tests: New test.
39841         * tests/test-utimensat.c: Likewise.
39842
39843         utimens: let lutimens work on non-symlinks
39844         * lib/utimens.c (lutimens): Fall back to utimens rather than
39845         failing with ENOSYS, when file is not a symlink.
39846         (utimens): Reduce redirection.
39847         * tests/test-lutimens.h (test_lutimens): Update test to cover
39848         non-symlinks.
39849         * tests/test-utimens.h (test_utimens): Update test to cover
39850         symlinks.
39851         * tests/test-utimens.c (main): Update caller.
39852
39853         utimens: cache whether utimensat syscall works
39854         * lib/utimens.c (utimensat_works_really): New cache variable.
39855         (fdutimens, lutimens): Use it to avoid failing syscall.
39856
39857         test-stat-time, test-utimens: improve portability
39858         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39859         ext4 on alpha, and for cygwin.
39860         * tests/test-utimens-common.h: New file.
39861         (nap): Factor delays into single function.
39862         * tests/test-lutimens.h (test_lutimens): Use new header.
39863         * tests/test-futimens.h (test_futimens): Likewise.
39864         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39865         timestamps to occur from same machine, as was done previously for
39866         test_utimens.
39867         * modules/utimens-tests (Files): Ship new file.
39868         * modules/futimens-tests (Files): Likewise.
39869         Reported in part by Jim Meyering.
39870
39871         sys_stat: sort replacement declarations
39872         * lib/sys_stat.in.h: Sort declarations.
39873         * lib/futimens.c (futimens): Fix typo.
39874
39875 2009-10-15  Jim Meyering  <meyering@redhat.com>
39876
39877         don't let environment settings perturb build
39878         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39879         could cause a configure-time and/or build-time malfunction.
39880         Typically, a configure-time function-in-library test is performed
39881         via code like this:
39882
39883           LIB_VAR=
39884           AC_SUBST([LIB_VAR])
39885           prefix_saved_LIBS=$LIBS
39886             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39887                        [test "$ac_cv_search_FUNC" = "none required" ||
39888                         LIB_VAR=$ac_cv_search_FUNC])
39889           LIBS=$prefix_saved_LIBS
39890
39891         However, in each of the files affected by this change, the LIB_VAR=
39892         initialization was omitted.  Thus, when set in the environment, its
39893         value would propagate into generated Makefiles when FUNC is not found
39894         in LIB_NAME.
39895         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39896         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39897         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39898
39899 2009-10-14  Eric Blake  <ebb9@byu.net>
39900
39901         fchdir: avoid infinite recursion in mingw
39902         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39903         recursing.
39904
39905         test-stat-time: port to mingw
39906         * tests/test-stat-time.c (force_unlink): Return a value.
39907         (test_ctime) [W32]: Fix compilation error.
39908         (nap): Don't call usleep with too large an argument.  Use
39909         force_unlink.
39910         * doc/pastposix-functions/usleep.texi (usleep): Document the
39911         portability issue.
39912
39913 2009-10-13  Jim Meyering  <meyering@redhat.com>
39914
39915         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39916         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39917         * modules/pipe-filter-ii: Likewise.
39918         * modules/sys_socket-tests: Likewise.
39919         * modules/tsearch-tests: Likewise.
39920         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39921         (check): Depend on it.
39922
39923 2009-10-12  Eric Blake  <ebb9@byu.net>
39924
39925         utimens-tests: port to NFS file systems
39926         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39927         comparisons to avoid spurious failures from timestamp drift
39928         between NFS machines.
39929
39930 2009-10-12  Eric Blake  <ebb9@byu.net>
39931
39932         stat-time-tests: minor cleanups
39933         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39934         * tests/test-stat-time.c (nap): Separate assignment from call.
39935         Suggested by Paolo Bonzini and Bruno Haible.
39936
39937         sys_stat: guarantee struct timespec
39938         * lib/sys_stat.in.h (includes): Always include <time.h>
39939         * modules/sys_stat (Depends-on): Add time.
39940         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39941         mode_t permission values.
39942         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39943         get at subsecond timestamps.
39944
39945 2009-10-10  Eric Blake  <ebb9@byu.net>
39946
39947         futimens: new module
39948         * modules/futimens: New file.
39949         * lib/futimens.c (futimens): Likewise.
39950         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39951         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39952         we can work around Linux bugs.
39953         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39954         * modules/sys_stat (Makefile.am): Substitute them.
39955         * lib/sys_stat.in.h (futimens): Declare it.
39956         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39957         * doc/posix-functions/futimens.texi (futimens): Likewise.
39958         * modules/futimens-tests: New test.
39959         * tests/test-futimens.c: Likewise.
39960
39961         utimens: introduce fdutimens
39962         * lib/utimens.h (fdutimens): New prototype.
39963         * lib/utimens.c (gl_futimens): Move guts...
39964         (fdutimens): ...to new interface.
39965         * tests/test-utimens.c (do_fdutimens): Use it.
39966
39967         utimens: add UTIME_NOW and UTIME_OMIT support
39968         * lib/utimens.c (validate_timespec, update_timespec): New helper
39969         functions.
39970         (gl_futimens, lutimens): Use them.
39971         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39972         stdbool, sys_stat.
39973         (Link): Mention resulting library dependency.
39974         * modules/utimecmp (Link): Likewise.
39975         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39976         (Makefile.am): Pick up library dependency.
39977         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39978         definition.
39979         * tests/test-sys_stat.c: Test the definitions.
39980         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39981         * NEWS: Document library dependency.
39982
39983         utimecmp: support symlink timestamps
39984         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39985         hashing when possible.  Use pathconf when available.
39986         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39987         * modules/utimecmp (Depends-on): Add lstat.
39988
39989         utimens: add lutimens interface
39990         * lib/utimens.c (lutimens): New function.
39991         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39992         * lib/utimens.h (lutimens): Declare new interface.
39993         * tests/test-utimens.c (main): Enhance test.
39994         * tests/test-lutimens.h (test_lutimens): New file.
39995         * modules/utimens-tests (Files): Distribute it.
39996         (Depends-on): Add symlink.
39997         (configure.ac): Check for usleep.
39998
39999         utimens: validate futimens usage
40000         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40001         fewer syscalls on failure later on.  Avoid compiler warning on
40002         mingw.
40003         * modules/utimens (Depends-on): Add dup2.
40004
40005         utimens: add test
40006         * modules/utimens-tests: New test.
40007         * tests/test-utimens.h: New file.
40008         * tests/test-futimens.h: Likewise.
40009         * tests/test-utimens.c: Likewise.
40010
40011         doc: mention timestamp portability issues
40012         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40013         instead.
40014         * doc/posix-functions/utime.texi (utime): Likewise.
40015         * doc/posix-functions/utimes.texi (utimes): Likewise.
40016         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40017         instead.
40018         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40019         module.
40020         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40021         Mention weakness with symlink timestamps.
40022         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40023         to utimensat/futimens instead.
40024         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40025
40026         test-dup2: enhance test
40027         * tests/test-dup2.c (main): Also check AT_FDCWD.
40028
40029         test-stat-time: avoid more spurious failures
40030         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40031         xfs; and avoid race if the two timestamps cross quantization edge.
40032
40033         relocatable: prefer 'file system' over 'filesystem'
40034         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40035         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40036         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40037         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40038         * lib/relocatable.c (compute_curr_prefix): Likewise.
40039
40040 2009-10-10  Jim Meyering  <meyering@redhat.com>
40041
40042         stat-time-tests: check for the usleep function
40043         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40044
40045 2009-10-10  Bruno Haible  <bruno@clisp.org>
40046
40047         * modules/xnanosleep: Put the Link section after the Include section.
40048
40049 2009-10-09  Eric Blake  <ebb9@byu.net>
40050
40051         dup2: work around FreeBSD 6.1 bug
40052         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40053         * doc/posix-functions/dup2.texi (dup2): Document it.
40054         Reported by Nelson H. F. Beebe and Jim Meyering.
40055
40056         test-stat-time: port to buggy NFS clients
40057         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40058         (test_ctime): Also skip test if mtime and ctime are skewed.
40059
40060         maint: prefer 'file system' over 'filesystem'
40061         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40062         * doc/posix-functions/lstat.texi (lstat): Likewise.
40063         * lib/file-has-acl.c (file_has_acl): Likewise.
40064         * lib/fwriteerror.c [TEST]: Likewise.
40065         * tests/test-areadlink.h (test_areadlink): Likewise.
40066         * tests/test-areadlinkat-with-size.c (main): Likewise.
40067         * tests/test-areadlinkat.c (main): Likewise.
40068         * tests/test-canonicalize-lgpl.c (main): Likewise.
40069         * tests/test-canonicalize.c (main): Likewise.
40070         * tests/test-fstatat.c (main): Likewise.
40071         * tests/test-linkat.c (main): Likewise.
40072         * tests/test-lstat.h (test_lstat_func): Likewise.
40073         * tests/test-mkdir.h (test_mkdir): Likewise.
40074         * tests/test-readlink.h (test_readlink): Likewise.
40075         * tests/test-remove.c (main): Likewise.
40076         * tests/test-rename.h (test_rename): Likewise.
40077         * tests/test-renameat.c (main): Likewise.
40078         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40079         * tests/test-symlink.h (test_symlink): Likewise.
40080         * tests/test-symlinkat.c (main): Likewise.
40081         * tests/test-unlink.h (test_unlink_func): Likewise.
40082         * tests/test-unlinkat.c (main): Likewise.
40083
40084         maint: make realtime library usage explicit
40085         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40086         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40087         * modules/settime (Link): Likewise.
40088         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40089
40090         test-stat-time: speed up execution
40091         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40092         warning on mingw.
40093         (nap): New helper function.
40094         (prepare_test): Use it to reduce sleep time.
40095         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40096         execution.
40097         * modules/stat-time-tests (configure.ac): Check for usleep.
40098
40099 2009-10-09  Jim Meyering  <meyering@redhat.com>
40100
40101         selinux-h: always use getfilecon wrappers
40102         * lib/getfilecon.c: New file.
40103         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40104         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40105         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40106         (fgetfilecon): Provide a stub.
40107         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40108         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40109         file unconditionally.
40110         When <selinux/selinux.h> is found, arrange to use wrappers.
40111         * modules/selinux-h (Files): Add getfilecon.c.
40112         (Makefile.am): Substitute include-next-related bits
40113         into the now-always-generated selinux/selinux.h file.
40114         * doc/glibc-functions/lgetfilecon.texi: New file.
40115         * doc/glibc-functions/fgetfilecon.texi: New file.
40116         * doc/glibc-functions/getfilecon.texi: New file.
40117         * doc/glibc-functions/getfilecon-desc.texi: New file.
40118         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40119         which to pull in the new files.
40120         * MODULES.html.sh (Misc): Add selinux-h.
40121
40122 2009-10-08  Jim Meyering  <meyering@redhat.com>
40123
40124         unistd: fix comment typo
40125         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40126
40127 2009-10-08  Eric Blake  <ebb9@byu.net>
40128
40129         areadlink: use SIZE_MAX consistently
40130         * modules/areadlink (Depends-on): Add stdint.
40131         * modules/areadlink-with-size (Depends-on): Likewise.
40132         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40133         gives NULL; drop sys/types, since unistd gives size_t; and add
40134         stdint for SIZE_MAX.
40135         (SIZE_MAX): Rely on headers.
40136         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40137         and add stdint.
40138         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40139         (SIZE_MAX): Likewise.
40140         (INITIAL_BUF_SIZE): Turn into enum.
40141         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40142
40143 2009-10-08  Jim Meyering  <meyering@redhat.com>
40144
40145         areadlinkat: avoid compilation failure
40146         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40147         Fix typo in comment.
40148
40149 2009-10-07  Eric Blake  <ebb9@byu.net>
40150
40151         areadlinkat-with-size: new module
40152         * modules/areadlinkat-with-size: New module.
40153         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40154         * lib/areadlink.h (areadlinkat): Declare it.
40155         * MODULES.html.sh (File system functions): Mention it.
40156         * modules/areadlinkat-with-size-tests: New test.
40157         * tests/test-areadlinkat-with-size.c: New file.
40158
40159         xreadlinkat: new module
40160         * modules/xreadlinkat: New module.
40161         * lib/xreadlinkat.c (xreadlinkat): New file.
40162         * lib/xreadlink.h (xreadlinkat): Declare it.
40163         * MODULES.html.sh (File system functions): Mention it.
40164
40165         areadlinkat: new module
40166         * lib/at-func.c (FUNC_FAIL): New define.
40167         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40168         * modules/areadlinkat: New module.
40169         * lib/linkat.c (areadlinkat): Move...
40170         * lib/areadlinkat.c (areadlinkat): ...to new file.
40171         * lib/areadlink.h (areadlinkat): Declare it.
40172         * modules/linkat (Depends-on): Add areadlinkat.
40173         * MODULES.html.sh (File system functions): Mention it.
40174         * modules/areadlinkat-tests: New test.
40175         * tests/test-areadlinkat.c: New file.
40176
40177         areadlink, areadlink-with-size: add tests
40178         * modules/areadlink-tests: New test.
40179         * modules/areadlink-with-size-tests: Likewise.
40180         * tests/test-areadlink.h: New file.
40181         * tests/test-areadlink.c: Likewise.
40182         * tests/test-areadlink-with-size.c: Likewise.
40183
40184         maint: minor cleanups
40185         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40186         _UNUSED_PARAMETER_ instead.
40187         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40188         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40189         * modules/linkat-tests (Files): Distribute test-link.h.
40190
40191         openat, utimens: whitespace cleanup
40192         * lib/openat.c: Prefer space throughout, rather than mix of 8
40193         spaces vs. tabs.
40194         * lib/at-func.c: Likewise.
40195         * lib/utimens.c: Likewise.
40196
40197         openat: avoid using wrong fd
40198         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40199         working directory chooses same fd.
40200         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40201
40202         mkdir, mkdirat: fix cygwin 1.5.x bug
40203         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40204         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40205         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40206         bug.
40207         (gl_PREREQ_MKDIR): Delete unused macro.
40208         * modules/mkdir (Files): Track file rename.
40209         (configure.ac): Update macro name.
40210         * modules/openat (Depends-on): Add mkdir.
40211         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40212
40213         mkdir, mkdirat: add tests
40214         * modules/mkdir-tests: New test.
40215         * tests/test-mkdir.h: New file.
40216         * tests/test-mkdir.c: Likewise.
40217         * tests/test-mkdirat.c: Likewise.
40218         * modules/openat-tests (Files): Add new files.
40219         (Makefile.am): Run new test.
40220
40221 2009-10-06  Eric Blake  <ebb9@byu.net>
40222
40223         doc: tweak *at function documentation
40224         * doc/posix-functions/faccessat.texi (faccessat): Mention
40225         known issue with replacement.
40226         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40227         * doc/posix-functions/linkat.texi (linkat): Likewise.
40228         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40229         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40230         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40231         * doc/posix-functions/renameat.texi (renameat): Likewise.
40232         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40233
40234         openat: fix GNU/Hurd bug in unlinkat
40235         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40236         broken.
40237         * doc/posix-functions/unlink.texi (unlink): Document this.
40238         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40239
40240         fdopendir: fix GNU/Hurd bug
40241         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40242         allowing non-directory fds.
40243         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40244         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40245         * modules/dirent (Makefile.am): Substitute it.
40246         * lib/dirent.in.h (fdopendir): Declare replacement.
40247         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40248         * tests/test-fdopendir.c (main): Test something other than
40249         /dev/null, since on Hurd that behaves like a directory.
40250
40251         test-symlink: port to GNU/Hurd
40252         * tests/test-symlink.h (test_symlink): Relax expected errno.
40253
40254         doc: tweak more cygwin information
40255         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40256         now compatible with glibc.
40257         * doc/posix-functions/getopt.texi (getopt): Likewise.
40258
40259         getopt-gnu: add another test
40260         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40261         guarantee behavior relied on by m4.
40262         * tests/test-getopt.c (main): Use it.
40263         * modules/getopt-posix-tests (Depends-on): Add setenv.
40264         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40265
40266         getopt: fix compilation on darwin
40267         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40268         include.
40269         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40270         Reported by Ludovic Courtès.
40271
40272 2009-10-06  Bruno Haible  <bruno@clisp.org>
40273
40274         * modules/size_max (Description): Discourage its use.
40275         Reported by Simon Josefsson.
40276
40277 2009-10-06  Jim Meyering  <meyering@redhat.com>
40278
40279         linkat: avoid compilation failure
40280         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40281
40282 2009-10-05  Eric Blake  <ebb9@byu.net>
40283
40284         linkat: support Linux 2.6.17
40285         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40286         linkat on Linux, but allow cache variable override.
40287         * lib/linkat.c (rpl_linkat): Define override.
40288         * modules/linkat (Depends-on): Add symlinkat.
40289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40290         * modules/unistd (Makefile.am): Substitute it.
40291         * lib/unistd.in.h (linkat): Declare replacement.
40292         Reported by Pádraig Brady.
40293
40294         quotearg: port test to systems with C.UTF-8 locale
40295         * tests/test-quotearg.c (struct result_strings): Add another
40296         member, differentiating between C.ASCII and C.UTF-8 handling.
40297         (compare_strings): Add parameter.
40298         (main): Adjust all callers.
40299
40300         getopt: avoid clash with FreeBSD _getopt_internal
40301         * lib/getopt.in.h (_getopt_internal): Override the name.
40302         * lib/getopt_int.h (includes): Pick up any overrides.
40303         Reported by Reuben Thomas.
40304
40305         hash: allow C89 compilation
40306         * lib/hash.c (check_tuning): Move declaration before statement.
40307         Reported by Reuben Thomas.
40308
40309 2009-10-05  Karl Berry  <karl@gnu.org>
40310
40311         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40312
40313 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40314             Bruno Haible  <bruno@clisp.org>
40315
40316         * lib/uname.c (uname): Use a table-driven algorithm to compute
40317         Windows NT versions.
40318
40319 2009-10-04  Bruno Haible  <bruno@clisp.org>
40320
40321         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40322         program_invocation_short_name.
40323         * modules/progname (configure.ac): Test for presence of
40324         program_invocation_short_name.
40325         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40326
40327 2009-10-04  Bruno Haible  <bruno@clisp.org>
40328
40329         * lib/progname.c (set_program_name): Fix comment.
40330         Reported by Jim Meyering.
40331
40332 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40333             Bruno Haible  <bruno@clisp.org>
40334
40335         * lib/uname.c: Include <string.h>.
40336         (uname): Do only one call to GetVersionEx in the common case.
40337
40338 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40339             Bruno Haible  <bruno@clisp.org>
40340
40341         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40342         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40343         (uname): Add support for Windows CE and various non-x86 CPU types.
40344
40345 2009-10-03  Bruno Haible  <bruno@clisp.org>
40346
40347         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40348         invocation to tests/configure.ac.
40349         Reported by Ian Beckwith <ianb@erislabs.net>.
40350
40351 2009-10-02  Eric Blake  <ebb9@byu.net>
40352
40353         fchdir: avoid compiler warning
40354         * lib/fchdir.c (canonicalize_file_name)
40355         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40356
40357         test-open: support mingw errno values
40358         * tests/test-open.h (test_open): Relax test.
40359         * tests/test-fopen.h (test_fopen): Likewise.
40360         * tests/test-openat-safer.c (main): Likewise.
40361
40362         open: fix opening directory on mingw
40363         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40364
40365         test-open: on GNU/Hurd, /dev/null is a directory
40366         * tests/test-fopen.h (main): Rename...
40367         (test_fopen): ...to this.  Use a guaranteed non-directory when
40368         confirming open behavior on trailing slash.
40369         * tests/test-openat-safer.c (main): Likewise.
40370         * tests/test-open.h (main): Likewise....
40371         (test_open): ...to this.
40372         * tests/test-fopen.c (main): Adjust caller.
40373         * tests/test-fopen-safer.c (main): Likewise.
40374         * tests/test-open.c (main): Likewise.
40375         * tests/test-fcntl-safer.c (main): Likewise.
40376         Reported by Samuel Thibault.
40377
40378         rename, fchdir: don't ignore chdir failure
40379         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40380         * lib/rename.c (rpl_rename) [W32]: Likewise.
40381         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40382         an empty destination directory if source cannot be renamed,
40383         although there is still possibility for failure.
40384         * doc/posix-functions/rename.texi (rename): Document the race.
40385         Reported by Jim Meyering.
40386
40387         maint: cleanup whitespace in recent commits
40388         * lib/rename.c (rpl_rename): Remove tabs.
40389         * tests/test-link.h (test_link): Likewise.
40390         * lib/fchdir.c (get_name): Likewise.
40391         Reported by Jim Meyering.
40392
40393 2009-10-02  Ben Pfaff  <blp@gnu.org>
40394
40395         relocatable-prog-wrapper: Add missing dependency on
40396         double-slash-root.
40397         * modules/relocatable-prog-wrapper: Add dependency.
40398         Reported by Ian Beckwith <ianb@erislabs.net>.
40399
40400 2009-10-02  Eric Blake  <ebb9@byu.net>
40401
40402         renameat: fix Solaris bugs
40403         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40404         needed fixing.
40405         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40406         * modules/stdio (Makefile.am): Substitute it.
40407         * lib/stdio.in.h (renameat): Declare replacement.
40408         * lib/renameat.c (rpl_renameat): Implement fix.
40409
40410         renameat: new module
40411         * modules/renameat: New file.
40412         * lib/renameat.c (renameat): Likewise.
40413         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40415         * modules/stdio (Makefile.am): Substitute them.
40416         * lib/stdio.in.h (renameat): Declare it.
40417         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40418         * doc/posix-functions/renameat.texi (renameat): Likewise.
40419         * modules/renameat-tests: New test.
40420         * tests/test-renameat.c: Likewise.
40421
40422         rename: fix mingw bugs
40423         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40424         directory overwrite bugs.
40425
40426         rename: fix another cygwin 1.5 bug
40427         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40428         checks.
40429         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40430         unnecessary cygwin workarounds.  Also work around bug with moving
40431         full directory onto an empty one.
40432         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40433
40434         rename-dest-slash: merge into rename module
40435         * modules/rename-dest-slash (Status): Mark obsolete.
40436         (Depends-on): Add rename.
40437         (Files): Let rename do it all.
40438         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40439         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40440         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40441         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40442         * lib/rename.c (rpl_rename): Update comments.
40443
40444         rename: fix cygwin 1.5.x bugs
40445         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40446         * lib/rename.c (rpl_rename): Work around them.
40447         * modules/rename (Depends-on): Add same-inode.
40448
40449         rename: fix Solaris 10 bug
40450         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40451         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40452         was the only bug.
40453
40454         rename: fix Solaris 9 bug
40455         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40456         on non-directory.  Avoid calling exit.
40457         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40458         strdup.
40459         * modules/rename-tests (Depends-on): Drop lstat.
40460         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40461         (gl_PREREQ_RENAME): Delete unused macro.
40462
40463         rename-dest-slash: fix NetBSD bug
40464         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40465         links.
40466         * modules/rename-dest-slash (Depends-on): Add same-inode.
40467
40468         rename-tests: new test, exposes several platform bugs
40469         * modules/rename-tests: New file.
40470         * tests/test-rename.h: Likewise.
40471         * tests/test-rename.c: Likewise.
40472         * doc/posix-functions/rename.texi (rename): Improve documentation,
40473         including bugs that will eventually be fixed in gnulib.
40474
40475 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40476
40477         * lib/uname.c: Include <stdlib.h>
40478         (uname): Assume version info is available.
40479
40480 2009-10-02  Jim Meyering  <meyering@redhat.com>
40481
40482         gnu-web-doc-update: correct --help output
40483         * build-aux/gnu-web-doc-update: Make --help output relevant.
40484
40485         gnu-web-doc-update: add standard options
40486         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40487
40488         gnu-web-doc-update: New module.
40489         Use this script to automatically update the on-line web documentation
40490         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40491         * modules/gnu-web-doc-update: New file, from coreutils.
40492         * build-aux/gnu-web-doc-update: New script.
40493
40494 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40495
40496         link: LoadLibrary is not needed.
40497         * lib/link.c: Use GetModuleHandle.
40498
40499 2009-10-01  Eric Blake  <ebb9@byu.net>
40500
40501         getopt: bump serial number
40502         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40503         change.
40504
40505         tests: tighten link, rmdir, and remove tests
40506         * tests/test-link.h (includes): No need to use <config.h> here.
40507         Clean up if directory hard link was created, otherwise test for
40508         trailing '.'.
40509         * tests/test-linkat.c (main): Simplify.
40510         * tests/test-remove.c (main): Enhance test for trailing '.'.
40511         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40512
40513 2009-10-01  Jim Meyering  <meyering@redhat.com>
40514
40515         maint.mk: requiring "make major" was annoying, for a "minor" release.
40516         What is intended is "stable", to contrast with alpha and beta,
40517         so require "make stable", not "make major".
40518         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40519         (get_tool_versions): Likewise.
40520         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40521
40522 2009-09-30  Ben Pfaff  <blp@gnu.org>
40523
40524         Fix broken build of replacement for Windows tmpfile().
40525         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40526         flags argument added along with the 'mkostemp' module.
40527
40528 2009-09-28  Bruno Haible  <bruno@clisp.org>
40529
40530         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40531         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40532         to 'remove_elt'.
40533         (gl_list_remove): Update.
40534         * lib/gl_list.c (gl_list_remove): Update.
40535         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40536         to 'remove_elt'.
40537         (gl_oset_remove): Update.
40538         * lib/gl_list.c (gl_oset_remove): Update.
40539         Reported by Eric Blake.
40540
40541 2009-09-28  Eric Blake  <ebb9@byu.net>
40542
40543         doc: mention yet more cygwin 1.7 status
40544         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40545         cygwin.
40546         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40547         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40548
40549         argp: fix test failure
40550         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40551         that are not upper-case.  Pass correct range to tolower.
40552
40553 2009-09-27  Jim Meyering  <meyering@redhat.com>
40554
40555         test-yesno: work around sparc-dash here-document infelicity
40556         Without this change, the literal \177 byte in a here document
40557         would make dash 0.5.5.1-3 access uninitialized memory.
40558         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40559         Instead, use a marker, "@", and filter through tr to create the desired
40560         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40561
40562 2009-09-27  Bruno Haible  <bruno@clisp.org>
40563
40564         Disable untested support for new flavours of ACLs on AIX.
40565         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40566         progress.
40567         * lib/set-mode-acl.c (qset_acl): Likewise.
40568
40569 2008-12-07  Bruno Haible  <bruno@clisp.org>
40570
40571         Add support for new flavours of ACLs on AIX. (Untested.)
40572         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40573         (file_has_acl): Add support for newer AIX.
40574         * lib/set-mode-acl.c (qset_acl): Likewise.
40575         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40576         Rainer Tammer <tammer@tammer.net>.
40577
40578 2009-09-26  Eric Blake  <ebb9@byu.net>
40579
40580         argp: fix compilation of getopt
40581         * lib/getopt.in.h (includes): Use different guard than glibc.
40582         Reported by Sergey Poznyakoff.
40583
40584         doc: mention more cygwin 1.7 status
40585         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40586         bug.
40587         * doc/posix-functions/execl.texi (execl): Likewise.
40588         * doc/posix-functions/execle.texi (execle): Likewise.
40589         * doc/posix-functions/execlp.texi (execlp): Likewise.
40590         * doc/posix-functions/execv.texi (execv): Likewise.
40591         * doc/posix-functions/execve.texi (execve): Likewise.
40592         * doc/posix-functions/execvp.texi (execvp): Likewise.
40593         * doc/glibc-functions/canonicalize_file_name.texi
40594         (canonicalize_file_name): Cygwin 1.7 now provides this.
40595         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40596         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40597         on AT_SYMLINK_NOFOLLOW.
40598
40599 2009-09-24  Eric Blake  <ebb9@byu.net>
40600
40601         test-linkat: make test more robust
40602         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40603
40604         getopt: fix inclusion guards for cygwin
40605         * modules/getopt-posix (Depends-on): Add include-next.
40606         (Makefile.am): Substitute more items in replacement header.
40607         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40608         <getopt.h>.
40609         * lib/getopt.in.h (includes): Use split inclusion guard, and
40610         prefer <getopt.h> over include <unistd.h> when one is present.
40611         (option): Also override name of 'struct option'.
40612
40613         same-inode: revert prior change; it is not yet ready
40614         * NEWS: Undo mention of this change.
40615         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40616         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40617         * lib/cycle-check.c (cycle_check): Likewise.
40618         * lib/same.c (same_name): Likewise.
40619         * lib/at-func2.c (at_func2): Likewise.
40620
40621 2009-09-23  Eric Blake  <ebb9@byu.net>
40622
40623         linkat: new module
40624         * modules/linkat: New file.
40625         * lib/at-func2.c (at_func2): Likewise.
40626         * lib/linkat.c (linkat): Likewise.
40627         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40628         * lib/openat-priv.h (at_func2): Add declaration.
40629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40630         * modules/unistd (Makefile.am): Substitute them.
40631         * lib/unistd.in.h (linkat): Declare it.
40632         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40633         * doc/posix-functions/linkat.texi (linkat): Likewise.
40634         * doc/posix-functions/link.texi (link): Tweak wording.
40635         * tests/test-link.c (main): Move guts...
40636         * tests/test-link.h (test_link): ...into new file.
40637         * modules/linkat-tests: New test.
40638         * tests/test-linkat.c: Likewise.
40639         * modules/link-tests (Files): Ship new file.
40640         (Depends-on): Add stdbool.
40641
40642         dirname: add library-safe mdir_name
40643         * lib/dirname.h (mdir_name): New prototype.
40644         * lib/dirname.c (dir_name): Move guts...
40645         (mdir_name): ...to new function that avoids xalloc_die.
40646
40647         fchdir: another mingw fix
40648         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40649         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40650         on mingw (where it has not yet been ported), and make it optional
40651         elsewhere.
40652         (_gl_register_fd): Use it.
40653
40654         same-inode: make SAME_INODE tri-state, to port to mingw
40655         * NEWS: Mention this change.
40656         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40657         st_ino always being 0.
40658         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40659         * lib/cycle-check.c (cycle_check): Likewise.
40660         * lib/same.c (same_name): Likewise.
40661
40662         lstat: avoid mingw compilation error
40663         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40664         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40665         lstat ourselves.
40666         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40667         was adequate.
40668         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40669         the checks for lstat.
40670         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40671
40672         link: fix test failure on Solaris 9
40673         * lib/link.c (rpl_link): Don't assume link will catch bogus
40674         trailing slash on source.
40675
40676         test-symlinkat: enhance test
40677         * tests/test-readlink.c (main): Move guts...
40678         * tests/test-readlink.h (test_readlink): ...into new file.
40679         * tests/test-symlink.c (main): Move guts...
40680         * tests/test-symlink.h (test_symlink): ...into new file.
40681         * tests/test-symlinkat.c (main): Use new files for further
40682         coverage.
40683         (do_symlink, do_readlink): New helper functions.
40684         * modules/symlink-tests (Files): Ship new file.
40685         (Depends-on): Add stdbool.
40686         * modules/readlink-tests (Files): Ship new file.
40687         (Depends-on): Add stdbool.
40688         * modules/symlinkat-tests (Files): Use new files.
40689
40690 2009-09-23  Eric Blake  <ebb9@byu.net>
40691
40692         readlink: document portability issue with symlink length
40693         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40694         systems have bogus st_size on symlinks, and mention the
40695         areadlink-with-size module.
40696         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40697         * doc/posix-functions/readlink.texi (readlink): Mention the
40698         areadlink module, and ERANGE failure.
40699         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40700         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40701
40702         readlink: fix Solaris 9 bug with trailing slash
40703         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40704         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40705         * doc/posix-functions/readlink.texi (readlink): Document this.
40706         * modules/readlink-tests: New test.
40707         * tests/test-readlink.c: Likewise.
40708
40709         readlink: fix cygwin 1.5.x bug with return type
40710         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40711         * lib/unistd.in.h (readlink): Use ssize_t.
40712         * lib/readlink.c (readlink): Likewise.
40713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40714         * modules/unistd (Makefile.am): Substitute it.
40715         * lib/unistd.in.h (readlink): Declare replacement.
40716         * doc/posix-functions/readlink.texi (readlink): Document this.
40717
40718         symlink: use throughout gnulib
40719         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40720         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40721         symlink is not used.
40722         * modules/symlinkat (Depends-on): Add symlink.
40723         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40724         * modules/canonicalize-tests (Depends-on): Likewise.
40725         * modules/lstat-tests (Depends-on): Likewise.
40726         * modules/openat-tests (Depends-on): Likewise.
40727         * modules/remove-tests (Depends-on): Likewise.
40728         * modules/rmdir-tests (Depends-on): Likewise.
40729         * modules/unlink-tests (Depends-on): Likewise.
40730         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40731         * tests/test-canonicalize.c (symlink): Likewise.
40732         * tests/test-fstatat.c (symlink): Likewise.
40733         * tests/test-lstat.c (symlink): Likewise.
40734         * tests/test-remove.c (symlink): Likewise.
40735         * tests/test-rmdir.c (symlink): Likewise.
40736         * tests/test-unlink.c (symlink): Likewise.
40737         * tests/test-unlinkat.c (symlink): Likewise.
40738
40739         symlink: new module, for Solaris 9 bug
40740         * modules/symlink: New file.
40741         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40742         * lib/symlink.c: Likewise.
40743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40744         * modules/unistd (Makefile.am): Substitute them.
40745         * lib/unistd.in.h (symlink): Declare replacement.
40746         * MODULES.html.sh (File system functions): Mention it.
40747         * doc/posix-functions/symlink.texi (symlink): Likewise.
40748         * modules/symlink-tests: New test.
40749         * tests/test-symlink.c: Likewise.
40750
40751 2009-09-23  Bruno Haible  <bruno@clisp.org>
40752
40753         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40754         when needed.
40755         Test case: gnulib-tool --import --with-tests atexit inttypes.
40756         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40757
40758 2009-09-23  Bruno Haible  <bruno@clisp.org>
40759
40760         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40761         subcommand, not in a subshell.
40762
40763 2009-09-22  Eric Blake  <ebb9@byu.net>
40764
40765         unistd: sort replacement declarations
40766         * lib/unistd.in.h: Sort declarations.
40767
40768         open, openat: minor optimization
40769         * lib/open.c (open): If open succeeded, len is non-zero.
40770         * lib/openat.c (rpl_openat): Likewise.
40771
40772         link-follow: ensure correct result
40773         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40774         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40775         distinguish between possible failures.
40776
40777 2009-09-21  Eric Blake  <ebb9@byu.net>
40778
40779         fts: avoid compiler warning
40780         * lib/fts.c (dirent_inode_sort_may_be_useful)
40781         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40782
40783 2009-09-19  Bruno Haible  <bruno@clisp.org>
40784
40785         * lib/progreloc.c (canonicalize_file_name): New declaration.
40786
40787 2009-09-19  Eric Blake  <ebb9@byu.net>
40788
40789         link: fix quoting
40790         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40791
40792         openat: fix openat bugs on Solaris 9
40793         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40794         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40795         * modules/openat (Depends-on): Add open.
40796         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40797         * modules/fcntl-h (Makefile.am): Substitute it.
40798         * lib/fcntl.in.h (openat): Declare replacement.
40799         * doc/posix-functions/openat.texi (openat): Document this.
40800
40801         openat: move fstatat and unlinkat into correct files
40802         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40803         compiled.
40804         * lib/openat.c (fstatat, unlinkat): Move...
40805         * lib/fstatat.c (fstatat): ...into correct files.
40806         * lib/unlinkat.c (unlinkat): Likewise.
40807
40808         openat: fix unlinkat bugs on Solaris 9
40809         * lib/unlinkat.c (unlinkat): New file.
40810         * modules/openat (Depends-on): Add unlink.
40811         (Files): Distribute it.
40812         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40813         trailing slash behavior is broken.
40814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40815         * modules/unistd (Makefile.am): Substitute it.
40816         * lib/unistd.in.h (unlinkat): Declare replacement.
40817         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40818
40819         openat: fix fstatat bugs on Solaris 9
40820         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40821         stat.
40822         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40823
40824         test-unlinkat: enhance test, to expose Solaris 9 bug
40825         * tests/test-unlink.c (main): Factor guts...
40826         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40827         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40828         * tests/test-rmdir.c (main): Adjust caller.
40829         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40830         (unlinker): New helper function.
40831         (rmdirat): Enhance check.
40832         * modules/rmdir-tests (Depends-on): Add stdbool.
40833         * modules/unlink-tests (Depends-on): Likewise.
40834         (Files): Add test-unlink.h.
40835         * modules/openat-tests (Files): Likewise.
40836         (Depends-on): Add unlinkdir.
40837
40838         test-fstatat: new test, to expose Solaris 9 bugs
40839         * tests/test-stat.c (main): Factor guts...
40840         * tests/test-stat.h (test_stat_func): ...into new file.
40841         * tests/test-lstat.c (main): Factor guts...
40842         * tests/test-lstat.h (test_lstat_func): ...into new file.
40843         * tests/test-fstatat.c: New file.
40844         * modules/stat-tests (Files): Add test-stat.h.
40845         * modules/lstat-tests (Files): Add test-lstat.h.
40846         (Depends-on): Add stdbool.
40847         * modules/openat-tests (Depends-on): Add pathmax.
40848         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40849         (Makefile.am): Run new test.
40850
40851         remove: new module, for mingw and Solaris 9 bugs
40852         * modules/remove: New file.
40853         * lib/remove.c: Likewise.
40854         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40856         * modules/stdio (Makefile.am): Use them.
40857         * lib/stdio.in.h (remove): Declare replacement.
40858         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40859         * doc/posix-functions/remove.texi (remove): Likewise.
40860         * modules/remove-tests: New test.
40861         * tests/test-remove.c: Likewise.
40862
40863         unlink: new module, for Solaris 9 bug
40864         * modules/unlink: New file.
40865         * lib/unlink.c: Likewise.
40866         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40868         * modules/unistd (Makefile.am): Use them.
40869         * lib/unistd.in.h (stat): Declare replacement.
40870         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40871         * doc/posix-functions/unlink.texi (unlink): Likewise.
40872         * modules/unlink-tests: New test.
40873         * tests/test-unlink.c: Likewise.
40874
40875         lstat: fix Solaris 9 bug
40876         * lib/lstat.c (lstat): Also check for trailing slash on
40877         non-symlink, non-directories.  Use stat module to simplify logic.
40878         * doc/posix-functions/lstat.texi (lstat): Document it.
40879         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40880         (configure.ac): Check for symlink.
40881         * tests/test-lstat.c (main): Add more tests.
40882
40883         stat: add as dependency to other modules
40884         * modules/chown (Depends-on): Add stat.
40885         * modules/euidaccess (Depends-on): Likewise.
40886         * modules/fchdir (Depends-on): Likewise.
40887         * modules/isdir (Depends-on): Likewise.
40888         * modules/link (Depends-on): Likewise.
40889         * modules/lstat (Depends-on): Likewise.
40890         * modules/mkdir-p (Depends-on): Likewise.
40891         * modules/modechange (Depends-on): Likewise.
40892         * modules/open (Depends-on): Likewise.
40893         * modules/readlink (Depends-on): Likewise.
40894         * modules/same (Depends-on): Likewise.
40895
40896         stat: fix Solaris 9 bug
40897         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40898         slash.
40899         * lib/stat.c (rpl_stat): Work around it.
40900         * doc/posix-functions/stat.texi (stat): Update documentation.
40901
40902         stat: new module, for mingw bug
40903         * modules/stat: New file.
40904         * lib/stat.c: Likewise.
40905         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40906         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40907         * modules/sys_stat (Makefile.am): Use them.
40908         * lib/sys_stat.in.h (stat): Declare replacement.
40909         * lib/openat.c (fstatat): Deal with lstat and stat being function
40910         macros.
40911         * modules/openat (Depends-on): Add inline.
40912         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40913         * doc/posix-functions/stat.texi (stat): Likewise.
40914         * modules/stat-tests: New test.
40915         * tests/test-stat.c: Likewise.
40916
40917 2009-09-19  Jim Meyering  <meyering@redhat.com>
40918
40919         syntax-check: detect unnecessary inclusion of canonicalize.h
40920         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40921
40922 2009-09-19  Eric Blake  <ebb9@byu.net>
40923
40924         canonicalize-lgpl: adjust clients to use correct header
40925         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40926         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40927         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40928         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40929         * lib/progreloc.c (includes): Likewise.
40930
40931 2009-09-19  Jim Meyering  <meyering@redhat.com>
40932
40933         test-posixtm.c: correct a comment
40934         * tests/test-posixtm.c: Correct first-line comment.
40935         Spotted by Eric Blake.
40936
40937 2009-09-16  Jim Meyering  <meyering@redhat.com>
40938
40939         posixtm-tests: make T const-correct; add a test case
40940         * tests/test-posixtm.c (T): Declare const.
40941         Add a test for -(2^31+1).
40942         Remove useless can-succeed-only-in-2002 test.
40943
40944         posixtm-tests: adjust the sole failing test
40945         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40946         expected output matches what mktime now produces.  Cross-checked via
40947         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40948
40949         posixtm: move #ifdef'd tests into a new module
40950         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40951         * tests/test-posixtm.c: ... this new file.
40952         * modules/posixtm-tests: New module.
40953
40954 2009-09-19  Eric Blake  <ebb9@byu.net>
40955
40956         openat: simplify use of at-func.c
40957         * lib/at-func.c (includes): Include prerequisites here, to
40958         simplify requirements on client files.
40959         * lib/openat-priv.h: Add double-inclusion guard.
40960         * lib/faccessat.c (includes): Simplify.
40961         * lib/fchmodat.c (includes): Likewise.
40962         * lib/fchownat.c (includes): Likewise.
40963         * lib/mkdirat.c (includes): Likewise.
40964         * lib/mkfifoat.c (includes): Likewise.
40965         * lib/symlinkat.c (includes): Likewise.
40966
40967         openat: allow return of fd 0
40968         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40969         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40970         unistd-safer.
40971         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40972         <fcntl.h>; this module does not leak fds.
40973         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40974         must be allowed to return 0, leaving openat_safer to add the
40975         safety.
40976         (openat_permissive): Avoid writing to just-opened fd 2 if
40977         restoring the current directory fails.
40978         * lib/openat-die.c (openat_restore_fail): Add comment.
40979         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40980         (save_cwd): Guarantee safe fd, but without use of open_safer.
40981         * tests/test-openat.c: New test.
40982         * modules/openat-tests (Files, Makefile.am): Distribute and build
40983         new file.
40984
40985         relocatable-prog-wrapper: fix build
40986         * modules/relocatable-prog-wrapper (Files): Update name of
40987         canonicalize m4 file, broken on 2009-09-17.
40988         Reported by emad hajjar <aleppos@hotmail.com>.
40989
40990 2009-09-19  Bruno Haible  <bruno@clisp.org>
40991
40992         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40993         * lib/safe-alloc.c: Likewise.
40994         Reported by Ian Beckwith <ianb@erislabs.net>.
40995
40996 2009-09-18  Bruno Haible  <bruno@clisp.org>
40997
40998         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40999         Reported by <erobles@sensacd.com.mx>.
41000
41001 2009-09-17  Eric Blake  <ebb9@byu.net>
41002
41003         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41004         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41005         slashes when checking if last component is missing.
41006         * tests/test-canonicalize.c (main): Test this.
41007
41008         canonicalize, canonicalize-lgpl: honor // if distinct from /
41009         * modules/canonicalize (Files): Add double-slash-root.m4.
41010         * modules/canonicalize-lgpl (Files): Likewise.
41011         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41012         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41013         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41014         fallback definition.
41015         (canonicalize_filename_mode): Use it to protect //.
41016         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41017         (__realpath): Likewise.
41018         * tests/test-canonicalize.c (main): Test this.
41019         * tests/test-canonicalize-lgpl.c (main): Likewise.
41020         * modules/canonicalize-tests (Depends-on): Add same-inode.
41021         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41022
41023         canonicalize-lgpl: fix glibc bug with trailing slash
41024         * m4/canonicalize-lgpl.m4: Move contents...
41025         * m4/canonicalize.m4: ...here.
41026         (gl_CANONICALIZE_LGPL): Factor realpath check...
41027         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41028         glibc 2.3.5 bug, fixed 2005-04-27.
41029         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41030         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41031         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41032         * modules/canonicalize-lgpl (Files): Manage file rename.
41033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41034         * modules/stdlib (Makefile.am): Substitute witness.
41035         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41036         is needed.
41037         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41038         replacement is required.
41039         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41040         * doc/glibc-functions/canonicalize_file_name.texi
41041         (canonicalize_file_name): Document this.
41042         * doc/posix-functions/realpath.texi (realpath): Likewise.
41043
41044         canonicalize-lgpl: reject non-directory with trailing slash
41045         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41046         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41047         catches failures in glibc 2.3.5.
41048         * tests/test-canonicalize.c (main): Likewise.
41049
41050         canonicalize-lgpl: use native realpath if it works
41051         * lib/canonicalize-lgpl.c (realpath): Guard with
41052         FUNC_REALPATH_WORKS.
41053         * lib/stdlib.in.h (realpath): Make declaration optional based on
41054         HAVE_REALPATH.
41055         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41056         native realpath works.
41057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41058         * modules/stdlib (Makefile.am): Substitute witness.
41059
41060         canonicalize, canonicalize-lgpl: use <stdlib.h>
41061         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41062         (Include): Mention <stdlib.h>.
41063         (configure.ac): Mention functions we provide.
41064         * modules/canonicalize (configure.ac): Likewise.
41065         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41066         realpath if canonicalize_file_name is missing.
41067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41068         * modules/stdlib (Makefile.am): Substitute witnesses.
41069         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41070         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41071         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41072         * NEWS: Document this.
41073         * doc/glibc-functions/canonicalize_file_name.texi
41074         (canonicalize_file_name): Likewise.
41075         * doc/posix-functions/realpath.texi (realpath): Likewise.
41076         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41077
41078         test-canonicalize: consolidate into single C program
41079         * tests/test-canonicalize.sh: Delete; move setup into...
41080         * tests/test-canonicalize.c (main): ...the program, making it
41081         easier to run in debugger.  Add some tests.
41082         * modules/canonicalize-tests (Files): Remove unused file.
41083         (Depends-on): Add progname.
41084         (configure.ac, Makefile.am): Simplify.
41085
41086         test-canonicalize-lgpl: consolidate into single C program
41087         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41088         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41089         easier to run in debugger.  Add some tests.
41090         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41091         (configure.ac, Makefile.am): Simplify.
41092
41093         canonicalize: avoid resolvepath
41094         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41095         unnecessary checks.
41096         * lib/canonicalize.c (includes): Simplify.
41097         (canonicalize_file_name): Drop resolvepath implementation.
41098         * modules/canonicalize (Depends-on): Drop filenamecat.
41099
41100         canonicalize: don't lose errno
41101         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41102         over calls to free.
41103
41104         canonicalize: simplify errno handling
41105         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41106         assignment.
41107
41108         canonicalize, canonicalize-lgpl: update module dependencies
41109         * modules/canonicalize (Depends-on): Add extensions, lstat,
41110         pathmax, stdlib.
41111         (Files): Drop pathmax.h.
41112         (configure.ac): Adjust macro name.
41113         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41114         lstat, stdlib, sys_stat.
41115         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41116         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41117         extensions.
41118         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41119         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41120         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41121         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41122         declaration, if available.
41123         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41124         we can rely on the readlink module.
41125         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41126         (includes): Use <unistd.h> unconditionally.
41127
41128 2009-09-17  Eric Blake  <ebb9@byu.net>
41129
41130         maint: make Include sections of modules consistent
41131         * modules/alloca: Use only header name; no need to list #include.
41132         * modules/alloca-opt: Likewise.
41133         * modules/arpa_inet: Likewise.
41134         * modules/canon-host: Likewise.
41135         * modules/configmake: Likewise.
41136         * modules/dirent: Likewise.
41137         * modules/eealloc: Likewise.
41138         * modules/environ: Likewise.
41139         * modules/fchdir: Likewise.
41140         * modules/fcntl: Likewise.
41141         * modules/fcntl-h: Likewise.
41142         * modules/gethrxtime: Likewise.
41143         * modules/gettime: Likewise.
41144         * modules/ignore-value: Likewise.
41145         * modules/inet_ntop: Likewise.
41146         * modules/inet_pton: Likewise.
41147         * modules/inttypes: Likewise.
41148         * modules/isnand-nolibm: Likewise.
41149         * modules/isnanf-nolibm: Likewise.
41150         * modules/mbchar: Likewise.
41151         * modules/mbfile: Likewise.
41152         * modules/mbiter: Likewise.
41153         * modules/mbuiter: Likewise.
41154         * modules/netdb: Likewise.
41155         * modules/netinet_in: Likewise.
41156         * modules/nproc: Likewise.
41157         * modules/pagealign_alloc: Likewise.
41158         * modules/poll: Likewise.
41159         * modules/printf-frexp: Likewise.
41160         * modules/pthread: Likewise.
41161         * modules/putenv: Likewise.
41162         * modules/random_r: Likewise.
41163         * modules/relocatable-prog: Likewise.
41164         * modules/search: Likewise.
41165         * modules/select: Likewise.
41166         * modules/selinux-h: Likewise.
41167         * modules/settime: Likewise.
41168         * modules/signal: Likewise.
41169         * modules/size_max: Likewise.
41170         * modules/socklen: Likewise.
41171         * modules/ssize_t: Likewise.
41172         * modules/stdarg: Likewise.
41173         * modules/stdbool: Likewise.
41174         * modules/stddef: Likewise.
41175         * modules/stdint: Likewise.
41176         * modules/stdio: Likewise.
41177         * modules/stdlib: Likewise.
41178         * modules/string: Likewise.
41179         * modules/strings: Likewise.
41180         * modules/sys_file: Likewise.
41181         * modules/sys_ioctl: Likewise.
41182         * modules/sys_select: Likewise.
41183         * modules/sys_socket: Likewise.
41184         * modules/sys_stat: Likewise.
41185         * modules/sys_time: Likewise.
41186         * modules/sys_times: Likewise.
41187         * modules/sys_utsname: Likewise.
41188         * modules/sys_wait: Likewise.
41189         * modules/sysexits: Likewise.
41190         * modules/time: Likewise.
41191         * modules/times: Likewise.
41192         * modules/tmpfile: Likewise.
41193         * modules/trim: Likewise.
41194         * modules/unistd: Likewise.
41195         * modules/wchar: Likewise.
41196         * modules/wctype: Likewise.
41197
41198 2009-09-17  Bruno Haible  <bruno@clisp.org>
41199
41200         Make getdate.y compile on QNX and NetBSD 5 / i386.
41201         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41202         TIME_T_FITS_IN_LONG_INT.
41203         * lib/getdate.y (long_time_t): New type.
41204         (relative_time): Change type of 'seconds' field to long_time_t.
41205         (get_date): Update types of local variables. Check against overflow
41206         during conversion from long_time_t to time_t.
41207         Reported by Matt Kraai <kraai@ftbfs.org>
41208         and Hasso Tepper <hasso@netbsd.org>.
41209
41210 2009-09-17  Bruno Haible  <bruno@clisp.org>
41211
41212         * modules/COPYING: Update copyright years.
41213         * modules/README: Likeiwse.
41214         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41215         Reported by Ian Beckwith <ianb@erislabs.net>.
41216
41217 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41218
41219         * users.txt: Update references for gnuit package.
41220
41221 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41222
41223         * m4/getdelim.m4: Fix typo in copyright line.
41224
41225 2009-09-17  Bruno Haible  <bruno@clisp.org>
41226
41227         * lib/atoll.c: Use the standard header with GPL copyright.
41228         * lib/argz.in.h: Likewise.
41229         * lib/glob.c: Likewise.
41230         * lib/glob-libc.h: Likewise.
41231         * lib/random_r.c: Likewise.
41232         * lib/siglist.h: Likewise.
41233         * lib/strsignal.c: Likewise.
41234         Reported by Ian Beckwith <ianb@erislabs.net>.
41235
41236 2009-09-17  Eric Blake  <ebb9@byu.net>
41237
41238         rmdir: ensure correct dependency order
41239         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41240
41241 2009-09-17  Bruno Haible  <bruno@clisp.org>
41242
41243         Disable assertion that fails on NetBSD 5 / i386.
41244         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41245         Reported by Sam Steingold <sds@gnu.org>
41246         and Hasso Tepper <hasso@netbsd.org>.
41247
41248 2009-09-16  Eric Blake  <ebb9@byu.net>
41249
41250         unlinkdir: port to mingw
41251         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41252         on which no one can unlink a directory.
41253
41254         stdlib: sort witness names
41255         * modules/stdlib (Makefile.am): Sort replacements.
41256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41257         * lib/stdlib.in.h: Likewise.
41258
41259         parse-duration-tests: avoid link failure
41260         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41261         LIBINTL.
41262         Reported by Tom G. Christensen.
41263
41264         openat-tests: ensure unlinkat behaves like rmdir
41265         * tests/test-rmdir.c (main): Factor guts...
41266         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41267         * modules/rmdir-tests (Files): Ship new file.
41268         * modules/openat-tests: New test.
41269         * tests/test-unlinkat.c: Likewise.
41270
41271         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41272         * modules/rmdir-errno (Status, Notice): Now obsolete.
41273
41274         rmdir: work around cygwin 1.5.x and mingw bugs
41275         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41276         * lib/rmdir.c (rmdir): Work around it.
41277         * modules/rmdir (Status, Notice): No longer obsolete.
41278         (Files): Add dos.m4.
41279         (Depends-on): Add unistd.
41280         (configure.ac): Set witnesses.
41281         (License): Relax to LGPLv2+.
41282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41283         * modules/unistd (Makefile.am): Substitute witnesses.
41284         * lib/unistd.in.h (rmdir): Declare replacement.
41285         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41286         * modules/rmdir-tests: New tests.
41287         * tests/test-rmdir.c: Likewise.
41288
41289 2009-09-15  Eric Blake  <ebb9@byu.net>
41290
41291         fchdir: improve use of replacement functions
41292         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41293         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41294         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41295         REPLACE_CLOSEDIR.
41296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41297         * modules/sys_stat (Makefile.am): Substitute correct witness.
41298         * modules/dirent (Makefile.am): Likewise.
41299         * modules/unistd (Makefile.am): Likewise.
41300         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41301         * lib/unistd.in.h (dup): Likewise.
41302         * lib/sys_stat.in.h (fstat): Likewise.
41303
41304         maint: ignore gnulib-tool temp files
41305         * .gitignore: Ignore files created during gnulib-tool --test.
41306
41307 2009-09-13  Jim Meyering  <meyering@redhat.com>
41308
41309         posixtm: don't reject a time that specify "60" as the number of seconds
41310         * lib/posixtm.c (posixtime): The code to reject invalid dates
41311         would also reject a time specified with the .60 suffix.
41312         But POSIX allows that, in order to accommodate leap seconds.
41313         So don't reject it.
41314         (main): Adjust tests accordingly.
41315         * modules/posixtm (Depends-on): Add stpcpy.
41316
41317 2009-09-11  Jim Meyering  <meyering@redhat.com>
41318
41319         announce-gen: include [$release_type] in emitted Subject:
41320         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41321         e.g., [stable] in the emitted Subject: line.
41322
41323 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41324
41325         Remove obsolete macros from several modules.
41326         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41327         obsolete Autoconf macros with their modern counterparts.
41328         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41329         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41330         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41331         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41332         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41333         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41334         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41335         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41336         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41337         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41338         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41339         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41340         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41341         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41342         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41343         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41344         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41345         * m4/time_r.m4 (gl_TIME_R): Likewise.
41346         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41347         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41348         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41349
41350         Fix copyright header in build-aux scripts.
41351         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41352         recommendation.
41353         * build-aux/ncftpput-ftp: Likewise.
41354         * build-aux/update-copyright: Likewise.
41355
41356 2009-09-09  Eric Blake  <ebb9@byu.net>
41357
41358         test-link: allow Linux choice of errno
41359         * tests/test-link.c (main): Relax test for alternate error.
41360
41361         strndup: fix improper m4 caching
41362         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41363         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41364         (gl_PREREQ_STRNDUP): Delete.
41365         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41366         * modules/string (Makefile.am): Substitute it.
41367         * lib/string.in.h (strndup): Modernize prototype.
41368
41369         getcwd: port to mingw
41370         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41371         different from the POSIX assumptions made throughout the getcwd
41372         module; fortunately, the mingw getcwd does not need replacement.
41373         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41374         * modules/getcwd-tests: New test.
41375         * tests/test-getcwd.c: Likewise.
41376
41377         link: fix platform bugs
41378         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41379         * lib/link.c (link): Work around them.  Fix related mingw bug.
41380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41381         * modules/unistd (Makefile.am): Substitute it.
41382         * lib/unistd.in.h (link): Declare replacement.
41383         * doc/posix-functions/link.texi (link): Document this.
41384         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41385
41386         test-link: consolidate into single C program, test more cases
41387         * tests/test-link.sh: Delete.
41388         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41389         at least Cygwin and Solaris.
41390         * modules/link-tests (Files): Remove unused file.
41391         (Depends-on): Add errno, sys_stat.
41392         (Makefile.am): Simplify.
41393
41394 2009-09-08  Bruno Haible  <bruno@clisp.org>
41395
41396         Work around towlower, towupper bug on mingw.
41397         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41398         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41399         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41400         * doc/posix-functions/towupper.texi: Likewise.
41401         Reported by Eric Blake.
41402
41403 2009-09-08  Jim Meyering  <meyering@redhat.com>
41404
41405         build: don't try to run autoheader if we don't use it
41406         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41407         is not used in configure.ac.
41408
41409 2009-09-08  Eric Blake  <ebb9@byu.net>
41410
41411         euidaccess: fix compilation error
41412         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41413
41414         rawmemchr: relax license
41415         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41416         okay.
41417         Reported by Jim Meyering.
41418
41419         mkfifoat: new module
41420         * modules/mkfifoat: New file.
41421         * lib/mkfifoat.c: Likewise.
41422         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41423         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41424         * modules/sys_stat (Makefile.am): Use them.
41425         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41426         * MODULES.html.sh (File system functions): Mention module.
41427         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41428         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41429         * modules/mkfifoat-tests: New test.
41430         * tests/test-mkfifoat.c: Likewise.
41431
41432         strchrnul: relax license
41433         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41434         okay.
41435         Reported by Jim Meyering.
41436
41437 2009-09-08  Eric Blake  <ebb9@byu.net>
41438
41439         fstatat: fix compilation on Solaris
41440         * lib/fstatat.c (includes): Add fcntl.h.
41441         Reported by Pádraig Brady.
41442
41443 2009-09-07  Eric Blake  <ebb9@byu.net>
41444
41445         rename: modernize replacement
41446         * modules/rename (Depends-on): Add stdio.
41447         (configure.ac): Declare witness.
41448         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41449         stdio take care of replacement.
41450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41451         * modules/stdio (Makefile.am): Substitute them.
41452         * lib/stdio.in.h (rename): Declare replacement.
41453         * lib/rename.c (includes): Allow cross-compilation to non-windows
41454         machines.
41455         * doc/posix-functions/rename.texi (rename): Improve
41456         documentation.
41457
41458         stdio: sort witness names
41459         * modules/stdio (Makefile.am): Sort replacements.
41460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41461         * lib/stdio.in.h: Likewise.
41462
41463         getcwd: minor cleanups
41464         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41465         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41466
41467         openat: provide more convenience names
41468         * modules/faccessat (configure.ac): Add C witness.
41469         * lib/unistd.in.h (readlinkat): Fix typo.
41470         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41471         convenience wrappers.
41472         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41473         wrappers in syntax checks.
41474
41475 2009-09-06  Eric Blake  <ebb9@byu.net>
41476
41477         doc: fix comments in recent patches
41478         * lib/faccessat.c: Mention correct function.
41479         * lib/fchmodat.c: Likewise.
41480         * lib/fchownat.c: Likewise.
41481         * lib/symlinkat.c: Likewise.
41482         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41483         constants.
41484
41485         faccessat, symlinkat: continue cleanup of previous patch
41486         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41487         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41488         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41490         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41491         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41492         set.
41493
41494 2009-09-06  Bruno Haible  <bruno@clisp.org>
41495
41496         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41497         (fstatat): Declare if GNULIB_FSTATAT is set.
41498         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41499         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41500         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41501         * modules/fcntl-h (Files): Remove m4/openat.m4.
41502         * modules/sys_stat (Files): Remove m4/openat.m4.
41503         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41504         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41505         * modules/unistd (Files): Remove m4/openat.m4.
41506         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41507         GNULIB_OPENAT.
41508         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41509         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41510         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41511         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41512         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41513         gl_OPENAT_DEFAULTS.
41514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41515         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41516         Don't require gl_OPENAT_DEFAULTS.
41517         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41518         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41519         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41520         (gl_OPENAT_DEFAULTS): Remove macro.
41521
41522 2009-09-06  Bruno Haible  <bruno@clisp.org>
41523
41524         * modules/openat (configure.ac): Remove unneeded witness.
41525
41526 2009-09-06  Bruno Haible  <bruno@clisp.org>
41527
41528         Set errno to ENOSYS when a function is entirely unsupported.
41529         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41530         EOPNOTSUPP.
41531         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41532         * modules/chown (Depends-on): Remove errno.
41533
41534 2009-09-06  Bruno Haible  <bruno@clisp.org>
41535
41536         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41537
41538 2009-09-06  Bruno Haible  <bruno@clisp.org>
41539
41540         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41541
41542 2009-09-06  Ben Pfaff  <blp@gnu.org>
41543             Bruno Haible  <bruno@clisp.org>
41544
41545         Work around a glibc bug in strtok_r.
41546         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41547         Undefine if UNDEFINE_STRTOK_R is set.
41548         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41549         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41550         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41551         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41552         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41553         UNDEFINE_STRTOK_R.
41554         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41555
41556 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41557
41558         exclude: minor fix
41559         * lib/exclude.c: Include wctype.h
41560
41561 2009-09-06  Akim Demaille  <demaille@gostai.com>
41562
41563         bootstrap: improve error message
41564         * build-aux/bootstrap (find_tool): Upon failure, report the list
41565         of candidates.
41566         Honor the initial value of the envvar.
41567
41568 2009-09-05  Eric Blake  <ebb9@byu.net>
41569
41570         symlinkat: new module
41571         * modules/symlinkat: New file.
41572         * lib/symlinkat.c: Likewise.
41573         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41575         * modules/unistd (Makefile.am): Use them.
41576         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41577         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41578         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41579         * MODULES.html.sh (File system functions): Mention module.
41580         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41581         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41582         * modules/symlinkat-tests: New test.
41583         * tests/test-symlinkat.c: Likewise.
41584
41585         test-openat-safer: add more checks
41586         * tests/test-openat-safer.c (main): Check more code paths.
41587
41588 2009-09-05  Jim Meyering  <meyering@redhat.com>
41589
41590         syntax-check: detect unnecessary inclusion of openat.h
41591         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41592
41593 2009-09-05  Bruno Haible  <bruno@clisp.org>
41594
41595         Support towlower, towupper.
41596         * doc/posix-functions/towlower.texi: Mention module wctype.
41597         * doc/posix-functions/towupper.texi: Likewise.
41598         * lib/wctype.in.h (towlower, towupper): New functions.
41599         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41600         (ASSERT): New macro.
41601         (e): New variable.
41602         (main): Test also towlower, towupper. Test WEOF argument.
41603         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41604
41605 2009-09-05  Bruno Haible  <bruno@clisp.org>
41606
41607         Fix conversion behaviour when the input is invalid.
41608         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41609         mark occurring in first pass of indirect conversion.
41610         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41611         input.
41612         Found by clang's static analyzer.
41613
41614 2009-09-05  Bruno Haible  <bruno@clisp.org>
41615
41616         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41617         where direct conversion is possible.
41618
41619 2009-09-04  Eric Blake  <ebb9@byu.net>
41620
41621         openat: fail with ENOENT on empty name
41622         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41623         buffer.
41624
41625         link-follow: fix logic bug in prior patch
41626         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41627         reversed sense of yes and no in prior patch.  Avoid confusing
41628         compilation failure with desired semantics.
41629
41630         link-follow: accomodate mingw and cross-compilation
41631         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41632         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41633         cross-compilation results to -1, to make linkat easier to
41634         implement when cross-compiling.  Trivially support mingw.
41635         * modules/link-follow (configure.ac): Call new name.
41636         * NEWS: Mention this.
41637
41638 2009-09-03  Eric Blake  <ebb9@byu.net>
41639
41640         faccessat: compile replacement
41641         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41642         needed.
41643
41644         fts: fix compilation error
41645         * lib/fts.c (includes): Re-add "openat.h", for
41646         openat_needs_fchdir.
41647
41648         faccessat: new module
41649         * modules/faccessat: New file.
41650         * lib/faccessat.c: Likewise.
41651         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41653         * modules/unistd (Makefile.am): Use it.
41654         * lib/unistd.in.h (faccessat): Declare it.
41655         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41656         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41657         * MODULES.html.sh (File system functions): Mention it.
41658         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41659         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41660
41661         euidaccess: prefer POSIX over non-standard implementation
41662         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41663         * lib/euidaccess.c (euidaccess): Use it if available.
41664
41665         openat: make template easier to use
41666         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41667         AT_FUNC_F2 to be undefined.
41668         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41669         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41670         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41671         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41672         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41673         Likewise.
41674         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41675         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41676         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41677         Likewise.
41678
41679         openat: declare in POSIX headers
41680         * NEWS: Mention this.
41681         * modules/openat (configure.ac): Declare witnesses.
41682         (Depends-on): Add fcntl-h, sys_stat, unistd.
41683         (Include): Mention correct headers.
41684         * modules/fcntl-h (Depends-on): Add link-warning.
41685         (Files): Add openat.m4.
41686         (Makefile.am): Substitute witnesses.
41687         * modules/sys_stat (Files, Makefile.am): Likewise.
41688         * modules/unistd (Files, Makefile.am): Likewise.
41689         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41690         (gl_OPENAT_DEFAULTS): New macro.
41691         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41693         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41694         (SYS_STAT_H): Remove unused variable.
41695         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41696         * lib/fcntl--.h (includes): Remove unneeded header.
41697         * lib/openat-safer.c (includes): Likewise.
41698         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41699         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41700         appropriate headers.
41701         (__OPENAT_PREFIX): Delete.
41702         * lib/fcntl.in.h (openat): Provide declaration.
41703         (AT_FDCWD): Fix Solaris bug.
41704         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41705         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41706         * lib/fchmodat.c (includes):  Adjust to find declaration.
41707         * lib/fchownat.c (includes): Likewise.
41708         * lib/mkdirat.c (includes): Likewise.
41709         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41710         still visible.
41711
41712 2009-09-02  Eric Blake  <ebb9@byu.net>
41713
41714         errno: use consistently
41715         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41716         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41717         * lib/canonicalize.c (ELOOP): Likewise.
41718         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41719         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41720         * lib/lchown.c (EOPNOTSUPP): Likewise.
41721         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41722         * lib/savewd.c (ESTALE): Likewise.
41723         * lib/settime.c (ENOSYS): Likewise.
41724         * lib/utimens.c (ENOSYS): Likewise.
41725         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41726         * lib/chdir-safer.c (ELOOP): Likewise.
41727         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41728         * modules/c-stack (Depends-on): Add errno.
41729         * modules/canonicalize (Depends-on): Likewise.
41730         * modules/chdir-safer (Depends-on): Likewise.
41731         * modules/fdopendir (Depends-on): Likewise.
41732         * modules/inet_ntop (Depends-on): Likewise.
41733         * modules/inet_pton (Depends-on): Likewise.
41734         * modules/lchown (Depends-on): Likewise.
41735         * modules/openat (Depends-on): Likewise.
41736         * modules/savewd (Depends-on): Likewise.
41737         * modules/settime (Depends-on): Likewise.
41738         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41739
41740         fts: avoid leaking fds
41741         * modules/fts (Depends-on): Add cloexec.
41742         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41743         flag.
41744
41745         fts: make directory fds more robust
41746         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41747         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41748
41749         backupfile, chdir-long, fts, savedir: make safer
41750         * lib/backupfile.c (includes): Use "dirent--.h", since
41751         numbered_backup can write to stderr during readdir.
41752         * lib/savedir.c (includes): Likewise.
41753         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41754         emulation can write to stderr on failure.
41755         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41756         * lib/getcwd.c: Document why opendir_safer is unused.
41757         * lib/glob.c: Likewise.
41758         * lib/scandir.c: Likewise.
41759         * lib/openat-proc.c: Likewise, for open_safer.
41760         * modules/backupfile (Depends-on): Add dirent-safer.
41761         * modules/savedir (Depends-on): Likewise.
41762         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41763         * modules/chdir-long (Depends-on): Add openat-safer.
41764
41765         openat-safer: new module
41766         * modules/openat-safer: New file.
41767         * lib/openat-safer.c: Likewise.
41768         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41769         * lib/fcntl-safer.h (openat_safer): Declare.
41770         * lib/fcntl--.h (openat): Override.
41771         * MODULES.html.sh (File descriptor based I/O): Mention it.
41772         * lib/openat.h: Add double-inclusion guards.
41773         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41774         "fcntl--.h", so we can implement openat.
41775         * modules/openat-safer-tests: New test.
41776         * tests/test-openat-safer.c: New file.
41777
41778         dirent-safer: new module
41779         * modules/dirent-safer: New file.
41780         * lib/dirent--.h: Likewise.
41781         * lib/dirent-safer.h: Likewise.
41782         * lib/opendir-safer.c: Likewise.
41783         * m4/dirent-safer.m4: Likewise.
41784         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41785         * modules/dirent-safer-tests: New test.
41786         * tests/test-dirent-safer.c: New file.
41787         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41788
41789         fdopendir: optimize on mingw
41790         * lib/unistd.in.h (_gl_directory_name): New prototype.
41791         * lib/fchdir.c (_gl_directory_name): Implement it.
41792         (fchdir): Use it to simplify implementation.
41793         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41794         fchdir, when available, to avoid calling [f]chdir().
41795
41796         fdopendir: split into its own module
41797         * lib/openat.c (fdopendir): Move...
41798         * lib/fdopendir.c: ...into new file.
41799         * modules/fdopendir: New module.
41800         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41801         * modules/openat (Depends-on): Add fdopendir.
41802         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41803         fdopendir here.
41804         * modules/savedir (Depends-on): Only need fdopendir, not full
41805         openat.
41806         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41807         * lib/openat.h (fdopendir): Drop prototype.
41808         * lib/dirent.in.h (fdopendir): Provide prototype.
41809         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41810         * modules/dirent (Makefile.am): Substitute them.
41811         * MODULES.html.sh (File system functions): Mention it.
41812         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41813         * modules/fdopendir-tests: New file.
41814         * tests/test-fdopendir.c: Likewise.
41815
41816         fchdir: use more consistent macro convention
41817         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41818         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41819         REPLACE_FCHDIR, rather than relying on config.h macros.
41820         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41821         inside a single make-time REPLACE_FCHDIR block, rather than using
41822         the config.h FCHDIR_REPLACEMENT.
41823         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41824         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41825         Manage fstat replacement.
41826         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41827         REPLACE_FCHDIR.
41828         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41829         (Makefile.am): Substitute REPLACE_FCHDIR.
41830         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41831         FCHDIR_REPLACEMENT.
41832         * lib/dup-safer.c (dup_safer): Likewise.
41833         * lib/dup2.c (rpl_dup2): Likewise.
41834         * lib/dup3.c (rpl_dup3): Likewise.
41835         * lib/open.c (rpl_open): Likewise.
41836
41837         fchdir: simplify error handling, and support dup3
41838         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41839         stdbool, malloc-posix, realloc-posix.
41840         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41841         (ensure_dirs_slot): Return false on allocation failure.
41842         (rpl_dup2): Delete.
41843         (_gl_register_dup): New function.
41844         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41845         (_gl_register_fd): Close fd on allocation failure.
41846         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41847         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41848         prototype.
41849         (rpl_dup2_fchdir): Delete prototype.
41850         * lib/open.c (open): Update caller.
41851         * lib/dup2.c (dup2): Track fchdir metadata.
41852         * lib/dup3.c (dup3): Likewise.
41853         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41854         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41855
41856 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41857
41858         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41859         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41860         don't pass arguments to AC_OUTPUT.
41861
41862 2009-09-02  Bruno Haible  <bruno@clisp.org>
41863
41864         * modules/mkdtemp (License): Relicense under LGPLv2+.
41865         Reported by Paolo Bonzini.
41866
41867 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41868
41869         Replace uses of obsolete autoconf macros in Jim's modules.
41870         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41871         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41872         can evoke a warning from autoconf when run with -Wobsolete
41873         enabled.  They were declared obsolete for good reasons (see
41874         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41875         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41876         should not continue using the deprecated macros.
41877         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41878         obsolete Autoconf macros with modern counterparts.
41879         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41880         * m4/dos.m4 (gl_AC_DOS): Likewise.
41881         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41882         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41883         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41884         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41885         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41886         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41887         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41888         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41889         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41890         Likewise.
41891         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41892         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41893         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41894         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41895         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41896         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41897
41898 2009-09-01  Eric Blake  <ebb9@byu.net>
41899
41900         fchdir: fix off-by-one bug in previous patch
41901         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41902         (_gl_unregister_fd): Delete useless if.
41903
41904 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41905
41906         maint.mk: sort the list of syntax-check rules
41907         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41908         easier to get a sense of progress when the rules are run sequentially
41909         and take a long time.
41910
41911 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41912
41913         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41914         * modules/netinet_in: Likewise.
41915         * modules/sys_file: Likewise.
41916         * modules/sys_ioctl: Likewise.
41917         * modules/sys_select: Likewise.
41918         * modules/sys_socket: Likewise.
41919         * modules/sys_stat: Likewise.
41920         * modules/sys_time: Likewise.
41921         * modules/sys_times: Likewise.
41922         * modules/sys_utsname: Likewise.
41923         * modules/sys_wait: Likewise.
41924
41925 2009-09-01  Jim Meyering  <meyering@redhat.com>
41926
41927         fts: help ensure that return values are not ignored
41928         * lib/fts_.h (__GNUC_PREREQ): Define.
41929         (__attribute_warn_unused_result__): Define.
41930         (fts_children, fts_close, fts_open, fts_read): Declare with
41931         __attribute_warn_unused_result__.
41932
41933         fts: fts_close now fails also when closing a dir file descriptor fails
41934         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41935         and propagate to caller, along with errno.
41936
41937         announce-gen: correct formatting in --help output
41938         * build-aux/announce-gen (usage): Move the one-line description in
41939         --help output "up", to where it belongs, just after Usage:.
41940
41941 2009-08-31  Eric Blake  <ebb9@byu.net>
41942
41943         fchdir: port to mingw
41944         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41945         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41946         opened, then use a substitute.
41947         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41948         replacement.
41949         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41950         (_gl_register_fd): No need to check stat if open already filters
41951         all directories.
41952         (fchdir): Fix error condition to match POSIX.
41953         * modules/fchdir (Depends-on): Add sys_stat.
41954         * doc/posix-functions/open.texi (open): Document the limitation.
41955         * modules/fchdir-tests: New file.
41956         * tests/test-fchdir.c: Likewise.
41957
41958         canonicalize: allow cross-testing from cygwin to mingw
41959         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41960         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41961         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41962         Likewise.
41963         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41964         target does not support symlinks.
41965         * tests/test-canonicalize-lgpl.sh: Likewise.
41966
41967         chown: avoid compilation warning on mingw
41968         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41969         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41970         mingw.
41971         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41972         * modules/chown (Depends-on): Add errno.
41973
41974 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41975
41976         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41977         command.
41978
41979 2009-08-31  Jim Meyering  <meyering@redhat.com>
41980
41981         canonicalize: remove useless initialization
41982         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41983         initialization of local, "end".
41984
41985 2009-08-30  Bruno Haible  <bruno@clisp.org>
41986
41987         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41988         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41989         ENOSYS.
41990
41991 2009-08-30  Bruno Haible  <bruno@clisp.org>
41992
41993         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41994         /usr/xpg4/bin/tr when it exists.
41995         * tests/test-pipe-filter-gi1.sh: Likewise.
41996
41997 2009-08-30  Bruno Haible  <bruno@clisp.org>
41998
41999         Work around deficient /usr/bin/id program on Solaris.
42000         * tests/test-file-has-acl.sh (ID): New variable.
42001         * tests/test-set-mode-acl.sh (ID): Likewise.
42002         * tests/test-copy-acl.sh (ID): Likewise.
42003         * tests/test-copy-file.sh (ID): Likewise.
42004
42005 2009-08-30  Bruno Haible  <bruno@clisp.org>
42006
42007         New module 'xstriconveh'.
42008         * lib/xstriconveh.h: New file.
42009         * lib/xstriconveh.c: New file.
42010         * modules/xstriconveh: New file.
42011
42012 2009-08-30  Bruno Haible  <bruno@clisp.org>
42013
42014         Make it easier to use mem_cd_iconveh.
42015         * lib/striconveh.h (iconveh_t): New type.
42016         (iconveh_open, iconveh_close): New declarations.
42017         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42018         with a single 'const iconveh_t *' argument.
42019         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42020         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42021         with a single 'const iconveh_t *' argument.
42022         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42023         * tests/test-striconveh.c (main): Update.
42024         * NEWS: Mention the change.
42025
42026 2009-08-30  Bruno Haible  <bruno@clisp.org>
42027
42028         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42029         problem.
42030
42031 2009-08-30  Bruno Haible  <bruno@clisp.org>
42032
42033         Work around iconv_open problem on Solaris.
42034         * lib/iconv_open-solaris.gperf: New file.
42035         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42036         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42037         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42038         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42039         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42040         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42041
42042 2009-08-29  Jim Meyering  <meyering@redhat.com>
42043
42044         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42045         * top/maint.mk (cvs-check): Remove target; it was just an alias
42046         to the better-named vc-diff-check.
42047         (maintainer-distcheck): Remove rule.  It was used only from
42048         the (alpha/beta/major) target, and all of its commands but one
42049         were coreutils-specific.
42050         (vc-dist): Remove rule.
42051         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42052         Run vc-diff-check, not vc-dist.
42053         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42054
42055 2009-08-27  Bruno Haible  <bruno@clisp.org>
42056
42057         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42058         of 0.
42059
42060 2009-08-27  Bruno Haible  <bruno@clisp.org>
42061
42062         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42063         compilers.
42064         * doc/func.texi: Document the SunPRO C bug.
42065
42066 2009-08-27  Bruno Haible  <bruno@clisp.org>
42067
42068         Fix link error on Solaris.
42069         * tests/test-parse-duration.c (xstrdup): Remove function.
42070
42071 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42072
42073         ignore-value: handle pointer types, too
42074         * lib/ignore-value.h (__attribute__): Remove definition.
42075         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42076         of a more concise and more-often effective "(void) i" statement.
42077         (ignore_ptr): New function to suppress warnings from functions that
42078         return pointers, and to make it explicit that one function doesn't
42079         handle all cases.
42080
42081 2009-08-25  Bruno Haible  <bruno@clisp.org>
42082
42083         dup2: work around a Linux bug.
42084         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42085         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42086         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42087         Reported by Simon Josefsson.
42088
42089 2009-08-25  Jim Meyering  <meyering@redhat.com>
42090
42091         libguestfs uses gnulib
42092         * users.txt: Add libguestfs.
42093
42094 2009-08-24  Eric Blake  <ebb9@byu.net>
42095
42096         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42097         * lib/pipe2.c (includes): Add binary-io.h.
42098         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42099
42100 2009-08-24  Bruno Haible  <bruno@clisp.org>
42101
42102         Tolerate declared but missing accept4 syscall.
42103         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42104         available.
42105         * lib/sys_socket.in.h (accept4): If the function is already present,
42106         override it.
42107         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42108         * modules/accept4 (Makefile.am): Compile accept4.c always.
42109         Reported by Paolo Bonzini and Eric Blake.
42110
42111 2009-08-23  Bruno Haible  <bruno@clisp.org>
42112
42113         New module 'accept4'.
42114         * lib/sys_socket.in.h (accept4): New declaration.
42115         * lib/accept4.c: New file.
42116         * m4/accept4.m4: New file.
42117         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42118         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42119         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42120         HAVE_ACCEPT4.
42121         * modules/accept4: New file.
42122         * doc/glibc-functions/accept4.texi: Mention the new module.
42123
42124 2009-08-24  Jim Meyering  <meyering@redhat.com>
42125
42126         progname: also set global program_invocation_name, when possible
42127         Before this change, a libtool-enabled program that calls glibc's
42128         error function would report the program name as
42129         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42130         * modules/progname (configure.ac): Check for a declaration of
42131         program_invocation_name.
42132         * lib/progname.c:  Include <errno.h>.
42133         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42134         Set program_invocation_name.
42135
42136 2009-08-23  Bruno Haible  <bruno@clisp.org>
42137
42138         * lib/dup3.c: Include <string.h>.
42139
42140 2009-08-23  Bruno Haible  <bruno@clisp.org>
42141
42142         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42143         * lib/pipe2.c (pipe2): Likewise.
42144         Suggested by Eric Blake.
42145
42146 2009-08-23  Bruno Haible  <bruno@clisp.org>
42147
42148         Tolerate declared but missing dup3 syscall.
42149         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42150         * lib/unistd.in.h (dup3): If the function is already present,
42151         override it.
42152         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42153         * modules/dup3 (Makefile.am): Compile dup3.c always.
42154         Reported by Paolo Bonzini.
42155
42156 2009-08-23  Bruno Haible  <bruno@clisp.org>
42157
42158         Tolerate declared but missing pipe2 syscall.
42159         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42160         available.
42161         * lib/unistd.in.h (pipe2): If the function is already present,
42162         override it.
42163         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42164         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42165         Reported by Paolo Bonzini.
42166
42167 2009-08-23  Bruno Haible  <bruno@clisp.org>
42168
42169         * lib/pipe2.c (pipe2): Move #ifs inside function.
42170
42171 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42172
42173         quotearg: document limitations of quote_these_too
42174         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42175         those limitations are created.
42176         * lib/quotearg.h (set_char_quoting): Document that digits and
42177         letters that are special after backslash are not permitted.
42178         (quotearg_char): Cross-reference set_char_quoting documentation.
42179
42180 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42181
42182         quotearg: implement custom_quoting_style
42183         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42184         right_quote fields.
42185         (set_custom_quoting): New public function.
42186         (quotearg_buffer_restyled): Add left_quote and right_quote
42187         arguments, handle them very much like locale quoting, and update
42188         all uses.
42189         (quotearg_n_custom): New public function.
42190         (quotearg_n_custom_mem): New public function.
42191         (quotearg_custom): New public function.
42192         (quotearg_custom_mem): New public function.
42193         * lib/quotearg.h: Prototype and document new public functions.
42194         (enum quoting_style): For escape_quoting_style and
42195         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42196         ignored even though they're otherwise like c_quoting_style.
42197         Add custom_quoting_style member and document with comparison to
42198         clocale_quoting_style.
42199         * tests/test-quotearg.c (custom_quotes): New array.
42200         (custom_results): New array.
42201         (main): Extend to test custom quoting.
42202
42203 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42204
42205         quotearg: fix right quote escaping when it's in quote_these_too
42206         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42207         quote, be sure to prepend only one backslash.
42208         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42209         (main): Test it.
42210
42211 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42212
42213         quotearg-tests: test escaping of embedded locale quotes
42214         * tests/test-quotearg.c (struct result_strings): Add member for
42215         new input.
42216         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42217         (inputs): Add new input.
42218         (results_g): Add expected results.
42219         (flag_results): Likewise.
42220         (locale_results): Likewise.
42221         (compare_strings): Check those.
42222
42223 2009-08-23  Bruno Haible  <bruno@clisp.org>
42224
42225         Tests for module 'dup3'.
42226         * modules/dup3-tests: New file.
42227         * tests/test-dup3.c: New file.
42228
42229         New module 'dup3'.
42230         * lib/unistd.in.h (dup3): New declaration.
42231         * lib/dup3.c: New file.
42232         * m4/dup3.m4: New file.
42233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42234         HAVE_DUP3.
42235         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42236         * modules/dup3: New file.
42237         * doc/glibc-functions/dup3.texi: Mention the new module.
42238
42239 2009-08-23  Bruno Haible  <bruno@clisp.org>
42240
42241         Tweak the dup2 test.
42242         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42243         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42244         the test file is still empty. Fix argument order of lseek.
42245
42246 2009-08-23  Bruno Haible  <bruno@clisp.org>
42247
42248         Avoid test link errors when the modules getopt-gnu, gettext are used.
42249         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42250         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42251
42252 2009-08-23  Bruno Haible  <bruno@clisp.org>
42253
42254         Fix getdtablesize() on mingw.
42255         * lib/getdtablesize.c (getdtablesize): Implement differently.
42256         * lib/unistd.in.h (getdtablesize): Improve comment.
42257
42258 2009-08-23  Bruno Haible  <bruno@clisp.org>
42259
42260         New module 'mkostemp'.
42261         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42262         * lib/stdlib.in.h (mksotemp): New declaration.
42263         * lib/mkostemp.c: New file, from glibc with modifications.
42264         * lib/tempname.h (GT_FILE): Remove outdated comment.
42265         (gen_tempname): Add flags argument.
42266         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42267         (__GT_FILE): Map to 1.
42268         (small_open, large_open): Remove macros.
42269         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42270         * lib/mkstemp.c (mkstemp): Update.
42271         * lib/mkdtemp.c (mkdtemp): Likewise.
42272         * m4/mkostemp.m4: New file.
42273         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42274         HAVE_MKOSTEMP.
42275         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42276         HAVE_MKOSTEMP.
42277         * modules/mkostemp: New file, based on modules/mkstemp.
42278         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42279         * NEWS: Mention the change.
42280
42281 2009-08-23  Bruno Haible  <bruno@clisp.org>
42282
42283         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42284         Reported by Eric Blake.
42285
42286 2009-08-23  Bruno Haible  <bruno@clisp.org>
42287
42288         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42289         Reported by Eric Blake.
42290
42291 2009-08-23  Bruno Haible  <bruno@clisp.org>
42292
42293         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42294         * modules/pipe2 (Depends-on): Likewise.
42295
42296 2009-08-23  Eric Blake  <ebb9@byu.net>
42297
42298         fcntl-h: add O_TTY_INIT support
42299         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42300         * tests/test-fcntl-h.c (o): Test it.
42301         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42302
42303         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42304         * modules/fcntl: Move <fcntl.h> header replacement...
42305         * modules/fcntl-h: ...to new name, so as not to collide with
42306         like-named function.
42307         * tests/test-fcntl.c: Rename...
42308         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42309         * modules/fcntl-tests: Rename...
42310         * modules/fcntl-h-tests: ...to this.  Update test file name.
42311         * modules/chdir-long (Depends-on): Update clients.
42312         * modules/chdir-safer (Depends-on): Likewise.
42313         * modules/fcntl-safer (Depends-on): Likewise.
42314         * modules/fts (Depends-on): Likewise.
42315         * modules/mkancesdirs (Depends-on): Likewise.
42316         * modules/mkdir-p (Depends-on): Likewise.
42317         * modules/open (Depends-on): Likewise.
42318         * modules/savewd (Depends-on): Likewise.
42319         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42320         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42321
42322 2009-08-22  Bruno Haible  <bruno@clisp.org>
42323
42324         * modules/binary-io (License): Relicense under LGPL.
42325         * modules/pipe2 (License): Likewise.
42326
42327 2009-08-22  Bruno Haible  <bruno@clisp.org>
42328
42329         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42330         return value.
42331         * lib/pipe-filter-gi.c (filter_init): Likewise.
42332         Reported by Eric Blake.
42333
42334 2009-08-22  Bruno Haible  <bruno@clisp.org>
42335
42336         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42337         * modules/pipe (Depends-on): Add pipe2.
42338
42339 2009-08-22  Bruno Haible  <bruno@clisp.org>
42340
42341         Tests for module 'pipe2'.
42342         * modules/pipe2-tests: New file.
42343         * tests/test-pipe2.c: New file.
42344
42345         New module 'pipe2'.
42346         * lib/unistd.in.h (pipe2): New declaration.
42347         * lib/pipe2.c: New file.
42348         * m4/pipe2.m4: New file.
42349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42350         HAVE_PIPE2.
42351         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42352         * modules/pipe2: New file.
42353         * doc/glibc-functions/pipe2.texi: Mention the new module.
42354
42355 2009-08-22  Bruno Haible  <bruno@clisp.org>
42356
42357         Reference some new glibc functions.
42358         * doc/glibc-functions/accept4.texi: New file.
42359         * doc/glibc-functions/dup3.texi: New file.
42360         * doc/glibc-functions/mkostemp.texi: New file.
42361         * doc/glibc-functions/pipe2.texi: New file.
42362         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42363         (Glibc sys/socket.h): Refer to accept4.
42364         (Glibc unistd.h): Refer to dup3, pipe2.
42365         Reported by Eric Blake.
42366
42367 2009-08-22  Jim Meyering  <meyering@redhat.com>
42368             Bruno Haible  <bruno@clisp.org>
42369
42370         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42371         This makes it so packages using automake-1.11's silent-rules option
42372         can print e.g., a single "GEN    configmake.h" line, rather than
42373         the 30+ statements that perform the job.  If you want to see the
42374         actual commands, you can still run "make V=1".
42375         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42376         so that make output is abbreviated when those variables are defined
42377         appropriately.
42378         * modules/argz: Likewise.
42379         * modules/arpa_inet: Likewise.
42380         * modules/byteswap: Likewise.
42381         * modules/configmake: Likewise.
42382         * modules/dirent: Likewise.
42383         * modules/errno: Likewise.
42384         * modules/fcntl: Likewise.
42385         * modules/float: Likewise.
42386         * modules/fnmatch: Likewise.
42387         * modules/getopt-posix: Likewise.
42388         * modules/glob: Likewise.
42389         * modules/iconv_open: Likewise.
42390         * modules/inttypes: Likewise.
42391         * modules/localcharset: Likewise.
42392         * modules/locale: Likewise.
42393         * modules/math: Likewise.
42394         * modules/netdb: Likewise.
42395         * modules/netinet_in: Likewise.
42396         * modules/poll: Likewise.
42397         * modules/posix_spawnp-tests: Likewise.
42398         * modules/sched: Likewise.
42399         * modules/search: Likewise.
42400         * modules/selinux-h: Likewise.
42401         * modules/signal: Likewise.
42402         * modules/spawn: Likewise.
42403         * modules/stdarg: Likewise.
42404         * modules/stdbool: Likewise.
42405         * modules/stddef: Likewise.
42406         * modules/stdint: Likewise.
42407         * modules/stdio: Likewise.
42408         * modules/stdlib: Likewise.
42409         * modules/string: Likewise.
42410         * modules/strings: Likewise.
42411         * modules/sys_file: Likewise.
42412         * modules/sys_ioctl: Likewise.
42413         * modules/sys_select: Likewise.
42414         * modules/sys_socket: Likewise.
42415         * modules/sys_stat: Likewise.
42416         * modules/sys_time: Likewise.
42417         * modules/sys_times: Likewise.
42418         * modules/sys_utsname: Likewise.
42419         * modules/sys_wait: Likewise.
42420         * modules/sysexits: Likewise.
42421         * modules/time: Likewise.
42422         * modules/unistd: Likewise.
42423         * modules/wchar: Likewise.
42424         * modules/wctype: Likewise.
42425
42426 2009-08-22  Jim Meyering  <meyering@redhat.com>
42427
42428         announce-gen: detect write failure
42429         * build-aux/announce-gen: Add Coda at end.
42430         Remove equivalent-but-more-verbose block at top.
42431
42432 2009-08-19  Akim Demaille  <demaille@gostai.com>
42433
42434         bootstrap: --help to stdout.
42435         * bootstrap (usage): Don't send --help to stderr.
42436         Use a here doc instead of a long string.
42437
42438 2009-08-21  Eric Blake  <ebb9@byu.net>
42439
42440         test-popen-safer: split from test-popen
42441         * tests/test-popen.c (main): Move...
42442         * tests/test-popen.h: ...into new file.
42443         * tests/test-popen-safer2.c: New file.
42444         * modules/popen-tests (Files): Add test-popen.h.
42445         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42446         Suggested by Bruno Haible.
42447
42448         test-fcntl-safer: split from test-open
42449         * tests/test-open.c (main): Move...
42450         * tests/test-open.h: ...into new file.
42451         * tests/test-fcntl-safer.c: New file.
42452         * modules/open-tests (Files): Add test-open.h.
42453         * modules/fcntl-safer-tests: New file.
42454         Suggested by Bruno Haible.
42455
42456         test-fopen-safer: split from test-fopen
42457         * tests/test-fopen.c (main): Move...
42458         * tests/test-fopen.h: ...into new file.
42459         * tests/test-fopen-safer.c: New file.
42460         * modules/fopen-tests (Files): Add test-fopen.h.
42461         * modules/fopen-safer-tests: New file.
42462         Suggested by Bruno Haible.
42463
42464 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42465
42466         popen-safer: test O_CLOEXEC at run-time.
42467         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42468
42469 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42470
42471         fcntl: move more flags to the header
42472         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42473         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42474         * lib/fcntl.in.h: Do both things here.
42475
42476 2009-08-21  Jim Meyering  <meyering@redhat.com>
42477
42478         consistently remove $@-t before redirecting to it
42479         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42480         * modules/alloca-opt: Likewise.
42481         * modules/byteswap: Likewise.
42482         * modules/fnmatch: Likewise.
42483         * modules/getopt-posix: Likewise.
42484         * modules/glob: Likewise.
42485         * modules/poll: Likewise.
42486         * modules/posix_spawnp-tests: Likewise.
42487         * modules/sys_socket: Likewise.
42488         * modules/sysexits: Likewise.
42489
42490 2009-08-21  Eric Blake  <ebb9@byu.net>
42491
42492         popen: simplify access to original popen
42493         * lib/popen.c (rpl_popen): No need to worry about popen being a
42494         macro.
42495         Reported by Bruno Haible.
42496
42497 2009-08-20  Eric Blake  <ebb9@byu.net>
42498
42499         build: avoid some compiler warnings
42500         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42501         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42502         type.
42503         (new_exclude_segment, excluded_file_pattern_p)
42504         (excluded_file_name_p): Reduce scope.
42505         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42506         old-style declaration.
42507
42508 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42509
42510         * tests/test-exclude1.sh: Handle Windows EOL.
42511         * tests/test-exclude2.sh: Likewise.
42512         * tests/test-exclude3.sh: Likewise.
42513         * tests/test-exclude4.sh: Likewise.
42514         * tests/test-exclude5.sh: Likewise.
42515         * tests/test-exclude6.sh: Likewise.
42516         * tests/test-exclude7.sh: Likewise.
42517
42518 2009-08-19  Akim Demaille  <demaille@gostai.com>
42519
42520         bootstrap: find sha1sum when named gsha1sum.
42521         * bootstrap (find_tool): New.
42522         ($SHA1SUM): New.
42523         Use it.
42524
42525 2009-08-20  Jim Meyering  <meyering@redhat.com>
42526
42527         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42528         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42529         expression that converts "." in a file name to "\." in the resulting
42530         regexp.  Start with a dummy statement, so that prior shell variable
42531         definitions are expanded portably.  Reported by Simon Josefsson.
42532
42533 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42534
42535         Fix polling for writeability of a screen buffer.
42536         * lib/poll.c: Distinguish input and screen buffers for the
42537         Win32 implementation.
42538         * lib/select.c: Likewise.
42539
42540 2009-08-19  Eric Blake  <ebb9@byu.net>
42541
42542         popen-safer: prevent popen from clobbering std descriptors
42543         * modules/popen-safer: New file.
42544         * lib/popen-safer.c: Likewise.
42545         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42546         * lib/stdio--.h (popen): Provide override.
42547         * lib/stdio-safer.h (popen_safer): Provide declaration.
42548         * tests/test-popen.c (includes): Partially test this.
42549         * modules/popen-safer-tests: New file, for more tests.
42550         * tests/test-popen-safer.c: Likewise.
42551         * MODULES.html.sh (file stream based Input/Output): Mention it.
42552
42553         tests: test some of the *-safer modules
42554         * modules/fopen-safer (Depends-on): Add fopen.
42555         * modules/fcntl-safer (Depends-on): Add fcntl.
42556         * modules/stdlib-safer (Depends-on): Add stdlib.
42557         (configure.ac): Set indicator.
42558         * modules/unistd-safer (configure.ac): Likewise.
42559         * modules/tmpfile-safer (configure.ac): Likewise.
42560         (Depends-on): Add tmpfile.
42561         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42562         active.
42563         * tests/test-fopen.c (includes): Test safer versions when they are
42564         in use.
42565         * tests/test-open.c (includes): Likewise.
42566
42567         popen: fix cygwin 1.5 bug when stdin closed
42568         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42569         * modules/popen: New file.
42570         * modules/popen-tests: Likewise.
42571         * tests/test-popen.c: Likewise.
42572         * m4/popen.m4: Likewise.
42573         * lib/popen.c: Likewise.
42574         * lib/stdio.in.h (popen): New declaration.
42575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42576         * modules/stdio (Makefile.am): Likewise.
42577         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42578
42579 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42580
42581         maint.mk: give full control over update-copyright exclusions
42582         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42583         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42584         (update-copyright): Don't force inclusion of top-level
42585         ChangeLog.  Don't force exclusion of all COPYING files, but make
42586         them the default exclusion instead.
42587
42588 2009-08-16  Bruno Haible  <bruno@clisp.org>
42589
42590         Fix test failures on Solaris 10.
42591         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42592         tests when Solaris iconv() is used.
42593         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42594         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42595         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42596         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42597         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42598
42599 2009-08-16  Bruno Haible  <bruno@clisp.org>
42600
42601         Fix test failures on Solaris 10.
42602         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42603         'tr' program and pass it as first argument.
42604         * tests/test-pipe-filter-gi1.sh: Likewise.
42605         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42606         program as first argument.
42607         * tests/test-pipe-filter-gi1.c (main): Likewise.
42608
42609 2009-08-16  Eric Blake  <ebb9@byu.net>
42610
42611         fpurge: fix previous commits
42612         * modules/fpurge (Makefile.am): Make replacement conditional,
42613         partially reverting 2007-04-29 change; missed in previous
42614         attempt.
42615         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42616         is missing.
42617
42618 2009-08-16  Bruno Haible  <bruno@clisp.org>
42619
42620         Clarify fpurge's effect on the file position.
42621         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42622         * tests/test-fpurge.c (main): Make a second pass for checking the file
42623         position.
42624
42625 2009-08-16  Bruno Haible  <bruno@clisp.org>
42626
42627         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42628         declaration of fpurge is missing.
42629         * tests/test-fpurge.c (main): Check that the file has not more contents
42630         than expected. Close the file before removing it.
42631
42632 2009-08-15  Eric Blake  <ebb9@byu.net>
42633
42634         fpurge: don't wrap working cygwin implementation
42635         * lib/fpurge.c (fpurge): Fix comment typo.
42636         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42637         1.7 to avoid replacement.
42638         * tests/test-fpurge.c (main): Enhance test.
42639
42640 2009-08-15  Eric Blake  <ebb9@byu.net>
42641         and Jim Meyering  <meyering@redhat.com>
42642
42643         test-update-copyright: skip if perl is insufficient
42644         * tests/test-update-copyright.sh: Failure to run maintainer tool
42645         should not cause testsuite failure on cygwin 1.5.
42646
42647 2009-08-14  Eric Blake  <ebb9@byu.net>
42648
42649         doc: mention more functions added in cygwin 1.7.0
42650         * doc/posix-headers/limits.texi (limits.h): Update for recent
42651         cygwin additions.
42652         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42653         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42654         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42655         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42656         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42657
42658 2009-08-14  Eric Blake  <ebb9@byu.net>
42659
42660         maint.mk: simplify update-copyright rule
42661         * top/maint.mk (update-copyright-local): Delete, and document how
42662         to do it in cfg.mk instead.
42663         (update-copyright-exclude-regexp): Delete, and document how to do
42664         it in .x-update-copyright instead.
42665         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42666         exclude ChangeLog.
42667
42668 2009-08-14  Bruno Haible  <bruno@clisp.org>
42669
42670         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42671
42672 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42673
42674         maint.mk: support update-copyright-env
42675         * top/maint.mk (update-copyright-env): Define place-holder.
42676         (update-copyright): Expand $(update-copyright-env) before
42677         invoking update-copyright.
42678
42679 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42680
42681         update-copyright: implement forced reformatting
42682         * build-aux/update-copyright: Implement and document
42683         UPDATE_COPYRIGHT_FORCE.
42684         * tests/test-update-copyright.sh: Test it.
42685
42686 2009-08-14  Eric Blake  <ebb9@byu.net>
42687         and Bruno Haible  <bruno@clisp.org>
42688
42689         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42690         * tests/test-locale.c: Revert previous patch related to NULL.
42691         * tests/test-stdio.c: Likewise.
42692         * tests/test-stdlib.c: Likewise.
42693         * tests/test-string.c: Likewise.
42694         * tests/test-unistd.c: Likewise.
42695         * modules/time-tests (Depends-on): Add verify.
42696         * modules/wchar-tests (Depends-on): Likewise.
42697         * tests/test-time.c: Test for NULL compliance.
42698         * tests/test-wchar.c: Likewise.
42699         * modules/locale (Depends-on): Add stddef.
42700         * modules/stdio (Depends-on): Likewise.
42701         * modules/stdlib (Depends-on): Likewise.
42702         * modules/string (Depends-on): Likewise.
42703         * modules/time (Depends-on): Likewise.
42704         * modules/unistd (Depends-on): Likewise.
42705         * modules/wchar (Depends-on): Likewise.
42706         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42707         * lib/stdlib.in.h (includes): Likewise.
42708         * lib/string.in.h (includes): Likewise.
42709         * lib/time.in.h (includes): Likewise.
42710         * lib/unistd.in.h (includes): Likewise.
42711         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42712         replaced.
42713         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42714         * m4/stddef_h.m4: New file.
42715         * modules/stddef: Likewise.
42716         * lib/stddef.in.h: Likewise.
42717         * modules/stddef-tests: Likewise.
42718         * tests/test-stddef.c: Likewise.
42719         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42720         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42721         * doc/posix-headers/locale.texi (locale.h): Likewise.
42722         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42723         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42724         * doc/posix-headers/string.texi (string.h): Likewise.
42725         * doc/posix-headers/time.texi (time.h): Likewise.
42726         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42727         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42728
42729 2009-08-14  Eric Blake  <ebb9@byu.net>
42730
42731         doc: improve git diff of texinfo files
42732         * .gitattributes: Add rule for *.texi files, with hint on how to
42733         use it.
42734         Copied from m4, and based on a report by Bruno Haible.
42735
42736 2009-08-14  Bruno Haible  <bruno@clisp.org>
42737
42738         Disable multithread support by default on Cygwin 1.5.x for real.
42739         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42740
42741 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42742
42743         update-copyright: much ado about intervals
42744         * build-aux/update-copyright: Implement and document
42745         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42746         of copyright year intervals.
42747         Also, document UPDATE_COPYRIGHT_YEAR.
42748         * tests/test-update-copyright.sh: Test it.
42749
42750         update-copyright: convert 2-digit to 4-digit years
42751         * build-aux/update-copyright: Implement and document.
42752         * tests/test-update-copyright.sh: Update.
42753
42754 2009-08-14  Jim Meyering  <meyering@redhat.com>
42755
42756         test-exclude: avoid coreutils "make check" failure
42757         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42758         just as in test-argmatch.c.
42759
42760 2009-08-13  Eric Blake  <ebb9@byu.net>
42761
42762         test-dup2: fix bad assumption
42763         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42764         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42765
42766         test-version-etc: fix CRLF portability issue
42767         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42768         recognize \r.
42769         * tests/test-argp-version-etc-1.sh: Likewise.
42770
42771         getopt: update client modules
42772         * modules/argp (Depends-on): Use getopt-gnu.
42773         * modules/git-merge-changelog (Depends-on): Likewise.
42774         * modules/long-options (Depends-on): Likewise.
42775         * modules/xstrtol (Depends-on): Likewise.
42776
42777 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42778
42779         * tests/test-version-etc.sh: Don't fail on different
42780         project/version.  Don't fail on CRLF differences.  Rewrite to use
42781         multiple -e instead of multiple sed forks, suggested by Eric Blake
42782         <ebb9@byu.net>.
42783         * tests/test-argp-version-etc-1.sh: Likewise.
42784
42785 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42786
42787         * tests/test-version-etc.sh: Don't fail on different
42788         project/version.
42789
42790 2009-08-12  Bruno Haible  <bruno@clisp.org>
42791
42792         Tests for modules 'getopt-posix', 'getopt-gnu'.
42793         * modules/getopt-posix-tests: New file.
42794         * tests/test-getopt.c: New file.
42795         * tests/test-getopt.h: New file.
42796         * tests/test-getopt_long.h: New file.
42797
42798         New modules 'getopt-posix', 'getopt-gnu'.
42799         * modules/getopt-gnu: New file, renamed from modules/getopt.
42800         * modules/getopt-posix: New file.
42801         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42802         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42803         (gl_GETOPT): Remove macro.
42804         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42805         Disable the test against BSD systems that declare optreset. Test
42806         against mingw bug. Test against lack of support of optional arguments
42807         on many platforms.
42808         * doc/glibc-headers/getopt.texi: Update module name and list of
42809         relevant platforms.
42810         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42811         'getopt-gnu' and more portability problems.
42812         * NEWS: Mention the changes.
42813
42814 2009-08-12  Bruno Haible  <bruno@clisp.org>
42815
42816         Ensure that optarg etc. get declared by <unistd.h>.
42817         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42818         AC_USE_SYSTEM_EXTENSIONS.
42819         * modules/getopt (Depends-on): Add 'extensions'.
42820
42821 2009-08-12  Bruno Haible  <bruno@clisp.org>
42822
42823         Avoid test link errors.
42824         * modules/pipe-filter-ii-tests (Makefile.am): Define
42825         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42826         * modules/pipe-filter-gi-tests (Makefile.am): Define
42827         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42828         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42829
42830 2009-08-12  Bruno Haible  <bruno@clisp.org>
42831
42832         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42833         gl_GETOPT_SUBSTITUTE before.
42834         (gl_GETOPT): Use it.
42835         * m4/argp.m4 (gl_ARGP): Update.
42836         Reported by Sergey Poznyakoff.
42837
42838         * m4/getopt.m4: Reorder macros.
42839         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42840         (gl_GETOPT_SUBSTITUTE): Remove macro.
42841
42842 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42843
42844         Minor improvement in gitlog-to-changelog
42845
42846         * build-aux/gitlog-to-changelog: New option `--format' makes
42847         output format string configurable.
42848
42849 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42850
42851         Optimize exclude: use hash tables for non-wildcard patterns.
42852
42853         * lib/exclude.c: Include hash.h and mbuiter.h
42854         (struct exclude_pattern, exclude_segment): New data types.
42855         (struct exclude): Rewrite.
42856         (fnmatch_pattern_has_wildcards): New function.
42857         (new_exclude_segment, free_exclude_segment): New functions.
42858         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42859         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42860         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42861         * modules/exclude: Depend on hash and mbuiter.
42862
42863         * modules/exclude-tests: New file.
42864         * tests/test-exclude.c: New file.
42865         * tests/test-exclude1.sh: New file.
42866         * tests/test-exclude2.sh: New file.
42867         * tests/test-exclude3.sh: New file.
42868         * tests/test-exclude4.sh: New file.
42869         * tests/test-exclude5.sh: New file.
42870         * tests/test-exclude6.sh: New file.
42871         * tests/test-exclude7.sh: New file.
42872
42873 2009-08-12  Bruno Haible  <bruno@clisp.org>
42874
42875         Ensure that getopt() gets declared by <unistd.h>.
42876         * lib/unistd.in.h: Conditionally include getopt.h.
42877         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42878         Set GNULIB_UNISTD_H_GETOPT.
42879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42880         GNULIB_UNISTD_H_GETOPT.
42881         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42882
42883 2009-08-12  Bruno Haible  <bruno@clisp.org>
42884
42885         Clarify logic.
42886         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42887         gl_replace_getopt instead of GETOPT_H.
42888
42889 2009-08-12  Bruno Haible  <bruno@clisp.org>
42890
42891         * m4/getopt.m4: Add comments.
42892
42893 2009-08-12  Bruno Haible  <bruno@clisp.org>
42894
42895         Disable multithread support by default on Cygwin 1.5.x.
42896         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42897         set gl_use_threads=no if not specified otherwise.
42898
42899 2009-08-11  Bruno Haible  <bruno@clisp.org>
42900
42901         Avoid compilation error on NetBSD 5.0.
42902         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42903         * tests/test-stdio.c: Likewise.
42904         * tests/test-stdlib.c: Likewise.
42905         * tests/test-string.c: Likewise.
42906         * tests/test-unistd.c: Likewise.
42907         Reported by Greg Troxel <gdt@ir.bbn.com>
42908         at <https://savannah.gnu.org/support/?106973>.
42909
42910 2009-08-11  Bruno Haible  <bruno@clisp.org>
42911
42912         * modules/dup2-tests (Depends-on): Remove close.
42913
42914         Undo 2009-07-19 commit.
42915         * modules/acl-tests (Depends-on): Remove close.
42916         * modules/binary-io-tests (Depends-on): Likewise.
42917         * modules/closein-tests (Depends-on): Likewise.
42918         * modules/flock-tests (Depends-on): Likewise.
42919         * modules/fsync-tests (Depends-on): Likewise.
42920         * modules/lseek-tests (Depends-on): Likewise.
42921         * modules/pipe-tests (Depends-on): Likewise.
42922         * modules/posix_spawn-tests (Depends-on): Likewise.
42923         * modules/posix_spawnp-tests (Depends-on): Likewise.
42924         * modules/stat-time-tests (Depends-on): Likewise.
42925         * modules/yesno-tests (Depends-on): Likewise.
42926
42927 2009-08-10  Bruno Haible  <bruno@clisp.org>
42928
42929         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42930
42931 2009-08-10  Bruno Haible  <bruno@clisp.org>
42932
42933         Fix a gcc warning.
42934         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42935
42936 2009-08-10  Bruno Haible  <bruno@clisp.org>
42937
42938         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42939         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42940         not only the first time.
42941         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42942         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42943         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42944         is 1, not only the the first time.
42945
42946 2009-08-10  Bruno Haible  <bruno@clisp.org>
42947
42948         Make it possible to use module 'gethostname' without module 'close'.
42949         * lib/unistd.in.h (close): Evoke a link error only if
42950         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42952         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42953         * modules/unistd (Makefile.am): Substitute
42954         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42955         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42956         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42957         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42958         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42959         * modules/sys_ioctl (Makefile.am): Substitute
42960         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42961         * modules/socket (configure.ac): On native Windows, set
42962         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42963         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42964         Reported by Sam Steingold <sds@gnu.org>.
42965
42966 2009-08-10  Bruno Haible  <bruno@clisp.org>
42967
42968         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42969         * modules/ioctl (configure.ac): Likewise.
42970
42971 2009-08-10  Bruno Haible  <bruno@clisp.org>
42972
42973         Avoid collision between gnulib wrapper and libintl wrapper.
42974         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42975         already defined in intl/printf.c.
42976         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42977         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42978
42979 2009-08-09  Bruno Haible  <bruno@clisp.org>
42980
42981         Make <sys/select.h> really self-contained, also on Solaris 10.
42982         * lib/sys_select.in.h: Include <string.h>.
42983         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42984         Solaris 10 problem.
42985         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42986         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42987         Reported by Jim Meyering.
42988
42989 2009-08-09  Bruno Haible  <bruno@clisp.org>
42990
42991         Avoid warnings from 'aclocal' that are due to a use of macro name
42992         AM_XGETTEXT_OPTION that is not defined in automake.
42993         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42994         automake.
42995         * modules/error (configure.ac): Likewise.
42996         * modules/propername (configure.ac): Likewise.
42997         * modules/vasprintf (configure.ac): Likewise.
42998         * modules/verror (configure.ac): Likewise.
42999         * modules/xprintf (configure.ac): Likewise.
43000         * modules/xvasprintf (configure.ac): Likewise.
43001
43002 2009-08-08  Bruno Haible  <bruno@clisp.org>
43003
43004         Avoid compilation error in C++ mode.
43005         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43006         Reported by Sam Steingold <sds@gnu.org>.
43007
43008 2009-08-08  Bruno Haible  <bruno@clisp.org>
43009
43010         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43011         for the various Unix platforms.
43012         * doc/posix-headers/limits.texi: Update platforms list regarding
43013         HOST_NAME_MAX.
43014         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43015
43016 2009-08-07  Jim Meyering  <meyering@redhat.com>
43017
43018         selinux-at: fix typo in a comment
43019         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43020         Spotted by Paolo Bonzini.
43021
43022         selinux-at: remove redundant m4 code, add documentation
43023         * modules/selinux-at (configure.ac): Remove redundant code.
43024         LIB_SELINUX is already set via the dependent module, selinux-h.
43025         (Include): Add quotes around selinux-at.h.
43026         * lib/selinux-at.h: Add documentation.
43027         Reported by Bruno Haible in
43028         http://marc.info/?l=gnulib-bug&m=124958988300749
43029
43030 2009-08-07  Bruno Haible  <bruno@clisp.org>
43031
43032         Avoid link error on MacOS X 10.3 and 10.4.
43033         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43034         on non-ELF systems.
43035         * lib/argp-pv.c (argp_program_version): Likewise.
43036         Reported by Simon Josefsson.
43037
43038 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43039
43040         * tests/test-version-etc.sh: Use $EXEEXT.
43041
43042 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43043
43044         update-copyright: update documentation to point to maint.mk
43045         * build-aux/update-copyright: Here.
43046
43047 2009-08-06  Jim Meyering  <meyering@redhat.com>
43048
43049         maint.mk: support update-copyright-local
43050         * top/maint.mk (update-copyright-local): Define place-holder.
43051         (update-copyright): Depend on $(update-copyright-local).
43052
43053 2009-08-06  Jim Meyering  <meyering@redhat.com>
43054
43055         selinux-at: new module
43056         Initially written for coreutils, this module will soon be
43057         used by findutils, too.
43058         * MODULES.html.sh [Misc]: Add selinux-at.
43059         * lib/selinux-at.h: New file, from coreutils.
43060         * lib/selinux-at.c: Likewise.
43061         * modules/selinux-at: Likewise.
43062         (License): Change from LGPL to GPL, since it depends
43063         on the GPL'd openat module.
43064
43065         doc: update README
43066         * README: Remove references to cogito.
43067         Remove cvs-repo-updating instructions from 2007.
43068         Don't imply that CVS is better if you have limited disk space.
43069
43070 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43071
43072         update-copyright: support C-style comments
43073         * build-aux/update-copyright: Implement and document.
43074         * tests/test-update-copyright.sh: Test.
43075
43076 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43077
43078         update-copyright: support omitted "(C)"
43079         * build-aux/update-copyright: Implement and document.  Also,
43080         allow variable whitespace before "(C)".
43081         * tests/test-update-copyright.sh: Test.
43082
43083 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43084
43085         update-copyright: don't trip on non-FSF copyright statements
43086         * build-aux/update-copyright: Fix so that the first correctly
43087         formatted FSF copyright statement is recognized no matter what
43088         appears before it.  Update documentation.
43089         * tests/test-update-copyright.sh: Test that.
43090
43091 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43092
43093         update-copyright: clean up code a little
43094         * build-aux/update-copyright: Append "_re" to the name of any
43095         variable holding a regular expression.
43096         Replace "old" and "new" with "stmt" in variable names.
43097         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43098         handled correctly.
43099         Format code more consistently.
43100
43101 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43102
43103         update-copyright-tests: improve portability
43104         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43105         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43106
43107 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43108
43109         update-copyright: support @copyright{} and &copy;
43110         * build-aux/update-copyright: Implement and document.
43111         * tests/test-update-copyright.sh: Test.
43112
43113 2009-08-04  Jim Meyering  <meyering@redhat.com>
43114
43115         update-copyright-tests: correctly test EOL=\r\n handling
43116         * tests/test-update-copyright.sh: Put \r at the end of some lines
43117         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43118
43119         maint.mk: make update-copyright exclusion list more configurable
43120         * top/maint.mk (update-copyright): Default to excluding COPYING,
43121         but allow an override, in case someone does want to update that file.
43122
43123         maint.mk: don't update copyright date in COPYING
43124         * top/maint.mk (update-copyright): Exclude COPYING.
43125
43126         maint.mk: add a copyright-updating rule
43127         * top/maint.mk (update-copyright): New rule.
43128         Derived from coreutils/Makefile.am.
43129
43130         update-copyright: rename some variables
43131         * build-aux/update-copyright: Rename a few variables for clarity.
43132         Tweak syntax.  List Joel E. Denny as coauthor.
43133
43134 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43135
43136         update-copyright: fix bug for 2-digit last year and add tests
43137         * build-aux/update-copyright: Fix bug.
43138         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43139         specified.
43140         * modules/update-copyright-tests: New
43141         * tests/test-update-copyright.sh: New.
43142
43143 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43144
43145         update-copyright: handle leading tabs in line prefix
43146         * build-aux/update-copyright: Count leading tabs as 8 spaces
43147         when computing margin.  This helps with the formatting of
43148         ChangeLogs, for example.
43149         Fix documentation a little.
43150
43151 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43152
43153         update-copyright: support EOL=\r\n
43154         * build-aux/update-copyright: Implement that.
43155
43156 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43157
43158         update-copyright: automatically format copyright statements
43159         * build-aux/update-copyright: Implement that.
43160         Also, be a little more predictable and safer by always failing
43161         when the full copyright format is not perfectly recognized as an
43162         unbroken whole.  Discussed at
43163         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43164         Rewrite documentation.
43165
43166 2009-08-03  Bruno Haible  <bruno@clisp.org>
43167
43168         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43169
43170 2009-08-02  Bruno Haible  <bruno@clisp.org>
43171
43172         Tests for module 'uname'.
43173         * modules/uname-tests: New file.
43174         * tests/test-uname.c: New file.
43175
43176         New module 'uname'.
43177         * lib/uname.c: New file.
43178         * m4/uname.m4: New file.
43179         * modules/uname: New file.
43180         * doc/posix-functions/uname.texi: Mention the new module.
43181
43182 2009-08-02  Bruno Haible  <bruno@clisp.org>
43183
43184         Tests for module 'sys_utsname'.
43185         * modules/sys_utsname-tests: New file.
43186         * tests/test-sys_utsname.c: New file.
43187
43188         New module 'sys_utsname'.
43189         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43190         * m4/sys_utsname_h.m4: New file.
43191         * modules/sys_utsname: New file.
43192         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43193
43194 2009-08-02  Bruno Haible  <bruno@clisp.org>
43195
43196         Implicitly initialize the sockets library.
43197         * lib/gethostname.c: Include sockets.h.
43198         (rpl_gethostname): Invoke gl_sockets_startup.
43199         * lib/socket.c: Include sockets.h.
43200         (rpl_socket): Invoke gl_sockets_startup.
43201         * modules/gethostname (Depends-on): Add sockets.
43202         * modules/socket (Depends-on): Likewise.
43203         * tests/test-poll.c: Don't include sockets.h.
43204         (main): Don't invoke gl_sockets_startup.
43205         * tests/test-select.c: Don't include sockets.h.
43206         (main): Don't invoke gl_sockets_startup.
43207
43208 2009-08-02  Bruno Haible  <bruno@clisp.org>
43209
43210         Allow multiple calls to gl_sockets_startup.
43211         * lib/sockets.c (initialized_sockets_version): New variable.
43212         (gl_sockets_startup): Do nothing if already called for this or a higher
43213         version.
43214         (gl_sockets_cleanup): Reset initialized_sockets_version.
43215
43216 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43217
43218         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43219         different project/version.
43220
43221 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43222             Bruno Haible  <bruno@clisp.org>
43223
43224         Tests for module 'pipe-filter-gi'.
43225         * modules/pipe-filter-gi-tests: New file.
43226         * tests/test-pipe-filter-gi1.sh: New file.
43227         * tests/test-pipe-filter-gi1.c: New file.
43228         * tests/test-pipe-filter-gi2.sh: New file.
43229         * tests/test-pipe-filter-gi2-main.c: New file.
43230         * tests/test-pipe-filter-gi2-child.c: New file.
43231
43232         New module 'pipe-filter-gi'.
43233         * lib/pipe-filter-gi.c: New file.
43234         * modules/pipe-filter-gi: New file.
43235
43236 2009-08-02  Bruno Haible  <bruno@clisp.org>
43237             Paolo Bonzini  <bonzini@gnu.org>
43238
43239         Tests for module 'pipe-filter-ii'.
43240         * modules/pipe-filter-ii-tests: New file.
43241         * tests/test-pipe-filter-ii1.sh: New file.
43242         * tests/test-pipe-filter-ii1.c: New file.
43243         * tests/test-pipe-filter-ii2.sh: New file.
43244         * tests/test-pipe-filter-ii2-main.c: New file.
43245         * tests/test-pipe-filter-ii2-child.c: New file.
43246
43247         New module 'pipe-filter-ii'.
43248         * lib/pipe-filter.h: New file.
43249         * lib/pipe-filter-ii.c: New file.
43250         * lib/pipe-filter-aux.h: New file.
43251         * modules/pipe-filter-ii: New file.
43252
43253 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43254
43255         * lib/gc-libgcrypt.c: Change copyright to FSF.
43256         * lib/gc-gnulib.c: Likewise.
43257
43258 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43259
43260         * lib/gethostname.c: Include limits.h.
43261
43262 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43263             Bruno Haible  <bruno@clisp.org>
43264
43265         Ensure HOST_NAME_MAX as part of the gethostname module.
43266         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43267         define also HOST_NAME_MAX.
43268         * tests/test-gethostname.c: Include <limits.h>.
43269         (main): Check also HOST_NAME_MAX.
43270         * doc/posix-headers/limits.texi: Document the mingw problem.
43271
43272 2009-08-02  Bruno Haible  <bruno@clisp.org>
43273
43274         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43275         Add comments.
43276
43277 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43278
43279         * lib/gethostname.c: Add Windows wrapper.
43280         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43281         * modules/gethostname: Depend on sys_socket & errno, for also
43282         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43283         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43284
43285 2009-07-31  Jim Meyering  <meyering@redhat.com>
43286
43287         getloadavg: fix symbol name in comment
43288         * lib/getloadavg.c: Correct a typo I introduced when adding
43289         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43290         Matt Kraai spotted the problem.
43291
43292 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43293
43294         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43295         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43296         code also if ! defined N_NAME_POINTER.
43297         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43298         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43299         but the n_name member is a 12-byte array.
43300
43301 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43302
43303         update-copyright: generalize comment handling
43304         * build-aux/update-copyright: Handle copyright statements
43305         within more comment styles.
43306         Document usage.
43307         Report any file with an external copyright holder or parse failure.
43308
43309 2009-07-29  Jim Meyering  <meyering@redhat.com>
43310
43311         mktime: correct setting of REPLACE_MKTIME
43312         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43313
43314         update-copyright: new module
43315         * modules/update-copyright: New file.
43316         * build-aux/update-copyright: New file.
43317         * MODULES.html.sh (maint+release support): Add update-copyright.
43318
43319 2009-07-27  Bruno Haible  <bruno@clisp.org>
43320
43321         Fix compilation error when <ctime> is used and mktime is replaced.
43322         * lib/time.in.h (mktime): New declaration.
43323         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43324         REPLACE_MKTIME instead of defining mktime in config.h.
43325         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43326         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43327         Reported by Ross McFarland <rwmcfa1@neces.com>.
43328
43329 2009-07-27  Bruno Haible  <bruno@clisp.org>
43330
43331         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43332         Reported by Matt Kraai <mkraai@beckman.com>.
43333
43334 2009-07-25  Jim Meyering  <meyering@redhat.com>
43335
43336         maint.mk: avoid warnings about missing files
43337         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43338         diagnostic when .prev-version does not exist.
43339         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43340         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43341         nonexistent cfg.mk.
43342         Suggestions from Simon Josefsson.
43343
43344 2009-07-25  Bruno Haible  <bruno@clisp.org>
43345
43346         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43347         defined as macros. Needed on QNX 6.4.1.
43348         Reported by Matt Kraai <mkraai@beckman.com>.
43349
43350 2009-07-23  Jim Meyering  <meyering@redhat.com>
43351
43352         maint.mk: invoke "make dist" with a working value of XZ_OPT
43353         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43354
43355 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43356
43357         Make fseeko.c compile on QNX.
43358         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43359
43360 2009-07-22  Peter Simons  <simons@cryp.to>
43361
43362         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43363         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43364         * lib/md4.h: Likewise.
43365         * lib/md5.h: Likewise.
43366         * lib/sha1.h: Likewise.
43367         * lib/sha256.h: Likewise.
43368         * lib/sha512.h: Likewise.
43369
43370         tests-sha1: don't assign literal string to 'char *' variable
43371         * tests/test-sha1.c (main): Declare locals with "const" to match
43372         attributes of the right hand side.
43373
43374 2009-07-21  Eric Blake  <ebb9@byu.net>
43375
43376         dup2: fix more mingw problems
43377         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43378         fd to itself.
43379         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43380         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43381         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43382         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43383         care of mingw bugs.
43384
43385 2009-07-21  Jim Meyering  <meyering@redhat.com>
43386
43387         vc-list-files: avoid failure when /bin/sh is dash
43388         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43389         On some Debian based systems, /bin/sh is a symlink to dash, and running
43390         this command would omit the "/" following each 'tests' prefix:
43391           dash -x build-aux/vc-list-files -C . tests
43392         That is because bash and dash work differently:
43393           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43394           bash ok
43395           dash odd
43396
43397 2009-07-21  Eric Blake  <ebb9@byu.net>
43398
43399         dup2-tests: test previous patch
43400         * modules/dup2-tests: New file.
43401         * tests/test-dup2.c: Likewise.
43402         * tests/test-open.c (main): Avoid unspecified behavior.
43403         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43404         test.
43405
43406         dup2: work around mingw and cygwin 1.5 bug
43407         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43409         * modules/unistd (Makefile.am): Substitute it.
43410         * lib/unistd.in.h (dup2): Declare the replacement.
43411         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43412         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43413         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43414         * modules/execute (Depends-on): Add dup2.
43415         * modules/fseterr (Depends-on): Likewise.
43416         * modules/pipe (Depends-on): Likewise.
43417         * modules/posix_spawn-internal (Depends-on): Likewise.
43418
43419 2009-07-21  Bruno Haible  <bruno@clisp.org>
43420
43421         * modules/.gitattributes: New file.
43422
43423 2009-07-20  Bruno Haible  <bruno@clisp.org>
43424
43425         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43426         (main): Use it.
43427
43428 2009-07-20  Eric Blake  <ebb9@byu.net>
43429
43430         test-pipe: make a bit more robust.
43431         * tests/test-pipe.c (myerr): Allow error messages regardless of
43432         what we do to stderr.
43433         (test_pipe): Rearrange to avoid deadlock.
43434         (child_main): Try a larger read, to ensure we avoided deadlock.
43435         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43436         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43437         if misused.
43438
43439 2009-07-19  Jim Meyering  <meyering@redhat.com>
43440
43441         fts: avoid false-positive cycle-detection
43442         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43443         for each new command line argument.
43444
43445 2009-07-19  Bruno Haible  <bruno@clisp.org>
43446
43447         Fix build error on mingw with the modules sys_select and unistd.
43448         * modules/acl-tests (Depends-on): Add close.
43449         * modules/binary-io-tests (Depends-on): Likewise.
43450         * modules/closein-tests (Depends-on): Likewise.
43451         * modules/flock-tests (Depends-on): Likewise.
43452         * modules/fsync-tests (Depends-on): Likewise.
43453         * modules/lseek-tests (Depends-on): Likewise.
43454         * modules/pipe-tests (Depends-on): Likewise.
43455         * modules/posix_spawn-tests (Depends-on): Likewise.
43456         * modules/posix_spawnp-tests (Depends-on): Likewise.
43457         * modules/stat-time-tests (Depends-on): Likewise.
43458         * modules/yesno-tests (Depends-on): Likewise.
43459
43460 2009-07-19  Bruno Haible  <bruno@clisp.org>
43461
43462         Unify conditionals.
43463         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43464         macros, not at the compiler macros.
43465         * lib/pipe.c: Likewise.
43466         * lib/execute.c: Likewise.
43467         * lib/spawni.c: Likewise.
43468
43469 2009-07-19  Bruno Haible  <bruno@clisp.org>
43470
43471         Fix handling of closed stdin/stdout/stderr on mingw.
43472         * lib/w32spawn.h: Include unistd.h.
43473         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43474         file descriptor with O_NOINHERIT flag.
43475         (fd_safer_noinherit): New function, based on fd-safer.c.
43476         (dup_safer_noinherit): New function, based on dup-safer.c.
43477         (undup_safer_noinherit): New function.
43478         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43479         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43480         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43481         instead of fd_safer.
43482         * tests/test-pipe.c: Include <windows.h>.
43483         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43484         result.
43485
43486         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43487         from main.
43488         (test_pipe): Pass an extra argument for disambiguation.
43489         (main): Invoke parent_main or child_main.
43490
43491         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43492         consistently.
43493
43494 2009-07-18  Eric Blake  <ebb9@byu.net>
43495
43496         test-pipe: fix mingw build
43497         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43498
43499 2009-07-18  Bruno Haible  <bruno@clisp.org>
43500
43501         * modules/pipe-tests (Makefile.am): Fix typo.
43502
43503 2009-07-18  Eric Blake  <ebb9@byu.net>
43504
43505         error: fix mingw build
43506         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43507         Reported by Bruno Haible.
43508
43509         error: avoid undefined use of stdout
43510         * lib/error.c (error, error_at_line): Check that fd 1 is open
43511         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43512         is handling faults and the close_stdout module wants to report the
43513         detection of closed stdout as an error.
43514
43515 2009-07-17  Eric Blake  <ebb9@byu.net>
43516
43517         pipe: be robust in face of closed fds
43518         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43519         should cause child to misbehave.
43520         * modules/pipe-tests: New module.
43521         * tests/test-pipe.c: New file.
43522         * tests/test-pipe.sh: New file.
43523         Reported by Akim Demaille.
43524
43525 2009-07-14  Bruno Haible  <bruno@clisp.org>
43526
43527         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43528         Reported by anonymous kc.
43529
43530 2009-07-07  Jim Meyering  <meyering@redhat.com>
43531
43532         maint.mk: don't look for translatable strings in *.m4 or *.mk
43533         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43534         when searching for translatable strings.
43535
43536 2009-07-05  Jim Meyering  <meyering@redhat.com>
43537
43538         remove superfluous parentheses in STREQ definition
43539         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43540         * lib/getugroups.c (STREQ): Likewise.
43541         * lib/fnmatch.c (STREQ): Likewise.
43542         Spotted by Bruno Haible.
43543
43544 2009-07-04  Jim Meyering  <meyering@redhat.com>
43545
43546         argv-iter: new module
43547         * MODULES.html.sh: Add argv-iter.
43548         * lib/argv-iter.c, lib/argv-iter.h: New files.
43549         * modules/argv-iter: New file.
43550         * modules/argv-iter-tests: New file.
43551         * tests/test-argv-iter.c: Test it.
43552
43553 2009-07-04  Bruno Haible  <bruno@clisp.org>
43554
43555         Fix assertion.
43556         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43557         contains more exact copies of a given entry than file2, leave the extra
43558         copies unpaired rather than aborting.
43559         Reported by Eric Blake.
43560
43561 2009-07-02  Bruno Haible  <bruno@clisp.org>
43562
43563         Speedup git-merge-changelog for git cherry-pick.
43564         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43565         (entries_mapping_get): New function, extracted from compute_mapping.
43566         (entries_mapping_reverse_get): New function.
43567         (compute_mapping): Add a 'full' argument. Return the result in a
43568         'struct entries_mapping'.
43569         (main): Update. Access the mappings through entries_mapping_get.
43570         Reported by Eric Blake.
43571
43572 2009-07-02  Bruno Haible  <bruno@clisp.org>
43573
43574         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43575         best_i.
43576
43577 2009-07-02  Bruno Haible  <bruno@clisp.org>
43578
43579         Speed up approximate search for matching ChangeLog entries.
43580         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43581         argument. Call fstrcmp_bounded instead of fstrcmp.
43582         (compute_mapping, try_split_merged_entry, main): Update callers.
43583
43584 2009-07-02  Bruno Haible  <bruno@clisp.org>
43585
43586         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43587
43588 2009-06-30  Bruno Haible  <bruno@clisp.org>
43589
43590         Reduce the number of uc_is_cased calls.
43591         * lib/unicase.h (casing_suffix_context_t): Add
43592         'first_char_except_ignorable' field.
43593         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43594         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43595         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43596         Update initializer.
43597         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43598         case-ignorable characters.
43599         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43600         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43601         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43602         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43603         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43604
43605 2009-06-30  Bruno Haible  <bruno@clisp.org>
43606
43607         Tests for module 'unicase/ignorable'.
43608         * modules/unicase/ignorable-tests: New file.
43609         * tests/unicase/test-ignorable.c: New file, generated by
43610         gen-uni-tables.
43611
43612         Tests for module 'unicase/cased'.
43613         * modules/unicase/cased-tests: New file.
43614         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43615         * tests/unicase/test-predicate-part1.h: New file, derived from
43616         tests/unictype/test-predicate-part1.h.
43617         * tests/unicase/test-predicate-part2.h: New file, same as
43618         tests/unictype/test-predicate-part2.h.
43619
43620         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43621         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43622         (output_casing_properties): New function.
43623         (main): Call it.
43624         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43625         * lib/unicase/cased.c: Include unictype/bitmap.h.
43626         (uc_is_cased): Define through a bitmap lookup.
43627         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43628         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43629         (uc_is_case_ignorable): Define through a bitmap lookup.
43630         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43631         lib/unictype/bitmap.h.
43632         (Depends-on): Add inline. Clean up.
43633         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43634         lib/unictype/bitmap.h.
43635         (Depends-on): Add inline. Clean up.
43636         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43637         recognition.
43638         * tests/unicase/test-u16-tolower.c (main): Likewise.
43639         * tests/unicase/test-u32-tolower.c (main): Likewise.
43640
43641 2009-06-30  Bruno Haible  <bruno@clisp.org>
43642
43643         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43644         * lib/unicase/u16-casemap.c: Likewise.
43645         * lib/unicase/u32-casemap.c: Likewise.
43646
43647 2009-06-29  Bruno Haible  <bruno@clisp.org>
43648
43649         Define u32_casefold as a wrapper around u32_ct_casefold.
43650         * lib/unicase/u32-casefold.c: Update.
43651         * modules/unicase/u32-casefold (Depends-on): Add
43652         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43653         unicase/empty-suffix-context. Clean up.
43654
43655         Define u16_casefold as a wrapper around u16_ct_casefold.
43656         * lib/unicase/u16-casefold.c: Update.
43657         * modules/unicase/u16-casefold (Depends-on): Add
43658         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43659         unicase/empty-suffix-context. Clean up.
43660
43661         Define u8_casefold as a wrapper around u8_ct_casefold.
43662         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43663         * lib/unicase/u8-casefold.c: Update.
43664         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43665         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43666
43667         Define u32_totitle as a wrapper around u32_ct_totitle.
43668         * lib/unicase/u32-totitle.c: Update.
43669         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43670         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43671
43672         Define u16_totitle as a wrapper around u16_ct_totitle.
43673         * lib/unicase/u16-totitle.c: Update.
43674         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43675         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43676
43677         Define u8_totitle as a wrapper around u8_ct_totitle.
43678         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43679         functions.
43680         (FUNC): Delegate to U_CT_TOTITLE.
43681         * lib/unicase/u8-totitle.c: Update.
43682         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43683         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43684
43685         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43686         invocation.
43687         * modules/unicase/u32-tolower (Depends-on): Add
43688         unicase/empty-prefix-context, unicase/empty-suffix-context.
43689
43690         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43691         invocation.
43692         * modules/unicase/u16-tolower (Depends-on): Add
43693         unicase/empty-prefix-context, unicase/empty-suffix-context.
43694
43695         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43696         * modules/unicase/u8-tolower (Depends-on): Add
43697         unicase/empty-prefix-context, unicase/empty-suffix-context.
43698
43699         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43700         invocation.
43701         * modules/unicase/u32-toupper (Depends-on): Add
43702         unicase/empty-prefix-context, unicase/empty-suffix-context.
43703
43704         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43705         invocation.
43706         * modules/unicase/u16-toupper (Depends-on): Add
43707         unicase/empty-prefix-context, unicase/empty-suffix-context.
43708
43709         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43710         * modules/unicase/u8-toupper (Depends-on): Add
43711         unicase/empty-prefix-context, unicase/empty-suffix-context.
43712
43713         New module 'unicase/u32-ct-casefold'.
43714         * lib/unicase/u32-ct-casefold.c: New file.
43715         * modules/unicase/u32-ct-casefold: New file.
43716
43717         New module 'unicase/u16-ct-casefold'.
43718         * lib/unicase/u16-ct-casefold.c: New file.
43719         * modules/unicase/u16-ct-casefold: New file.
43720
43721         New module 'unicase/u8-ct-casefold'.
43722         * lib/unicase/u8-ct-casefold.c: New file.
43723         * lib/unicase/u-ct-casefold.h: New file, derived from
43724         lib/unicase/u-casefold.h.
43725         * modules/unicase/u8-ct-casefold: New file.
43726
43727         New module 'unicase/u32-ct-totitle'.
43728         * lib/unicase/u32-ct-totitle.c: New file.
43729         * modules/unicase/u32-ct-totitle: New file.
43730
43731         New module 'unicase/u16-ct-totitle'.
43732         * lib/unicase/u16-ct-totitle.c: New file.
43733         * modules/unicase/u16-ct-totitle: New file.
43734
43735         New module 'unicase/u8-ct-totitle'.
43736         * lib/unicase/u8-ct-totitle.c: New file.
43737         * lib/unicase/u-ct-totitle.h: New file, derived from
43738         lib/unicase/u-totitle.h.
43739         * modules/unicase/u8-ct-totitle: New file.
43740
43741         New module 'unicase/u32-ct-tolower'.
43742         * lib/unicase/u32-ct-tolower.c: New file.
43743         * modules/unicase/u32-ct-tolower: New file.
43744
43745         New module 'unicase/u16-ct-tolower'.
43746         * lib/unicase/u16-ct-tolower.c: New file.
43747         * modules/unicase/u16-ct-tolower: New file.
43748
43749         New module 'unicase/u8-ct-tolower'.
43750         * lib/unicase/u8-ct-tolower.c: New file.
43751         * modules/unicase/u8-ct-tolower: New file.
43752
43753         New module 'unicase/u32-ct-toupper'.
43754         * lib/unicase/u32-ct-toupper.c: New file.
43755         * modules/unicase/u32-ct-toupper: New file.
43756
43757         New module 'unicase/u16-ct-toupper'.
43758         * lib/unicase/u16-ct-toupper.c: New file.
43759         * modules/unicase/u16-ct-toupper: New file.
43760
43761         New module 'unicase/u8-ct-toupper'.
43762         * lib/unicase/u8-ct-toupper.c: New file.
43763         * modules/unicase/u8-ct-toupper: New file.
43764
43765         Add context arguments to u*_casemap functions.
43766         * lib/unicase/unicasemap.h: Include unicase.h.
43767         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43768         suffix_context arguments.
43769         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43770         functions.
43771         (FUNC): Add prefix_context and suffix_context arguments. Use
43772         uc_is_cased and uc_is_case_ignorable.
43773         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43774         * lib/unicase/u16-casemap.c: Likewise.
43775         * lib/unicase/u32-casemap.c: Likewise.
43776         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43777         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43778         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43779         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43780         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43781         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43782
43783         New module 'unicase/u32-suffix-context'.
43784         * lib/unicase/u32-suffix-context.c: New file.
43785         * modules/unicase/u32-suffix-context: New file.
43786
43787         New module 'unicase/u16-suffix-context'.
43788         * lib/unicase/u16-suffix-context.c: New file.
43789         * modules/unicase/u16-suffix-context: New file.
43790
43791         New module 'unicase/u8-suffix-context'.
43792         * lib/unicase/u8-suffix-context.c: New file.
43793         * lib/unicase/u-suffix-context.h: New file.
43794         * modules/unicase/u8-suffix-context: New file.
43795
43796         New module 'unicase/empty-suffix-context'.
43797         * lib/unicase/empty-suffix-context.c: New file.
43798         * modules/unicase/empty-suffix-context: New file.
43799
43800         New module 'unicase/u32-prefix-context'.
43801         * lib/unicase/u32-prefix-context.c: New file.
43802         * modules/unicase/u32-prefix-context: New file.
43803
43804         New module 'unicase/u16-prefix-context'.
43805         * lib/unicase/u16-prefix-context.c: New file.
43806         * modules/unicase/u16-prefix-context: New file.
43807
43808         New module 'unicase/u8-prefix-context'.
43809         * lib/unicase/u8-prefix-context.c: New file.
43810         * lib/unicase/u-prefix-context.h: New file.
43811         * lib/unicase/context.h: New file.
43812         * modules/unicase/u8-prefix-context: New file.
43813
43814         New module 'unicase/empty-prefix-context'.
43815         * lib/unicase/empty-prefix-context.c: New file.
43816         * modules/unicase/empty-prefix-context: New file.
43817
43818         New module 'unicase/ignorable'.
43819         * lib/unicase/ignorable.c: New file.
43820         * modules/unicase/ignorable: New file.
43821
43822         New module 'unicase/cased'.
43823         * lib/unicase/caseprop.h: New file.
43824         * lib/unicase/cased.c: New file.
43825         * modules/unicase/cased: New file.
43826
43827         New functions for case mapping of substrings.
43828         * lib/unicase.h (casing_prefix_context_t): New type.
43829         (unicase_empty_prefix_context): New variable.
43830         (u8_casing_prefix_context, u16_casing_prefix_context,
43831         u32_casing_prefix_context, u8_casing_prefixes_context,
43832         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43833         declarations.
43834         (casing_suffix_context_t): New type.
43835         (unicase_empty_suffix_context): New variable.
43836         (u8_casing_suffix_context, u16_casing_suffix_context,
43837         u32_casing_suffix_context, u8_casing_suffixes_context,
43838         u16_casing_suffixes_context, u32_casing_suffixes_context,
43839         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43840         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43841         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43842         declarations.
43843
43844 2009-06-28  Jim Meyering  <meyering@redhat.com>
43845
43846         boostrap: indent only with spaces
43847         * build-aux/bootstrap: Indent only with spaces, never TABs.
43848
43849         bootstrap: split long lines
43850         * build-aux/bootstrap: Keep line length < 80.
43851
43852         bootstrap: sync from coreutils
43853         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43854         just as autoreconf does.  Verify a list of prerequisite
43855         package-name,version-number pairs if defined in bootstrap.conf.
43856         Refer to README-prereq, if prerequisites are not satisfied.
43857
43858 2009-06-27  Eric Blake  <ebb9@byu.net>
43859
43860         tests: add test for bogus NULL definition
43861         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43862         * tests/test-stdlib.c: Likewise.
43863         * tests/test-string.c: Likewise.
43864         * tests/test-locale.c: Likewise.
43865         * tests/test-unistd.c: Likewise.
43866         * modules/stdio-tests (Depends-on): Add verify.
43867         * modules/stdlib-tests (Depends-on): Likewise.
43868         * modules/string-tests (Depends-on): Likewise.
43869         * modules/locale-tests (Depends-on): Likewise.
43870         * modules/unistd-tests (Depends-on): Likewise.
43871
43872 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43873
43874         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43875         self-explaining comment.
43876         * m4/selinux-selinux-h: Update serial.
43877         (gl_LIBSELINUX): New macro, adding a warning for missing development
43878         packages to code extracted from...
43879         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43880         Add warning for missing development packages here, too.
43881
43882 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43883
43884         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43885
43886 2009-06-25  Eric Blake  <ebb9@byu.net>
43887
43888         version-etc: fix regression
43889         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43890         gcc.
43891         (version_etc): Use it, to catch bugs with trailing NULL.
43892         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43893         (version_etc_va): Fix logic bug.
43894         * modules/version-etc-tests: Add test.
43895         * tests/test-version-etc.c: New file.
43896         * tests/test-version-etc.sh: Likewise.
43897
43898 2009-06-25  Sam Steingold  <sds@gnu.org>
43899
43900         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43901         mbtowc declaration.
43902
43903 2009-06-25  Eric Blake  <ebb9@byu.net>
43904
43905         fpurge: migrate into <stdio.h>
43906         * lib/fpurge.h: Delete...
43907         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43908         * lib/fpurge.c (fpurge): Change declaring header.
43909         * modules/fpurge (Files): Drop deleted file.
43910         (Depends-on): Add stdio.
43911         (configure.ac): Set witness.
43912         * modules/stdio (Makefile.am): Support fpurge macros.
43913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43914         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43915         * lib/fflush.c: Update client.
43916         * tests/test-fpurge.c: Likewise.
43917         * NEWS: Mention the change.
43918
43919 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43920
43921         * lib/argp-version-etc.c (program_authors): Add const
43922         qualifier.
43923         * lib/version-etc.c: Fix typos in the comments.
43924         * modules/argp-version-etc: Depends on version-etc.
43925
43926 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43927
43928         argp-version-etc: new module.
43929
43930         * lib/argp-version-etc.c: New file.
43931         * lib/argp-version-etc.h: New file.
43932         * modules/argp-version-etc: New file.
43933         * modules/argp-version-etc-tests: New file.
43934         * tests/test-argp-version-etc.c: New test.
43935         * tests/test-argp-version-etc-1.sh: New test.
43936
43937 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43938
43939         Provide additional interfaces and documentation for version-etc
43940         module.
43941
43942         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43943         interfaces.
43944         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43945         prototypes.
43946
43947 2009-06-24  Bruno Haible  <bruno@clisp.org>
43948
43949         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43950         HAVE_LIB${NAME} macro.
43951         Reported by Sam Steingold <sds@gnu.org>.
43952
43953 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43954
43955         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43956         needed.
43957
43958 2009-06-21  Bruno Haible  <bruno@clisp.org>
43959
43960         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43961         work.
43962         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43963         together with LIB${NAME}, LTLIB${NAME}.
43964         Reported by Sam Steingold <sds@gnu.org>.
43965
43966 2009-06-20  Jim Meyering  <meyering@redhat.com>
43967
43968         tests: make sc_require_test_exit_idiom more generic
43969         * top/maint.mk (Exit_witness_file): New overridable variable.
43970         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43971         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43972
43973 2009-06-19  Jim Meyering  <meyering@redhat.com>
43974
43975         hash: reverse order of src/dst parameters in an internal interface
43976         * lib/hash.c (transfer_entries): Reverse order of parameters to
43977         put DST before SRC.  Adjust callers.
43978
43979         tests: test-hash: avoid wholesale duplication
43980         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43981         Instead, use a loop and add a single conditional.
43982
43983         tests: test-hash: allow seed selection via a command line argument
43984         * tests/test-hash.c (get_seed): New function.
43985         (main): Use it.
43986
43987 2009-06-19  Eric Blake  <ebb9@byu.net>
43988
43989         hash: avoid memory leak on allocation failure
43990         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43991         failure.  Factor repeated algorithm...
43992         (transfer_entries): ...into new helper routine.
43993         (hash_delete): React to hash_rehash return value.
43994
43995         hash: reduce memory pressure in hash_rehash no-op case
43996         * lib/hash.c (next_prime): Avoid overflow.
43997         (hash_initialize): Factor bucket size computation...
43998         (compute_bucket_size): ...into new helper function.
43999         (hash_rehash): Use new function and open coding to reduce memory
44000         pressure, and avoid a memory leak in USE_OBSTACK code.
44001         Reported by Jim Meyering.
44002
44003 2009-06-18  Eric Blake  <ebb9@byu.net>
44004
44005         hash: make rotation more obvious
44006         * modules/hash (Depends-on): Add bitrotate and stdint.
44007         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44008         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44009         (SIZE_MAX): Rely on headers for definition.
44010         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44011         (raw_hasher): Use rotr_sz.
44012         Suggested by Jim Meyering.
44013
44014         hash: fix memory leak in last patch
44015         * lib/hash.c (hash_rehash): Avoid memory leak.
44016
44017         hash: avoid no-op rehashing
44018         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44019
44020         hash: provide default callback functions
44021         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44022         (hash_initialize): Use them as defaults.
44023         * tests/test-hash.c (main): Test this.
44024
44025         hash: minor optimization
44026         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44027         when possible.
44028         (hash_initialize): Document this promise.
44029         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44030         * tests/test-hash.c (hash_compare_strings): Test this.
44031
44032 2009-06-18  Bruno Haible  <bruno@clisp.org>
44033
44034         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44035         going to be replaced anyway.
44036
44037 2009-06-18  Bruno Haible  <bruno@clisp.org>
44038
44039         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44040         in one place.
44041         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44042         be replaced anyway.
44043
44044 2009-06-18  Eric Blake  <ebb9@byu.net>
44045
44046         hash: check for resize before insertion
44047         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44048         threshold before insertion, so that a pathological hash_rehash
44049         that fills every bucket can still trigger another rehash.
44050
44051 2009-06-18  Jim Meyering  <meyering@redhat.com>
44052
44053         hash-tests: add a loop around the small tests
44054         * tests/test-hash.c (main): Repeat small tests with selected
44055         small initial table sizes.
44056
44057 2009-06-17  Eric Blake  <ebb9@byu.net>
44058
44059         hash: minor cleanups
44060         * lib/hash.h (hash_entry): Make opaque, by moving...
44061         * lib/hash.c (hash_entry): ...here.
44062         (hash_insert): Clarify restrictions on what can be inserted.
44063         (hash_get_next): Clarify when it is safe to remove an element
44064         during traversal.
44065         (check_tuning): Skip verification when tuning is known safe.
44066         (hash_initialize): Clarify restrictions on tuning.
44067
44068 2009-06-17  Jim Meyering  <jim@meyering.net>
44069         and Eric Blake  <ebb9@byu.net>
44070
44071         hash-tests: new module
44072         * modules/hash-tests: New file.
44073         * tests/test-hash.c: New file.
44074
44075 2009-06-17  Eric Blake  <ebb9@byu.net>
44076
44077         strstr-simple: document new module
44078         * MODULES.html.sh: Document new module.
44079
44080         strstr, strcasestr: replace on platforms with broken memchr
44081         * modules/strstr: Split into...
44082         * modules/strstr-simple: ...new module that does not care about
44083         performance, but does care about glibc bug.
44084         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44085         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44086         if platform memchr is broken, per Debian bug 521737.
44087         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44088         memchr.
44089         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44090         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44091         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44092         * modules/mountlist (Depends-on): Add strstr-simple.
44093         * modules/gen-uni-tables (Depends-on): Likewise.
44094         * modules/argz (Depends-on): Add strstr.
44095
44096 2009-06-17  Bruno Haible  <bruno@clisp.org>
44097
44098         * modules/posix_spawn-internal (Depends-on): Add errno.
44099
44100 2009-06-17  Bruno Haible  <bruno@clisp.org>
44101
44102         Define missing ESTALE on Interix 3.5.
44103         * lib/errno.in.h (ESTALE): Assign a value if missing.
44104         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44105         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44106         missing.
44107         * doc/posix-headers/errno.texi: Mention the Interix bug.
44108         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44109
44110 2009-06-15  Eric Blake  <ebb9@byu.net>
44111
44112         memchr, memchr2: add valgrind exception
44113         * lib/memchr.valgrind: New file.
44114         * lib/memchr2.valgrind: New file.
44115         * modules/memchr (Files): Distribute valgrind file.
44116         * modules/memchr2 (Files): Likewise.
44117
44118         docs: memchr is no longer obsolete
44119         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44120         * lib/string.in.h (memchr): Simplify logic.
44121
44122 2009-06-14  Jim Meyering  <meyering@redhat.com>
44123
44124         link-follow: fix the "checking..." message to not mention trailing slash
44125         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44126         never considered trailing slashes.
44127
44128 2009-06-14  Bruno Haible  <bruno@clisp.org>
44129
44130         * m4/memchr.m4: Mention also the bug on IA-64.
44131         * doc/posix-functions/memchr.texi: Likewise.
44132
44133 2009-06-12  Eric Blake  <ebb9@byu.net>
44134
44135         memchr: detect broken x86_64 and alpha implementations
44136         * modules/memchr-tests (Depends-on): Move mmap detection...
44137         * modules/memchr (Depends-on): ...here.
44138         (configure.ac): Set indicator.
44139         * lib/string.in.h (memchr): Declare replacement.
44140         * modules/string (Makefile.am): Trigger replacement.
44141         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44142         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44143         bugs.
44144         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44145         * modules/getpagesize (License): Relax license.
44146
44147 2009-06-11  Bruno Haible  <bruno@clisp.org>
44148
44149         * lib/idpriv.h: Add more references.
44150
44151 2009-06-08  Bruno Haible  <bruno@clisp.org>
44152
44153         Tests for module 'idpriv-droptemp'.
44154         * modules/idpriv-droptemp-tests: New file.
44155         * tests/test-idpriv-droptemp.sh: New file.
44156         * tests/test-idpriv-droptemp.su.sh: New file.
44157         * tests/test-idpriv-droptemp.c: New file.
44158
44159         New module 'idpriv-droptemp'.
44160         * lib/idpriv-droptemp.c: New file.
44161         * modules/idpriv-droptemp: New file.
44162
44163 2009-06-08  Bruno Haible  <bruno@clisp.org>
44164
44165         Tests for module 'idpriv-drop'.
44166         * modules/idpriv-drop-tests: New file.
44167         * tests/test-idpriv-drop.sh: New file.
44168         * tests/test-idpriv-drop.su.sh: New file.
44169         * tests/test-idpriv-drop.c: New file.
44170
44171         New module 'idpriv-drop'.
44172         * lib/idpriv.h: New file.
44173         * lib-idpriv-drop.c: New file.
44174         * m4/idpriv.m4: New file.
44175         * modules/idpriv-drop: New file.
44176
44177 2009-06-08  Bruno Haible  <bruno@clisp.org>
44178
44179         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44180         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44181         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44182         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44183         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44184         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44185         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44186
44187 2009-06-08  Eric Blake  <ebb9@byu.net>
44188
44189         test-strstr: use memory fence, when possible
44190         * tests/test-strstr.c (main): Use memory fence, in order to be
44191         more likely to trigger Debian bug 521737.
44192         * modules/strstr-tests (Files): Pull in additional files.
44193
44194         memchr: no longer obsolete, for wider field testing
44195         * modules/memchr (Status, Notice): Delete, this module is no
44196         longer obsolete.
44197         * modules/vasnprintf (Depends-on): Add memchr.
44198
44199 2009-06-07  Jim Meyering  <meyering@redhat.com>
44200
44201         hash: declare some functions with the warn_unused_result attribute
44202         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44203
44204 2009-06-07  Bruno Haible  <bruno@clisp.org>
44205
44206         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44207         Reported by Eric Blake.
44208
44209 2009-06-06  Eric Blake  <ebb9@byu.net>
44210
44211         test-alignof: fix typo with long double
44212         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44213         compiler error.
44214
44215 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44216
44217         Escape non-texinfo { and }s.
44218         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44219         markup error.
44220
44221 2009-06-04  Jim Meyering  <meyering@redhat.com>
44222
44223         gitlog-to-changelog: don't infloop on an empty commit log
44224         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44225         Reported by Boris Petersen <transacid@centerim.org>.
44226
44227 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44228
44229         version-etc: extend for packagers
44230         Add three new configure options, intended for packagers:
44231           --with-packager="packager name"
44232           --with-packager-version="packager-specific version"
44233           --with-packager-bug-reports="packager bug reporting"
44234         An example with coreutils:
44235           $ ./configure \
44236             --with-packager=Gentoo \
44237             --with-packager-bug-report=http://bugs.gentoo.org/ \
44238             --with-packager-version="patchset 1.6"
44239           $ ./src/ls --version | head -n2
44240           ls (GNU coreutils) 7.1-dirty
44241           Packaged by Gentoo (patchset 1.6)
44242         Note that the bug reporting info via --help doesn't show up because
44243         coreutils uses its own custom emit_bug_reporting_address() implementation
44244         in src/system.h.  If it didn't, it'd look like:
44245           $ ./src/ls --help | tail -n4
44246           Report bugs to <bug-coreutils@gnu.org>.
44247           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44248           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44249           General help using GNU software: <http://www.gnu.org/gethelp/>.
44250         * lib/version-etc.c: Print new information, if provided.
44251         * m4/version-etc.m4: New file.
44252         * modules/version-etc (Files): Add m4/version-etc.m4.
44253         (configure.ac): Add gl_VERSION_ETC.
44254
44255 2009-05-31  Bruno Haible  <bruno@clisp.org>
44256
44257         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44258         and 'int64_t'.
44259         * modules/alignof-tests (Dependencies): Add stdint.
44260         Reported by Eric Blake.
44261
44262 2009-05-31  Bruno Haible  <bruno@clisp.org>
44263
44264         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44265         restriction due to compiler bugs.
44266         Reported by Eric Blake.
44267
44268 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44269             Bruno Haible  <bruno@clisp.org>
44270
44271         Fix test-alignof failure.
44272         * lib/alignof.h (alignof_slot): New macro.
44273         (alignof_type): New macro, with the same semantics as the previous
44274         'alignof'.
44275         (alignof): Alias to alignof_slot.
44276         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44277         check that the results are usable as constant expressions.
44278
44279 2009-05-31  Bruno Haible  <bruno@clisp.org>
44280
44281         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44282         * tests/test-memchr.c (main): Check that memchr does not read past the
44283         first occurrence of the byte.
44284         * tests/test-strstr.c (main): Update comment.
44285         Suggested by Eric Blake.
44286
44287 2009-05-30  Bruno Haible  <bruno@clisp.org>
44288
44289         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44290         detail how to use dumpbin.
44291         Reported by David Byron <dbyron@dbyron.com>.
44292
44293 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44294
44295         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44296
44297 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44298
44299         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44300
44301 2009-05-28  Bruno Haible  <bruno@clisp.org>
44302
44303         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44304         build-aux/ files.
44305
44306 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44307
44308         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44309
44310 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44311
44312         * gnulib-tool (sed_transform_main_lib_file)
44313         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44314         regexps.
44315
44316 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44317
44318         * tests/test-strstr.c: Add another self-test.
44319         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44320         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44321
44322 2009-05-23  Bruno Haible  <bruno@clisp.org>
44323
44324         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44325         change.
44326
44327 2009-05-21  Bruno Haible  <bruno@clisp.org>
44328
44329         Simplify use of mode_t varargs.
44330         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44331         uses 'mode_t' or 'int'.
44332         * lib/openat.c (openat): Likewise.
44333         * lib/open-safer.c (open_safer): Likewise.
44334         * m4/mode_t.m4: New file.
44335         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44336         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44337         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44338         * modules/open (Files): Add m4/mode_t.m4.
44339         * modules/openat (Files): Likewise.
44340         * modules/fcntl-safer (Files): Likewise.
44341         Suggested by Eric Blake.
44342
44343 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44344
44345         * doc/glibc-functions/fallocate.texi: New file.
44346         * doc/gnulib.texi: Include it.
44347
44348 2009-05-21  Eric Blake  <ebb9@byu.net>
44349             Bruno Haible  <bruno@clisp.org>
44350
44351         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44352         invocations.
44353         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44354
44355 2009-05-21  Eric Blake  <ebb9@byu.net>
44356             Bruno Haible  <bruno@clisp.org>
44357
44358         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44359         include_next. Fix of 2008-11-20 commit.
44360         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44361         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44362         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44363         NEXT_MATH_H.
44364         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44365         instead of NEXT_MATH_H.
44366
44367 2009-05-21  Bruno Haible  <bruno@clisp.org>
44368
44369         Avoid redefinition warnings for SIZE_MAX.
44370         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44371         Reported by Simon Josefsson.
44372
44373 2009-05-21  Bruno Haible  <bruno@clisp.org>
44374
44375         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44376         AC_CACHE_VAL.
44377
44378 2009-05-20  Bruno Haible  <bruno@clisp.org>
44379
44380         Make zeroptr.h work on mingw.
44381         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44382         mprotect.
44383         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44384         * modules/memchr2-tests (configure.ac): Likewise.
44385         * modules/memcmp-tests (configure.ac): Likewise.
44386         * modules/memmem-tests (configure.ac): Likewise.
44387         * modules/memrchr-tests (configure.ac): Likewise.
44388         Reported by Simon Josefsson.
44389
44390 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44391
44392         * tests/test-glob.c: Include string.h for strcmp prototype.
44393
44394 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44395
44396         * modules/getdelim (Depends-on): Add explicit stdint, although it
44397         was implicitly already pulled in via realloc-posix.
44398         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44399
44400 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44401
44402         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44403         G. Christensen" <tgc@jupiterrise.com>.
44404         * m4/sys_socket_h.m4: Check for sa_family_t.
44405         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44406         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44407         * tests/test-sys_socket.c: Check that sa_family_t works.
44408
44409 2009-05-18  Eric Blake  <ebb9@byu.net>
44410
44411         maint.mk: allow gnulib_dir in VPATH build
44412         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44413
44414 2009-05-15  Jim Meyering  <meyering@redhat.com>
44415
44416         maint.mk: Give gnulib_dir a default definition.
44417         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44418         Thus, most packages no longer need to specify this variable in cfg.mk
44419
44420 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44421
44422         rename.m4: fix typos that would make non-mingw cross-configure fail
44423         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44424
44425 2009-05-13  Eric Blake  <ebb9@byu.net>
44426
44427         mmap-anon: avoid out-of-order autoconf expansion
44428         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44429         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44430         * modules/memchr-tests (Depends-on): Add extensions.
44431         * modules/memchr2-tests (Depends-on): Add extensions.
44432         * modules/memcmp-tests (Depends-on): Add extensions.
44433         * modules/memmem-tests (Depends-on): Add extensions.
44434         * modules/memrchr-tests (Depends-on): Add extensions.
44435
44436 2009-05-13  Bruno Haible  <bruno@clisp.org>
44437
44438         Make some tests ISO C 99 compliant.
44439         * tests/zerosize-ptr.h: New file.
44440         * tests/test-memchr.c: Include zerosize-ptr.h.
44441         (main): Use a zero-size object pointer instead of NULL.
44442         * tests/test-memchr2.c: Include zerosize-ptr.h.
44443         (main): Use a zero-size object pointer instead of NULL.
44444         * tests/test-memcmp.c: Include zerosize-ptr.h.
44445         (main): Use a zero-size object pointer instead of NULL.
44446         * tests/test-memmem.c: Include zerosize-ptr.h.
44447         (main): Use a zero-size object pointer instead of NULL.
44448         * tests/test-memrchr.c: Include zerosize-ptr.h.
44449         (main): Use a zero-size object pointer instead of NULL.
44450         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44451         m4/mmap-anon.m4.
44452         (Depends-on): Add getpagesize.
44453         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44454         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44455         m4/mmap-anon.m4.
44456         (Depends-on): Add getpagesize.
44457         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44458         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44459         m4/mmap-anon.m4.
44460         (Depends-on): Add getpagesize.
44461         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44462         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44463         m4/mmap-anon.m4.
44464         (Depends-on): Add getpagesize.
44465         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44466         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44467         m4/mmap-anon.m4.
44468         (Depends-on): Add getpagesize.
44469         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44470
44471 2009-05-12  Bruno Haible  <bruno@clisp.org>
44472
44473         Tests for module 'alignof'.
44474         * modules/alignof-tests: New file.
44475         * tests/test-alignof.c: New file.
44476
44477 2009-05-12  Bruno Haible  <bruno@clisp.org>
44478
44479         Fix alignof macro.
44480         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44481         vendor compilers that are always correct.
44482
44483 2009-05-12  Bruno Haible  <bruno@clisp.org>
44484
44485         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44486         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44487         not whether its fully works.
44488
44489 2009-05-12  Bruno Haible  <bruno@clisp.org>
44490
44491         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44492
44493 2009-05-12  Jim Meyering  <meyering@redhat.com>
44494
44495         * top/maint.mk: Adjust backslash alignment.
44496
44497 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44498
44499         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44500
44501 2009-05-11  Eric Blake  <ebb9@byu.net>
44502
44503         argp: avoid undefined behavior
44504         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44505         macros.
44506
44507 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44508
44509         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44510         user.name to prevent git commit from complaining.
44511
44512 2009-05-10  Bruno Haible  <bruno@clisp.org>
44513
44514         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44515         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44516         it rewrites every file name only once.
44517         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44518
44519 2009-05-08  Bruno Haible  <bruno@clisp.org>
44520
44521         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44522         instead of 'max'.
44523
44524 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44525
44526         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44527         sockaddr_storage test.
44528
44529 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44530
44531         * modules/sys_socket (Makefile.am): Substitute
44532         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44533         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44534         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44535         * tests/test-sys_socket.c: Check sockaddr_storage.
44536
44537 2009-05-08  Bruno Haible  <bruno@clisp.org>
44538
44539         New module 'alignof'.
44540         * lib/alignof.h: New file.
44541         * modules/alignof: New file.
44542
44543 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44544             Bruno Haible  <bruno@clisp.org>
44545
44546         Fix test-file-has-acl on FreeBSD.
44547         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44548         mask is implicitly added.
44549         * tests/test-file-has-acl.c: Include <signal.h>.
44550         (main): Terminate the test after 5 seconds.
44551         * modules/acl-tests (configure.ac): Check for alarm function.
44552
44553 2009-05-04  Bruno Haible  <bruno@clisp.org>
44554
44555         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44556         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44557         * modules/errno (configure.ac): Drop AC_REQUIRE.
44558         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44559         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44560
44561 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44562
44563         * modules/glob-tests: New module.
44564         * tests/test-glob.c: Add.
44565
44566 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44567
44568         * modules/fnmatch-tests: New module.
44569         * tests/test-fnmatch.c: Add.
44570
44571 2009-05-04  Eric Blake  <ebb9@byu.net>
44572
44573         maint: make the new no-submodule-changes rule VPATH-safe
44574         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44575
44576 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44577             Bruno Haible  <bruno@clisp.org>
44578
44579         acl: Fix infinite loop on FreeBSD.
44580         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44581         of return value from acl_get_entry.
44582         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44583         Likewise.
44584
44585 2009-05-03  Bruno Haible  <bruno@clisp.org>
44586
44587         * lib/acl-internal.h (acl_entries): Clarify return value.
44588         * lib/acl_entries.c (acl_entries): Likewise.
44589
44590 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44591
44592         Bug fix in acl module.
44593         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44594
44595 2009-05-03  Bruno Haible  <bruno@clisp.org>
44596
44597         Create gperf-generated file in the source dir, not in the build dir.
44598         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44599         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44600         * modules/unicase/locale-language (unicase/locale-languages.h):
44601         Likewise.
44602         * modules/unicase/special-casing (unicase/special-casing-table.h):
44603         Likewise.
44604         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44605         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44606         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44607         Reported by Ralf Wildenhues.
44608
44609 2009-05-03  Bruno Haible  <bruno@clisp.org>
44610
44611         * modules/fnmatch (Description, configure.ac): Taken from
44612         fnmatch-posix.
44613         * modules/fnmatch-posix: Turn into a symbolic reference to the
44614         'fnmatch' module, and deprecate.
44615         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44616
44617 2009-05-03  Bruno Haible  <bruno@clisp.org>
44618
44619         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44620         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44621         Reported by Ralf Wildenhues.
44622
44623 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44624
44625         * m4/fnmatch.m4: Fix fnmatch re-define.
44626
44627 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44628
44629         priv-set: new module and tests; adapt write-any-file
44630         * lib/priv-set.c: New file.
44631         * lib/priv-set.h: New file.
44632         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44633         * lib/write-any-file.c: Simplify by using priv-set module.
44634         * m4/priv-set.m4: New file.
44635         * modules/priv-set: New file.
44636         * modules/unlinkdir: Add dependency on priv-set module.
44637         * modules/write-any-file: Likewise.
44638
44639         Tests for module 'priv-set'.
44640         * modules/priv-set-tests: New file.
44641         * tests/test-priv-set.c: New file.
44642
44643 2009-05-03  Jim Meyering  <meyering@redhat.com>
44644             Bruno Haible  <bruno@clisp.org>
44645
44646         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44647         use the converted UTF-8 variant of the name instead.
44648
44649 2009-05-03  Jim Meyering  <meyering@redhat.com>
44650
44651         tests: tighten some getdate tests
44652         * tests/test-getdate.c (main): Tighten tests: require equality,
44653         not just greater than.  Set TZ envvar to UTC0.
44654
44655 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44656
44657         getdate: correctly interpret "next monday" when run on a Monday
44658         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44659         that e.g., "next tues" (when run on a tuesday) results in a date
44660         that is one week in the future, and not today's date.
44661         I.e., add a week when the wday is the same as the current one.
44662         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44663         and earlier by Martin Bernreuther and Jan Minář.
44664         * tests/test-getdate.c (main): Check that "next DAY" is always in
44665         the future and that "last DAY" is always in the past.
44666
44667 2009-05-02  Jim Meyering  <meyering@redhat.com>
44668
44669         build: ensure that a release build fails when a submodule is unclean
44670         * top/maint.mk (no-submodule-changes): New rule.
44671         (alpha beta major): Depend on it.
44672
44673 2009-05-02  Bruno Haible  <bruno@clisp.org>
44674
44675         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44676         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44677         shell variable gl_fnmatch_required to detect which variant is
44678         requested.
44679         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44680         gl_FUNC_FNMATCH_POSIX.
44681         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44682         exclude fnmatch-posix.
44683
44684 2009-05-02  Bruno Haible  <bruno@clisp.org>
44685
44686         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44687         * modules/mbsrtowcs (License): Change to LGPLv2+.
44688         * modules/strnlen1 (License): Likewise.
44689         Reported by Simon Josefsson.
44690
44691 2009-05-02  Bruno Haible  <bruno@clisp.org>
44692
44693         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44694         "cross".
44695         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44696         gnulib-tool was called with option --source-base=lib.
44697
44698 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44699
44700         Use automake *-local hooks without commands, for extensibility.
44701         * modules/localcharset (Makefile.am): Rename install-exec-local
44702         rule to install-exec-localcharset, and make it a prerequisite of
44703         install-exec-local.  Likewise, rename the uninstall-local rule to
44704         uninstall-localcharset, and make it a prerequisite of the former.
44705
44706 2009-05-01  Bruno Haible  <bruno@clisp.org>
44707
44708         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44709         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44710         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44711         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44712         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44713         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44714         m4/locale-zh.m4, m4/codeset.m4.
44715
44716         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44717         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44718         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44719         m4/locale-zh.m4.
44720
44721         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44722         REPLACE_WCRTOMB if mbstate_t must be replaced.
44723         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44724         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44725
44726 2009-05-01  Bruno Haible  <bruno@clisp.org>
44727
44728         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44729         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44730         dngettext, dcngettext, textdomain, bindtextdomain,
44731         bind_textdomain_codeset): Undefine before redefining.
44732
44733 2009-04-30  Bruno Haible  <bruno@clisp.org>
44734
44735         Fix bug introduced on 2009-04-25.
44736         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44737         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44738         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44739         is defined.
44740         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44741         is defined.
44742         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44743         is defined.
44744         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44745
44746 2009-04-28  Bruno Haible  <bruno@clisp.org>
44747
44748         Comment tweaks.
44749         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44750         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44751         * lib/unicase.h (u*_casexfrm): Likewise.
44752         Reported by Paolo Bonzini.
44753
44754 2009-04-28  Bruno Haible  <bruno@clisp.org>
44755
44756         Fix a compilation error.
44757         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44758         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44759         Reported by Jim Meyering.
44760
44761 2009-04-27  Bruno Haible  <bruno@clisp.org>
44762
44763         New module 'libunistring'.
44764         * modules/libunistring: New file.
44765         * m4/libunistring.m4: New file.
44766         * MODULES.html.sh (Unicode string functions): Add it.
44767
44768 2009-04-27  Eric Blake  <ebb9@byu.net>
44769
44770         maint.mk: allow package-specific header to provide <config.h>
44771         * top/maint.mk (sc_require_config_h): New variable.
44772         (sc_require_config_h, sc_require_config_h_first): Use it.
44773
44774 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44775
44776         * top/maint.mk (sc_avoid_if_before_free): Except
44777         useless-if-before-free script.
44778
44779 2009-04-27  Eric Blake  <ebb9@byu.net>
44780
44781         maintainer-makefile: depend on all required helper scripts
44782         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44783         useless-if-before-free.
44784         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44785         version, rather than assuming gnulib checkout is available.
44786         Reported by Simen Josefsson.
44787
44788 2009-04-26  Bruno Haible  <bruno@clisp.org>
44789
44790         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44791         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44792         "../" or "..".
44793
44794 2009-04-26  Bruno Haible  <bruno@clisp.org>
44795
44796         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44797         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44798         AC_LIB_HAVE_LINKFLAGS.
44799
44800 2009-04-26  Bruno Haible  <bruno@clisp.org>
44801
44802         Simplify calling convention of u*_conv_from_encoding.
44803         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44804         u32_conv_from_encoding): Expect a resultbuf argument and return the
44805         result directly as a pointer.
44806         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44807         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44808         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44809         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44810         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44811         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44812         Update.
44813         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44814         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44815         * lib/vasnprintf.c (VASNPRINTF): Update.
44816         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44817         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44818         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44819         * NEWS: Mention the change.
44820
44821 2009-04-26  Bruno Haible  <bruno@clisp.org>
44822
44823         Simplify calling convention of u*_conv_to_encoding.
44824         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44825         u32_conv_to_encoding): Expect a resultbuf argument and return the
44826         result directly as a pointer.
44827         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44828         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44829         freeing scaled_offsets if mem_iconveha failed.
44830         * lib/unicase/u-casexfrm.h (FUNC): Update.
44831         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44832         * lib/vasnprintf.c (VASNPRINTF): Update.
44833         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44834         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44835         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44836         * NEWS: Mention the change.
44837
44838 2009-04-26  Bruno Haible  <bruno@clisp.org>
44839
44840         Avoid test failures on AIX and OSF/1.
44841         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44842         malloc(0).
44843         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44844         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44845         Likewise.
44846         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44847         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44848         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44849         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44850         * doc/posix-functions/malloc.texi: Document the portability problem
44851         related to malloc(0).
44852
44853 2009-04-26  Bruno Haible  <bruno@clisp.org>
44854
44855         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44856         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44857         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44858
44859 2009-04-25  Bruno Haible  <bruno@clisp.org>
44860
44861         Avoid link error when creating a namespace clean library.
44862         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44863         as macro with arguments if already defined as an alias.
44864         * lib/signbitf.c (gl_signbitf): Don't undefine.
44865         * lib/signbitd.c (gl_signbitd): Don't undefine.
44866         * lib/signbitl.c (gl_signbitl): Don't undefine.
44867
44868 2009-04-25  Jim Meyering  <meyering@redhat.com>
44869
44870         vc-list-files: fix another quoting bug
44871         * build-aux/vc-list-files: Avoid sed backslash expansion
44872         of pathological directory names.
44873
44874 2009-04-25  Eric Blake  <ebb9@byu.net>
44875
44876         vc-list-files: fix shell quoting error
44877         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44878         timestamp.
44879
44880 2009-04-25  Jim Meyering  <meyering@redhat.com>
44881
44882         vc-list-files: restore lost functionality with subdir argument
44883         * build-aux/vc-list-files: When given a non-"." sub-directory
44884         argument, substitute the $dir/ prefix back onto each resulting name.
44885         Otherwise, coreutils' root_tests check would fail.
44886
44887 2009-04-24  Eric Blake  <ebb9@byu.net>
44888
44889         vc-list-files: ignore git symlinks
44890         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44891         than ls-files, to ignore git symlinks.
44892
44893         maint.mk: import improvements from m4
44894         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44895         (move_if_change): Delete unused macro.
44896         (news-date-check, vc-diff-check): Support VPATH builds.
44897         (announcement): Likewise.  Split --bootstrap-tools list...
44898         (boostrap-tools): ...into separate list, which can be overridden
44899         in cfg.mk.
44900         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44901         requiring dependency on useless-if-before-free module.
44902         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44903         Support VPATH builds.
44904
44905 2009-04-24  Jim Meyering  <meyering@redhat.com>
44906
44907         maint.mk: remove coreutils-specific rules and variables
44908         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44909         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44910         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44911
44912         maint.mk: remove obsolete rule
44913         * top/maint.mk (rel-check): Remove rule.
44914         (WGET, WGETFLAGS): Remove now-unused variables.
44915
44916 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44917
44918         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44919         consistency.
44920
44921         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44922         '$(PATH_SEPARATOR)' instead of ':'.
44923
44924 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44925
44926         * lib/getopt1.c (main): Use 'const' for static array.
44927
44928 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44929
44930         * top/maint.mk: Sync with coreutils.
44931         * NEWS: Explain incompatibilities.
44932
44933 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44934             Bruno Haible  <bruno@clisp.org>
44935
44936         Fix cross-compilation results.
44937         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44938         statement, as third argument of AC_TRY_RUN.
44939         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44940         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44941         Likewise.
44942         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44943         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44944         Likewise.
44945         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44946         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44947         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44948
44949 2009-04-20  Bruno Haible  <bruno@clisp.org>
44950
44951         Avoid test failure on mingw.
44952         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44953
44954 2009-04-20  Bruno Haible  <bruno@clisp.org>
44955
44956         Avoid compilation error on mingw.
44957         * modules/localename-tests (Depends-on): Add locale.
44958
44959 2009-04-19  Bruno Haible  <bruno@clisp.org>
44960
44961         Support for building a shared library on Windows platforms.
44962         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44963         (main): Test the presence of UNINORM_NFC here.
44964         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44965         (main): Test the presence of UNINORM_NFD here.
44966         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44967         (main): Test the presence of UNINORM_NFKC here.
44968         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44969         (main): Test the presence of UNINORM_NFKD here.
44970
44971 2009-04-19  Bruno Haible  <bruno@clisp.org>
44972
44973         Avoid a compiler warning.
44974         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44975         Change type of variable 'sequence'.
44976
44977 2009-04-19  Bruno Haible  <bruno@clisp.org>
44978
44979         * modules/configmake (Makefile.am): When the contents of configmake.h
44980         does not change, arrange to preserve its modification time.
44981
44982 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44983
44984         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44985         gettext domain.
44986
44987 2009-04-16  Jim Meyering  <meyering@redhat.com>
44988
44989         useless-if-before-free: improve conversion code
44990         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44991         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44992
44993 2009-04-14  Bruno Haible  <bruno@clisp.org>
44994
44995         * modules/fcntl (Depends-on): Add extensions.
44996         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44997
44998 2009-04-12  Ben Pfaff  <blp@gnu.org>
44999
45000         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45001         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45002
45003 2009-03-20  Ben Pfaff  <blp@gnu.org>
45004
45005         Make rename replace existing destinations on Windows.
45006         * m4/rename.m4: Add test for Mingw.
45007         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45008         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45009         * doc/posix-functions/rename.texi: Document.
45010
45011 2009-04-10  Bruno Haible  <bruno@clisp.org>
45012
45013         New include file "iconveh.h".
45014         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45015         * lib/striconveh.h: Include it.
45016         (enum iconv_ilseq_handler): Remove definition.
45017         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45018         striconveh.h.
45019         * lib/striconveha.c: Include striconveh.h.
45020         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45021         * modules/striconveh (Files): Add lib/iconveh.h.
45022         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45023         lib/striconveh.h.
45024
45025 2009-04-10  Bruno Haible  <bruno@clisp.org>
45026
45027         * lib/uniconv.h: Update comment.
45028
45029 2009-04-10  Bruno Haible  <bruno@clisp.org>
45030
45031         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45032         always.
45033         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45034         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45035         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45036         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45037         "unistring-notinline.h", so that the function gets defined always.
45038         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45039         * lib/unistr/u8-uctomb.c: Likewise.
45040         * lib/unistr/u16-mbtouc.c: Likewise.
45041         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45042         * lib/unistr/u16-uctomb.c: Likewise.
45043         * lib/unistr/u32-mbtouc.c: Likewise.
45044         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45045         * lib/unistr/u32-uctomb.c: Likewise.
45046
45047 2009-04-10  Bruno Haible  <bruno@clisp.org>
45048
45049         Mark 'utime' obsolete.
45050         * modules/utime (Status, Notice): New sections.
45051         Suggested by Jim Meyering.
45052
45053         Fix cross-compile guess for utime test.
45054         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45055         autoconf.
45056         * doc/posix-functions/utime.texi: Give more precisions.
45057         Reported by Jan <ipif@ymail.com>.
45058
45059 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45060
45061         filevercmp: correct today's change
45062         * lib/filevercmp.c: Also handle coreutils' test inputs.
45063         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45064
45065         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45066         for reporting it.
45067         * lib/filevercmp.c: Special handle for "", "." and "..".
45068         * tests/test-filevercmp.c: Enlarge the set suite.
45069
45070 2009-04-07  Jim Meyering  <meyering@redhat.com>
45071
45072         useless-if-before-free: show how to remove braced useless free, too
45073         * build-aux/useless-if-before-free: still only in a comment, though.
45074
45075 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45076
45077         maint.mk: import changes to syntax-check macros from coreutils
45078         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45079         Use them in the relevant macros.
45080
45081 2009-04-06  Bruno Haible  <bruno@clisp.org>
45082
45083         Fix unportable use of bit-fields.
45084         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45085         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45086         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45087
45088 2009-04-06  Bruno Haible  <bruno@clisp.org>
45089
45090         Avoid test failures on AIX and OSF/1.
45091         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45092         that malloc(0) = NULL.
45093         * tests/unicase/test-u8-tolower.c (check): Likewise.
45094         * tests/unicase/test-u8-totitle.c (check): Likewise.
45095         * tests/unicase/test-u8-toupper.c (check): Likewise.
45096         * tests/unicase/test-u16-casefold.c (check): Likewise.
45097         * tests/unicase/test-u16-tolower.c (check): Likewise.
45098         * tests/unicase/test-u16-totitle.c (check): Likewise.
45099         * tests/unicase/test-u16-toupper.c (check): Likewise.
45100         * tests/unicase/test-u32-casefold.c (check): Likewise.
45101         * tests/unicase/test-u32-tolower.c (check): Likewise.
45102         * tests/unicase/test-u32-totitle.c (check): Likewise.
45103         * tests/unicase/test-u32-toupper.c (check): Likewise.
45104         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45105         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45106         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45107         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45108         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45109         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45110         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45111         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45112         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45113         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45114         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45115         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45116
45117 2009-04-05  Bruno Haible  <bruno@clisp.org>
45118
45119         Work around an autoconf limitation.
45120         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45121         comment line if it would be longer than 3 KB.
45122
45123 2009-04-05  Bruno Haible  <bruno@clisp.org>
45124
45125         Avoid test failure with libiconv-1.13.
45126         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45127         of the expected test results.
45128
45129 2009-04-05  Bruno Haible  <bruno@clisp.org>
45130
45131         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45132         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45133         that it should be installed.
45134
45135 2009-04-05  Bruno Haible  <bruno@clisp.org>
45136
45137         * gnulib-tool: New option --copy-file.
45138         (func_usage): Document it.
45139         (func_dest_tmpfilename): Moved out of func_import.
45140         (func_add_file, func_update_file): New functions, extracted from
45141         func_import.
45142         (func_import): Update.
45143
45144 2009-04-05  Karl Berry  <karl@gnu.org>
45145
45146         * README: prominently mention gnulib-tool.
45147         Rearrange sections so getting the code is near the top.
45148
45149 2009-04-05  Bruno Haible  <bruno@clisp.org>
45150
45151         * lib/unicase.h: Mention u*_cmp2.
45152         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45153         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45154         * lib/unicase/ulc-casecmp.c: Likewise.
45155         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45156         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45157         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45158         unistr/u8-cmp.
45159         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45160         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45161         unistr/u16-cmp.
45162         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45163         unistr/u32-cmp.
45164
45165         * lib/uninorm.h: Mention u*_cmp2.
45166         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45167         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45168         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45169         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45170         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45171         unistr/u8-cmp.
45172         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45173         unistr/u16-cmp.
45174         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45175         unistr/u32-cmp.
45176
45177         New module 'unistr/u32-cmp2'.
45178         * lib/unistr/u32-cmp2.c: New file.
45179         * modules/unistr/u32-cmp2: New file.
45180
45181         New module 'unistr/u16-cmp2'.
45182         * lib/unistr/u16-cmp2.c: New file.
45183         * modules/unistr/u16-cmp2: New file.
45184
45185         New module 'unistr/u8-cmp2'.
45186         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45187         * lib/unistr/u8-cmp2.c: New file.
45188         * lib/unistr/u-cmp2.h: New file.
45189         * modules/unistr/u8-cmp2: New file.
45190
45191 2009-04-05  Bruno Haible  <bruno@clisp.org>
45192
45193         * lib/unictype.h (uc_property_is_valid): New macro.
45194         * tests/unictype/test-pr_byname.c (main): Use it.
45195
45196         * lib/unistr.h: Doc fixes.
45197         * lib/uniconv.h: Doc fixes.
45198         * lib/unictype.h: Doc fixes.
45199
45200 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45201
45202         Port coreutils 7.2 to Solaris 8.
45203
45204         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45205         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45206         for Solaris 8.  This is a bit of a hack, as it means it's the
45207         caller's responsibility to add -lnsl if needed, but most likely it
45208         won't be needed since only getaddrinfo uses this and getaddrinfo
45209         isn't needed on Solaris 8.
45210
45211         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45212         problem to Solaris 8 encountered with coreutils 7.2, which
45213         resulted in a message "fnmatch.c:292: warning: passing argument 4
45214         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45215         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45216
45217 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45218
45219         * m4/ld-version-script.m4: Add FIXME comment.
45220
45221 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45222
45223         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45224         SOVERSION variable.
45225
45226 2009-04-02  Bruno Haible  <bruno@clisp.org>
45227
45228         * Makefile (info, html, dvi, pdf): Combine the rules.
45229         Suggested by Jim Meyering.
45230
45231 2009-04-01  Bruno Haible  <bruno@clisp.org>
45232
45233         * Makefile (info, html, dvi, pdf): New targets.
45234         Reported by Reuben Thomas <rrt@sc3d.org>.
45235
45236 2009-04-01  Bruno Haible  <bruno@clisp.org>
45237
45238         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45239         can be put into PATH.
45240         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45241
45242 2009-04-01  Bruno Haible  <bruno@clisp.org>
45243
45244         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45245
45246 2009-04-01  Bruno Haible  <bruno@clisp.org>
45247
45248         Rename module 'visibility'.
45249         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45250         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45251         * doc/gnulib.texi: Update.
45252         * MODULES.html.sh (Misc): Update.
45253         * NEWS: Mention the change.
45254
45255 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45256
45257         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45258         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45259         Eric Blake <ebb9@byu.net> for review.
45260         * MODULES.html.sh: Add lib-msvc-compat.
45261         * doc/gnulib.texi: Link to new section.
45262         * m4/ld-output-def.m4: New file.
45263         * doc/ld-output-def.texi: New file.
45264
45265 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45266
45267         Rename ld-version-script to lib-symbol-versions.  Suggested by
45268         Bruno Haible <bruno@clisp.org>.
45269         * modules/ld-version-script: Renamed to lib-symbol-versions.
45270         * doc/ld-version-script.texi: Fix module name.
45271         * MODULES.html.sh: Add lib-symbol-versions.
45272
45273 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45274
45275         * modules/u64-tests: New file.
45276         * tests/test-u64.c: New file.
45277
45278 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45279
45280         * MODULES.html.sh: Mention u64.
45281         * modules/u64: New module.
45282         * modules/crypto/sha512: Depend on u64 module instead of providing
45283         u64.h.
45284
45285 2009-03-27  Eric Blake  <ebb9@byu.net>
45286
45287         test-strerror: make debugging EAI_SYSTEM easier
45288         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45289         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45290         failure was EAI_SYSTEM.
45291
45292 2009-03-25  Bruno Haible  <bruno@clisp.org>
45293
45294         Fix a problem with --enable-relocatable on Solaris 7.
45295         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45296         since 2008-02-24.
45297
45298 2009-03-25  Eric Blake  <ebb9@byu.net>
45299
45300         test-sockets: avoid gcc warning
45301         * tests/test-sockets.c (main): Silence compiler warning.
45302
45303 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45304
45305         New modules nproc, pthread, contributed by Glen Lenker.
45306
45307         * MODULES.html.sh: Add pthread, nproc.
45308         * lib/nproc.c: New file.
45309         * lib/nproc.h: New file.
45310         * lib/pthread.in.h: New file.
45311         * m4/pthread.m4: New file.
45312         * modules/nproc: New file.
45313         * modules/pthread: New file.
45314
45315 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45316
45317         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45318         New variable.
45319
45320 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45321
45322         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45323         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45324         * tests/test-filevercmp.c: Add tests for backup suffixes.
45325
45326 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45327
45328         * modules/stdlib (Depends-on): Add stdint, needed when defining
45329         struct random_data on, for example, HP-UX 10.20.  Reported by
45330         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45331
45332 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45333
45334         * lib/readline.c (readline): Call fflush on stdout after printing
45335         prompt.
45336
45337 2009-03-20  Bruno Haible  <bruno@clisp.org>
45338
45339         Remove dependency from 'close' module to -lws2_32 on native Windows.
45340         * lib/close-hook.h: New file.
45341         * lib/close-hook.c: New file.
45342         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45343         w32sock.h.
45344         (_gl_close_fd_maybe_socket): Remove function.
45345         (rpl_close): Invoke execute_all_close_hooks instead of
45346         _gl_close_fd_maybe_socket.
45347         * lib/sockets.c: Include close-hook.h, w32sock.h.
45348         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45349         (close_sockets_hook): New variable.
45350         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45351         (gl_sockets_cleanup): Unregister it.
45352         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45353         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45354         * modules/close-hook: New file.
45355         * modules/close (Files): Remove lib/w32sock.h.
45356         (Depends-on): Add close-hook.
45357         (Link): Remove section.
45358         * modules/sockets (Files): Add lib/w32sock.h.
45359         (Depends-on): Add close-hook.
45360         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45361         invocation.
45362         * NEWS: Mention that LIB_CLOSE is gone.
45363
45364 2009-03-23  Eric Blake  <ebb9@byu.net>
45365
45366         signal-tests: test previous patch
45367         * tests/test-signal.c: New file.
45368         * modules/signal-tests: Likewise.
45369
45370         signal.h: always support 'volatile sig_atomic_t'
45371         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45372         (gl_SIGNAL_H_DEFAULTS): Add a default.
45373         * modules/signal (Makefile.am): Substitute if needed.
45374         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45375         users can blindly add volatile.
45376         * doc/posix-headers/signal.texi (signal.h): Document it.
45377         Reported by Matthew Woehlke.
45378
45379 2009-03-23  Jim Meyering  <meyering@redhat.com>
45380
45381         pathmax: PATH_MAX: use pathconf only when available
45382         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45383         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45384         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45385         This avoids a link failure in a PSP cross-compilation environment
45386         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45387
45388         * lib/vasnprintf.c (divide): Fix typo in comment.
45389
45390 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45391
45392         * gnulib-tool (func_filter_filelist): Fix comment.
45393
45394 2009-03-20  Bruno Haible  <bruno@clisp.org>
45395
45396         Make sockets.h self-contained.
45397         * lib/sockets.c: Include sockets.h first.
45398         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45399
45400 2009-03-19  Eric Blake  <ebb9@byu.net>
45401
45402         doc: mention more functions added in cygwin 1.7.0
45403         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45404         addition.
45405         * doc/posix-functions/log2f.texi: Likewise.
45406
45407 2009-03-19  Jim Meyering  <meyering@redhat.com>
45408
45409         fsusage: avoid syntax error due to statement-before-declaration
45410         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45411         after all declarations.  Reported by Matthew Woehlke in
45412         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45413
45414 2009-03-18  Eric Blake  <ebb9@byu.net>
45415
45416         build-aux/compile: sync from automake
45417         * build-aux/compile: New file, from automake.
45418         * config/srclist.txt: Mention build-aux/compile.
45419
45420 2009-03-17  Bruno Haible  <bruno@clisp.org>
45421
45422         * lib/git-merge-changelog.c: Fix typo in comment.
45423         Reported by Reuben Thomas <rrt@sc3d.org>.
45424
45425 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45426
45427         * m4/regex.m4: update and improve help for
45428         --without-included-regex.
45429
45430 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45431
45432         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45433         failure on missing include files.
45434
45435 2009-03-17  Eric Blake  <ebb9@byu.net>
45436
45437         doc: mention more functions added in cygwin 1.7.0
45438         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45439         addition.
45440         * doc/posix-functions/fwscanf.texi: Likewise.
45441         * doc/posix-functions/swprintf.texi: Likewise.
45442         * doc/posix-functions/swscanf.texi: Likewise.
45443         * doc/posix-functions/vfwprintf.texi: Likewise.
45444         * doc/posix-functions/vfwscanf.texi: Likewise.
45445         * doc/posix-functions/vswprintf.texi: Likewise.
45446         * doc/posix-functions/vswscanf.texi: Likewise.
45447         * doc/posix-functions/vwprintf.texi: Likewise.
45448         * doc/posix-functions/vwscanf.texi: Likewise.
45449         * doc/posix-functions/wcscasecmp.texi: Likewise.
45450         * doc/posix-functions/wcsdup.texi: Likewise.
45451         * doc/posix-functions/wcsftime.texi: Likewise.
45452         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45453         * doc/posix-functions/wprintf.texi: Likewise.
45454         * doc/posix-functions/wscanf.texi: Likewise.
45455         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45456
45457 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45458
45459         maint.mk: really add $(AM_MAKEFLAGS)
45460         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45461         was inadvertently omitted in the last commit.
45462         Spotted by Bruno Haible.
45463
45464         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45465         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45466         $(AM_MAKEFLAGS)' rather than plain `make'.
45467
45468         gnulib-tool: execute $MAKE not make
45469         * gnulib-tool: Default $MAKE to 'make'.
45470         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45471         than make.  Initialize $MAKE in the do-autobuild script.
45472
45473         gnulib-tool: use $MAKE not make in generated files
45474         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45475         make, in generated files.  Initialize $MAKE in the do-autobuild
45476         script.
45477
45478         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45479
45480         GNUmakefile: disable parallelism only for multiple, recursive targets
45481         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45482         additions in the Makefile.
45483         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45484         by Automake.
45485         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45486         are listed on the command line and at least one of them is
45487         listed in $(ALL_RECURSIVE_TARGETS).
45488
45489 2009-03-14  Bruno Haible  <bruno@clisp.org>
45490
45491         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45492         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45493         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45494         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45495         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45496         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45497         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45498         unistr/u8-uctomb.
45499         * modules/unistr/u8-strchr (Depends-on): Likewise.
45500         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45501         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45502         unistr/u16-uctomb.
45503         * modules/unistr/u16-strchr (Depends-on): Likewise.
45504         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45505
45506 2009-03-12  Bruno Haible  <bruno@clisp.org>
45507
45508         Work around select() bug on Interix 3.5.
45509         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45510         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45511         * m4/select.m4: New file.
45512         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45513         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45514         * modules/select (Files): Add m4/select.m4.
45515         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45516         * modules/nanosleep (Depends-on): Add select.
45517         * modules/poll (Depends-on): Likewise.
45518         * doc/posix-functions/select.texi: Mention the Interix bug.
45519         Reported by Markus Duft <mduft@gentoo.org>.
45520
45521         * lib/select.c: Renamed from lib/winsock-select.c.
45522         * modules/select (Files): Add lib/select.c, remove
45523         lib/winsock-select.c.
45524         (configure.ac): Update.
45525
45526 2009-03-12  Jim Meyering  <meyering@redhat.com>
45527
45528         avoid gcc warnings about unused macro definitions
45529         * lib/readtokens.c (STREQ): Remove unused definition.
45530         * lib/xmalloc.c (SIZE_MAX): Likewise.
45531         * lib/openat-die.c (N_): Likewise.
45532         * lib/mountlist.c (SIZE_MAX): Remove definition.
45533         Instead, include <stdint.h>.
45534         * lib/readutmp.c: Likewise.
45535         * modules/readutmp (Depends-on): Add stdint.
45536         * modules/mountlist (Depends-on): Add stdint.
45537         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45538
45539 2009-03-10  Bruno Haible  <bruno@clisp.org>
45540
45541         Tests for module 'mbmemcasecoll'.
45542         * modules/mbmemcasecoll-tests: New file.
45543         * tests/test-mbmemcasecoll1.sh: New file.
45544         * tests/test-mbmemcasecoll2.sh: New file.
45545         * tests/test-mbmemcasecoll3.sh: New file.
45546         * tests/test-mbmemcasecoll.c: New file.
45547
45548         New module 'mbmemcasecoll'.
45549         * lib/mbmemcasecoll.h: New file.
45550         * lib/mbmemcasecoll.c: New file.
45551         * modules/mbmemcasecoll: New file.
45552
45553         * tests/test-mbmemcasecmp.h: New file, extracted from
45554         tests/test-mbmemcasecmp.c.
45555         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45556         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45557         (main): Update.
45558         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45559
45560 2009-03-09  Bruno Haible  <bruno@clisp.org>
45561
45562         Tests for module 'mbmemcasecmp'.
45563         * modules/mbmemcasecmp-tests: New file.
45564         * tests/test-mbmemcasecmp1.sh: New file.
45565         * tests/test-mbmemcasecmp2.sh: New file.
45566         * tests/test-mbmemcasecmp3.sh: New file.
45567         * tests/test-mbmemcasecmp.c: New file.
45568
45569         New module 'mbmemcasecmp'.
45570         * lib/mbmemcasecmp.h: New file.
45571         * lib/mbmemcasecmp.c: New file.
45572         * modules/mbmemcasecmp: New file.
45573
45574 2009-03-09  Bruno Haible  <bruno@clisp.org>
45575
45576         Tests for module 'unicase/ulc-casecoll'.
45577         * modules/unicase/ulc-casecoll-tests: New file.
45578         * tests/unicase/test-ulc-casecoll1.sh: New file.
45579         * tests/unicase/test-ulc-casecoll2.sh: New file.
45580         * tests/unicase/test-ulc-casecoll.c: New file.
45581
45582         New module 'unicase/ulc-casecoll'.
45583         * lib/unicase.h (ulc_casecoll): New declaration.
45584         * lib/unicase/ulc-casecoll.c: New file.
45585         * modules/unicase/ulc-casecoll: New file.
45586
45587         New module 'unicase/ulc-casexfrm'.
45588         * lib/unicase.h (ulc_casexfrm): New declaration.
45589         * lib/unicase/ulc-casexfrm.c: New file.
45590         * modules/unicase/ulc-casexfrm: New file.
45591
45592 2009-03-09  Bruno Haible  <bruno@clisp.org>
45593
45594         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45595         invocations.
45596
45597         * m4/mbscasecmp.m4: Remove file.
45598         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45599         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45600
45601         * m4/mbscasestr.m4: Remove file.
45602         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45603         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45604
45605         * m4/mbschr.m4: Remove file.
45606         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45607         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45608
45609         * m4/mbscspn.m4: Remove file.
45610         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45611         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45612
45613         * m4/mbslen.m4: Remove file.
45614         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45615         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45616
45617         * m4/mbsncasecmp.m4: Remove file.
45618         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45619         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45620
45621         * m4/mbsnlen.m4: Remove file.
45622         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45623         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45624
45625         * m4/mbspbrk.m4: Remove file.
45626         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45627         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45628
45629         * m4/mbspcasecmp.m4: Remove file.
45630         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45631         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45632
45633         * m4/mbsrchr.m4: Remove file.
45634         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45635         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45636
45637         * m4/mbssep.m4: Remove file.
45638         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45639         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45640
45641         * m4/mbsspn.m4: Remove file.
45642         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45643         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45644
45645         * m4/mbsstr.m4: Remove file.
45646         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45647         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45648
45649         * m4/mbstok_r.m4: Remove file.
45650         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45651         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45652
45653         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45654
45655         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45656         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45657
45658         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45659
45660 2009-03-08  Bruno Haible  <bruno@clisp.org>
45661
45662         Tests for module 'unicase/ulc-casecmp'.
45663         * modules/unicase/ulc-casecmp-tests: New file.
45664         * tests/unicase/test-ulc-casecmp1.sh: New file.
45665         * tests/unicase/test-ulc-casecmp2.sh: New file.
45666         * tests/unicase/test-ulc-casecmp.c: New file.
45667
45668         New module 'unicase/ulc-casecmp'.
45669         * lib/unicase.h (ulc_casecmp): New declaration.
45670         * lib/unicase/ulc-casecmp.c: New file.
45671         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45672         'const SRC_UNIT *'.
45673         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45674         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45675         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45676         * modules/unicase/ulc-casecmp: New file.
45677
45678         Tests for module 'unicase/u32-is-cased'.
45679         * modules/unicase/u32-is-cased-tests: New file.
45680         * tests/unicase/test-u32-is-cased.c: New file.
45681
45682         Tests for module 'unicase/u16-is-cased'.
45683         * modules/unicase/u16-is-cased-tests: New file.
45684         * tests/unicase/test-u16-is-cased.c: New file.
45685
45686         Tests for module 'unicase/u8-is-cased'.
45687         * modules/unicase/u8-is-cased-tests: New file.
45688         * tests/unicase/test-u8-is-cased.c: New file.
45689         * tests/unicase/test-is-cased.h: New file.
45690
45691         New module 'unicase/u32-is-cased'.
45692         * lib/unicase/u32-is-cased.c: New file.
45693         * modules/unicase/u32-is-cased: New file.
45694
45695         New module 'unicase/u16-is-cased'.
45696         * lib/unicase/u16-is-cased.c: New file.
45697         * modules/unicase/u16-is-cased: New file.
45698
45699         New module 'unicase/u8-is-cased'.
45700         * lib/unicase/u8-is-cased.c: New file.
45701         * lib/unicase/u-is-cased.h: New file.
45702         * modules/unicase/u8-is-cased: New file.
45703
45704         Tests for module 'unicase/u32-is-casefolded'.
45705         * modules/unicase/u32-is-casefolded-tests: New file.
45706         * tests/unicase/test-u32-is-casefolded.c: New file.
45707
45708         Tests for module 'unicase/u16-is-casefolded'.
45709         * modules/unicase/u16-is-casefolded-tests: New file.
45710         * tests/unicase/test-u16-is-casefolded.c: New file.
45711
45712         Tests for module 'unicase/u8-is-casefolded'.
45713         * modules/unicase/u8-is-casefolded-tests: New file.
45714         * tests/unicase/test-u8-is-casefolded.c: New file.
45715         * tests/unicase/test-is-casefolded.h: New file.
45716
45717         New module 'unicase/u32-is-casefolded'.
45718         * lib/unicase/u32-is-casefolded.c: New file.
45719         * modules/unicase/u32-is-casefolded: New file.
45720
45721         New module 'unicase/u16-is-casefolded'.
45722         * lib/unicase/u16-is-casefolded.c: New file.
45723         * modules/unicase/u16-is-casefolded: New file.
45724
45725         New module 'unicase/u8-is-casefolded'.
45726         * lib/unicase/u8-is-casefolded.c: New file.
45727         * modules/unicase/u8-is-casefolded: New file.
45728
45729         Tests for module 'unicase/u32-is-titlecase'.
45730         * modules/unicase/u32-is-titlecase-tests: New file.
45731         * tests/unicase/test-u32-is-titlecase.c: New file.
45732
45733         Tests for module 'unicase/u16-is-titlecase'.
45734         * modules/unicase/u16-is-titlecase-tests: New file.
45735         * tests/unicase/test-u16-is-titlecase.c: New file.
45736
45737         Tests for module 'unicase/u8-is-titlecase'.
45738         * modules/unicase/u8-is-titlecase-tests: New file.
45739         * tests/unicase/test-u8-is-titlecase.c: New file.
45740         * tests/unicase/test-is-titlecase.h: New file.
45741
45742         New module 'unicase/u32-is-titlecase'.
45743         * lib/unicase/u32-is-titlecase.c: New file.
45744         * modules/unicase/u32-is-titlecase: New file.
45745
45746         New module 'unicase/u16-is-titlecase'.
45747         * lib/unicase/u16-is-titlecase.c: New file.
45748         * modules/unicase/u16-is-titlecase: New file.
45749
45750         New module 'unicase/u8-is-titlecase'.
45751         * lib/unicase/u8-is-titlecase.c: New file.
45752         * modules/unicase/u8-is-titlecase: New file.
45753
45754         Tests for module 'unicase/u32-is-lowercase'.
45755         * modules/unicase/u32-is-lowercase-tests: New file.
45756         * tests/unicase/test-u32-is-lowercase.c: New file.
45757
45758         Tests for module 'unicase/u16-is-lowercase'.
45759         * modules/unicase/u16-is-lowercase-tests: New file.
45760         * tests/unicase/test-u16-is-lowercase.c: New file.
45761
45762         Tests for module 'unicase/u8-is-lowercase'.
45763         * modules/unicase/u8-is-lowercase-tests: New file.
45764         * tests/unicase/test-u8-is-lowercase.c: New file.
45765         * tests/unicase/test-is-lowercase.h: New file.
45766
45767         New module 'unicase/u32-is-lowercase'.
45768         * lib/unicase/u32-is-lowercase.c: New file.
45769         * modules/unicase/u32-is-lowercase: New file.
45770
45771         New module 'unicase/u16-is-lowercase'.
45772         * lib/unicase/u16-is-lowercase.c: New file.
45773         * modules/unicase/u16-is-lowercase: New file.
45774
45775         New module 'unicase/u8-is-lowercase'.
45776         * lib/unicase/u8-is-lowercase.c: New file.
45777         * modules/unicase/u8-is-lowercase: New file.
45778
45779         Tests for module 'unicase/u32-is-uppercase'.
45780         * modules/unicase/u32-is-uppercase-tests: New file.
45781         * tests/unicase/test-u32-is-uppercase.c: New file.
45782
45783         Tests for module 'unicase/u16-is-uppercase'.
45784         * modules/unicase/u16-is-uppercase-tests: New file.
45785         * tests/unicase/test-u16-is-uppercase.c: New file.
45786
45787         Tests for module 'unicase/u8-is-uppercase'.
45788         * modules/unicase/u8-is-uppercase-tests: New file.
45789         * tests/unicase/test-u8-is-uppercase.c: New file.
45790         * tests/unicase/test-is-uppercase.h: New file.
45791
45792         New module 'unicase/u32-is-uppercase'.
45793         * lib/unicase/u32-is-uppercase.c: New file.
45794         * modules/unicase/u32-is-uppercase: New file.
45795
45796         New module 'unicase/u16-is-uppercase'.
45797         * lib/unicase/u16-is-uppercase.c: New file.
45798         * modules/unicase/u16-is-uppercase: New file.
45799
45800         New module 'unicase/u8-is-uppercase'.
45801         * lib/unicase/u8-is-uppercase.c: New file.
45802         * modules/unicase/u8-is-uppercase: New file.
45803
45804         New module 'unicase/u32-is-invariant'.
45805         * lib/unicase/u32-is-invariant.c: New file.
45806         * modules/unicase/u32-is-invariant: New file.
45807
45808         New module 'unicase/u16-is-invariant'.
45809         * lib/unicase/u16-is-invariant.c: New file.
45810         * modules/unicase/u16-is-invariant: New file.
45811
45812         New module 'unicase/u8-is-invariant'.
45813         * lib/unicase/u8-is-invariant.c: New file.
45814         * lib/unicase/invariant.h: New file.
45815         * lib/unicase/u-is-invariant.h: New file.
45816         * modules/unicase/u8-is-invariant: New file.
45817
45818         Tests for module 'unicase/u32-casecoll'.
45819         * modules/unicase/u32-casecoll-tests: New file.
45820         * tests/unicase/test-u32-casecoll.c: New file.
45821
45822         Tests for module 'unicase/u16-casecoll'.
45823         * modules/unicase/u16-casecoll-tests: New file.
45824         * tests/unicase/test-u16-casecoll.c: New file.
45825
45826         Tests for module 'unicase/u8-casecoll'.
45827         * modules/unicase/u8-casecoll-tests: New file.
45828         * tests/unicase/test-u8-casecoll.c: New file.
45829
45830         New module 'unicase/u32-casecoll'.
45831         * lib/unicase/u32-casecoll.c: New file.
45832         * modules/unicase/u32-casecoll: New file.
45833
45834         New module 'unicase/u16-casecoll'.
45835         * lib/unicase/u16-casecoll.c: New file.
45836         * modules/unicase/u16-casecoll: New file.
45837
45838         New module 'unicase/u8-casecoll'.
45839         * lib/unicase/u8-casecoll.c: New file.
45840         * lib/unicase/u-casecoll.h: New file.
45841         * modules/unicase/u8-casecoll: New file.
45842
45843         New module 'unicase/u32-casexfrm'.
45844         * lib/unicase/u32-casexfrm.c: New file.
45845         * modules/unicase/u32-casexfrm: New file.
45846
45847         New module 'unicase/u16-casexfrm'.
45848         * lib/unicase/u16-casexfrm.c: New file.
45849         * modules/unicase/u16-casexfrm: New file.
45850
45851         New module 'unicase/u8-casexfrm'.
45852         * lib/unicase/u8-casexfrm.c: New file.
45853         * lib/unicase/u-casexfrm.h: New file.
45854         * modules/unicase/u8-casexfrm: New file.
45855
45856         Tests for module 'unicase/u32-casecmp'.
45857         * modules/unicase/u32-casecmp-tests: New file.
45858         * tests/unicase/test-u32-casecmp.c: New file.
45859
45860         Tests for module 'unicase/u16-casecmp'.
45861         * modules/unicase/u16-casecmp-tests: New file.
45862         * tests/unicase/test-u16-casecmp.c: New file.
45863
45864         Tests for module 'unicase/u8-casecmp'.
45865         * modules/unicase/u8-casecmp-tests: New file.
45866         * tests/unicase/test-u8-casecmp.c: New file.
45867         * tests/unicase/test-casecmp.h: New file.
45868
45869         New module 'unicase/u32-casecmp'.
45870         * lib/unicase/u32-casecmp.c: New file.
45871         * modules/unicase/u32-casecmp: New file.
45872
45873         New module 'unicase/u16-casecmp'.
45874         * lib/unicase/u16-casecmp.c: New file.
45875         * modules/unicase/u16-casecmp: New file.
45876
45877         New module 'unicase/u8-casecmp'.
45878         * lib/unicase/u8-casecmp.c: New file.
45879         * lib/unicase/u-casecmp.h: New file.
45880         * modules/unicase/u8-casecmp: New file.
45881
45882         Tests for module 'unicase/u32-casefold'.
45883         * modules/unicase/u32-casefold-tests: New file.
45884         * tests/unicase/test-u32-casefold.c: New file.
45885
45886         Tests for module 'unicase/u16-casefold'.
45887         * modules/unicase/u16-casefold-tests: New file.
45888         * tests/unicase/test-u16-casefold.c: New file.
45889
45890         Tests for module 'unicase/u8-casefold'.
45891         * modules/unicase/u8-casefold-tests: New file.
45892         * tests/unicase/test-u8-casefold.c: New file.
45893
45894         New module 'unicase/u32-casefold'.
45895         * lib/unicase/u32-casefold.c: New file.
45896         * modules/unicase/u32-casefold: New file.
45897
45898         New module 'unicase/u16-casefold'.
45899         * lib/unicase/u16-casefold.c: New file.
45900         * modules/unicase/u16-casefold: New file.
45901
45902         New module 'unicase/u8-casefold'.
45903         * lib/unicase/u8-casefold.c: New file.
45904         * lib/unicase/u-casefold.h: New file.
45905         * modules/unicase/u8-casefold: New file.
45906
45907         New module 'unicase/tocasefold'.
45908         * lib/unicase/casefold.h: New file.
45909         * lib/unicase/tocasefold.c: New file.
45910         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45911         * modules/unicase/tocasefold: New file.
45912
45913         Tests for module 'unicase/u32-totitle'.
45914         * modules/unicase/u32-totitle-tests: New file.
45915         * tests/unicase/test-u32-totitle.c: New file.
45916
45917         Tests for module 'unicase/u16-totitle'.
45918         * modules/unicase/u16-totitle-tests: New file.
45919         * tests/unicase/test-u16-totitle.c: New file.
45920
45921         Tests for module 'unicase/u8-totitle'.
45922         * modules/unicase/u8-totitle-tests: New file.
45923         * tests/unicase/test-u8-totitle.c: New file.
45924
45925         New module 'unicase/u32-totitle'.
45926         * lib/unicase/u32-totitle.c: New file.
45927         * modules/unicase/u32-totitle: New file.
45928
45929         New module 'unicase/u16-totitle'.
45930         * lib/unicase/u16-totitle.c: New file.
45931         * modules/unicase/u16-totitle: New file.
45932
45933         New module 'unicase/u8-totitle'.
45934         * lib/unicase/u8-totitle.c: New file.
45935         * lib/unicase/u-totitle.h: New file.
45936         * modules/unicase/u8-totitle: New file.
45937
45938         Tests for module 'unicase/u32-tolower'.
45939         * modules/unicase/u32-tolower-tests: New file.
45940         * tests/unicase/test-u32-tolower.c: New file.
45941
45942         Tests for module 'unicase/u16-tolower'.
45943         * modules/unicase/u16-tolower-tests: New file.
45944         * tests/unicase/test-u16-tolower.c: New file.
45945
45946         Tests for module 'unicase/u8-tolower'.
45947         * modules/unicase/u8-tolower-tests: New file.
45948         * tests/unicase/test-u8-tolower.c: New file.
45949
45950         New module 'unicase/u32-tolower'.
45951         * lib/unicase/u32-tolower.c: New file.
45952         * modules/unicase/u32-tolower: New file.
45953
45954         New module 'unicase/u16-tolower'.
45955         * lib/unicase/u16-tolower.c: New file.
45956         * modules/unicase/u16-tolower: New file.
45957
45958         New module 'unicase/u8-tolower'.
45959         * lib/unicase/u8-tolower.c: New file.
45960         * modules/unicase/u8-tolower: New file.
45961
45962         Tests for module 'unicase/u32-toupper'.
45963         * modules/unicase/u32-toupper-tests: New file.
45964         * tests/unicase/test-u32-toupper.c: New file.
45965
45966         Tests for module 'unicase/u16-toupper'.
45967         * modules/unicase/u16-toupper-tests: New file.
45968         * tests/unicase/test-u16-toupper.c: New file.
45969
45970         Tests for module 'unicase/u8-toupper'.
45971         * modules/unicase/u8-toupper-tests: New file.
45972         * tests/unicase/test-u8-toupper.c: New file.
45973
45974         New module 'unicase/u32-toupper'.
45975         * lib/unicase/u32-toupper.c: New file.
45976         * modules/unicase/u32-toupper: New file.
45977
45978         New module 'unicase/u16-toupper'.
45979         * lib/unicase/u16-toupper.c: New file.
45980         * modules/unicase/u16-toupper: New file.
45981
45982         New module 'unicase/u8-toupper'.
45983         * lib/unicase/u8-toupper.c: New file.
45984         * modules/unicase/u8-toupper: New file.
45985
45986         New module 'unicase/u32-casemap'.
45987         * lib/unicase/u32-casemap.c: New file.
45988         * modules/unicase/u32-casemap: New file.
45989
45990         New module 'unicase/u16-casemap'.
45991         * lib/unicase/u16-casemap.c: New file.
45992         * modules/unicase/u16-casemap: New file.
45993
45994         New module 'unicase/u8-casemap'.
45995         * lib/unicase/unicasemap.h: New file.
45996         * lib/unicase/u8-casemap.c: New file.
45997         * lib/unicase/u-casemap.h: New file.
45998         * modules/unicase/u8-casemap: New file.
45999
46000         New module 'unicase/special-casing'.
46001         * lib/unicase/special-casing.h: New file.
46002         * lib/unicase/special-casing.c: New file.
46003         * lib/unicase/special-casing-table.gperf: New file, generated by
46004         gen-uni-tables.c.
46005         * modules/unicase/special-casing: New file.
46006
46007         Tests for module 'unicase/locale-language'.
46008         * modules/unicase/locale-language-tests: New file.
46009         * tests/unicase/test-locale-language.sh: New file.
46010         * tests/unicase/test-locale-language.c: New file.
46011
46012         New module 'unicase/locale-language'.
46013         * lib/unicase/locale-language.c: New file.
46014         * lib/unicase/locale-languages.gperf: New file.
46015         * modules/unicase/locale-language: New file.
46016
46017         Generate more tables for case conversion and case folding.
46018         * lib/gen-uni-tables.c (SCC_*): New enum items.
46019         (struct special_casing_rule): New type.
46020         (casing_rules, num_casing_rules, allocated_casing_rules): New
46021         variables.
46022         (add_casing_rule, fill_casing_rules): New functions.
46023         (struct casefold_rule): New type.
46024         (casefolding_rules, num_casefolding_rules,
46025         allocated_casefolding_rules): New variables.
46026         (fill_casefolding_rules): New function.
46027         (unicode_casefold): New variable.
46028         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46029         sort_casing_rules, output_casing_rules): New functions.
46030         (main): Accept to more arguments: SpecialCasing.txt and
46031         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46032         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46033         Output mapping for casefolding.
46034
46035         * lib/unicase.h: Include stdbool.h, uninorm.h.
46036         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46037         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46038         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46039         arguments.
46040         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46041         resultp arguments.
46042         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46043         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46044         resultp arguments.
46045         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46046         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46047         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46048         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46049         declarations.
46050         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46051
46052 2009-03-08  Bruno Haible  <bruno@clisp.org>
46053
46054         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46055         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46056         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46057         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46058
46059 2009-03-07  Bruno Haible  <bruno@clisp.org>
46060
46061         Adjust u*_normcmp, u*_normcoll API.
46062         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46063         u16_normcoll, u32_normcoll): Change failure conventions.
46064         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46065         errno and return -1.
46066         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46067
46068 2009-03-07  Bruno Haible  <bruno@clisp.org>
46069
46070         Tests for module 'uninorm/u32-normcoll'.
46071         * modules/uninorm/u32-normcoll-tests: New file.
46072         * tests/uninorm/test-u32-normcoll.c: New file.
46073
46074         Tests for module 'uninorm/u16-normcoll'.
46075         * modules/uninorm/u16-normcoll-tests: New file.
46076         * tests/uninorm/test-u16-normcoll.c: New file.
46077
46078         Tests for module 'uninorm/u8-normcoll'.
46079         * modules/uninorm/u8-normcoll-tests: New file.
46080         * tests/uninorm/test-u8-normcoll.c: New file.
46081
46082 2009-03-07  Bruno Haible  <bruno@clisp.org>
46083
46084         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46085         tests/uninorm/test-u32-normcmp.c.
46086         * tests/uninorm/test-u32-normcmp.c: Include it.
46087         (test_nonascii): New function, extracted from main. Add some more
46088         tests.
46089         (main): Invoke test_ascii and test_nonascii.
46090         * modules/uninorm/u32-normcmp-tests (Files): Add
46091         tests/uninorm/test-u32-normcmp.h.
46092         (Depends-on): Remove uninorm/u32-normcmp.
46093
46094         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46095         tests/uninorm/test-u16-normcmp.c.
46096         * tests/uninorm/test-u16-normcmp.c: Include it.
46097         (test_nonascii): New function, extracted from main. Add some more
46098         tests.
46099         (main): Invoke test_ascii and test_nonascii.
46100         * modules/uninorm/u16-normcmp-tests (Files): Add
46101         tests/uninorm/test-u16-normcmp.h.
46102         (Depends-on): Remove uninorm/u16-normcmp.
46103
46104         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46105         tests/uninorm/test-u8-normcmp.c.
46106         * tests/uninorm/test-u8-normcmp.c: Include it.
46107         (test_nonascii): New function, extracted from main. Add some more
46108         tests.
46109         (main): Invoke test_ascii and test_nonascii.
46110         * modules/uninorm/u8-normcmp-tests (Files): Add
46111         tests/uninorm/test-u8-normcmp.h.
46112         (Depends-on): Remove uninorm/u8-normcmp.
46113
46114 2009-03-07  Bruno Haible  <bruno@clisp.org>
46115
46116         New module 'uninorm/u32-normcoll'.
46117         * lib/uninorm/u32-normcoll.c: New file.
46118         * modules/uninorm/u32-normcoll: New file.
46119
46120         New module 'uninorm/u16-normcoll'.
46121         * lib/uninorm/u16-normcoll.c: New file.
46122         * modules/uninorm/u16-normcoll: New file.
46123
46124         New module 'uninorm/u8-normcoll'.
46125         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46126         declarations.
46127         * lib/uninorm/u8-normcoll.c: New file.
46128         * lib/uninorm/u-normcoll.h: New file.
46129         * modules/uninorm/u8-normcoll: New file.
46130
46131         New module 'uninorm/u32-normxfrm'.
46132         * lib/uninorm/u32-normxfrm.c: New file.
46133         * modules/uninorm/u32-normxfrm: New file.
46134
46135         New module 'uninorm/u16-normxfrm'.
46136         * lib/uninorm/u16-normxfrm.c: New file.
46137         * modules/uninorm/u16-normxfrm: New file.
46138
46139         New module 'uninorm/u8-normxfrm'.
46140         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46141         declarations.
46142         * lib/uninorm/u8-normxfrm.c: New file.
46143         * lib/uninorm/u-normxfrm.h: New file.
46144         * modules/uninorm/u8-normxfrm: New file.
46145
46146 2009-03-07  Bruno Haible  <bruno@clisp.org>
46147
46148         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46149         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46150         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46151
46152 2009-03-07  Bruno Haible  <bruno@clisp.org>
46153
46154         New module 'memxfrm'.
46155         * lib/memxfrm.h: New file.
46156         * lib/memxfrm.c: New file.
46157         * modules/memxfrm: New file.
46158
46159 2009-03-07  Bruno Haible  <bruno@clisp.org>
46160
46161         New module 'memcmp2'.
46162         * lib/memcmp2.h: New file.
46163         * lib/memcmp2.c: New file.
46164         * modules/memcmp2: New file.
46165
46166 2009-03-07  Bruno Haible  <bruno@clisp.org>
46167
46168         Tests for module 'uninorm/decomposing-form'.
46169         * modules/uninorm/decomposing-form-tests: New file.
46170         * tests/uninorm/test-decomposing-form.c: New file.
46171
46172         New module 'uninorm/decomposing-form'.
46173         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46174         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46175         Add 'decomposing_variant' field.
46176         * lib/uninorm/decomposing-form.c: New file.
46177         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46178         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46179         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46180         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46181         * modules/uninorm/decomposing-form: New file.
46182         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46183         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46184
46185 2009-03-07  Bruno Haible  <bruno@clisp.org>
46186
46187         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46188         strings.
46189
46190 2009-03-06  Bruno Haible  <bruno@clisp.org>
46191
46192         Tests for module 'uninorm/u32-normcmp'.
46193         * tests/uninorm/test-u32-normcmp.c: New file.
46194         * modules/uninorm/u32-normcmp-tests: New file.
46195
46196         Tests for module 'uninorm/u16-normcmp'.
46197         * tests/uninorm/test-u16-normcmp.c: New file.
46198         * modules/uninorm/u16-normcmp-tests: New file.
46199
46200         Tests for module 'uninorm/u8-normcmp'.
46201         * tests/uninorm/test-u8-normcmp.c: New file.
46202         * modules/uninorm/u8-normcmp-tests: New file.
46203
46204         New module 'uninorm/u32-normcmp'.
46205         * lib/uninorm/u32-normcmp.c: New file.
46206         * modules/uninorm/u32-normcmp: New file.
46207
46208         New module 'uninorm/u16-normcmp'.
46209         * lib/uninorm/u16-normcmp.c: New file.
46210         * modules/uninorm/u16-normcmp: New file.
46211
46212         New module 'uninorm/u8-normcmp'.
46213         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46214         declarations.
46215         * lib/uninorm/u8-normcmp.c: New file.
46216         * lib/uninorm/u-normcmp.h: New file.
46217         * modules/uninorm/u8-normcmp: New file.
46218
46219 2009-03-06  Bruno Haible  <bruno@clisp.org>
46220
46221         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46222         Reported by Eric Blake.
46223
46224 2009-03-06  Eric Blake  <ebb9@byu.net>
46225             Bruno Haible  <bruno@clisp.org>
46226
46227         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46228         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46229         condition.
46230         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46231         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46232         condition.
46233         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46234
46235 2009-03-06  Eric Blake  <ebb9@byu.net>
46236
46237         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46238         to avoid compiler warnings.
46239         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46240
46241 2009-03-05  Bruno Haible  <bruno@clisp.org>
46242
46243         * tests/test-ftell.c (main): Disable test beyond end of file on
46244         FreeMiNT.
46245         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46246
46247 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46248
46249         * lib/filevercmp.c: Move hidden files up in ordering.
46250         * tests/test-filevercmp.c: Add tests for hidden files.
46251
46252 2009-03-04  Bruno Haible  <bruno@clisp.org>
46253
46254         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46255         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46256         AM_CFLAGS.
46257         Reported by Simon Josefsson.
46258
46259 2009-03-03  Bruno Haible  <bruno@clisp.org>
46260
46261         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46262         Reported by Simon Josefsson.
46263
46264         * doc/ld-version-script.texi: Update node reference.
46265
46266 2009-03-03  Bruno Haible  <bruno@clisp.org>
46267
46268         * modules/visibility (License): Change to 'unlimited'.
46269         Suggested by Simon Josefsson.
46270
46271 2009-03-03  Jim Meyering  <meyering@redhat.com>
46272
46273         unlinkdir: cannot_unlink_dir may modify process state
46274         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46275         it's neither thread-safe nor appropriate for use in a library.
46276
46277 2009-03-03  Eric Blake  <ebb9@byu.net>
46278
46279         test-closein: silence test under Darwin
46280         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46281         care if it dies from EPIPE or EBADF.
46282
46283 2009-03-03  Bruno Haible  <bruno@clisp.org>
46284
46285         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46286         earlier.
46287         * doc/visibility.texi: Fix @node and @section.
46288
46289 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46290
46291         * doc/gnulib.texi: Link to sections for ld version script and
46292         visibility.
46293         * doc/visibility.texi: Add @node and @section.
46294         * modules/ld-version-script: New module.
46295         * m4/ld-version-script.m4: New file.
46296         * doc/ld-version-script.texi: New file.
46297
46298 2009-03-02  David Lutterkort  <lutter@redhat.com>
46299
46300         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46301         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46302
46303 2009-03-02  Bruno Haible  <bruno@clisp.org>
46304
46305         * doc/visibility.texi: Mention libtool's -export-symbols option.
46306
46307 2009-03-02  Jim Meyering  <meyering@redhat.com>
46308
46309         announce-gen: new option: --no-print-checksums
46310         * build-aux/announce-gen (usage): Describe it.
46311         (print_checksums): Print a newline here, not in the [*] footnote.
46312         (main): Honor it.
46313
46314 2009-03-01  Bruno Haible  <bruno@clisp.org>
46315
46316         Use socklen_t in the native Windows replacements prototypes.
46317         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46318         instead of 'int'.
46319         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46320         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46321         * modules/getsockopt (Depends-on): Add socklen.
46322         * modules/setsockopt (Depends-on): Add socklen.
46323
46324 2009-03-01  Bruno Haible  <bruno@clisp.org>
46325
46326         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46327         least 4.2.
46328
46329 2009-03-01  Eric Blake  <ebb9@byu.net>
46330             Bruno Haible  <bruno@clisp.org>
46331
46332         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46333         error messages.
46334         * lib/wait-process.c (wait_subprocess): Omit error message about
46335         deadly signal sent to the child of termsigp != NULL.
46336
46337 2009-03-01  Eric Blake  <ebb9@byu.net>
46338
46339         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46340
46341 2009-03-01  Bruno Haible  <bruno@clisp.org>
46342
46343         Avoid a gcc warning.
46344         * tests/test-sched.c (b): Make global.
46345         Reported by Eric Blake.
46346
46347 2009-01-19  Martin Lambers  <marlam@marlam.de>
46348
46349         Provide POSIX semantics for socket timeout options on W32.
46350         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46351         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46352         * modules/setsockopt: Depend on sys_time module for struct timeval.
46353         * modules/getsockopt: Depend on sys_time module for struct timeval.
46354
46355 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46356
46357         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46358         __USE_GNU, for consistency with netdb.in.h.
46359         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46360
46361 2009-03-01  Bruno Haible  <bruno@clisp.org>
46362
46363         More support for FreeMiNT.
46364         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46365         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46366
46367 2009-03-01  Bruno Haible  <bruno@clisp.org>
46368
46369         More support for FreeMiNT.
46370         * lib/fpurge.c (fpurge): Correct last commit.
46371         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46372
46373 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46374
46375         Fix unportable awk script in vc-list-files.
46376         * build-aux/vc-list-files: In the replacement awk script, use
46377         substr with a second argument of 1, not zero.
46378         Report by Simon Josefsson.
46379
46380 2009-02-28  Bruno Haible  <bruno@clisp.org>
46381
46382         More support for FreeMiNT.
46383         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46384         to FreeMiNT today.
46385         * lib/fwriting.c (fwriting): Likewise.
46386         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46387
46388 2009-02-28  Bruno Haible  <bruno@clisp.org>
46389
46390         * tests/test-freadseek.c (main): Disable test beyond end of file on
46391         FreeMiNT.
46392         * tests/test-ftello.c (main): Likewise.
46393         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46394
46395 2009-02-28  Bruno Haible  <bruno@clisp.org>
46396
46397         Add tentative support for FreeMiNT.
46398         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46399         * lib/fpurge.c (fpurge): Likewise.
46400         * lib/freadable.c (freadable): Likewise.
46401         * lib/freading.c (freading): Likewise.
46402         * lib/freadptr.c (freadptr): Likewise.
46403         * lib/freadseek.c (freadptrinc): Likewise.
46404         * lib/fseeko.c (rpl_fseeko): Likewise.
46405         * lib/fseterr.c (fseterr): Likewise.
46406         * lib/fwritable.c (fwritable): Likewise.
46407         * lib/fwriting.c (fwriting): Likewise.
46408         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46409         Hourihane.
46410         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46411
46412 2009-02-28  Bruno Haible  <bruno@clisp.org>
46413
46414         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46415         SIGCHLD.
46416         Reported by Jim Meyering.
46417
46418 2009-02-28  Bruno Haible  <bruno@clisp.org>
46419
46420         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46421         Mention the results of these tests on various platforms.
46422         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46423         order.
46424         * doc/posix-functions/printf.texi: Likewise.
46425         * doc/posix-functions/snprintf.texi: Likewise.
46426         * doc/posix-functions/sprintf.texi: Likewise.
46427         * doc/posix-functions/vfprintf.texi: Likewise.
46428         * doc/posix-functions/vprintf.texi: Likewise.
46429         * doc/posix-functions/vsnprintf.texi: Likewise.
46430         * doc/posix-functions/vsprintf.texi: Likewise.
46431         * doc/glibc-functions/obstack_printf.texi: Likewise.
46432         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46433
46434 2009-02-28  Bruno Haible  <bruno@clisp.org>
46435
46436         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46437         Reported by Loïc Minier <lool@dooz.org>.
46438
46439 2009-02-27  Bruno Haible  <bruno@clisp.org>
46440
46441         * gnulib-tool (func_import): Make the sed expression used to create the
46442         sed script for updating the .gitignore file POSIX compliant.
46443         Reported by Eric Blake.
46444
46445 2009-02-27  Bruno Haible  <bruno@clisp.org>
46446
46447         * gnulib-tool (sed): Don't alias as "sed --posix".
46448         Reported by Eric Blake.
46449
46450 2009-02-27  Bruno Haible  <bruno@clisp.org>
46451
46452         Avoid test link errors.
46453         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46454         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46455         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46456         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46457         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46458
46459 2009-02-27  Bruno Haible  <bruno@clisp.org>
46460
46461         Avoid spurious "(cached)" in configure output.
46462         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46463         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46464         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46465         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46466         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46467         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46468         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46469         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46470         Reported by Eric Blake.
46471
46472 2009-02-27  Eric Blake  <ebb9@byu.net>
46473
46474         printf: fix regression in previous patch
46475         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46476
46477 2009-02-27  Bruno Haible  <bruno@clisp.org>
46478
46479         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46480         value.
46481         * lib/stdint.in.h: Likewise.
46482         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46483
46484 2009-02-27  Eric Blake  <ebb9@byu.net>
46485
46486         doc: mention more functions added in cygwin 1.7.0
46487         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46488         addition.
46489         * doc/posix-functions/open_wmemstream.texi: Likewise.
46490         * doc/posix-functions/wcsnlen.texi: Likewise.
46491         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46492         * doc/posix-functions/wcstod.texi: Likewise.
46493         * doc/posix-functions/wcstof.texi: Likewise.
46494         * doc/posix-functions/wcstoimax.texi: Likewise.
46495         * doc/posix-functions/wcstok.texi: Likewise.
46496         * doc/posix-functions/wcstoumax.texi: Likewise.
46497
46498         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46499         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46500         * doc/posix-functions/fprintf.texi: Update.
46501         * doc/posix-functions/printf.texi: Update.
46502         * doc/posix-functions/snprintf.texi: Update.
46503         * doc/posix-functions/sprintf.texi: Update.
46504         * doc/posix-functions/vfprintf.texi: Update.
46505         * doc/posix-functions/vprintf.texi: Update.
46506         * doc/posix-functions/vsnprintf.texi: Update.
46507         * doc/posix-functions/vsprintf.texi: Update.
46508         * doc/glibc-functions/obstack_printf.texi: Update.
46509         * doc/glibc-functions/obstack_vprintf.texi: Update.
46510
46511 2009-02-26  Eric Blake  <ebb9@byu.net>
46512
46513         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46514         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46515         compilation bug by using runtime conversion.
46516         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46517         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46518         * modules/ceill-tests (Files): Use nan.h.
46519         * modules/floorl-tests (Files): Likewise.
46520         * modules/frexpl-tests (Files): Likewise.
46521         * modules/isnanl-tests (Files): Likewise.
46522         * modules/ldexpl-tests (Files): Likewise.
46523         * modules/roundl-tests (Files): Likewise.
46524         * modules/truncl-tests (Files): Likewise.
46525         * tests/test-ceill.c (main): Use a working NaN.
46526         * tests/test-floorl.c (main): Likewise.
46527         * tests/test-frexpl.c (main): Likewise.
46528         * tests/test-isnan.c (test_long_double): Likewise.
46529         * tests/test-isnanl.h (main): Likewise.
46530         * tests/test-ldexpl.h (main): Likewise.
46531         * tests/test-roundl.h (main): Likewise.
46532         * tests/test-truncl.h (main): Likewise.
46533         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46534
46535 2009-02-26  Eric Blake  <ebb9@byu.net>
46536             Bruno Haible  <bruno@clisp.org>
46537
46538         Work around a *printf bug with %ls on Solaris.
46539         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46540         precision is specified, sprintf stops converting the wide string
46541         argument when the number of bytes that have been produced by this
46542         conversion equals or exceeds the precision.
46543         * doc/posix-functions/fprintf.texi: Update.
46544         * doc/posix-functions/printf.texi: Update.
46545         * doc/posix-functions/snprintf.texi: Update.
46546         * doc/posix-functions/sprintf.texi: Update.
46547         * doc/posix-functions/vfprintf.texi: Update.
46548         * doc/posix-functions/vprintf.texi: Update.
46549         * doc/posix-functions/vsnprintf.texi: Update.
46550         * doc/posix-functions/vsprintf.texi: Update.
46551         * doc/glibc-functions/obstack_printf.texi: Update.
46552         * doc/glibc-functions/obstack_vprintf.texi: Update.
46553
46554 2009-02-26  Eric Blake  <ebb9@byu.net>
46555
46556         stdlib: favor compiler check of random.h
46557         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46558         to avoid an ObjC random.h installed by Swarm.
46559
46560 2009-02-26  Bruno Haible  <bruno@clisp.org>
46561
46562         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46563         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46564         Reported by Gary V. Vaughan <gary@gnu.org>.
46565
46566 2009-02-26  Bruno Haible  <bruno@clisp.org>
46567
46568         Fix *printf behaviour regarding the %ls directive.
46569         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46570         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46571         NEED_PRINTF_DIRECTIVE_LS.
46572         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46573         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46574         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46575         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46576         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46577         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46578         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46579         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46580         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46581         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46582         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46583         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46584         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46585         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46586         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46587         * doc/posix-functions/fprintf.texi: Update.
46588         * doc/posix-functions/printf.texi: Update.
46589         * doc/posix-functions/snprintf.texi: Update.
46590         * doc/posix-functions/sprintf.texi: Update.
46591         * doc/posix-functions/vfprintf.texi: Update.
46592         * doc/posix-functions/vprintf.texi: Update.
46593         * doc/posix-functions/vsnprintf.texi: Update.
46594         * doc/posix-functions/vsprintf.texi: Update.
46595         * doc/glibc-functions/obstack_printf.texi: Update.
46596         * doc/glibc-functions/obstack_vprintf.texi: Update.
46597         Reported by Eric Blake.
46598
46599 2009-02-25  Bruno Haible  <bruno@clisp.org>
46600
46601         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46602         with known value.
46603         Reported by Gary V. Vaughan <gary@gnu.org>.
46604
46605 2009-02-25  Bruno Haible  <bruno@clisp.org>
46606
46607         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46608         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46609         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46610         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46611         Reported by Gary V. Vaughan <gary@gnu.org>.
46612
46613 2009-02-25  Bruno Haible  <bruno@clisp.org>
46614
46615         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46616         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46617         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46618         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46619         Reported by Gary V. Vaughan <gary@gnu.org>.
46620
46621 2009-02-25  Eric Blake  <ebb9@byu.net>
46622
46623         tests: skip fseek/ftell tests if ungetc is broken
46624         * m4/ungetc.m4: New file.
46625         * modules/fseek-tests: Split test, so ungetc dependency is
46626         separate from rest of test.
46627         * modules/fseeko-tests: Likewise.
46628         * modules/ftell-tests: Likewise.
46629         * modules/ftello-tests: Likewise.
46630         * tests/test-fseek.c (main): Isolate ungetc dependency.
46631         * tests/test-fseeko.c (main): Likewise.
46632         * tests/test-ftell.c (main): Likewise.
46633         * tests/test-ftello.c (main): Likewise.
46634         * tests/test-fseek2.sh: New file.
46635         * tests/test-fseeko2.sh: Likewise.
46636         * tests/test-ftell2.sh: Likewise.
46637         * tests/test-ftello2.sh: Likewise.
46638
46639 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46640
46641         test-getaddrinfo: fix usage of skip return code 77
46642         * tests/test-gettaddrinfo.c: Return skip code 77 only
46643         for first occurance of skip (4x77 is not 77)
46644
46645 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46646
46647         strtod: avoid C99 decl-after-statement
46648         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46649
46650 2009-02-24  Eric Blake  <ebb9@byu.net>
46651
46652         strtod: detect HP-UX 11.31 bug
46653         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46654         Reported by Gary V. Vaughan.
46655
46656 2009-02-23  Bruno Haible  <bruno@clisp.org>
46657
46658         Fix invalid read past end of memory block.
46659         * lib/vasnprintf.c (DCHAR_SET): Define.
46660         (local_wcslen): Define only when needed.
46661         (local_strnlen, local_wcsnlen): New functions.
46662         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46663         directives that involve a conversion ourselves.
46664         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46665         wcsnlen, mbrtowc, wcrtomb.
46666         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46667         * tests/test-vasprintf-posix.c (test_function): Likewise.
46668         * tests/test-snprintf-posix.h (test_function): Likewise.
46669         * tests/test-sprintf-posix.h (test_function): Likewise.
46670         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46671
46672 2009-02-22  Bruno Haible  <bruno@clisp.org>
46673
46674         Implement new clarified decomposition of Hangul syllables.
46675         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46676         of type LTV, return only a pairwise decomposition.
46677         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46678         Likewise.
46679         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46680         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46681         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46682
46683 2009-02-22  Bruno Haible  <bruno@clisp.org>
46684
46685         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46686         zero-length results and shrink excess allocated memory.
46687         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46688         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46689         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46690         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46691         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46692         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46693         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46694         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46695         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46696         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46697         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46698         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46699
46700 2009-02-21  Bruno Haible  <bruno@clisp.org>
46701
46702         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46703         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46704         spaces after a period. Put a space between a macro name and its
46705         argument list. Trivial rewordings.
46706         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46707         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46708         (main): Return 0 explicitly.
46709
46710 2009-02-21  Bruno Haible  <bruno@clisp.org>
46711
46712         Tests for module 'uninorm/filter'.
46713         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46714         * modules/uninorm/filter-tests: New file.
46715
46716         New module 'uninorm/filter'.
46717         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46718         uninorm_filter_flush, uninorm_filter_free): New declarations.
46719         * lib/uninorm/uninorm-filter.c: New file.
46720         * modules/uninorm/filter: New file.
46721
46722 2009-02-21  Bruno Haible  <bruno@clisp.org>
46723
46724         Tests for module 'uninorm/nfkc'.
46725         * tests/uninorm/test-nfkc.c: New file.
46726         * tests/uninorm/test-u8-nfkc.c: New file.
46727         * tests/uninorm/test-u16-nfkc.c: New file.
46728         * tests/uninorm/test-u32-nfkc.c: New file.
46729         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46730         * tests/uninorm/test-u32-nfkc-big.c: New file.
46731         * modules/uninorm/nfkc-tests: New file.
46732
46733         New module 'uninorm/nfkc'.
46734         * lib/uninorm/nfkc.c: New file.
46735         * modules/uninorm/nfkc: New file.
46736
46737         Tests for module 'uninorm/nfkd'.
46738         * tests/uninorm/test-nfkd.c: New file.
46739         * tests/uninorm/test-u8-nfkd.c: New file.
46740         * tests/uninorm/test-u16-nfkd.c: New file.
46741         * tests/uninorm/test-u32-nfkd.c: New file.
46742         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46743         * tests/uninorm/test-u32-nfkd-big.c: New file.
46744         * modules/uninorm/nfkd-tests: New file.
46745
46746         New module 'uninorm/nfkd'.
46747         * lib/uninorm/nfkd.c: New file.
46748         * modules/uninorm/nfkd: New file.
46749
46750         Tests for module 'uninorm/nfc'.
46751         * tests/uninorm/test-nfc.c: New file.
46752         * tests/uninorm/test-u8-nfc.c: New file.
46753         * tests/uninorm/test-u16-nfc.c: New file.
46754         * tests/uninorm/test-u32-nfc.c: New file.
46755         * tests/uninorm/test-u32-nfc-big.sh: New file.
46756         * tests/uninorm/test-u32-nfc-big.c: New file.
46757         * modules/uninorm/nfc-tests: New file.
46758
46759         New module 'uninorm/nfc'.
46760         * lib/uninorm/nfc.c: New file.
46761         * modules/uninorm/nfc: New file.
46762
46763         Tests for module 'uninorm/nfd'.
46764         * tests/uninorm/test-nfd.c: New file.
46765         * tests/uninorm/test-u8-nfd.c: New file.
46766         * tests/uninorm/test-u16-nfd.c: New file.
46767         * tests/uninorm/test-u32-nfd.c: New file.
46768         * tests/uninorm/test-u32-nfd-big.sh: New file.
46769         * tests/uninorm/test-u32-nfd-big.c: New file.
46770         * tests/uninorm/test-u32-normalize-big.h: New file.
46771         * tests/uninorm/test-u32-normalize-big.c: New file.
46772         * tests/uninorm/NormalizationTest.txt: New file, created from
46773         Unicode 5.1.0 NormalizationTest.txt.
46774         * modules/uninorm/nfd-tests: New file.
46775
46776         New module 'uninorm/nfd'.
46777         * lib/uninorm/nfd.c: New file.
46778         * modules/uninorm/nfd: New file.
46779
46780         New module 'uninorm/u32-normalize'.
46781         * lib/uninorm/u32-normalize.c: New file.
46782         * modules/uninorm/u32-normalize: New file.
46783
46784         New module 'uninorm/u16-normalize'.
46785         * lib/uninorm/u16-normalize.c: New file.
46786         * modules/uninorm/u16-normalize: New file.
46787
46788         New module 'uninorm/u8-normalize'.
46789         * lib/uninorm/u8-normalize.c: New file.
46790         * lib/uninorm/normalize-internal.h: New file.
46791         * lib/uninorm/u-normalize-internal.h: New file.
46792         * modules/uninorm/u8-normalize: New file.
46793
46794         New module 'uninorm/decompose-internal'.
46795         * lib/uninorm/decompose-internal.c: New file.
46796         * modules/uninorm/decompose-internal: New file.
46797
46798         Tests for module 'uninorm/composition'.
46799         * tests/uninorm/test-composition.c: New file.
46800         * modules/uninorm/composition-tests: New file.
46801
46802         New module 'uninorm/composition'.
46803         * lib/uninorm/composition.c: New file.
46804         * lib/uninorm/composition-table.gperf: New file, generated by
46805         gen-uni-tables.
46806         * modules/uninorm/composition: New file.
46807
46808         Tests for module 'uninorm/compat-decomposition'.
46809         * tests/uninorm/test-compat-decomposition.c: New file.
46810         * modules/uninorm/compat-decomposition-tests: New file.
46811
46812         New module 'uninorm/compat-decomposition'.
46813         * lib/uninorm/decompose-internal.h: New file.
46814         * lib/uninorm/compat-decomposition.c: New file.
46815         * modules/uninorm/compat-decomposition: New file.
46816
46817         Tests for module 'uninorm/canonical-decomposition'.
46818         * tests/uninorm/test-canonical-decomposition.c: New file.
46819         * modules/uninorm/canonical-decomposition-tests: New file.
46820
46821         New module 'uninorm/canonical-decomposition'.
46822         * lib/uninorm/canonical-decomposition.c: New file.
46823         * modules/uninorm/canonical-decomposition: New file.
46824
46825         Tests for module 'uninorm/decomposition'.
46826         * tests/uninorm/test-decomposition.c: New file.
46827         * modules/uninorm/decomposition-tests: New file.
46828
46829         New module 'uninorm/decomposition'.
46830         * lib/uninorm/decomposition.c: New file.
46831         * modules/uninorm/decomposition: New file.
46832
46833         New module 'uninorm/decomposition-table'.
46834         * lib/uninorm/decomposition-table.h: New file.
46835         * lib/uninorm/decomposition-table.c: New file.
46836         * lib/uninorm/decomposition-table1.h: New file, generated by
46837         gen-uni-tables.
46838         * lib/uninorm/decomposition-table2.h: New file, generated by
46839         gen-uni-tables.
46840         * modules/uninorm/decomposition-table: New file.
46841
46842         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46843         (UC_DECOMP_*): New enumeration items.
46844         (get_decomposition): New function.
46845         (struct decomp_table): New type.
46846         (output_decomposition, output_decomposition_tables): New functions.
46847         (unicode_composition_exclusions): New variable.
46848         (fill_composition_exclusions, debug_output_composition_tables): New
46849         functions.
46850         (main): Accept one more argument. Invoke fill_composition_exclusions.
46851         Output decomposition and composition tables.
46852
46853         New module 'uninorm/base'.
46854         * lib/uninorm.h: New file.
46855         * lib/unictype.h: Update comment.
46856         * modules/uninorm/base: New file.
46857
46858 2009-02-21  David Lutterkort  <lutter@redhat.com>
46859
46860         Tests for module 'safe-alloc'.
46861         * tests/test-safe-alloc.c: New file.
46862         * modules/safe-alloc-tests: New file.
46863
46864         New module 'safe-alloc'.
46865         * lib/safe-alloc.h: New file.
46866         * lib/safe-alloc.c: New file.
46867         * m4/safe-alloc.m4: New file.
46868         * modules/safe-alloc: New file.
46869         * doc/safe-alloc.texi: New file.
46870         * doc/gnulib.texi: Include it.
46871         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46872         safe-alloc.
46873
46874 2009-02-18  Bruno Haible  <bruno@clisp.org>
46875
46876         Fix link error on non-glibc systems.
46877         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46878         variable.
46879         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46880
46881 2009-02-18  Jim Meyering  <meyering@redhat.com>
46882
46883         fts: avoid used-uninitialized error due to recent change
46884         * lib/fts.c (fts_read): Guard uses of the new member,
46885         parent->fts_n_dirs_remaining, since it's not relevant for
46886         the parent of a directory specified on the command-line.
46887
46888 2009-02-17  James Youngman  <jay@gnu.org>
46889             Bruno Haible  <bruno@clisp.org>
46890
46891         * m4/include_next.m4: Reformulate comment.
46892
46893 2009-02-16  Jim Meyering  <meyering@redhat.com>
46894
46895         fts: add #if guards so that the fts_lgpl module still builds
46896         * lib/fts.c: Guard just-added hash-table-using parts with
46897         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46898         Reported by Simon Josefsson.
46899
46900 2009-02-15  Bruno Haible  <bruno@clisp.org>
46901
46902         * modules/array-mergesort-tests: New file.
46903         * tests/test-array-mergesort.c: New file.
46904
46905         New module 'array-mergesort'.
46906         * modules/array-mergesort: New file.
46907         * lib/array-mergesort.h: New file.
46908
46909 2009-02-15  Bruno Haible  <bruno@clisp.org>
46910
46911         Fix 2009-02-07 commit.
46912         * lib/gen-uni-tables.c (output_predicate, output_category,
46913         output_combclass, output_bidi_category, output_decimal_digit,
46914         output_digit, output_numeric, output_mirror, output_scripts,
46915         output_ident_category, output_simple_mapping): Fix format directives.
46916         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46917
46918 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46919
46920         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46921         fixes are available from IBM.
46922
46923 2009-02-13  Jim Meyering  <meyering@redhat.com>
46924
46925         fts: arrange not to stat non-directories in more cases
46926         This makes GNU find (when it doesn't need to stat each file)
46927         *much* more efficient at traversing reiserfs file systems.
46928         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46929         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46930         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46931         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46932         (leaf_optimization_applies): New function.
46933         (LCO_hash, LCO_compare): New helper functions.
46934         (link_count_optimize_ok): New function.
46935         (fts_stat): Initialize new member (if dir).
46936         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46937         we've just stat'ed a directory.  Skip the stat call when possible.
46938         ---
46939         Note this AFS-related exchange:
46940         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46941         and note find's pioctl call in find/fstype.c.
46942         But that is necessary only if you want to enable the
46943         optimization for AFS, and for now, I don't.
46944
46945         fts: move a function definition "up" (no semantic change)
46946         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46947         "up" to precede upcoming use of a related function.
46948
46949 2009-02-11  Jim Meyering  <meyering@redhat.com>
46950
46951         fts: correct internal computation of nlinks (optimization-related)
46952         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46953         whether the current entry is a directory, so don't test it.
46954
46955 2009-02-10  Bruno Haible  <bruno@clisp.org>
46956
46957         Tests for module 'uniwbrk/ulc-wordbreaks'.
46958         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46959         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46960         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46961
46962         Tests for module 'uniwbrk/u32-wordbreaks'.
46963         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46964         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46965
46966         Tests for module 'uniwbrk/u16-wordbreaks'.
46967         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46968         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46969
46970         Tests for module 'uniwbrk/u8-wordbreaks'.
46971         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46972         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46973
46974 2009-02-10  Bruno Haible  <bruno@clisp.org>
46975
46976         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46977         property.
46978         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46979         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46980         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46981
46982 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46983
46984         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46985         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46986
46987 2009-02-10  Bruno Haible  <bruno@clisp.org>
46988
46989         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46990         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46991         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46992         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46993         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46994         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46995
46996 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46997
46998         * lib/sockets.h (gl_fd_to_handle): New function.
46999
47000         * tests/test-sockets.c: Call gl_fd_to_handle.
47001
47002 2009-02-09  Bruno Haible  <bruno@clisp.org>
47003
47004         * doc/havelib.texi: Document the conventions on bi-arch systems.
47005
47006 2009-02-08  Bruno Haible  <bruno@clisp.org>
47007
47008         Document the AC_LIB_LINKFLAGS macro.
47009         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47010         * doc/gnulib.texi: Include it.
47011
47012 2009-02-08  Bruno Haible  <bruno@clisp.org>
47013
47014         Fix wrong order of sections, compared to TOC.
47015         * doc/gnulib.texi: Include relocatable-maint.texi after the
47016         "Regular expressions" node, not before.
47017
47018 2009-02-08  Bruno Haible  <bruno@clisp.org>
47019
47020         Tests for module 'unicase/totitle'.
47021         * modules/unicase/totitle-tests: New file.
47022
47023         Tests for module 'unicase/tolower'.
47024         * modules/unicase/tolower-tests: New file.
47025
47026         Tests for module 'unicase/toupper'.
47027         * modules/unicase/toupper-tests: New file.
47028         * tests/unicase/test-mapping-part1.h: New file.
47029         * tests/unicase/test-mapping-part2.h: New file.
47030
47031         New module 'unicase/totitle'.
47032         * modules/unicase/totitle: New file.
47033         * lib/unicase/totitle.c: New file.
47034
47035         New module 'unicase/tolower'.
47036         * modules/unicase/tolower: New file.
47037         * lib/unicase/tolower.c: New file.
47038
47039         New module 'unicase/toupper'.
47040         * modules/unicase/toupper: New file.
47041         * lib/unicase/toupper.c: New file.
47042         * lib/unicase/simple-mapping.h: New file.
47043
47044         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47045         (mapping_table): New structure.
47046         (output_simple_mapping): New function.
47047         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47048         * modules/gen-uni-tables (Description): Update.
47049         * lib/unicase/toupper.h: New file, automatically generated by
47050         gen-uni-tables.
47051         * lib/unicase/tolower.h: New file, automatically generated by
47052         gen-uni-tables.
47053         * lib/unicase/totitle.h: New file, automatically generated by
47054         gen-uni-tables.
47055         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47056         gen-uni-tables.
47057         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47058         gen-uni-tables.
47059         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47060         gen-uni-tables.
47061
47062         New module 'unicase/base'.
47063         * modules/unicase/base: New file.
47064         * lib/unicase.h: New file.
47065
47066 2009-02-08  Bruno Haible  <bruno@clisp.org>
47067
47068         New module 'uniwbrk/ulc-wordbreaks'.
47069         * modules/uniwbrk/ulc-wordbreaks: New file.
47070         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47071
47072         New module 'uniwbrk/u32-wordbreaks'.
47073         * modules/uniwbrk/u32-wordbreaks: New file.
47074         * lib/uniwbrk/u32-wordbreaks.c: New file.
47075
47076         New module 'uniwbrk/u16-wordbreaks'.
47077         * modules/uniwbrk/u16-wordbreaks: New file.
47078         * lib/uniwbrk/u16-wordbreaks.c: New file.
47079
47080         New module 'uniwbrk/u8-wordbreaks'.
47081         * modules/uniwbrk/u8-wordbreaks: New file.
47082         * lib/uniwbrk/u8-wordbreaks.c: New file.
47083         * lib/uniwbrk/u-wordbreaks.h: New file.
47084
47085         New module 'uniwbrk/table'.
47086         * modules/uniwbrk/table: New file.
47087         * lib/uniwbrk/wbrktable.h: New file.
47088         * lib/uniwbrk/wbrktable.c: New file.
47089
47090         New module 'uniwbrk/wordbreak-property'.
47091         * modules/uniwbrk/wordbreak-property: New file.
47092         * lib/uniwbrk/wordbreak-property.c: New file.
47093
47094         * lib/gen-uni-tables.c (WBP_*): New enum items.
47095         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47096         (unicode_org_wbp): New variable.
47097         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47098         New functions.
47099         (wbp_table): New structure.
47100         (output_wbp, output_wbrk_tables): New functions.
47101         (main): Accept additional argument. Invoke fill_org_wbp,
47102         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47103         output_wbrk_tables.
47104         * modules/gen-uni-tables (Description): Update.
47105         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47106         gen-uni-tables.
47107
47108         New module 'uniwbrk/base'.
47109         * modules/uniwbrk/base: New file.
47110         * lib/uniwbrk.h: New file.
47111
47112 2009-02-08  Bruno Haible  <bruno@clisp.org>
47113
47114         Update to Unicode 5.1.0.
47115         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47116         U+2185..U+2188.
47117         (is_property_default_ignorable_code_point): Don't include characters
47118         of category Cc or Cs and not-a-characters.
47119         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47120         U+0D79, U+109E, U+109F, U+A60C.
47121         * lib/unictype/bidi_of.h: Regenerated.
47122         * lib/unictype/blocks.h: Regenerated.
47123         * lib/unictype/categ_C.h: Regenerated.
47124         * lib/unictype/categ_Cf.h: Regenerated.
47125         * lib/unictype/categ_Cn.h: Regenerated.
47126         * lib/unictype/categ_L.h: Regenerated.
47127         * lib/unictype/categ_Ll.h: Regenerated.
47128         * lib/unictype/categ_Lm.h: Regenerated.
47129         * lib/unictype/categ_Lo.h: Regenerated.
47130         * lib/unictype/categ_Lu.h: Regenerated.
47131         * lib/unictype/categ_M.h: Regenerated.
47132         * lib/unictype/categ_Mc.h: Regenerated.
47133         * lib/unictype/categ_Me.h: Regenerated.
47134         * lib/unictype/categ_Mn.h: Regenerated.
47135         * lib/unictype/categ_N.h: Regenerated.
47136         * lib/unictype/categ_Nd.h: Regenerated.
47137         * lib/unictype/categ_Nl.h: Regenerated.
47138         * lib/unictype/categ_No.h: Regenerated.
47139         * lib/unictype/categ_P.h: Regenerated.
47140         * lib/unictype/categ_Pd.h: Regenerated.
47141         * lib/unictype/categ_Pe.h: Regenerated.
47142         * lib/unictype/categ_Pf.h: Regenerated.
47143         * lib/unictype/categ_Pi.h: Regenerated.
47144         * lib/unictype/categ_Po.h: Regenerated.
47145         * lib/unictype/categ_Ps.h: Regenerated.
47146         * lib/unictype/categ_S.h: Regenerated.
47147         * lib/unictype/categ_Sk.h: Regenerated.
47148         * lib/unictype/categ_Sm.h: Regenerated.
47149         * lib/unictype/categ_So.h: Regenerated.
47150         * lib/unictype/categ_of.h: Regenerated.
47151         * lib/unictype/combining.h: Regenerated.
47152         * lib/unictype/ctype_alnum.h: Regenerated.
47153         * lib/unictype/ctype_alpha.h: Regenerated.
47154         * lib/unictype/ctype_graph.h: Regenerated.
47155         * lib/unictype/ctype_lower.h: Regenerated.
47156         * lib/unictype/ctype_print.h: Regenerated.
47157         * lib/unictype/ctype_punct.h: Regenerated.
47158         * lib/unictype/ctype_upper.h: Regenerated.
47159         * lib/unictype/decdigit.h: Regenerated.
47160         * lib/unictype/digit.h: Regenerated.
47161         * lib/unictype/mirror.h: Regenerated.
47162         * lib/unictype/numeric.h: Regenerated.
47163         * lib/unictype/pr_alphabetic.h: Regenerated.
47164         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47165         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47166         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47167         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47168         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47169         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47170         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47171         * lib/unictype/pr_combining.h: Regenerated.
47172         * lib/unictype/pr_dash.h: Regenerated.
47173         * lib/unictype/pr_decimal_digit.h: Regenerated.
47174         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47175         * lib/unictype/pr_deprecated.h: Regenerated.
47176         * lib/unictype/pr_diacritic.h: Regenerated.
47177         * lib/unictype/pr_extender.h: Regenerated.
47178         * lib/unictype/pr_format_control.h: Regenerated.
47179         * lib/unictype/pr_grapheme_base.h: Regenerated.
47180         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47181         * lib/unictype/pr_grapheme_link.h: Regenerated.
47182         * lib/unictype/pr_id_continue.h: Regenerated.
47183         * lib/unictype/pr_id_start.h: Regenerated.
47184         * lib/unictype/pr_ideographic.h: Regenerated.
47185         * lib/unictype/pr_ignorable_control.h: Regenerated.
47186         * lib/unictype/pr_lowercase.h: Regenerated.
47187         * lib/unictype/pr_math.h: Regenerated.
47188         * lib/unictype/pr_numeric.h: Regenerated.
47189         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47190         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47191         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47192         * lib/unictype/pr_other_id_continue.h: Regenerated.
47193         * lib/unictype/pr_other_lowercase.h: Regenerated.
47194         * lib/unictype/pr_other_math.h: Regenerated.
47195         * lib/unictype/pr_punctuation.h: Regenerated.
47196         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47197         * lib/unictype/pr_soft_dotted.h: Regenerated.
47198         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47199         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47200         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47201         * lib/unictype/pr_uppercase.h: Regenerated.
47202         * lib/unictype/pr_xid_continue.h: Regenerated.
47203         * lib/unictype/pr_xid_start.h: Regenerated.
47204         * lib/unictype/pr_zero_width.h: Regenerated.
47205         * lib/unictype/scripts.h: Regenerated.
47206         * lib/unictype/scripts_byname.gperf: Regenerated.
47207         * lib/unictype/sy_java_ident.h: Regenerated.
47208         * lib/unilbrk/lbrkprop1.h: Regenerated.
47209         * lib/unilbrk/lbrkprop2.h: Regenerated.
47210         * tests/unictype/test-categ_C.c: Regenerated.
47211         * tests/unictype/test-categ_Cf.c: Regenerated.
47212         * tests/unictype/test-categ_Cn.c: Regenerated.
47213         * tests/unictype/test-categ_L.c: Regenerated.
47214         * tests/unictype/test-categ_Ll.c: Regenerated.
47215         * tests/unictype/test-categ_Lm.c: Regenerated.
47216         * tests/unictype/test-categ_Lo.c: Regenerated.
47217         * tests/unictype/test-categ_Lu.c: Regenerated.
47218         * tests/unictype/test-categ_M.c: Regenerated.
47219         * tests/unictype/test-categ_Mc.c: Regenerated.
47220         * tests/unictype/test-categ_Me.c: Regenerated.
47221         * tests/unictype/test-categ_Mn.c: Regenerated.
47222         * tests/unictype/test-categ_N.c: Regenerated.
47223         * tests/unictype/test-categ_Nd.c: Regenerated.
47224         * tests/unictype/test-categ_Nl.c: Regenerated.
47225         * tests/unictype/test-categ_No.c: Regenerated.
47226         * tests/unictype/test-categ_P.c: Regenerated.
47227         * tests/unictype/test-categ_Pd.c: Regenerated.
47228         * tests/unictype/test-categ_Pe.c: Regenerated.
47229         * tests/unictype/test-categ_Pf.c: Regenerated.
47230         * tests/unictype/test-categ_Pi.c: Regenerated.
47231         * tests/unictype/test-categ_Po.c: Regenerated.
47232         * tests/unictype/test-categ_Ps.c: Regenerated.
47233         * tests/unictype/test-categ_S.c: Regenerated.
47234         * tests/unictype/test-categ_Sk.c: Regenerated.
47235         * tests/unictype/test-categ_Sm.c: Regenerated.
47236         * tests/unictype/test-categ_So.c: Regenerated.
47237         * tests/unictype/test-ctype_alnum.c: Regenerated.
47238         * tests/unictype/test-ctype_alpha.c: Regenerated.
47239         * tests/unictype/test-ctype_graph.c: Regenerated.
47240         * tests/unictype/test-ctype_lower.c: Regenerated.
47241         * tests/unictype/test-ctype_print.c: Regenerated.
47242         * tests/unictype/test-ctype_punct.c: Regenerated.
47243         * tests/unictype/test-ctype_upper.c: Regenerated.
47244         * tests/unictype/test-decdigit.h: Regenerated.
47245         * tests/unictype/test-digit.h: Regenerated.
47246         * tests/unictype/test-numeric.h: Regenerated.
47247         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47248         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47249         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47250         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47251         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47252         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47253         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47254         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47255         * tests/unictype/test-pr_combining.c: Regenerated.
47256         * tests/unictype/test-pr_dash.c: Regenerated.
47257         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47258         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47259         * tests/unictype/test-pr_deprecated.c: Regenerated.
47260         * tests/unictype/test-pr_diacritic.c: Regenerated.
47261         * tests/unictype/test-pr_extender.c: Regenerated.
47262         * tests/unictype/test-pr_format_control.c: Regenerated.
47263         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47264         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47265         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47266         * tests/unictype/test-pr_id_continue.c: Regenerated.
47267         * tests/unictype/test-pr_id_start.c: Regenerated.
47268         * tests/unictype/test-pr_ideographic.c: Regenerated.
47269         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47270         * tests/unictype/test-pr_lowercase.c: Regenerated.
47271         * tests/unictype/test-pr_math.c: Regenerated.
47272         * tests/unictype/test-pr_numeric.c: Regenerated.
47273         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47274         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47275         Regenerated.
47276         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47277         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47278         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47279         * tests/unictype/test-pr_other_math.c: Regenerated.
47280         * tests/unictype/test-pr_punctuation.c: Regenerated.
47281         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47282         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47283         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47284         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47285         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47286         * tests/unictype/test-pr_uppercase.c: Regenerated.
47287         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47288         * tests/unictype/test-pr_xid_start.c: Regenerated.
47289         * tests/unictype/test-pr_zero_width.c: Regenerated.
47290
47291         Update to Unicode 5.1.0.
47292         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47293         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47294         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47295         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47296         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47297         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47298         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47299         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47300         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47301         (nonspacing_table_ind): Update.
47302         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47303
47304         Update to Unicode 5.1.0.
47305         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47306         code transform.
47307         * lib/uniname/uniname.c (unicode_character_name,
47308         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47309         * lib/uniname/uninames.h: Regenerated.
47310         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47311
47312 2009-02-07  Bruno Haible  <bruno@clisp.org>
47313
47314         Merge gen-ctype and gen-lbrk into a single program.
47315         * lib/gen-uni-tables.c: New file, incorporating
47316         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47317         Add directory prefixes to the names of the generated files.
47318         * lib/unictype/gen-ctype.c: Remove file.
47319         * lib/unilbrk/gen-lbrk.c: Remove file.
47320         * modules/gen-uni-tables: New file.
47321         * modules/unictype/gen-ctype: Remove file.
47322         * modules/unilbrk/gen-lbrk: Remove file.
47323
47324 2009-02-07  Bruno Haible  <bruno@clisp.org>
47325
47326         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47327
47328         New module 'unistr/u32-strcoll'.
47329         * modules/unistr/u32-strcoll: New file.
47330         * lib/unistr/u32-strcoll.c: New file.
47331
47332         New module 'unistr/u16-strcoll'.
47333         * modules/unistr/u16-strcoll: New file.
47334         * lib/unistr/u16-strcoll.c: New file.
47335
47336         New module 'unistr/u8-strcoll'.
47337         * modules/unistr/u8-strcoll: New file.
47338         * lib/unistr/u8-strcoll.c: New file.
47339         * lib/unistr/u-strcoll.h: New file.
47340
47341 2009-02-07  Bruno Haible  <bruno@clisp.org>
47342
47343         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47344         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47345         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47346         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47347         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47348         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47349
47350 2009-02-07  Bruno Haible  <bruno@clisp.org>
47351
47352         Make 64-bit clean.
47353         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47354         output_combclass, output_bidi_category, output_decimal_digit,
47355         output_digit, output_numeric, output_mirror, output_scripts,
47356         output_ident_category): Use proper width specifier in format strings.
47357
47358 2009-02-07  Bruno Haible  <bruno@clisp.org>
47359
47360         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47361         failure behaviour.
47362
47363 2009-02-07  Jim Meyering  <meyering@redhat.com>
47364
47365         regex: avoid compilation failure with upcoming gcc-4.4
47366         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47367         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47368         "... error: integer overflow in preprocessor expression".
47369
47370 2009-02-05  Ben Pfaff  <blp@gnu.org>
47371
47372         Fix link errors on Windows when close module is used.
47373         * modules/close: Add $(LIB_CLOSE) to Link section.
47374         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47375         $(LIB_CLOSE) on Windows.
47376
47377 2009-02-05  Jim Meyering  <meyering@redhat.com>
47378
47379         still avoid unused-parameter warnings, but do it cleanly
47380         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47381         (get_fs_usage): Cast to void instead.
47382         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47383         (dev_from_mount_options, read_file_system_list): Cast to void.
47384         Prompted by Bruno Haible.
47385
47386 2009-02-04  Jim Meyering  <meyering@redhat.com>
47387
47388         fsusage.c: correct copyright year
47389         * lib/fsusage.c: Reflect year in which the change is pushed into
47390
47391         avoid misc. warnings
47392         * lib/fsusage.c (UNUSED_PARAM): Define.
47393         (get_fs_usage): Mark parameter "disk" as unused.
47394         * lib/getugroups.c (getgrent): Use "void" in prototype.
47395         * lib/mountlist.c: Mark unused parameters.
47396         (read_file_system_list): Declare a local with "const".
47397         * lib/nanosleep.c (getnow): Declare static.
47398         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47399
47400         dirfd: set errno upon failure
47401         * lib/dirfd.c: Include <errno.h>.
47402         Set errno to ENOTSUP when returning -1.
47403         * modules/dirfd (Depends-on): Add errno.
47404         Suggested by John Kodis <kodis@comcast.net>.
47405
47406 2009-02-01  Bruno Haible  <bruno@clisp.org>
47407
47408         Don't assume sizeof (long) >= sizeof (void *).
47409         * lib/memcmp.c: Include stdint.h.
47410         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47411         srcp2 to 'const byte *'.
47412         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47413         types to uintptr_t.
47414         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47415         * modules/memcmp (Depends-on): Add stdint.
47416         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47417
47418 2009-01-30  Eric Blake  <ebb9@byu.net>
47419
47420         fix more require-before-expand issues
47421         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47422         expand, AC_PROG_AWK.
47423         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47424
47425 2009-01-28  Eric Blake  <ebb9@byu.net>
47426
47427         version-etc: use consistent URL formatting
47428         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47429         Improve formatting.  Use fputs for string without %.
47430
47431 2009-01-28  Jim Meyering  <meyering@redhat.com>
47432
47433         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47434         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47435         "underquoted definition of NAME" from autoconf-2.59.
47436
47437 2009-01-28  Bruno Haible  <bruno@clisp.org>
47438
47439         * doc/gnulib.texi: Add "Obsolete modules" to index.
47440
47441 2009-01-28  Jim Meyering  <meyering@redhat.com>
47442
47443         useless-if-before-free: recognize more variants
47444         * build-aux/useless-if-before-free: Also recognize e.g.,
47445         if (NULL != p) free (p);
47446
47447 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47448
47449         test-getaddrinfo: skip (don't fail) this test when there's no network
47450         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47451         on the presumption that it means you lack network access.
47452
47453 2009-01-26  Jim Meyering  <meyering@redhat.com>
47454
47455         fflush: avoid warnings on modern systems
47456         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47457         pos and result, into scopes where they're used.
47458
47459 2009-01-26  Eric Blake  <ebb9@byu.net>
47460
47461         Silence warning reintroduced by recent extensions patch.
47462         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47463         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47464         autoconf.
47465
47466         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47467         * m4/00gnulib.m4: New file.
47468         * gnulib-tool (func_get_filelist): Always use it.
47469         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47470         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47471
47472 2009-01-25  Bruno Haible  <bruno@clisp.org>
47473
47474         Make test-quotearg work on MacOS X and AIX.
47475         * tests/test-quotearg.sh: New file.
47476         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47477         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47478         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47479         include <libintl.h>.
47480         (fake_locale): Remove variable.
47481         (gettext, dgettext, dcgettext): Remove functions.
47482         (main): Instead of setting a fake locale, set a real locale. Call
47483         textdomain and bindtextdomain.
47484         * modules/quotearg-tests (Files): Add the new files.
47485         (Depends-on): Add gettext, setenv, unsetenv.
47486         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47487         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47488         Augment TESTS_ENVIRONMENT.
47489
47490 2009-01-25  Bruno Haible  <bruno@clisp.org>
47491
47492         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47493         fr_FR.ISO8859-1 locale on MacOS X.
47494         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47495         ja_JP.eucJP locale on MacOS X.
47496         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47497         zh_CN.GB18030 locale on MacOS X.
47498
47499 2009-01-25  Bruno Haible  <bruno@clisp.org>
47500
47501         Avoid link errors on MacOS X 10.3.
47502         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47503         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47504
47505 2009-01-25  Bruno Haible  <bruno@clisp.org>
47506
47507         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47508         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47509         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47510         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47511         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47512         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47513         posix_spawnattr_init, posix_spawnattr_setsigmask,
47514         posix_spawnattr_setflags, posix_spawnattr_destroy.
47515
47516         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47517         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47518         * modules/execute (Files): Remove m4/posix_spawn.m4.
47519         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47520         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47521         posix_spawnattr_init, posix_spawnattr_setsigmask,
47522         posix_spawnattr_setflags, posix_spawnattr_destroy.
47523
47524 2009-01-25  Bruno Haible  <bruno@clisp.org>
47525
47526         * lib/glthread/threadlib.c: Include <stdlib.h>.
47527
47528 2009-01-25  Bruno Haible  <bruno@clisp.org>
47529
47530         * lib/glthread/threadlib.c (dummy): New declaration.
47531
47532 2009-01-25  Bruno Haible  <bruno@clisp.org>
47533
47534         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47535         multibyte characters also for the GB18030 encoding. Don't crash when
47536         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47537
47538 2009-01-25  Bruno Haible  <bruno@clisp.org>
47539
47540         Avoid redefining 'struct random_data' on OSF/1 5.1.
47541         * lib/stdlib.in.h: Include <random.h> if it exists.
47542         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47543         HAVE_RANDOM_H. Include <random.h> when testing whether
47544         'struct random_data' exists.
47545         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47546
47547 2009-01-25  Bruno Haible  <bruno@clisp.org>
47548
47549         Don't install charset.alias on MacOS X >= 10.3.
47550         * lib/localcharset.c (DARWIN7): New macro.
47551         (get_charset_aliases): Hardcode the result for Darwin7.
47552         * modules/localcharset (install-exec-local): Don't install
47553         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47554
47555 2009-01-25  Bruno Haible  <bruno@clisp.org>
47556
47557         Don't install charset.alias on mingw and Cygwin.
47558         * modules/localcharset (install-exec-local): Don't install
47559         charset.alias on mingw and Cygwin, if the file does not yet exist.
47560         The result for these platforms is hardcoded in localcharset.c.
47561
47562 2009-01-25  Bruno Haible  <bruno@clisp.org>
47563
47564         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47565         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47566         before requiring AC_USE_SYSTEM_EXTENSIONS.
47567
47568 2009-01-25  Jim Meyering  <meyering@redhat.com>
47569
47570         c-strtod: avoid warnings
47571         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47572         "assignment discards qualifiers from pointer target type" warnings.
47573
47574 2009-01-24  Bruno Haible  <bruno@clisp.org>
47575
47576         Add support for non-UTF-8 locales on MacOS X.
47577         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47578         canonical encodings. For Darwin 7 and newer, don't map traditional
47579         encodings to UTF-8.
47580         Reported by Vincent Lefevre <vincent@vinc17.org>
47581         at <http://savannah.gnu.org/bugs/?25235>.
47582
47583 2009-01-24  Bruno Haible  <bruno@clisp.org>
47584
47585         * doc/gnulib.texi (Obsolete modules): New section.
47586         Reported by Mike Frysinger <vapier@gentoo.org>.
47587
47588 2009-01-24  Bruno Haible  <bruno@clisp.org>
47589
47590         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47591         (%.dvi): New rule.
47592
47593 2009-01-24  Bruno Haible  <bruno@clisp.org>
47594
47595         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47596         Reported by Eric Blake.
47597
47598 2009-01-24  Bruno Haible  <bruno@clisp.org>
47599
47600         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47601         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47602         Reported by Gary V. Vaughan <gary@gnu.org>.
47603
47604 2009-01-24  Bruno Haible  <bruno@clisp.org>
47605
47606         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47607
47608 2009-01-23  Bruno Haible  <bruno@clisp.org>
47609
47610         Make c-strtod, c-strtold usable in libraries.
47611         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47612         (C_STRTOD): Call strdup instead of xstrdup.
47613         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47614         * modules/c-strtold (Depends-on): Likewise.
47615         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47616         * NEWS: Mention the change.
47617         Reported by Michael Gold <mgold@ncf.ca>.
47618
47619 2009-01-23  Jim Meyering  <meyering@redhat.com>
47620
47621         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47622         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47623         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47624
47625 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47626
47627         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47628         GNU CoreUtils.
47629         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47630         * modules/version-etc (Description): Update.
47631
47632 2009-01-22  Bruno Haible  <bruno@clisp.org>
47633
47634         Cache the C locale object.
47635         * lib/c-strtod.c (c_locale_cache): New variable.
47636         (c_locale): New function.
47637         (C_STRTOD): Use it, and don't call freelocale.
47638         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47639         Suggested by Paolo Bonzini.
47640
47641 2009-01-21  Bruno Haible  <bruno@clisp.org>
47642
47643         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47644         conditions other than overflow.
47645
47646 2009-01-21  Bruno Haible  <bruno@clisp.org>
47647
47648         * lib/c-strtod.c: Include errno.h.
47649         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47650         value from STRTOD_L and STRTOD.
47651
47652 2009-01-21  Bruno Haible  <bruno@clisp.org>
47653         and Jim Meyering  <meyering@redhat.com>
47654
47655         nanosleep: skip configure test (fail it) for apple universal builds
47656         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47657         universal builds, assume that nanosleep does not work.
47658         * modules/nanosleep (Depends-on): Add multiarch.
47659
47660         mktime: skip configure test (fail it) for apple universal builds
47661         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47662         universal builds, assume that mktime does not work.
47663         * modules/mktime (Depends-on): Add multiarch.
47664
47665 2009-01-21  Eric Blake  <ebb9@byu.net>
47666
47667         multiarch: avoid expand-before-require warning
47668         * modules/multiarch (configure.ac): Require, rather than expand,
47669         gl_MULTIARCH.
47670         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47671         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47672         enforce that all clients require it.  Partial reversion of
47673         2008-12-29 patch.
47674
47675         error: avoid expand-before-require warning
47676         * modules/errno (configure.ac): Require, rather than expand,
47677         gl_HEADER_ERRNO_H.
47678         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47679         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47680         enforce that all clients require it.
47681
47682         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47683         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47684         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47685         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47686
47687 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47688
47689         Revert:
47690         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47691
47692         regex: do not depend on obsolete modules.
47693         * modules/regex: Remove memcmp and memmove.
47694
47695 2009-01-20  Bruno Haible  <bruno@clisp.org>
47696
47697         Make the 'link' module link on Windows NT 4.
47698         * lib/link.c (_WIN32_WINNT): Don't define.
47699         (CreateHardLinkFuncType): New type.
47700         (CreateHardLinkFunc, initialized): New variables.
47701         (initialize): New function.
47702         (link): Invoke CreateHardLink indirectly through the function pointer.
47703
47704 2009-01-20  Bruno Haible  <bruno@clisp.org>
47705
47706         Fix compilation failure on mingw.
47707         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47708
47709 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47710
47711         * doc/c-strtod.texi: Mention a couple of restrictions.
47712
47713 2009-01-20  Jim Meyering  <meyering@redhat.com>
47714
47715         gettimeofday: move more declarations out of functions
47716         * lib/gettimeofday.c: Move extern declarations of tzset and
47717         gmtime out of containing functions.  Prompted by Bruno Haible.
47718
47719 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47720
47721         regex: do not depend on obsolete modules.
47722         * modules/regex: Remove memcmp and memmove.
47723
47724 2009-01-19  Bruno Haible  <bruno@clisp.org>
47725
47726         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47727         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47728         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47729         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47730         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47731
47732 2009-01-19  Bruno Haible  <bruno@clisp.org>
47733
47734         * tests/test-link.c: Include <errno.h>.
47735         (main): Exit with code 77 when a hard link cannot be created due to
47736         the file system.
47737         * tests/test-link.sh: Skip test when a hard link cannot be created due
47738         to the file system.
47739         Suggested by Eric Blake.
47740
47741 2009-01-19  Martin Lambers  <marlam@marlam.de>
47742
47743         * modules/link-tests: New file.
47744         * tests/test-link.sh: New file.
47745         * tests/test-link.c: New file.
47746
47747 2009-01-19  Eric Blake  <ebb9@byu.net>
47748
47749         doc: mention another function added in cygwin 1.7.0
47750         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47751         Another new function in cygwin 1.7.
47752
47753 2009-01-19  Bruno Haible  <bruno@clisp.org>
47754
47755         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47756         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47757         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47758         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47759         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47760         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47761         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47762         * m4/md4.m4 (gl_MD4): Likewise.
47763         * m4/md5.m4 (gl_MD5): Likewise.
47764         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47765         * m4/sha1.m4 (gl_SHA1): Likewise.
47766         * m4/sha256.m4 (gl_SHA256): Likewise.
47767         * m4/sha512.m4 (gl_SHA512): Likewise.
47768
47769 2009-01-19  Bruno Haible  <bruno@clisp.org>
47770
47771         * modules/uniname/uniname-tests (Depends-on): Add progname.
47772         * tests/uniname/test-uninames.c: Include progname.h.
47773         (main): Call set_program_name.
47774
47775         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47776         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47777         (main): Call set_program_name.
47778
47779         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47780         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47781         (main): Call set_program_name.
47782
47783         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47784         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47785         (main): Call set_program_name.
47786
47787         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47788         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47789         (main): Call set_program_name.
47790
47791         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47792         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47793         (main): Call set_program_name.
47794
47795         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47796         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47797         (main): Call set_program_name.
47798
47799         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47800         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47801         (main): Call set_program_name.
47802
47803         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47804         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47805         (main): Call set_program_name.
47806
47807 2009-01-19  Eric Blake  <ebb9@byu.net>
47808
47809         test-unistd: test previous patch
47810         * tests/test-unistd.c: Test *_FILENO macros.
47811
47812         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47813         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47814         Guarantee a definition.
47815         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47816         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47817         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47818         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47819         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47820         Likewise.
47821         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47822         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47823         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47824         Likewise.
47825         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47826         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47827         (STDERR_FILENO): Likewise.
47828         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47829         (STDERR_FILENO): Likewise.
47830         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47831         (STDERR_FILENO): Likewise.
47832         Reported by Elbert Pol.
47833
47834 2009-01-19  Eric Blake  <ebb9@byu.net>
47835
47836         doc: mention more functions added in cygwin 1.7.0
47837         * doc/posix-functions/abort.texi (abort): Update wording related
47838         to cygwin.
47839         * doc/posix-functions/daylight.texi (daylight): Likewise.
47840         * doc/posix-functions/optarg.texi (optarg): Likewise.
47841         * doc/posix-functions/optarg.texi (opterr): Likewise.
47842         * doc/posix-functions/optarg.texi (optind): Likewise.
47843         * doc/posix-functions/optarg.texi (optopt): Likewise.
47844         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47845         worked in 1.5.x, and was withdrawn in 1.7.
47846         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47847         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47848         cygwin versions.
47849         * doc/posix-functions/perror.texi (perror): Likewise.
47850         * doc/posix-functions/printf.texi (printf): Likewise.
47851         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47852         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47853         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47854         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47855         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47856         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47857         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47858         Likewise.
47859         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47860         Likewise.
47861         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47862         this function.
47863         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47864         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47865         Likewise.
47866         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47867         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47868         * doc/posix-functions/confstr.texi (confstr): Likewise.
47869         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47870         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47871         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47872         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47873         * doc/posix-functions/fputws.texi (fputws): Likewise.
47874         * doc/posix-functions/fwide.texi (fwide): Likewise.
47875         * doc/posix-functions/getwc.texi (getwc): Likewise.
47876         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47877         * doc/posix-functions/putwc.texi (putwc): Likewise.
47878         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47879         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47880         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47881         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47882         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47883         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47884         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47885         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47886         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47887         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47888         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47889
47890 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47891
47892         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47893         * lib/ioctl.c: Include <sys/ioctl.h>.
47894
47895 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47896
47897         * modules/getdate-tests (Depends-on): Add progname.
47898         * tests/test-getdate.c: Use progname module, to avoid link errors
47899         on non-glibc systems.
47900
47901 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47902
47903         * modules/filenamecat-tests (Depends-on): Add progname.
47904         * modules/fstrcmp-tests (Depends-on): Likewise.
47905
47906         * tests/test-filenamecat.c: Use progname module, to avoid link
47907         errors on non-glibc systems.
47908         * tests/test-fstrcmp.c: Likewise.
47909
47910 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47911
47912         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47913         * lib/gettimeofday.c: Move extern declaration out of function.
47914
47915 2009-01-18  Bruno Haible  <bruno@clisp.org>
47916
47917         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47918         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47919         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47920
47921 2009-01-18  Bruno Haible  <bruno@clisp.org>
47922
47923         * lib/strftime.c (MEMPCPY): Remove unused macro.
47924         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47925
47926 2009-01-18  Martin Lambers  <marlam@marlam.de>
47927
47928         New module 'link'.
47929         * lib/unistd.in.h (link): New declaration.
47930         * lib/link.c: New file.
47931         * m4/link.m4: New file.
47932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47933         HAVE_LINK.
47934         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47935         * modules/link: New file.
47936         * doc/posix-functions/link.texi: Mention the new module.
47937
47938 2009-01-18  Bruno Haible  <bruno@clisp.org>
47939
47940         * tests/test-avltree_list.c (main): Call set_program_name.
47941         * tests/test-avltree_oset.c (main): Likewise.
47942         * tests/test-obstack-printf.c: Include progname.h.
47943         (main): Call set_program_name.
47944         * tests/test-quotearg.c: Include progname.h.
47945         (main): Call set_program_name.
47946         * tests/test-xmemdup0.c: Include progname.h.
47947         (main): Call set_program_name.
47948
47949 2009-01-18  Bruno Haible  <bruno@clisp.org>
47950
47951         New module 'alphasort'.
47952         * lib/dirent.in.h (alphasort): New declaration.
47953         * lib/alphasort.c: New file, from glibc with modifications.
47954         * m4/alphasort.m4: New file.
47955         * modules/alphasort: New file.
47956         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47957         HAVE_ALPHASORT.
47958         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47959         HAVE_ALPHASORT.
47960         * doc/posix-functions/alphasort.texi: Mention the new module and the
47961         portability problems.
47962
47963 2009-01-18  Bruno Haible  <bruno@clisp.org>
47964
47965         New module 'scandir'.
47966         * lib/dirent.in.h (scandir): New declaration.
47967         * lib/scandir.c: New file, from glibc with modifications.
47968         * m4/scandir.m4: New file.
47969         * modules/scandir: New file.
47970         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47971         HAVE_SCANDIR.
47972         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47973         HAVE_SCANDIR.
47974         * doc/posix-functions/scandir.texi: Mention the new module and the
47975         portability problems.
47976
47977 2009-01-17  Bruno Haible  <bruno@clisp.org>
47978
47979         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47980         Update documentation.
47981         (func_remove_suffix): Escape all dots in the suffix. Update
47982         documentation.
47983         (func_filter_filelist): Update documentation.
47984         Reported by Ralf Wildenhues.
47985
47986 2009-01-17  Bruno Haible  <bruno@clisp.org>
47987
47988         * modules/dprintf-posix-tests: New file.
47989         * tests/test-dprintf-posix.sh: New file.
47990         * tests/test-dprintf-posix.c: New file.
47991
47992         New modules 'dprintf', 'dprintf-posix'.
47993         * lib/stdio.in.h (dprintf): New declaration.
47994         * lib/dprintf.c: New file.
47995         * m4/dprintf.m4: New file.
47996         * m4/dprintf-posix.m4: New file.
47997         * modules/dprintf: New file.
47998         * modules/dprintf-posix: New file.
47999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48000         HAVE_DPRINTF, REPLACE_DPRINTF.
48001         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48002         HAVE_DPRINTF, REPLACE_DPRINTF.
48003         * doc/posix-functions/dprintf.texi: Mention the new modules.
48004
48005 2009-01-17  Bruno Haible  <bruno@clisp.org>
48006
48007         * modules/vdprintf-posix-tests: New file.
48008         * tests/test-vdprintf-posix.sh: New file.
48009         * tests/test-vdprintf-posix.c: New file.
48010
48011         New modules 'vdprintf', 'vdprintf-posix'.
48012         * lib/stdio.in.h (vdprintf): New declaration.
48013         * lib/vdprintf.c: New file.
48014         * m4/vdprintf.m4: New file.
48015         * m4/vdprintf-posix.m4: New file.
48016         * modules/vdprintf: New file.
48017         * modules/vdprintf-posix: New file.
48018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48019         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48020         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48021         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48022         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48023
48024 2009-01-17  Bruno Haible  <bruno@clisp.org>
48025
48026         Fix replacement of fopen on mingw.
48027         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48028         mingw.
48029
48030 2009-01-17  Bruno Haible  <bruno@clisp.org>
48031
48032         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48033         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48034
48035 2009-01-17  Bruno Haible  <bruno@clisp.org>
48036
48037         Avoid test-fflush2.sh failure on mingw.
48038         * tests/test-fflush2.c: Include binary-io.h.
48039         (main): Put standard input into binary mode.
48040         * modules/fflush-tests (Depends-on): Add binary-io.
48041
48042 2009-01-17  Bruno Haible  <bruno@clisp.org>
48043
48044         * lib/wchar.in.h: In another particular situation, include only the
48045         system's <wchar.h> file.
48046         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48047         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48048         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48049
48050 2009-01-17  Bruno Haible  <bruno@clisp.org>
48051
48052         Support for stripping executables in --enable-relocatable.
48053         * build-aux/install-reloc: Expect one more argument, or an environment
48054         variable RELOC_STRIP_PROG. If set, strip the destination program and
48055         its wrapper.
48056         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48057         RELOC_STRIP_PROG.
48058         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48059         to set RELOCATABLE_STRIP.
48060         * NEWS: Mention the new Makefile requirement.
48061
48062 2009-01-17  Bruno Haible  <bruno@clisp.org>
48063
48064         * build-aux/install-reloc: Remove debugging information left over by
48065         C compiler on MacOS X.
48066
48067 2009-01-17  Bruno Haible  <bruno@clisp.org>
48068
48069         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48070         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48071         _NSGetExecutablePath.
48072
48073 2009-01-16  Jim Meyering  <meyering@redhat.com>
48074
48075         strerror: avoid warnings about discarding "const"
48076         * lib/strerror.c (rpl_strerror): Instead of returning a const
48077         string from each and every "case", use a variable, and add a single
48078         cast after the switch.
48079
48080 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48081
48082         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48083
48084 2009-01-16  Bruno Haible  <bruno@clisp.org>
48085
48086         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48087         array initializer syntax that also works in C++ mode.
48088         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48089
48090 2009-01-16  Jim Meyering  <meyering@redhat.com>
48091
48092         poll: suppress a warning
48093         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48094         to ignore "...unsigned expression < 0 is always false" warnings.
48095
48096 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48097
48098         poll: remove declarations of unused variables
48099         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48100         sockbuf and optlen.
48101
48102 2009-01-15  Bruno Haible  <bruno@clisp.org>
48103
48104         Make fflush-after-ungetc POSIX compliant on BSD systems.
48105         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48106         (clear_ungetc_buffer): Implement also for other systems.
48107         (rpl_fflush): On glibc systems, invoke
48108         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48109         clear_ungetc_buffer after fetching the stream's position, not before.
48110
48111 2009-01-15  Bruno Haible  <bruno@clisp.org>
48112
48113         Make fflush-after-ungetc POSIX compliant on glibc systems.
48114         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48115         after ungetc.
48116         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48117         (rpl_fflush): On glibc systems, simply call the system's fflush
48118         function after clearing the ungetc buffer.
48119         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48120         Instead, lseek only to the end of file, then use the system's fseeko
48121         for the rest. On glibc systems, reset the EOF indicator bit.
48122
48123 2009-01-15  Jim Meyering  <meyering@redhat.com>
48124
48125         openmp.m4: revert quote-adding change, for portability to older autoconf
48126         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48127         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48128         Simon Josefsson noticed the problem when using autoconf-2.61.
48129
48130 2009-01-15  Bruno Haible  <bruno@clisp.org>
48131
48132         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48133         * tests/test-fflush2.c (ASSERT): Always fail.
48134         (main): Add two tests for fflush() after ungetc(), taking into account
48135         the Austin Group's clarification.
48136         Suggested by Eric Blake.
48137
48138 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48139
48140         mktime.m4: remove K&R-style function prototypes
48141         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48142         for the Sun C++ compiler.
48143
48144 2009-01-14  Bruno Haible  <bruno@clisp.org>
48145
48146         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48147         while including <wchar.h>.
48148         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48149         the system's <wchar.h> file.
48150         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48151
48152 2009-01-14  Bruno Haible  <bruno@clisp.org>
48153
48154         * m4/csharp.m4: Don't mention gettext on the serial number line.
48155         * m4/csharpexec.m4: Likewise.
48156         * m4/eaccess.m4: Likewise.
48157         * m4/javaexec.m4: Likewise.
48158         * m4/sig_atomic_t.m4: Likewise.
48159         * m4/tmpdir.m4: Likewise.
48160         * m4/intldir.m4: Bump gettext version.
48161         * m4/lib-ld.m4: Likewise.
48162
48163 2009-01-14  Bruno Haible  <bruno@clisp.org>
48164
48165         * lib/progname.c (set_program_name): Add more comments.
48166         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48167
48168 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48169
48170         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48171         were sys/stat.h does not define it.
48172
48173 2009-01-14  Jim Meyering  <meyering@redhat.com>
48174
48175         many *.m4 files: improve m4 quoting
48176         99% of this change was performed by running the following commands:
48177         git ls-files | grep '\.m4$' | xargs perl -pi \
48178           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48179           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48180           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48181           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48182         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48183         The remainder were to add Copyright dates, increment serial numbers,
48184         undo some changes in comments, exclude m4/intl.m4, and add quotes
48185         around the "1" in ",1" where the unusual spacing prohibited the
48186         above regexps from doing the job.  For more details, see
48187         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48188         * m4/acl.m4: Modified.
48189         * m4/afs.m4: Likewise.
48190         * m4/alloca.m4: Likewise.
48191         * m4/argp.m4: Likewise.
48192         * m4/argz.m4: Likewise.
48193         * m4/atexit.m4: Likewise.
48194         * m4/bison-i18n.m4: Likewise.
48195         * m4/bison.m4: Likewise.
48196         * m4/byteswap.m4: Likewise.
48197         * m4/c-stack.m4: Likewise.
48198         * m4/c-strtod.m4: Likewise.
48199         * m4/calloc.m4: Likewise.
48200         * m4/canonicalize-lgpl.m4: Likewise.
48201         * m4/chown.m4: Likewise.
48202         * m4/clock_time.m4: Likewise.
48203         * m4/codeset.m4: Likewise.
48204         * m4/copy-file.m4: Likewise.
48205         * m4/csharp.m4: Likewise.
48206         * m4/csharpcomp.m4: Likewise.
48207         * m4/csharpexec.m4: Likewise.
48208         * m4/d-ino.m4: Likewise.
48209         * m4/d-type.m4: Likewise.
48210         * m4/dirfd.m4: Likewise.
48211         * m4/double-slash-root.m4: Likewise.
48212         * m4/eaccess.m4: Likewise.
48213         * m4/eealloc.m4: Likewise.
48214         * m4/environ.m4: Likewise.
48215         * m4/errno_h.m4: Likewise.
48216         * m4/euidaccess.m4: Likewise.
48217         * m4/execute.m4: Likewise.
48218         * m4/fatal-signal.m4: Likewise.
48219         * m4/fchdir.m4: Likewise.
48220         * m4/fcntl_h.m4: Likewise.
48221         * m4/fileblocks.m4: Likewise.
48222         * m4/filenamecat.m4: Likewise.
48223         * m4/findprog.m4: Likewise.
48224         * m4/flexmember.m4: Likewise.
48225         * m4/fnmatch.m4: Likewise.
48226         * m4/fopen.m4: Likewise.
48227         * m4/fpending.m4: Likewise.
48228         * m4/fprintf-posix.m4: Likewise.
48229         * m4/free.m4: Likewise.
48230         * m4/frexp.m4: Likewise.
48231         * m4/frexpl.m4: Likewise.
48232         * m4/fsusage.m4: Likewise.
48233         * m4/ftruncate.m4: Likewise.
48234         * m4/gc-camellia.m4: Likewise.
48235         * m4/gc-random.m4: Likewise.
48236         * m4/gc.m4: Likewise.
48237         * m4/getaddrinfo.m4: Likewise.
48238         * m4/getcwd-abort-bug.m4: Likewise.
48239         * m4/getcwd-path-max.m4: Likewise.
48240         * m4/getdate.m4: Likewise.
48241         * m4/getdomainname.m4: Likewise.
48242         * m4/getgroups.m4: Likewise.
48243         * m4/gethostname.m4: Likewise.
48244         * m4/gethrxtime.m4: Likewise.
48245         * m4/getline.m4: Likewise.
48246         * m4/getloadavg.m4: Likewise.
48247         * m4/getndelim2.m4: Likewise.
48248         * m4/getpass.m4: Likewise.
48249         * m4/gettext.m4: Likewise.
48250         * m4/gettime.m4: Likewise.
48251         * m4/gettimeofday.m4: Likewise.
48252         * m4/gnulib-common.m4: Likewise.
48253         * m4/group-member.m4: Likewise.
48254         * m4/host-os.m4: Likewise.
48255         * m4/iconv.m4: Likewise.
48256         * m4/iconv_open.m4: Likewise.
48257         * m4/inet_ntop.m4: Likewise.
48258         * m4/inet_pton.m4: Likewise.
48259         * m4/inline.m4: Likewise.
48260         * m4/intldir.m4: Likewise.
48261         * m4/intlmacosx.m4: Likewise.
48262         * m4/intmax.m4: Likewise.
48263         * m4/intmax_t.m4: Likewise.
48264         * m4/inttypes.m4: Likewise.
48265         * m4/inttypes_h.m4: Likewise.
48266         * m4/inttypes-pri.m4: Likewise.
48267         * m4/isapipe.m4: Likewise.
48268         * m4/isnand.m4: Likewise.
48269         * m4/isnanf.m4: Likewise.
48270         * m4/isnanl.m4: Likewise.
48271         * m4/javacomp.m4: Likewise.
48272         * m4/javaexec.m4: Likewise.
48273         * m4/jm-winsz1.m4: Likewise.
48274         * m4/jm-winsz2.m4: Likewise.
48275         * m4/lchown.m4: Likewise.
48276         * m4/lcmessage.m4: Likewise.
48277         * m4/ldexpl.m4: Likewise.
48278         * m4/lib-ld.m4: Likewise.
48279         * m4/lib-link.m4: Likewise.
48280         * m4/libsigsegv.m4: Likewise.
48281         * m4/link-follow.m4: Likewise.
48282         * m4/localcharset.m4: Likewise.
48283         * m4/locale-fr.m4: Likewise.
48284         * m4/locale-ja.m4: Likewise.
48285         * m4/locale-tr.m4: Likewise.
48286         * m4/locale-zh.m4: Likewise.
48287         * m4/lock.m4: Likewise.
48288         * m4/longlong.m4: Likewise.
48289         * m4/ls-mntd-fs.m4: Likewise.
48290         * m4/lstat.m4: Likewise.
48291         * m4/malloc.m4: Likewise.
48292         * m4/mathl.m4: Likewise.
48293         * m4/mbrtowc.m4: Likewise.
48294         * m4/mbstate_t.m4: Likewise.
48295         * m4/mbswidth.m4: Likewise.
48296         * m4/memchr.m4: Likewise.
48297         * m4/memcmp.m4: Likewise.
48298         * m4/memcpy.m4: Likewise.
48299         * m4/memmem.m4: Likewise.
48300         * m4/memmove.m4: Likewise.
48301         * m4/mempcpy.m4: Likewise.
48302         * m4/memrchr.m4: Likewise.
48303         * m4/memset.m4: Likewise.
48304         * m4/minmax.m4: Likewise.
48305         * m4/mkdir-slash.m4: Likewise.
48306         * m4/mkdtemp.m4: Likewise.
48307         * m4/mktime.m4: Likewise.
48308         * m4/mmap-anon.m4: Likewise.
48309         * m4/mountlist.m4: Likewise.
48310         * m4/nanosleep.m4: Likewise.
48311         * m4/nls.m4: Likewise.
48312         * m4/nocrash.m4: Likewise.
48313         * m4/open.m4: Likewise.
48314         * m4/openat.m4: Likewise.
48315         * m4/openmp.m4: Likewise.
48316         * m4/pathmax.m4: Likewise.
48317         * m4/perl.m4: Likewise.
48318         * m4/physmem.m4: Likewise.
48319         * m4/pipe.m4: Likewise.
48320         * m4/po.m4: Likewise.
48321         * m4/poll.m4: Likewise.
48322         * m4/posixtm.m4: Likewise.
48323         * m4/posixver.m4: Likewise.
48324         * m4/printf-frexp.m4: Likewise.
48325         * m4/printf-frexpl.m4: Likewise.
48326         * m4/printf-posix.m4: Likewise.
48327         * m4/printf-posix-rpl.m4: Likewise.
48328         * m4/printf.m4: Likewise.
48329         * m4/progtest.m4: Likewise.
48330         * m4/putenv.m4: Likewise.
48331         * m4/readline.m4: Likewise.
48332         * m4/readlink.m4: Likewise.
48333         * m4/readutmp.m4: Likewise.
48334         * m4/realloc.m4: Likewise.
48335         * m4/regex.m4: Likewise.
48336         * m4/relocatable.m4: Likewise.
48337         * m4/relocatable-lib.m4: Likewise.
48338         * m4/rename-dest-slash.m4: Likewise.
48339         * m4/rename.m4: Likewise.
48340         * m4/rmdir-errno.m4: Likewise.
48341         * m4/rmdir.m4: Likewise.
48342         * m4/roundf.m4: Likewise.
48343         * m4/roundl.m4: Likewise.
48344         * m4/rpmatch.m4: Likewise.
48345         * m4/save-cwd.m4: Likewise.
48346         * m4/selinux-selinux-h.m4: Likewise.
48347         * m4/setenv.m4: Likewise.
48348         * m4/settime.m4: Likewise.
48349         * m4/sig2str.m4: Likewise.
48350         * m4/sig_atomic_t.m4: Likewise.
48351         * m4/signalblocking.m4: Likewise.
48352         * m4/signbit.m4: Likewise.
48353         * m4/sigpipe.m4: Likewise.
48354         * m4/sockets.m4: Likewise.
48355         * m4/sockpfaf.m4: Likewise.
48356         * m4/st_dm_mode.m4: Likewise.
48357         * m4/stat-time.m4: Likewise.
48358         * m4/stdbool.m4: Likewise.
48359         * m4/stdint.m4: Likewise.
48360         * m4/stdint_h.m4: Likewise.
48361         * m4/stpcpy.m4: Likewise.
48362         * m4/stpncpy.m4: Likewise.
48363         * m4/strcase.m4: Likewise.
48364         * m4/strchrnul.m4: Likewise.
48365         * m4/strcspn.m4: Likewise.
48366         * m4/strdup.m4: Likewise.
48367         * m4/strftime.m4: Likewise.
48368         * m4/strndup.m4: Likewise.
48369         * m4/strnlen.m4: Likewise.
48370         * m4/strpbrk.m4: Likewise.
48371         * m4/strptime.m4: Likewise.
48372         * m4/strsep.m4: Likewise.
48373         * m4/strtod.m4: Likewise.
48374         * m4/strtoimax.m4: Likewise.
48375         * m4/strtok_r.m4: Likewise.
48376         * m4/strtol.m4: Likewise.
48377         * m4/strtoll.m4: Likewise.
48378         * m4/strtoul.m4: Likewise.
48379         * m4/strtoull.m4: Likewise.
48380         * m4/strtoumax.m4: Likewise.
48381         * m4/strverscmp.m4: Likewise.
48382         * m4/threadlib.m4: Likewise.
48383         * m4/timegm.m4: Likewise.
48384         * m4/tm_gmtoff.m4: Likewise.
48385         * m4/tmpdir.m4: Likewise.
48386         * m4/tmpfile.m4: Likewise.
48387         * m4/tzset.m4: Likewise.
48388         * m4/uintmax_t.m4: Likewise.
48389         * m4/unlinkdir.m4: Likewise.
48390         * m4/unlocked-io.m4: Likewise.
48391         * m4/uptime.m4: Likewise.
48392         * m4/userspec.m4: Likewise.
48393         * m4/utimbuf.m4: Likewise.
48394         * m4/utime.m4: Likewise.
48395         * m4/utimes-null.m4: Likewise.
48396         * m4/utimes.m4: Likewise.
48397         * m4/vararrays.m4: Likewise.
48398         * m4/vasnprintf.m4: Likewise.
48399         * m4/vfprintf-posix.m4: Likewise.
48400         * m4/vprintf-posix.m4: Likewise.
48401         * m4/wait-process.m4: Likewise.
48402         * m4/wchar_t.m4: Likewise.
48403         * m4/wint_t.m4: Likewise.
48404         * m4/write-any-file.m4: Likewise.
48405         * m4/yield.m4: Likewise.
48406
48407 2009-01-13  Bruno Haible  <bruno@clisp.org>
48408
48409         Avoid test-copy-file.sh failures when ACL support insufficient.
48410         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48411         TESTS_ENVIRONMENT.
48412         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48413         Reported by Jim Meyering.
48414
48415 2009-01-13  Bruno Haible  <bruno@clisp.org>
48416
48417         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48418         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48419         * modules/unistdio/u8-printf-parse (Files): Likewise.
48420         * modules/unistdio/u32-printf-parse (Files): Likewise.
48421         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48422
48423 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48424
48425         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48426         and m4/inttypes_h.m4 too.
48427
48428 2009-01-12  Eric Blake  <ebb9@byu.net>
48429
48430         tests: IRIX 6.2 cc can't compile -0.0 into .data
48431         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48432         rather than at compile-time.
48433         * tests/test-floorl.c (minus_zero): Likewise.
48434         * tests/test-frexpl.c (minus_zero): Likewise.
48435         * tests/test-isnan.c (minus_zerol): Likewise.
48436         * tests/test-isnanl.h (minus_zero): Likewise.
48437         * tests/test-ldexpl.c (minus_zero): Likewise.
48438         * tests/test-roundl.c (minus_zero): Likewise.
48439         * tests/test-signbit.c (minus_zerol): Likewise.
48440         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48441         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48442         * tests/test-truncl.c (minus_zero): Likewise.
48443         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48444         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48445         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48446
48447 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48448
48449         regex: fix glibc bug 9697
48450         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48451         handling.
48452
48453 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48454
48455         regex: fix glibc bug 697
48456         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48457         being NULL also if there are no backreferences.
48458
48459 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48460
48461         regex: merge glibc changes
48462         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48463         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48464         re_string_skip_chars, re_string_reconstruct): Likewise.
48465         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48466
48467 2009-01-07  Jim Meyering  <meyering@redhat.com>
48468
48469         poll: filter through cppi
48470         * lib/poll.c: Indent cpp directives to reflect nesting.
48471
48472 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48473
48474         poll: don't return uninitialized
48475         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48476
48477 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48478
48479         avoid compile failure on AIX 6.1
48480         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48481         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48482
48483 2009-01-04  Jim Meyering  <meyering@redhat.com>
48484
48485         remove duplicate inclusion of <stdio.h>
48486         * tests/test-fprintf-posix.c: Likewise.
48487         * tests/test-printf-posix.c: Likewise.
48488         * tests/test-snprintf-posix.c: Likewise.
48489         * tests/test-sprintf-posix.c: Likewise.
48490         * tests/test-vasprintf-posix.c: Likewise.
48491         * tests/test-vfprintf-posix.c: Likewise.
48492         * tests/test-vprintf-posix.c: Likewise.
48493         * tests/test-vsnprintf-posix.c: Likewise.
48494         * tests/test-vsprintf-posix.c: Likewise.
48495
48496 2009-01-03  Jim Meyering  <meyering@redhat.com>
48497
48498         gnulib-tool: fix sed-based filtering
48499         * gnulib-tool (func_filter_filelist): Remove extra backslash
48500         in sed_fff_filter definition.
48501
48502 2009-01-02  Jim Meyering  <meyering@redhat.com>
48503
48504         strftime: avoid compilation failure on Solaris 2.6
48505         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48506         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48507         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48508         be available.  Reported by Tom G. Christensen.  Details in
48509         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48510
48511 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48512             Bruno Haible  <bruno@clisp.org>
48513
48514         Speed up gnulib-tool by doing more string processing through shell
48515         built-ins.
48516         * gnulib-tool (fast_func_append): New variable.
48517         (func_remove_prefix, func_remove_suffix): New functions.
48518         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48519         (func_filter_filelist): New function.
48520         (func_get_dependencies): Use func_remove_suffix instead of sed.
48521         (func_get_automake_snippet): Use func_filter_filelist instead of a
48522         subshell and sed invocation.
48523
48524 2009-01-01  Bruno Haible  <bruno@clisp.org>
48525
48526         Fix a security bug.
48527         * gnulib-tool (func_import, import, update): Don't allow the characters
48528         '"', '$', '`', '\' in macro arguments that become part of commands that
48529         are evaluated.
48530
48531 2009-01-01  Bruno Haible  <bruno@clisp.org>
48532
48533         * gnulib-tool (func_reset_sigpipe): Add more comments.
48534
48535 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48536
48537         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48538         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48539         already know the answer.
48540
48541 2009-01-01  Jim Meyering  <meyering@redhat.com>
48542
48543         * lib/version-etc.c (version_etc_va): Update copyright year.
48544
48545 2008-12-30  Bruno Haible  <bruno@clisp.org>
48546
48547         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48548         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48549         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48550
48551 2008-12-29  Eric Blake  <ebb9@byu.net>
48552
48553         multiarch: avoid autoconf AC_REQUIRE bug
48554         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48555         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48556         2.63 and older.
48557         Reported by Bruno Haible, and analyzed in
48558         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48559
48560 2008-12-29  Bruno Haible  <bruno@clisp.org>
48561
48562         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48563         files in subdirectories correctly.
48564         Reported by Ralf Wildenhues.
48565
48566 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48567
48568         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48569         rather than 'join FILE -', for Solaris join.
48570
48571 2008-12-29  Bruno Haible  <bruno@clisp.org>
48572
48573         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48574         quoting.
48575         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48576         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48577         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48578         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48579         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48580         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48581         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48582         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48583         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48584         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48585         * m4/nls.m4 (AM_NLS): Likewise.
48586         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48587         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48588         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48589         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48590         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48591         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48592         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48593         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48594         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48595         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48596         * m4/xsize.m4 (gl_XSIZE): Likewise.
48597         Suggested by Jim Meyering.
48598
48599 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48600
48601         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48602         * lib/parse-duration.c: use a switch instead of cascading if's.
48603
48604 2008-12-29  Eric Blake  <ebb9@byu.net>
48605
48606         wchar.h: supply WEOF on Irix 5.3
48607         * lib/wchar.in.h (wint_t): Also supply WEOF.
48608         * lib/wctype.in.h (wint_t): Likewise.
48609         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48610         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48611         Reported by Tom G. Christensen.
48612
48613 2008-12-26  Bruno Haible  <bruno@clisp.org>
48614
48615         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48616         i486, i586, i686.
48617
48618 2008-12-26  Bruno Haible  <bruno@clisp.org>
48619
48620         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48621
48622 2008-12-26  Bruno Haible  <bruno@clisp.org>
48623
48624         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48625         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48626         not __STDC_CONSTANT_MACROS.
48627         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48628
48629 2008-12-25  Bruno Haible  <bruno@clisp.org>
48630
48631         Add support for universal builds to vasnprintf.
48632         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48633         universal builds, guess no.
48634         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48635         * modules/vasprintf-posix (Depends-on): Likewise.
48636         * modules/fprintf-posix (Depends-on): Likewise.
48637         * modules/vfprintf-posix (Depends-on): Likewise.
48638         * modules/snprintf-posix (Depends-on): Likewise.
48639         * modules/vsnprintf-posix (Depends-on): Likewise.
48640         * modules/sprintf-posix (Depends-on): Likewise.
48641         * modules/vsprintf-posix (Depends-on): Likewise.
48642         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48643         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48644         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48645         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48646         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48647         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48648         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48649
48650         Add support for universal builds to <inttypes.h>.
48651         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48652         _SCNu64_PREFIX): In Apple
48653         universal builds, define directly, using _LP64.
48654         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48655         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48656         * modules/inttypes (Depends-on): Add multiarch.
48657         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48658
48659         Add support for universal builds to <stdint.h>.
48660         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48661         universal builds, define directly, using _LP64.
48662         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48663         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48664         and size_t.
48665         * modules/stdint (Depends-on): Add multiarch.
48666         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48667
48668         New module 'multiarch'.
48669         * modules/multiarch: New file.
48670         * m4/multiarch.m4: New file.
48671
48672 2008-12-25  Bruno Haible  <bruno@clisp.org>
48673
48674         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48675
48676 2008-12-25  Bruno Haible  <bruno@clisp.org>
48677
48678         * modules/btowc (License): Relicense under LGPLv2+.
48679         * modules/mbsinit (License): Likewise.
48680         * modules/mbrtowc (License): Likewise.
48681         * modules/wcrtomb (License): Likewise.
48682         * modules/streq (License): Likewise.
48683         Reported by David Lutterkort <lutter@redhat.com>.
48684
48685 2008-12-23  Bruno Haible  <bruno@clisp.org>
48686
48687         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48688
48689 2008-12-23  Bruno Haible  <bruno@clisp.org>
48690
48691         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48692         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48693         GETADDRINFO_LIB, not in LIBS.
48694         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48695         * modules/canon-host (Link): Likewise.
48696         * NEWS: Mention the change.
48697         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48698         GETADDRINFO_LIB.
48699
48700 2008-12-22  Bruno Haible  <bruno@clisp.org>
48701
48702         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48703         * doc/posix-functions/iswalpha_l.texi: Likewise.
48704         * doc/posix-functions/iswblank_l.texi: Likewise.
48705         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48706         * doc/posix-functions/iswctype_l.texi: Likewise.
48707         * doc/posix-functions/iswdigit_l.texi: Likewise.
48708         * doc/posix-functions/iswgraph_l.texi: Likewise.
48709         * doc/posix-functions/iswlower_l.texi: Likewise.
48710         * doc/posix-functions/iswprint_l.texi: Likewise.
48711         * doc/posix-functions/iswpunct_l.texi: Likewise.
48712         * doc/posix-functions/iswspace_l.texi: Likewise.
48713         * doc/posix-functions/iswupper_l.texi: Likewise.
48714         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48715         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48716         * doc/posix-functions/open_wmemstream.texi: Likewise.
48717         * doc/posix-functions/swscanf.texi: Likewise.
48718         * doc/posix-functions/towctrans_l.texi: Likewise.
48719         * doc/posix-functions/towlower.texi: Likewise.
48720         * doc/posix-functions/towlower_l.texi: Likewise.
48721         * doc/posix-functions/towupper.texi: Likewise.
48722         * doc/posix-functions/towupper_l.texi: Likewise.
48723         * doc/posix-functions/vfwprintf.texi: Likewise.
48724         * doc/posix-functions/vfwscanf.texi: Likewise.
48725         * doc/posix-functions/vswscanf.texi: Likewise.
48726         * doc/posix-functions/vwprintf.texi: Likewise.
48727         * doc/posix-functions/vwscanf.texi: Likewise.
48728         * doc/posix-functions/wcpcpy.texi: Likewise.
48729         * doc/posix-functions/wcpncpy.texi: Likewise.
48730         * doc/posix-functions/wcscasecmp.texi: Likewise.
48731         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48732         * doc/posix-functions/wcscoll_l.texi: Likewise.
48733         * doc/posix-functions/wcsdup.texi: Likewise.
48734         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48735         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48736         * doc/posix-functions/wcsnlen.texi: Likewise.
48737         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48738         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48739         * doc/posix-functions/wctrans_l.texi: Likewise.
48740         * doc/posix-functions/wctype_l.texi: Likewise.
48741         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48742         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48743         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48744         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48745         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48746         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48747         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48748         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48749         * doc/glibc-functions/wcschrnul.texi: Likewise.
48750         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48751         * doc/glibc-functions/wcstod_l.texi: Likewise.
48752         * doc/glibc-functions/wcstof_l.texi: Likewise.
48753         * doc/glibc-functions/wcstol_l.texi: Likewise.
48754         * doc/glibc-functions/wcstold_l.texi: Likewise.
48755         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48756         * doc/glibc-functions/wcstoq.texi: Likewise.
48757         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48758         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48759         * doc/glibc-functions/wcstouq.texi: Likewise.
48760         * doc/glibc-functions/wmempcpy.texi: Likewise.
48761
48762 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48763             Eric Blake  <ebb9@byu.net>
48764             Paolo Bonzini  <bonzini@gnu.org>
48765             Bruno Haible  <bruno@clisp.org>
48766
48767         Make c-stack work on Haiku.
48768         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48769         (c_stack_action): Use SA_ONSTACK flag.
48770
48771 2008-12-22  Bruno Haible  <bruno@clisp.org>
48772
48773         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48774
48775 2008-12-22  Bruno Haible  <bruno@clisp.org>
48776
48777         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48778         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48779         being overridden.
48780         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48781         New macros.
48782         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48783         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48784         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48785         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48786
48787 2008-12-22  Bruno Haible  <bruno@clisp.org>
48788
48789         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48790         from test code.
48791
48792 2008-12-22  Eric Blake  <ebb9@byu.net>
48793
48794         Avoid gcc warnings on cygwin.
48795         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48796         Avoid unused variable.
48797         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48798         Likewise.
48799
48800 2008-12-22  Bruno Haible  <bruno@clisp.org>
48801
48802         Remove HAVE_MBRTOWC conditionals.
48803         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48804         (mbscasecmp): Assume mbrtowc function.
48805         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48806         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48807         * lib/mbschr.c: Include mbuiter.h unconditionally.
48808         (mbschr): Assume mbrtowc function.
48809         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48810         (mbscspn): Assume mbrtowc function.
48811         * lib/mbslen.c: Include mbuiter.h unconditionally.
48812         (mbslen): Assume mbrtowc function.
48813         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48814         (mbsncasecmp): Assume mbrtowc function.
48815         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48816         (mbsnlen): Assume mbrtowc function.
48817         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48818         (mbspbrk): Assume mbrtowc function.
48819         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48820         (mbspcasecmp): Assume mbrtowc function.
48821         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48822         (mbsrchr): Assume mbrtowc function.
48823         * lib/mbssep.c: Include mbuiter.h unconditionally.
48824         (mbssep): Assume mbrtowc function.
48825         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48826         (mbsspn): Assume mbrtowc function.
48827         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48828         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48829         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48830         (mbstok_r): Assume mbrtowc function.
48831         * lib/propername.c: Include mbuiter.h unconditionally.
48832         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48833         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48834         (trim2): Assume mbrtowc function.
48835         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48836         (mbsnwidth): Assume mbrtowc function.
48837         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48838         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48839         fallback definitions.
48840         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48841
48842 2008-12-22  Bruno Haible  <bruno@clisp.org>
48843
48844         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48845
48846 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48847
48848         * modules/regex: Request emulations for the mb*/wc* functions we need.
48849         * m4/regex.m4: Don't look for those functions here.
48850         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48851
48852 2008-12-22  Bruno Haible  <bruno@clisp.org>
48853
48854         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48855
48856 2008-12-21  Bruno Haible  <bruno@clisp.org>
48857
48858         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48859         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48860         (Include): Remove conditionalization.
48861         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48862         (Include): Remove conditionalization.
48863         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48864         (Include): Remove conditionalization.
48865         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48866         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48867         * NEWS: Mention the change.
48868         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48869         via Sergey Poznyakoff <gray@gnu.org.ua>.
48870
48871 2008-12-21  Bruno Haible  <bruno@clisp.org>
48872
48873         * MODULES.html.sh (Extended multibyte and wide character utilities
48874         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48875         wcrtomb, wcsrtombs.
48876         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48877         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48878         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48879         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48880
48881 2008-12-21  Bruno Haible  <bruno@clisp.org>
48882
48883         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48884
48885 2008-12-21  Bruno Haible  <bruno@clisp.org>
48886
48887         * modules/wcsnrtombs-tests: New file.
48888         * tests/test-wcsnrtombs1.sh: New file.
48889         * tests/test-wcsnrtombs2.sh: New file.
48890         * tests/test-wcsnrtombs3.sh: New file.
48891         * tests/test-wcsnrtombs4.sh: New file.
48892         * tests/test-wcsnrtombs.c: New file.
48893
48894         New module 'wcsnrtombs'.
48895         * lib/wchar.in.h (wcsnrtombs): New declaration.
48896         * lib/wcsnrtombs.c: New file.
48897         * lib/wcsrtombs-state.c: New file.
48898         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48899         (internal_state): Remove variable.
48900         * m4/wcsnrtombs.m4: New file.
48901         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48902         compilation units.
48903         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48904         HAVE_WCSNRTOMBS.
48905         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48906         HAVE_WCSNRTOMBS.
48907         * modules/wcsnrtombs: New file.
48908         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48909         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48910
48911 2008-12-21  Bruno Haible  <bruno@clisp.org>
48912
48913         * modules/wcsrtombs-tests: New file.
48914         * tests/test-wcsrtombs1.sh: New file.
48915         * tests/test-wcsrtombs2.sh: New file.
48916         * tests/test-wcsrtombs3.sh: New file.
48917         * tests/test-wcsrtombs4.sh: New file.
48918         * tests/test-wcsrtombs.c: New file.
48919
48920         New module 'wcsrtombs'.
48921         * lib/wchar.in.h (wcsrtombs): New declaration.
48922         * lib/wcsrtombs.c: New file.
48923         * m4/wcsrtombs.m4: New file.
48924         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48925         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48926         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48927         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48928         * modules/wcsrtombs: New file.
48929         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48930         bugs.
48931
48932 2008-12-21  Bruno Haible  <bruno@clisp.org>
48933
48934         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48935         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48936         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48937         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48938         if not correct.
48939         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48940         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48941         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48942         m4/locale-zh.m4, m4/codeset.m4.
48943         * doc/posix-functions/wcrtomb.texi: Document the bug.
48944
48945 2008-12-21  Bruno Haible  <bruno@clisp.org>
48946
48947         Work around a btowc() bug on IRIX 6.5.
48948         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48949         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48950         REPLACE_WTOBC if not.
48951         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48952         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48953         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48954
48955 2008-12-21  Bruno Haible  <bruno@clisp.org>
48956
48957         * modules/wcrtomb-tests: New file.
48958         * tests/test-wcrtomb.sh: New file.
48959         * tests/test-wcrtomb.c: New file.
48960
48961         New module 'wcrtomb'.
48962         * lib/wchar.in.h (wcrtomb): New declaration.
48963         * lib/wcrtomb.c: New file.
48964         * m4/wcrtomb.m4: New file.
48965         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48966         HAVE_WCRTOMB.
48967         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48968         HAVE_WCRTOMB.
48969         * modules/wcrtomb: New file.
48970         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48971
48972 2008-12-21  Bruno Haible  <bruno@clisp.org>
48973
48974         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48975         * modules/mbsrtowcs (Files): Likewise.
48976         * modules/wctob (Files): Likewise.
48977         * modules/c-strcase-tests (Files): Likewise.
48978         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48979         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48980         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48981         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48982         * modules/vasnprintf-posix-tests (Files): Likewise.
48983
48984 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48985
48986         gitlog-to-changelog: pass all command-line arguments to git-log
48987         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48988         it is sometimes convenient to filter the commits in various ways.
48989         gitlog-to-changelog only allows --since to specify a start date,
48990         but git-log itself supports many other filtering mechanisms.
48991         At the moment, I want to filter by branch name.  Rather than
48992         adding a --branch option to gitlog-to-changelog, it seems more
48993         flexible to simply pass all options directly to git-log and let
48994         git do the work.  Notice that this effectively makes --since a
48995         redundant option for gitlog-to-changelog, but removing it would
48996         require current usage to change since calls would then require
48997         an additional '--'.
48998
48999 2008-12-21  Bruno Haible  <bruno@clisp.org>
49000
49001         * modules/mbsnrtowcs-tests: New file.
49002         * tests/test-mbsnrtowcs1.sh: New file.
49003         * tests/test-mbsnrtowcs2.sh: New file.
49004         * tests/test-mbsnrtowcs3.sh: New file.
49005         * tests/test-mbsnrtowcs4.sh: New file.
49006         * tests/test-mbsnrtowcs.c: New file.
49007
49008         New module 'mbsnrtowcs'.
49009         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49010         * lib/mbsnrtowcs.c: New file.
49011         * lib/mbsrtowcs-state.c: New file.
49012         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49013         (internal_state): Remove variable.
49014         * m4/mbsnrtowcs.m4: New file.
49015         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49016         compilation units.
49017         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49018         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49019         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49020         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49021         * modules/mbsnrtowcs: New file.
49022         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49023         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49024         portability problem.
49025
49026 2008-12-21  Bruno Haible  <bruno@clisp.org>
49027
49028         Work around mbsrtowcs bug.
49029         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49030         (gl_FUNC_MBSRTOWCS): Invoke it.
49031         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49032         m4/locale-zh.m4.
49033         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49034
49035 2008-12-21  Bruno Haible  <bruno@clisp.org>
49036
49037         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49038
49039 2008-12-21  Bruno Haible  <bruno@clisp.org>
49040
49041         Update doc for AIX.
49042         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49043         16-bit wchar_t type.
49044         * doc/posix-functions/btowc.texi: Likewise.
49045         * doc/posix-functions/fgetwc.texi: Likewise.
49046         * doc/posix-functions/fgetws.texi: Likewise.
49047         * doc/posix-functions/fputwc.texi: Likewise.
49048         * doc/posix-functions/fputws.texi: Likewise.
49049         * doc/posix-functions/fwide.texi: Likewise.
49050         * doc/posix-functions/fwprintf.texi: Likewise.
49051         * doc/posix-functions/fwscanf.texi: Likewise.
49052         * doc/posix-functions/getwchar.texi: Likewise.
49053         * doc/posix-functions/getwc.texi: Likewise.
49054         * doc/posix-functions/iswalnum.texi: Likewise.
49055         * doc/posix-functions/iswalpha.texi: Likewise.
49056         * doc/posix-functions/iswblank.texi: Likewise.
49057         * doc/posix-functions/iswcntrl.texi: Likewise.
49058         * doc/posix-functions/iswctype.texi: Likewise.
49059         * doc/posix-functions/iswdigit.texi: Likewise.
49060         * doc/posix-functions/iswgraph.texi: Likewise.
49061         * doc/posix-functions/iswlower.texi: Likewise.
49062         * doc/posix-functions/iswprint.texi: Likewise.
49063         * doc/posix-functions/iswpunct.texi: Likewise.
49064         * doc/posix-functions/iswspace.texi: Likewise.
49065         * doc/posix-functions/iswupper.texi: Likewise.
49066         * doc/posix-functions/iswxdigit.texi: Likewise.
49067         * doc/posix-functions/mbrtowc.texi: Likewise.
49068         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49069         * doc/posix-functions/mbstowcs.texi: Likewise.
49070         * doc/posix-functions/mbtowc.texi: Likewise.
49071         * doc/posix-functions/putwchar.texi: Likewise.
49072         * doc/posix-functions/putwc.texi: Likewise.
49073         * doc/posix-functions/swprintf.texi: Likewise.
49074         * doc/posix-functions/tolower.texi: Likewise.
49075         * doc/posix-functions/toupper.texi: Likewise.
49076         * doc/posix-functions/towctrans.texi: Likewise.
49077         * doc/posix-functions/ungetwc.texi: Likewise.
49078         * doc/posix-functions/vswprintf.texi: Likewise.
49079         * doc/posix-functions/wcrtomb.texi: Likewise.
49080         * doc/posix-functions/wcscat.texi: Likewise.
49081         * doc/posix-functions/wcschr.texi: Likewise.
49082         * doc/posix-functions/wcscmp.texi: Likewise.
49083         * doc/posix-functions/wcscoll.texi: Likewise.
49084         * doc/posix-functions/wcscpy.texi: Likewise.
49085         * doc/posix-functions/wcscspn.texi: Likewise.
49086         * doc/posix-functions/wcsftime.texi: Likewise.
49087         * doc/posix-functions/wcslen.texi: Likewise.
49088         * doc/posix-functions/wcsncat.texi: Likewise.
49089         * doc/posix-functions/wcsncmp.texi: Likewise.
49090         * doc/posix-functions/wcsncpy.texi: Likewise.
49091         * doc/posix-functions/wcspbrk.texi: Likewise.
49092         * doc/posix-functions/wcsrchr.texi: Likewise.
49093         * doc/posix-functions/wcsrtombs.texi: Likewise.
49094         * doc/posix-functions/wcsspn.texi: Likewise.
49095         * doc/posix-functions/wcsstr.texi: Likewise.
49096         * doc/posix-functions/wcstod.texi: Likewise.
49097         * doc/posix-functions/wcstof.texi: Likewise.
49098         * doc/posix-functions/wcstoimax.texi: Likewise.
49099         * doc/posix-functions/wcstok.texi: Likewise.
49100         * doc/posix-functions/wcstold.texi: Likewise.
49101         * doc/posix-functions/wcstoll.texi: Likewise.
49102         * doc/posix-functions/wcstol.texi: Likewise.
49103         * doc/posix-functions/wcstombs.texi: Likewise.
49104         * doc/posix-functions/wcstoull.texi: Likewise.
49105         * doc/posix-functions/wcstoul.texi: Likewise.
49106         * doc/posix-functions/wcstoumax.texi: Likewise.
49107         * doc/posix-functions/wcswidth.texi: Likewise.
49108         * doc/posix-functions/wcsxfrm.texi: Likewise.
49109         * doc/posix-functions/wctob.texi: Likewise.
49110         * doc/posix-functions/wctomb.texi: Likewise.
49111         * doc/posix-functions/wctrans.texi: Likewise.
49112         * doc/posix-functions/wctype.texi: Likewise.
49113         * doc/posix-functions/wcwidth.texi: Likewise.
49114         * doc/posix-functions/wmemchr.texi: Likewise.
49115         * doc/posix-functions/wmemcmp.texi: Likewise.
49116         * doc/posix-functions/wmemcpy.texi: Likewise.
49117         * doc/posix-functions/wmemmove.texi: Likewise.
49118         * doc/posix-functions/wmemset.texi: Likewise.
49119         * doc/posix-functions/wprintf.texi: Likewise.
49120         * doc/posix-functions/wscanf.texi: Likewise.
49121
49122 2008-12-21  Bruno Haible  <bruno@clisp.org>
49123
49124         Update doc for HP-UX 11.11.
49125         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49126         in HP-UX version 11.00, not in all versions of HP-UX 11.
49127         * doc/posix-functions/fwide.texi: Likewise.
49128         * doc/posix-functions/fwprintf.texi: Likewise.
49129         * doc/posix-functions/fwscanf.texi: Likewise.
49130         * doc/posix-functions/inet_ntop.texi: Likewise.
49131         * doc/posix-functions/inet_pton.texi: Likewise.
49132         * doc/posix-functions/mbrlen.texi: Likewise.
49133         * doc/posix-functions/mbrtowc.texi: Likewise.
49134         * doc/posix-functions/mbsinit.texi: Likewise.
49135         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49136         * doc/posix-functions/swprintf.texi: Likewise.
49137         * doc/posix-functions/swscanf.texi: Likewise.
49138         * doc/posix-functions/towctrans.texi: Likewise.
49139         * doc/posix-functions/vfwprintf.texi: Likewise.
49140         * doc/posix-functions/vswprintf.texi: Likewise.
49141         * doc/posix-functions/vwprintf.texi: Likewise.
49142         * doc/posix-functions/wcrtomb.texi: Likewise.
49143         * doc/posix-functions/wcsrtombs.texi: Likewise.
49144         * doc/posix-functions/wcsstr.texi: Likewise.
49145         * doc/posix-functions/wctob.texi: Likewise.
49146         * doc/posix-functions/wctrans.texi: Likewise.
49147         * doc/posix-functions/wmemchr.texi: Likewise.
49148         * doc/posix-functions/wmemcmp.texi: Likewise.
49149         * doc/posix-functions/wmemcpy.texi: Likewise.
49150         * doc/posix-functions/wmemmove.texi: Likewise.
49151         * doc/posix-functions/wmemset.texi: Likewise.
49152         * doc/posix-functions/wprintf.texi: Likewise.
49153         * doc/posix-functions/wscanf.texi: Likewise.
49154
49155 2008-12-21  Bruno Haible  <bruno@clisp.org>
49156
49157         Work around a portability problem.
49158         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49159         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49160
49161 2008-12-20  Bruno Haible  <bruno@clisp.org>
49162
49163         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49164         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49165         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49166         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49167         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49168
49169         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49170         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49171         set.
49172         (GNULIB_defined_mbstate_t): New macro.
49173         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49174         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49175         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49176         reuses the system's mbrtowc function but works around the bugs.
49177         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49178         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49179         macros.
49180         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49181         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49182         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49183         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49184         REPLACE_MBSINIT if mbsinit needs to be overridden.
49185         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49186         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49187         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49188         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49189         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49190         m4/locale-zh.m4.
49191         (Depends): Add mbsinit.
49192         * modules/mbsinit (Depends): Add mbrtowc.
49193         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49194
49195 2008-12-20  Bruno Haible  <bruno@clisp.org>
49196
49197         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49198         so that there are no conversion errors on AIX.
49199         * tests/test-mbsrtowcs.c (main): LIkewise.
49200
49201 2008-12-20  Bruno Haible  <bruno@clisp.org>
49202
49203         Work around wctob bug on Solaris <= 9.
49204         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49205         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49207         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49208         * modules/wctob (Files): Add m4/locale-fr.m4.
49209         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49210
49211 2008-12-20  Bruno Haible  <bruno@clisp.org>
49212
49213         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49214         /dev/null.
49215         * tests/test-select-in.sh: Likewise.
49216         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49217
49218 2008-12-20  Bruno Haible  <bruno@clisp.org>
49219
49220         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49221         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49222         Cygwin 1.5.x.
49223
49224 2008-12-20  Bruno Haible  <bruno@clisp.org>
49225
49226         Ensure mbstate_t is defined on HP-UX 11.11.
49227         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49228         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49229         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49230         AC_USE_SYSTEM_EXTENSIONS.
49231         * modules/fnmatch (Depends-on): Add extensions.
49232         * modules/mbrlen (Depends-on): Likewise.
49233         * modules/mbrtowc (Depends-on): Likewise.
49234         * modules/mbsinit (Depends-on): Likewise.
49235         * modules/mbsrtowcs (Depends-on): Likewise.
49236         * modules/mbswidth (Depends-on): Likewise.
49237         * modules/quotearg (Depends-on): Likewise.
49238         * modules/strftime (Depends-on): Likewise.
49239
49240 2008-12-20  Bruno Haible  <bruno@clisp.org>
49241
49242         Ensure wctob is declared on IRIX 6.5.
49243         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49244         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49245         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49246         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49247         of HAVE_WCTOB.
49248         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49249         HAVE_WCTOB.
49250         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49251
49252 2008-12-19  Bruno Haible  <bruno@clisp.org>
49253
49254         * modules/mbsrtowcs-tests: New file.
49255         * tests/test-mbsrtowcs1.sh: New file.
49256         * tests/test-mbsrtowcs2.sh: New file.
49257         * tests/test-mbsrtowcs3.sh: New file.
49258         * tests/test-mbsrtowcs4.sh: New file.
49259         * tests/test-mbsrtowcs.c: New file.
49260
49261         New module 'mbsrtowcs'.
49262         * lib/wchar.in.h (mbsrtowcs): New declaration.
49263         * lib/mbsrtowcs.c: New file.
49264         * m4/mbsrtowcs.m4: New file.
49265         * modules/mbsrtowcs: New file.
49266         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49267         HAVE_MBSRTOWCS.
49268         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49269         HAVE_MBSRTOWCS.
49270         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49271
49272 2008-12-19  Bruno Haible  <bruno@clisp.org>
49273
49274         New module 'mbrlen'.
49275         * lib/wchar.in.h (mbrlen): New declaration.
49276         * lib/mbrlen.c: New file.
49277         * m4/mbrlen.m4: New file.
49278         * modules/mbrlen: New file.
49279         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49280         HAVE_MBRLEN.
49281         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49282         HAVE_MBRLEN.
49283         * doc/posix-functions/mbrlen.texi: Document the new module.
49284
49285 2008-12-19  Bruno Haible  <bruno@clisp.org>
49286
49287         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49288         * modules/mbrtowc (Depends-on): Add verify.
49289         Suggested by Paul Eggert.
49290
49291 2008-12-18  Bruno Haible  <bruno@clisp.org>
49292
49293         * modules/mbsinit-tests: New file.
49294         * tests/test-mbsinit.sh: New file.
49295         * tests/test-mbsinit.c: New file.
49296
49297 2008-12-18  Bruno Haible  <bruno@clisp.org>
49298
49299         * modules/mbrtowc-tests: New file.
49300         * tests/test-mbrtowc1.sh: New file.
49301         * tests/test-mbrtowc2.sh: New file.
49302         * tests/test-mbrtowc3.sh: New file.
49303         * tests/test-mbrtowc4.sh: New file.
49304         * tests/test-mbrtowc.c: New file.
49305
49306         New module 'mbrtowc'.
49307         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49308         mbsinit and mbrtowc.
49309         (mbrtowc): New declaration.
49310         * lib/mbrtowc.c: New file.
49311         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49312         * modules/mbrtowc: New file.
49313         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49314         HAVE_MBRTOWC.
49315         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49316         HAVE_MBRTOWC.
49317         * doc/posix-functions/mbrtowc.texi: Document the new module.
49318
49319 2008-12-18  Bruno Haible  <bruno@clisp.org>
49320
49321         New module 'wctob'.
49322         * lib/wchar.in.h (wctob): New declaration.
49323         * lib/wctob.c: New file.
49324         * m4/wctob.m4: New file.
49325         * modules/wctob: New file.
49326         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49327         HAVE_WCTOB.
49328         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49329         * doc/posix-functions/wctob.texi: Document the new module.
49330
49331 2008-12-18  Bruno Haible  <bruno@clisp.org>
49332
49333         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49334         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49335
49336 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49337
49338         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49339         G. Christensen" <tgc@jupiterrise.com>.
49340
49341         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49342         G. Christensen" <tgc@jupiterrise.com>.
49343
49344         * lib/flock.c: Need to include string.h.  Reported by "Tom
49345         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49346         <ebb9@byu.net>.
49347
49348 2008-12-18  Bruno Haible  <bruno@clisp.org>
49349
49350         * m4/locale-ja.m4: New file, from GNU gettext.
49351
49352 2008-12-17  Bruno Haible  <bruno@clisp.org>
49353
49354         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49355         Suggested by Eric Blake.
49356
49357 2008-12-17  Bruno Haible  <bruno@clisp.org>
49358
49359         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49360
49361 2008-12-17  Bruno Haible  <bruno@clisp.org>
49362
49363         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49364         * modules/mbsinit (Depends-on): Add verify.
49365         Suggested by Paul Eggert.
49366
49367 2008-12-17  Bruno Haible  <bruno@clisp.org>
49368
49369         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49370         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49371         gl_FUNC_MBRTOWC.
49372         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49373         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49374         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49375         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49376         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49377         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49378         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49379         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49380         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49381         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49382         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49383         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49384         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49385         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49386         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49387         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49388         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49389         * modules/trim (configure.ac): Likewise.
49390
49391 2008-12-17  Bruno Haible  <bruno@clisp.org>
49392
49393         * modules/btowc-tests: New file.
49394         * tests/test-btowc1.sh: New file.
49395         * tests/test-btowc2.sh: New file.
49396         * tests/test-btowc.c: New file.
49397
49398         New module 'btowc'.
49399         * lib/wchar.in.h (btowc): New declaration.
49400         * lib/btowc.c: New file.
49401         * m4/btowc.m4: New file.
49402         * modules/btowc: New file.
49403         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49404         HAVE_BTOWC.
49405         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49406         * doc/posix-functions/btowc.texi: Document the new module.
49407
49408 2008-12-17  Bruno Haible  <bruno@clisp.org>
49409
49410         New module 'mbsinit'.
49411         * lib/wchar.in.h (mbsinit): New declaration.
49412         * lib/mbsinit.c: New file.
49413         * m4/mbsinit.m4: New file.
49414         * modules/mbsinit: New file.
49415         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49416         HAVE_MBSINIT.
49417         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49418         HAVE_MBSINIT.
49419         * doc/posix-functions/mbsinit.texi: Document the new module.
49420
49421 2008-12-16  Bruno Haible  <bruno@clisp.org>
49422
49423         * lib/unistd.in.h: Add comment.
49424         * tests/test-environ.c: Don't include <stdlib.h>.
49425
49426 2008-12-16  Bruno Haible  <bruno@clisp.org>
49427
49428         * lib/parse-duration.h (parse_duration): Document return value
49429         convention.
49430         * lib/parse-duration.c: Include specification header first. Add
49431         comments.
49432         (_): Remove macro.
49433         (parse_year_month_day, parse_hour_minute_second): Move side effects
49434         outside of strchr call.
49435         (parse_non_iso8601): Move side effects outside of isspace call.
49436         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49437         call.
49438
49439 2008-12-16  Bruno Haible  <bruno@clisp.org>
49440
49441         * tests/test-parse-duration.sh: Produce no output when the test
49442         succeeds.
49443
49444 2008-12-16  Bruno Haible  <bruno@clisp.org>
49445
49446         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49447         expressions.
49448
49449 2008-12-15  Bruno Haible  <bruno@clisp.org>
49450
49451         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49452         * doc/glibc-functions/flistxattr.texi: Likewise.
49453         * doc/glibc-functions/fopencookie.texi: Likewise.
49454         * doc/glibc-functions/fremovexattr.texi: Likewise.
49455         * doc/glibc-functions/fsetxattr.texi: Likewise.
49456         * doc/glibc-functions/getxattr.texi: Likewise.
49457         * doc/glibc-functions/lgetxattr.texi: Likewise.
49458         * doc/glibc-functions/listxattr.texi: Likewise.
49459         * doc/glibc-functions/llistxattr.texi: Likewise.
49460         * doc/glibc-functions/lremovexattr.texi: Likewise.
49461         * doc/glibc-functions/lsetxattr.texi: Likewise.
49462         * doc/glibc-functions/removexattr.texi: Likewise.
49463         * doc/glibc-functions/setxattr.texi: Likewise.
49464         * doc/posix-functions/open_memstream.texi: Likewise.
49465
49466 2008-12-15  Eric Blake  <ebb9@byu.net>
49467
49468         Update doc for cygwin 1.7.
49469         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49470         functions.
49471         * doc/posix-functions/fchmodat.texi: Likewise.
49472         * doc/posix-functions/fchownat.texi: Likewise.
49473         * doc/posix-functions/fdopendir.texi: Likewise.
49474         * doc/posix-functions/fmemopen.texi: Likewise.
49475         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49476         * doc/posix-functions/fstatat.texi: Likewise.
49477         * doc/posix-functions/futimens.texi: Likewise.
49478         * doc/posix-functions/gai_strerror.texi: Likewise.
49479         * doc/posix-functions/getaddrinfo.texi: Likewise.
49480         * doc/posix-functions/getnameinfo.texi: Likewise.
49481         * doc/posix-functions/if_freenameindex.texi: Likewise.
49482         * doc/posix-functions/if_indextoname.texi: Likewise.
49483         * doc/posix-functions/if_nameindex.texi: Likewise.
49484         * doc/posix-functions/if_nametoindex.texi: Likewise.
49485         * doc/posix-functions/insque.texi: Likewise.
49486         * doc/posix-functions/linkat.texi: Likewise.
49487         * doc/posix-functions/llrint.texi: Likewise.
49488         * doc/posix-functions/llrintf.texi: Likewise.
49489         * doc/posix-functions/llrintl.texi: Likewise.
49490         * doc/posix-functions/lockf.texi: Likewise.
49491         * doc/posix-functions/lrintl.texi: Likewise.
49492         * doc/posix-functions/mkdirat.texi: Likewise.
49493         * doc/posix-functions/mkfifoat.texi: Likewise.
49494         * doc/posix-functions/mknodat.texi: Likewise.
49495         * doc/posix-functions/mq_close.texi: Likewise.
49496         * doc/posix-functions/mq_getattr.texi: Likewise.
49497         * doc/posix-functions/mq_notify.texi: Likewise.
49498         * doc/posix-functions/mq_open.texi: Likewise.
49499         * doc/posix-functions/mq_receive.texi: Likewise.
49500         * doc/posix-functions/mq_send.texi: Likewise.
49501         * doc/posix-functions/mq_setattr.texi: Likewise.
49502         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49503         * doc/posix-functions/mq_timedsend.texi: Likewise.
49504         * doc/posix-functions/mq_unlink.texi: Likewise.
49505         * doc/posix-functions/open_memstream.texi: Likewise.
49506         * doc/posix-functions/openat.texi: Likewise.
49507         * doc/posix-functions/posix_fadvise.texi: Likewise.
49508         * doc/posix-functions/posix_fallocate.texi: Likewise.
49509         * doc/posix-functions/posix_madvise.texi: Likewise.
49510         * doc/posix-functions/posix_memalign.texi: Likewise.
49511         * doc/posix-functions/posix_openpt.texi: Likewise.
49512         * doc/posix-functions/readlinkat.texi: Likewise.
49513         * doc/posix-functions/remque.texi: Likewise.
49514         * doc/posix-functions/renameat.texi: Likewise.
49515         * doc/posix-functions/rintl.texi: Likewise.
49516         * doc/posix-functions/sem_unlink.texi: Likewise.
49517         * doc/posix-functions/shm_open.texi: Likewise.
49518         * doc/posix-functions/shm_unlink.texi: Likewise.
49519         * doc/posix-functions/signgam.texi: Likewise.
49520         * doc/posix-functions/sigset.texi: Likewise.
49521         * doc/posix-functions/stpcpy.texi: Likewise.
49522         * doc/posix-functions/stpncpy.texi: Likewise.
49523         * doc/posix-functions/strerror.texi: Likewise.
49524         * doc/posix-functions/strtod.texi: Likewise.
49525         * doc/posix-functions/symlinkat.texi: Likewise.
49526         * doc/posix-functions/unlinkat.texi: Likewise.
49527         * doc/posix-functions/utimensat.texi: Likewise.
49528         * doc/glibc-functions/bindresvport.texi: Likewise.
49529         * doc/glibc-functions/dn_expand.texi: Likewise.
49530         * doc/glibc-functions/exp10.texi: Likewise.
49531         * doc/glibc-functions/exp10f.texi: Likewise.
49532         * doc/glibc-functions/fgetxattr.texi: Likewise.
49533         * doc/glibc-functions/flistxattr.texi: Likewise.
49534         * doc/glibc-functions/fopencookie.texi: Likewise.
49535         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49536         * doc/glibc-functions/fremovexattr.texi: Likewise.
49537         * doc/glibc-functions/fsetxattr.texi: Likewise.
49538         * doc/glibc-functions/getifaddrs.texi: Likewise.
49539         * doc/glibc-functions/getxattr.texi: Likewise.
49540         * doc/glibc-functions/lgetxattr.texi: Likewise.
49541         * doc/glibc-functions/listxattr.texi: Likewise.
49542         * doc/glibc-functions/llistxattr.texi: Likewise.
49543         * doc/glibc-functions/lremovexattr.texi: Likewise.
49544         * doc/glibc-functions/lsetxattr.texi: Likewise.
49545         * doc/glibc-functions/pow10.texi: Likewise.
49546         * doc/glibc-functions/pow10f.texi: Likewise.
49547         * doc/glibc-functions/rcmd_af.texi: Likewise.
49548         * doc/glibc-functions/removexattr.texi: Likewise.
49549         * doc/glibc-functions/res_init.texi: Likewise.
49550         * doc/glibc-functions/res_mkquery.texi: Likewise.
49551         * doc/glibc-functions/res_query.texi: Likewise.
49552         * doc/glibc-functions/res_querydomain.texi: Likewise.
49553         * doc/glibc-functions/res_send.texi: Likewise.
49554         * doc/glibc-functions/rresvport_af.texi: Likewise.
49555         * doc/glibc-functions/setxattr.texi: Likewise.
49556         * doc/glibc-functions/strcasestr.texi: Likewise.
49557
49558 2008-12-15  Bruno Haible  <bruno@clisp.org>
49559
49560         Fix compilation error on OSF/1 4.0.
49561         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49562         <sys/time.h>, simply delegate to the system header.
49563         Reported by Daniel Richard G. <oss@teragram.com>.
49564
49565 2008-12-15  Bruno Haible  <bruno@clisp.org>
49566
49567         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49568         * doc/posix-functions/fchmodat.texi: Likewise.
49569         * doc/posix-functions/fchownat.texi: Likewise.
49570         * doc/posix-functions/fdopendir.texi: Likewise.
49571         * doc/posix-functions/fstatat.texi: Likewise.
49572         * doc/posix-functions/mkdirat.texi: Likewise.
49573         * doc/posix-functions/unlinkat.texi: Likewise.
49574
49575 2008-12-14  Bruno Haible  <bruno@clisp.org>
49576
49577         Update doc for POSIX:2008.
49578         * doc/posix-functions/faccessat.texi: New file.
49579         * doc/posix-functions/fchmodat.texi: New file.
49580         * doc/posix-functions/fchownat.texi: New file.
49581         * doc/posix-functions/fdopendir.texi: New file.
49582         * doc/posix-functions/fstatat.texi: New file.
49583         * doc/posix-functions/futimens.texi: New file.
49584         * doc/posix-functions/linkat.texi: New file.
49585         * doc/posix-functions/mkdirat.texi: New file.
49586         * doc/posix-functions/mkfifoat.texi: New file.
49587         * doc/posix-functions/mknodat.texi: New file.
49588         * doc/posix-functions/open_wmemstream.texi: New file.
49589         * doc/posix-functions/openat.texi: New file.
49590         * doc/posix-functions/psiginfo.texi: New file.
49591         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49592         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49593         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49594         * doc/posix-functions/readlinkat.texi: New file.
49595         * doc/posix-functions/renameat.texi: New file.
49596         * doc/posix-functions/strerror_l.texi: New file.
49597         * doc/posix-functions/symlinkat.texi: New file.
49598         * doc/posix-functions/unlinkat.texi: New file.
49599         * doc/posix-functions/utimensat.texi: New file.
49600         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49601
49602 2008-12-14  Bruno Haible  <bruno@clisp.org>
49603
49604         Update doc for POSIX:2008.
49605         * doc/posix-functions/alphasort.texi: Renamed from
49606         doc/glibc-functions/alphasort.texi.
49607         * doc/posix-functions/dirfd.texi: Renamed from
49608         doc/glibc-functions/dirfd.texi.
49609         * doc/posix-functions/dprintf.texi: Renamed from
49610         doc/glibc-functions/dprintf.texi.
49611         * doc/posix-functions/duplocale.texi: Renamed from
49612         doc/glibc-functions/duplocale.texi.
49613         * doc/posix-functions/fexecve.texi: Renamed from
49614         doc/glibc-functions/fexecve.texi.
49615         * doc/posix-functions/fmemopen.texi: Renamed from
49616         doc/glibc-functions/fmemopen.texi.
49617         * doc/posix-functions/freelocale.texi: Renamed from
49618         doc/glibc-functions/freelocale.texi.
49619         * doc/posix-functions/getdate_err.texi: Renamed from
49620         doc/glibc-functions/getdate_err.texi.
49621         * doc/posix-functions/isalnum_l.texi: Renamed from
49622         doc/glibc-functions/isalnum_l.texi.
49623         * doc/posix-functions/isalpha_l.texi: Renamed from
49624         doc/glibc-functions/isalpha_l.texi.
49625         * doc/posix-functions/isblank_l.texi: Renamed from
49626         doc/glibc-functions/isblank_l.texi.
49627         * doc/posix-functions/iscntrl_l.texi: Renamed from
49628         doc/glibc-functions/iscntrl_l.texi.
49629         * doc/posix-functions/isdigit_l.texi: Renamed from
49630         doc/glibc-functions/isdigit_l.texi.
49631         * doc/posix-functions/isgraph_l.texi: Renamed from
49632         doc/glibc-functions/isgraph_l.texi.
49633         * doc/posix-functions/islower_l.texi: Renamed from
49634         doc/glibc-functions/islower_l.texi.
49635         * doc/posix-functions/isprint_l.texi: Renamed from
49636         doc/glibc-functions/isprint_l.texi.
49637         * doc/posix-functions/ispunct_l.texi: Renamed from
49638         doc/glibc-functions/ispunct_l.texi.
49639         * doc/posix-functions/isspace_l.texi: Renamed from
49640         doc/glibc-functions/isspace_l.texi.
49641         * doc/posix-functions/isupper_l.texi: Renamed from
49642         doc/glibc-functions/isupper_l.texi.
49643         * doc/posix-functions/iswalnum_l.texi: Renamed from
49644         doc/glibc-functions/iswalnum_l.texi.
49645         * doc/posix-functions/iswalpha_l.texi: Renamed from
49646         doc/glibc-functions/iswalpha_l.texi.
49647         * doc/posix-functions/iswblank_l.texi: Renamed from
49648         doc/glibc-functions/iswblank_l.texi.
49649         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49650         doc/glibc-functions/iswcntrl_l.texi.
49651         * doc/posix-functions/iswctype_l.texi: Renamed from
49652         doc/glibc-functions/iswctype_l.texi.
49653         * doc/posix-functions/iswdigit_l.texi: Renamed from
49654         doc/glibc-functions/iswdigit_l.texi.
49655         * doc/posix-functions/iswgraph_l.texi: Renamed from
49656         doc/glibc-functions/iswgraph_l.texi.
49657         * doc/posix-functions/iswlower_l.texi: Renamed from
49658         doc/glibc-functions/iswlower_l.texi.
49659         * doc/posix-functions/iswprint_l.texi: Renamed from
49660         doc/glibc-functions/iswprint_l.texi.
49661         * doc/posix-functions/iswpunct_l.texi: Renamed from
49662         doc/glibc-functions/iswpunct_l.texi.
49663         * doc/posix-functions/iswspace_l.texi: Renamed from
49664         doc/glibc-functions/iswspace_l.texi.
49665         * doc/posix-functions/iswupper_l.texi: Renamed from
49666         doc/glibc-functions/iswupper_l.texi.
49667         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49668         doc/glibc-functions/iswxdigit_l.texi.
49669         * doc/posix-functions/isxdigit_l.texi: Renamed from
49670         doc/glibc-functions/isxdigit_l.texi.
49671         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49672         doc/glibc-functions/mbsnrtowcs.texi.
49673         * doc/posix-functions/mkdtemp.texi: Renamed from
49674         doc/glibc-functions/mkdtemp.texi.
49675         * doc/posix-functions/newlocale.texi: Renamed from
49676         doc/glibc-functions/newlocale.texi.
49677         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49678         doc/glibc-functions/nl_langinfo_l.texi.
49679         * doc/posix-functions/open_memstream.texi: Renamed from
49680         doc/glibc-functions/open_memstream.texi.
49681         * doc/posix-functions/opterr.texi: Renamed from
49682         doc/glibc-functions/opterr.texi.
49683         * doc/posix-functions/optind.texi: Renamed from
49684         doc/glibc-functions/optind.texi.
49685         * doc/posix-functions/optopt.texi: Renamed from
49686         doc/glibc-functions/optopt.texi.
49687         * doc/posix-functions/psignal.texi: Renamed from
49688         doc/glibc-functions/psignal.texi.
49689         * doc/posix-functions/scandir.texi: Renamed from
49690         doc/glibc-functions/scandir.texi.
49691         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49692         doc/glibc-functions/sched_get_priority_min.texi.
49693         * doc/posix-functions/signgam.texi: Renamed from
49694         doc/glibc-functions/signgam.texi.
49695         * doc/posix-functions/stpcpy.texi: Renamed from
49696         doc/glibc-functions/stpcpy.texi.
49697         * doc/posix-functions/stpncpy.texi: Renamed from
49698         doc/glibc-functions/stpncpy.texi.
49699         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49700         doc/glibc-functions/strcasecmp_l.texi.
49701         * doc/posix-functions/strcoll_l.texi: Renamed from
49702         doc/glibc-functions/strcoll_l.texi.
49703         * doc/posix-functions/strfmon_l.texi: Renamed from
49704         doc/glibc-functions/strfmon_l.texi.
49705         * doc/posix-functions/strftime_l.texi: Renamed from
49706         doc/glibc-functions/strftime_l.texi.
49707         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49708         doc/glibc-functions/strncasecmp_l.texi.
49709         * doc/posix-functions/strndup.texi: Renamed from
49710         doc/glibc-functions/strndup.texi.
49711         * doc/posix-functions/strnlen.texi: Renamed from
49712         doc/glibc-functions/strnlen.texi.
49713         * doc/posix-functions/strsignal.texi: Renamed from
49714         doc/glibc-functions/strsignal.texi.
49715         * doc/posix-functions/strxfrm_l.texi: Renamed from
49716         doc/glibc-functions/strxfrm_l.texi.
49717         * doc/posix-functions/timer_gettime.texi: Renamed from
49718         doc/glibc-functions/timer_gettime.texi.
49719         * doc/posix-functions/tolower_l.texi: Renamed from
49720         doc/glibc-functions/tolower_l.texi.
49721         * doc/posix-functions/toupper_l.texi: Renamed from
49722         doc/glibc-functions/toupper_l.texi.
49723         * doc/posix-functions/towctrans_l.texi: Renamed from
49724         doc/glibc-functions/towctrans_l.texi.
49725         * doc/posix-functions/towlower_l.texi: Renamed from
49726         doc/glibc-functions/towlower_l.texi.
49727         * doc/posix-functions/towupper_l.texi: Renamed from
49728         doc/glibc-functions/towupper_l.texi.
49729         * doc/posix-functions/uselocale.texi: Renamed from
49730         doc/glibc-functions/uselocale.texi.
49731         * doc/posix-functions/vdprintf.texi: Renamed from
49732         doc/glibc-functions/vdprintf.texi.
49733         * doc/posix-functions/wcpcpy.texi:
49734         Renamed from doc/glibc-functions/wcpcpy.texi.
49735         * doc/posix-functions/wcpncpy.texi: Renamed from
49736         doc/glibc-functions/wcpncpy.texi.
49737         * doc/posix-functions/wcscasecmp.texi: Renamed from
49738         doc/glibc-functions/wcscasecmp.texi.
49739         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49740         doc/glibc-functions/wcscasecmp_l.texi.
49741         * doc/posix-functions/wcscoll_l.texi: Renamed from
49742         doc/glibc-functions/wcscoll_l.texi.
49743         * doc/posix-functions/wcsdup.texi: Renamed from
49744         doc/glibc-functions/wcsdup.texi.
49745         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49746         doc/glibc-functions/wcsncasecmp.texi.
49747         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49748         doc/glibc-functions/wcsncasecmp_l.texi.
49749         * doc/posix-functions/wcsnlen.texi: Renamed from
49750         doc/glibc-functions/wcsnlen.texi.
49751         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49752         doc/glibc-functions/wcsnrtombs.texi.
49753         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49754         doc/glibc-functions/wcsxfrm_l.texi.
49755         * doc/posix-functions/wctrans_l.texi: Renamed from
49756         doc/glibc-functions/wctrans_l.texi.
49757         * doc/posix-functions/wctype_l.texi: Renamed from
49758         doc/glibc-functions/wctype_l.texi.
49759         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49760         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49761         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49762         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49763         these subsections.
49764         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49765         Remove sections.
49766
49767 2008-12-14  Bruno Haible  <bruno@clisp.org>
49768
49769         Update doc for POSIX:2008.
49770         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49771
49772 2008-12-14  Bruno Haible  <bruno@clisp.org>
49773
49774         Update doc for POSIX:2008.
49775         * doc/pastposix-functions/bcmp.texi: Renamed from
49776         doc/posix-functions/bcmp.texi.
49777         * doc/pastposix-functions/bcopy.texi: Renamed from
49778         doc/posix-functions/bcopy.texi.
49779         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49780         doc/posix-functions/bsd_signal.texi.
49781         * doc/pastposix-functions/bzero.texi: Renamed from
49782         doc/posix-functions/bzero.texi.
49783         * doc/pastposix-functions/ecvt.texi: Renamed from
49784         doc/posix-functions/ecvt.texi.
49785         * doc/pastposix-functions/fcvt.texi: Renamed from
49786         doc/posix-functions/fcvt.texi.
49787         * doc/pastposix-functions/ftime.texi: Renamed from
49788         doc/posix-functions/ftime.texi.
49789         * doc/pastposix-functions/gcvt.texi: Renamed from
49790         doc/posix-functions/gcvt.texi.
49791         * doc/pastposix-functions/getcontext.texi: Renamed from
49792         doc/posix-functions/getcontext.texi.
49793         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49794         doc/posix-functions/gethostbyaddr.texi.
49795         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49796         doc/posix-functions/gethostbyname.texi.
49797         * doc/pastposix-functions/getwd.texi: Renamed from
49798         doc/posix-functions/getwd.texi.
49799         * doc/pastposix-functions/h_errno.texi: Renamed from
49800         doc/posix-functions/h_errno.texi.
49801         * doc/pastposix-functions/index.texi: Renamed from
49802         doc/posix-functions/index.texi.
49803         * doc/pastposix-functions/makecontext.texi: Renamed from
49804         doc/posix-functions/makecontext.texi.
49805         * doc/pastposix-functions/mktemp.texi: Renamed from
49806         doc/posix-functions/mktemp.texi.
49807         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49808         doc/posix-functions/pthread_attr_getstackaddr.texi.
49809         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49810         doc/posix-functions/pthread_attr_setstackaddr.texi.
49811         * doc/pastposix-functions/rindex.texi: Renamed from
49812         doc/posix-functions/rindex.texi.
49813         * doc/pastposix-functions/scalb.texi: Renamed from
49814         doc/posix-functions/scalb.texi.
49815         * doc/pastposix-functions/setcontext.texi: Renamed from
49816         doc/posix-functions/setcontext.texi.
49817         * doc/pastposix-functions/swapcontext.texi: Renamed from
49818         doc/posix-functions/swapcontext.texi.
49819         * doc/pastposix-functions/ualarm.texi: Renamed from
49820         doc/posix-functions/ualarm.texi.
49821         * doc/pastposix-functions/usleep.texi: Renamed from
49822         doc/posix-functions/usleep.texi.
49823         * doc/pastposix-functions/vfork.texi: Renamed from
49824         doc/posix-functions/vfork.texi.
49825         * doc/pastposix-functions/wcswcs.texi: Renamed from
49826         doc/posix-functions/wcswcs.texi.
49827         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49828         (Function Substitutes): Update.
49829
49830 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49831
49832         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49833         m4/strerror.m4.
49834
49835 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49836             Bruno Haible  <bruno@clisp.org>
49837
49838         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49839
49840 2008-12-13  Bruno Haible  <bruno@clisp.org>
49841
49842         * modules/strtoull (Depends-on): Remove unistd.
49843
49844 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49845
49846         * modules/strtoull (Depends-on): Add stdlib.
49847
49848 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49849
49850         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49851
49852 2008-12-10  Jim Meyering  <meyering@redhat.com>
49853
49854         gl_ASSERT: don't say assertions are disabled when they're not
49855         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49856         "checking whether to enable assertions... no", when they are in
49857         fact enabled.  This is solely a bug in the output of configure.
49858         In spite of saying "no", NDEBUG was not defined in that case.
49859         Also, as noted by Eric Blake, leave assertions enabled upon
49860         --enable-assert=INVALID.
49861
49862 2008-12-10  Bruno Haible  <bruno@clisp.org>
49863
49864         Change MODULES.html to refer to POSIX:2008 where possible.
49865         * MODULES.html.sh (POSIX2008_URL): New variable.
49866         (posix_headers): Remove sys/timeb, ucontext.
49867         (posix2001_headers): New variable.
49868         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49869         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49870         index, makecontext, mktemp, pthread_attr_getstackaddr,
49871         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49872         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49873         (posix2001_functions): New variable.
49874         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49875         otherwise.
49876
49877 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49878
49879         add missing include to parse-duration.c
49880         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49881         * modules/parse-duration (Depends-on): Add xalloc.
49882
49883         fix sed script reading maint.mk
49884         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49885         (syntax-check-rules): Use it.
49886
49887 2008-12-09  Bruno Haible  <bruno@clisp.org>
49888
49889         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49890         MacOS X 10.4/PowerPC.
49891         Reported by Simon Josefsson.
49892
49893 2008-12-08  Jim Meyering  <meyering@redhat.com>
49894
49895         work around mingw's lack of some S_IF definitions
49896         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49897         Reported by Simon Josefsson.
49898
49899 2008-12-08  Bruno Haible  <bruno@clisp.org>
49900
49901         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49902         applied to variables. Needed on MacOS X 10.4/PowerPC.
49903         Reported by Simon Josefsson.
49904
49905 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49906         and Eric Blake  <ebb9@byu.net>
49907
49908         assert: honor --enable-assert
49909         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49910         order to honor --enable-assert, rather than treating it as a
49911         synonym for --disable-assert.
49912
49913 2008-12-08  Jim Meyering  <meyering@redhat.com>
49914
49915         * lib/posixtm.c: Remove now-useless declaration of mktime.
49916
49917         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49918
49919 2008-12-07  Bruno Haible  <bruno@clisp.org>
49920
49921         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49922         test_once): Mark functions as static.
49923         * tests/test-tls.c (test_tls): Likewise.
49924
49925 2008-12-07  Bruno Haible  <bruno@clisp.org>
49926
49927         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49928         iconv_register_autodetect.
49929
49930 2008-12-07  Jim Meyering  <meyering@redhat.com>
49931
49932         posixtm.c: avoid a warning
49933         * lib/posixtm.c (posixtime): Don't initialize tm0.
49934         It's no longer needed to placate gcc4's -Wuninitialized,
49935         and the attempt to placate would elicit a new warning.
49936
49937         unicodeio.c: mark unused parameters
49938         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49939         (fallback_failure_callback): Likewise.
49940
49941 2008-12-07  Bruno Haible  <bruno@clisp.org>
49942
49943         * gnulib-tool (func_create_testdir): When building the tests
49944         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49945         Reported by Simon Josefsson.
49946
49947 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49948
49949         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49950
49951 2008-12-06  Bruno Haible  <bruno@clisp.org>
49952
49953         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49954         Suggested by Eric Blake.
49955
49956 2008-12-06  Bruno Haible  <bruno@clisp.org>
49957
49958         Fix a c-stack test failure on MacOS X.
49959         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49960         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49961         handler for SIGBUS as well.
49962         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49963         install a signal handler for SIGBUS as well.
49964         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49965
49966 2008-12-06  Bruno Haible  <bruno@clisp.org>
49967
49968         Advocacy documentation.
49969         * doc/gnulib-intro.texi (Benefits): New section.
49970         * doc/gnulib.texi: Update.
49971
49972 2008-12-06  Bruno Haible  <bruno@clisp.org>
49973
49974         Document the 'manywarnings' module.
49975         * doc/manywarnings.texi: New file.
49976         * doc/gnulib.texi: Include it.
49977
49978 2008-12-05  Eric Blake  <ebb9@byu.net>
49979
49980         tests: silence some gcc warnings
49981         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49982         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49983         type mismatches.
49984
49985 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49986             Bruno Haible  <bruno@clisp.org>
49987
49988         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49989
49990 2008-11-29  Jim Meyering  <meyering@redhat.com>
49991
49992         unicodeio.c: mark unused parameters
49993         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49994         (fallback_failure_callback): Likewise.
49995
49996         fts: fix a thinko
49997         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49998         (set_stat_type): Return S_IF*-valued "type" directly.
49999         Prompted by James Youngman's spotting a related bug.
50000         Confirmed by further testing through find.
50001
50002         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50003         * lib/fts.c (D_TYPE): Define.
50004         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50005         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50006         (s_ifmt_shift_bits): New function.
50007         (set_stat_type): New function.
50008         (fts_build): When not calling fts_stat, call set_stat_type
50009         to propagate dirent.d_type info to fts_read caller.
50010         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50011         fts_statp->st_mode type information may be valid.
50012
50013 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50014
50015         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50016         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50017         <sds@gnu.org>.
50018
50019 2008-11-20  Bruno Haible  <bruno@clisp.org>
50020
50021         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50022         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50023         INCLUDE_NEXT.
50024         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50025         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50026         * modules/math (Makefile.am): Substitute
50027         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50028         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50029
50030 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50031             Bruno Haible  <bruno@clisp.org>
50032
50033         * lib/stdint.in.h: Define all type macros so that their expansion is
50034         a single typedef'ed token. Fixes a compilation failure in Boost which
50035         does "using ::int8_t;".
50036
50037 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50038
50039         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50040         gl_MANYWARN_ALL_GCC.
50041         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50042         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50043         * modules/manywarnings: New file.
50044         * MODULES.html.sh: Mention manywarnings module.
50045
50046 2008-11-18  Bruno Haible  <bruno@clisp.org>
50047
50048         * doc/gnulib-tool.texi (Unit tests): New section.
50049
50050 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50051
50052         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50053         paths like 'lib/po/foo.po'.
50054
50055 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50056
50057         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50058         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50059
50060 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50061
50062         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50063         parameter works.
50064
50065 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50066
50067         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50068
50069 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50070
50071         * modules/parse-duration-tests: New file.
50072         * tests/test-parse-duration.sh: New file.
50073         * tests/test-parse-duration.c: New file.
50074
50075         New module 'parse-duration'.
50076         * lib/parse-duration.h: New file.
50077         * lib/parse-duration.c: New file.
50078         * modules/parse-duration: New file.
50079
50080 2008-11-17  Bruno Haible  <bruno@clisp.org>
50081
50082         * tests/test-select-out.sh: Comment out the first pipe test.
50083         Reported by Simon Josefsson.
50084
50085 2008-11-17  Bruno Haible  <bruno@clisp.org>
50086
50087         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50088         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50089         gl_HOSTENT.
50090
50091 2008-11-17  Bruno Haible  <bruno@clisp.org>
50092
50093         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50094         -lnetwork and -lnet. Needed for Haiku and BeOS.
50095
50096 2008-11-16  Bruno Haible  <bruno@clisp.org>
50097
50098         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50099
50100 2008-11-16  Bruno Haible  <bruno@clisp.org>
50101
50102         Avoid test failure on Haiku.
50103         * tests/test-fsync.c: Include <errno.h>.
50104         (main): Don't require that fsync (0) fails.
50105
50106 2008-11-15  Bruno Haible  <bruno@clisp.org>
50107
50108         New module 'hostent'.
50109         * modules/hostent: New file.
50110         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50111
50112 2008-11-15  Bruno Haible  <bruno@clisp.org>
50113
50114         New module 'servent'.
50115         * modules/servent: New file.
50116         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50117
50118 2008-11-15  Bruno Haible  <bruno@clisp.org>
50119
50120         Avoid generating same test program with two different rules.
50121         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50122         test-frexp to test-frexp-nolibm.
50123         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50124         test-frexpl to test-frexpl-nolibm.
50125
50126 2008-11-15  Bruno Haible  <bruno@clisp.org>
50127
50128         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50129         $(FREXPL_LIBM).
50130
50131 2008-11-15  Bruno Haible  <bruno@clisp.org>
50132
50133         * lib/netdb.in.h: Activate the definitions also when the system's
50134         <netdb.h> has 'struct addrinfo'.
50135         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50136         EAI_OVERFLOW or AI_NUMERICSERV.
50137         * doc/posix-headers/netdb.texi: Document the problem.
50138
50139 2008-11-15  Bruno Haible  <bruno@clisp.org>
50140
50141         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50142
50143         Make the 'sched' module work on platforms where <sched.h> exists but
50144         is incomplete (such as Haiku).
50145         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50146         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50147         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50148         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50149         HAVE_STRUCT_SCHED_PARAM.
50150         * modules/sched (Depends-on): Add include_next.
50151         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50152         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50153         * doc/posix-headers/sched.texi: Document the issue.
50154
50155 2008-11-13  Jim Meyering  <meyering@redhat.com>
50156
50157         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50158         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50159         test would fail due to the difference in the Report bugs to ...
50160         line.  The expected address is empty, "<>", while the actual
50161         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50162
50163 2008-11-12  Bruno Haible  <bruno@clisp.org>
50164
50165         lstat: don't compile lstat.c on systems lacking lstat
50166         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50167         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50168         Reported by Daniel P. Berrange via Jim Meyering.
50169
50170 2008-11-12  Jim Meyering  <meyering@redhat.com>
50171
50172         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50173
50174 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50175
50176         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50177         instead.
50178
50179 2008-11-12  Bruno Haible  <bruno@clisp.org>
50180
50181         * lib/unicodeio.c: Include unistr.h.
50182         (utf8_wctomb): Remove function.
50183         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50184
50185 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50186
50187         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50188         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50189         <bruno@clisp.org>.
50190         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50191
50192 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50193
50194         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50195         * doc/gnulib.texi: Add section for warnings.
50196
50197 2008-11-11  Bruno Haible  <bruno@clisp.org>
50198
50199         * lib/sockets.h: Add a comment.
50200
50201 2008-11-11  Karl Berry  <karl@gnu.org>
50202
50203         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50204
50205 2008-11-11  Eric Blake  <ebb9@byu.net>
50206
50207         fdl.texi: avoid git symlinks
50208         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50209
50210 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50211
50212         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50213
50214 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50215
50216         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50217         (gl_WARN_ADD): Substitute $2 if literal.
50218
50219 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50220
50221         * m4/warning.m4: Remove.
50222
50223 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50224
50225         * m4/warnings.m4: Almost complete rewrite. :-)
50226
50227 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50228
50229         * modules/warnings: New module.
50230         * m4/warnings.m4: New file.
50231         * MODULES.html.sh: Mention warnings module.
50232         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50233         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50234
50235 2008-11-10  Eric Blake  <ebb9@byu.net>
50236
50237         fdl.texi: make a symlink to the latest version
50238         * doc/standards.texi: Revert today's earlier change.
50239         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50240         * doc/fdl.texi: ...and replace this with a symlink to the newer
50241         fdl-1.3.texi.
50242
50243 2008-11-10  Bruno Haible  <bruno@clisp.org>
50244
50245         * tests/test-select-fd.c (main): Accept the result file name as fourth
50246         argument.
50247         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50248         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50249
50250 2008-11-10  Bruno Haible  <bruno@clisp.org>
50251
50252         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50253         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50254         as autoconf-substituted macros.
50255         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50256         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50257         gl_NETDB_H_DEFAULTS. Set these variables.
50258         * modules/netdb (Makefile.am): Substitute these variables.
50259
50260 2008-11-10  Eric Blake  <ebb9@byu.net>
50261
50262         standards.texi: include correct file for FDL 1.3
50263         * doc/standards.texi (GNU Free Documentation License): Change
50264         include file to pull in FDL 1.3, not 1.2.
50265
50266         fdl.texi: revert accidental change to license
50267         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50268
50269 2008-11-10  Bruno Haible  <bruno@clisp.org>
50270
50271         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50272         cross-compiling guesses also when the native compile gives no result.
50273
50274 2008-11-10  Bruno Haible  <bruno@clisp.org>
50275
50276         * lib/spawni.c (__spawni): Force variable into the stack.
50277
50278 2008-11-10  Bruno Haible  <bruno@clisp.org>
50279
50280         Add support for Haiku.
50281         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50282         glibc and BeOS, but also on Haiku.
50283         * lib/fpurge.c (fpurge): Likewise.
50284         * lib/freadable.c (freadable): Likewise.
50285         * lib/freadahead.c (freadahead): Likewise.
50286         * lib/freading.c (freading): Likewise.
50287         * lib/freadptr.c (freadptr): Likewise.
50288         * lib/freadseek.c (freadptrinc): Likewise.
50289         * lib/fseeko.c (rpl_fseeko): Likewise.
50290         * lib/fseterr.c (fseterr): Likewise.
50291         * lib/fwritable.c (fwritable): Likewise.
50292         * lib/fwriting.c (fwriting): Likewise.
50293         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50294
50295 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50296
50297         * lib/config.charset: Treat Haiku like BeOS.
50298
50299 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50300
50301         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50302         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50303
50304 2008-11-08  Bruno Haible  <bruno@clisp.org>
50305
50306         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50307         AC_CACHE_CHECK.
50308
50309 2008-11-08  Bruno Haible  <bruno@clisp.org>
50310
50311         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50312
50313 2008-11-08  Bruno Haible  <bruno@clisp.org>
50314
50315         * tests/test-select-fd.c: New file.
50316         * tests/test-select-in.sh: New file.
50317         * tests/test-select-out.sh: New file.
50318         * tests/test-select-stdin.c: New file.
50319         * modules/select-tests (Files): Add the new files.
50320         (Depends-on): Add gettimeofday.
50321         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50322         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50323         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50324
50325 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50326             Bruno Haible  <bruno@clisp.org>
50327
50328         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50329
50330 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50331
50332         * build-aux/pmccabe2html: Added support for C++ source files.
50333
50334 2008-11-05  Ben Pfaff  <blp@gnu.org>
50335
50336         Fix lib/close.c build on Windows.
50337         * modules/close (Files): Add lib/w32sock.h.
50338
50339 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50340
50341         Accept Bison's NEWS format.
50342         * build-aux/announce-gen (print_news_deltas): Tweak
50343         $re_prefix.
50344
50345 2008-11-04  Bruno Haible  <bruno@clisp.org>
50346
50347         * modules/random_r (Maintainer): Add glibc.
50348
50349 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50350
50351         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50352         by karl@freefriends.org (Karl Berry).
50353         * doc/alloca.texi: Likewise.
50354         * doc/c-ctype.texi: Likewise.
50355         * doc/c-strcase.texi: Likewise.
50356         * doc/c-strcaseeq.texi: Likewise.
50357         * doc/c-strcasestr.texi: Likewise.
50358         * doc/c-strstr.texi: Likewise.
50359         * doc/c-strtod.texi: Likewise.
50360         * doc/c-strtold.texi: Likewise.
50361         * doc/ctime.texi: Likewise.
50362         * doc/error.texi: Likewise.
50363         * doc/fdl.texi: Likewise.
50364         * doc/gcd.texi: Likewise.
50365         * doc/getdate.texi: Likewise.
50366         * doc/gnulib-intro.texi: Likewise.
50367         * doc/gnulib-tool.texi: Likewise.
50368         * doc/gnulib.texi: Likewise.
50369         * doc/inet_ntoa.texi: Likewise.
50370         * doc/maintain.texi: Likewise.
50371         * doc/make-stds.texi: Likewise.
50372         * doc/quote.texi: Likewise.
50373         * doc/regexprops-generic.texi: Likewise.
50374         * doc/standards.texi: Likewise.
50375         * doc/verify.texi: Likewise.
50376         * doc/visibility.texi: Likewise.
50377         * doc/gnulib.texi (GNU Free Documentation License): Include
50378         fdl-1.3.texi instead of fdl.texi.
50379
50380 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50381
50382         * doc/fdl-1.3.texi: New file, from
50383         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50384         * modules/fdl-1.3: Add.
50385         * MODULES.html.sh: Add fdl-1.3.
50386
50387 2008-11-03  Bruno Haible  <bruno@clisp.org>
50388
50389         Make determination of absolute name of header file work with AIX xlc.
50390         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50391         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50392         preprocessing.
50393         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50394         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50395
50396 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50397
50398         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50399         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50400         <ludo@gnu.org>.
50401
50402 2008-11-02  Bruno Haible  <bruno@clisp.org>
50403
50404         Mark 'strpbrk' obsolete.
50405         * modules/strpbrk (Status, Notice): New sections.
50406         * modules/strtok_r (Depends-on): Add strpbrk.
50407
50408 2008-11-02  Bruno Haible  <bruno@clisp.org>
50409
50410         Mark 'strdup' obsolete.
50411         * modules/strdup (Status, Notice): New sections.
50412         * modules/findprog (Depends-on): Add strdup.
50413         * modules/getaddrinfo (Depends-on): Likewise.
50414         * modules/localename (Depends-on): Likewise.
50415         * modules/relocatable-lib (Depends-on): Likewise.
50416         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50417         * modules/relocatable-prog (Depends-on): Likewise.
50418         * modules/trim (Depends-on): Likewise.
50419         * modules/unictype/gen-ctype (Depends-on): Likewise.
50420         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50421
50422 2008-11-02  Bruno Haible  <bruno@clisp.org>
50423
50424         Mark 'strcspn' obsolete.
50425         * modules/strcspn (Status, Notice): New sections.
50426
50427 2008-11-02  Bruno Haible  <bruno@clisp.org>
50428
50429         Mark 'rmdir' obsolete.
50430         * modules/rmdir (Status, Notice): New sections.
50431         * modules/clean-temp (Depends-on): Add rmdir.
50432         * modules/openat (Depends-on): Likewise.
50433
50434 2008-11-02  Bruno Haible  <bruno@clisp.org>
50435
50436         Mark 'raise' obsolete.
50437         * modules/raise (Status, Notice): New sections.
50438         (Include): Specify <signal.h>.
50439         * modules/stdio (Depends-on): Add raise.
50440         * modules/write (Depends-on): Likewise.
50441
50442 2008-11-02  Bruno Haible  <bruno@clisp.org>
50443
50444         Mark 'memset' obsolete.
50445         * modules/memset (Status, Notice): New sections.
50446
50447 2008-11-02  Bruno Haible  <bruno@clisp.org>
50448
50449         Mark 'memmove' obsolete.
50450         * modules/memmove (Status, Notice): New sections.
50451         * modules/argp (Depends-on): Add memmove.
50452         * modules/argz (Depends-on): Likewise.
50453         * modules/canonicalize (Depends-on): Likewise.
50454         * modules/canonicalize-lgpl (Depends-on): Likewise.
50455         * modules/fts (Depends-on): Likewise.
50456         * modules/getcwd (Depends-on): Likewise.
50457         * modules/human (Depends-on): Likewise.
50458         * modules/regex (Depends-on): Likewise.
50459         * modules/striconveh (Depends-on): Likewise.
50460         * modules/trim (Depends-on): Likewise.
50461         * modules/unistr/u8-move (Depends-on): Likewise.
50462         * modules/unistr/u16-move (Depends-on): Likewise.
50463         * modules/unistr/u32-move (Depends-on): Likewise.
50464
50465 2008-11-02  Bruno Haible  <bruno@clisp.org>
50466
50467         Mark 'memcpy' obsolete.
50468         * modules/memcpy (Status, Notice): New sections.
50469
50470 2008-11-02  Bruno Haible  <bruno@clisp.org>
50471
50472         Mark 'memcmp' obsolete.
50473         * modules/memcmp (Status, Notice): New sections.
50474         * modules/argmatch (Depends-on): Add memchr.
50475         * modules/backupfile (Depends-on): Likewise.
50476         * modules/c-strcasestr (Depends-on): Likewise.
50477         * modules/crypto/des (Depends-on): Likewise.
50478         * modules/csharpcomp (Depends-on): Likewise.
50479         * modules/fnmatch (Depends-on): Likewise.
50480         * modules/git-merge-changelog (Depends-on): Likewise.
50481         * modules/isnand (Depends-on): Likewise.
50482         * modules/isnand-nolibm (Depends-on): Likewise.
50483         * modules/isnanf (Depends-on): Likewise.
50484         * modules/isnanf-nolibm (Depends-on): Likewise.
50485         * modules/isnanl (Depends-on): Likewise.
50486         * modules/isnanl-nolibm (Depends-on): Likewise.
50487         * modules/mbchar (Depends-on): Likewise.
50488         * modules/memcoll (Depends-on): Likewise.
50489         * modules/quotearg (Depends-on): Likewise.
50490         * modules/regex (Depends-on): Likewise.
50491         * modules/relocatable-prog (Depends-on): Likewise.
50492         * modules/same (Depends-on): Likewise.
50493         * modules/signbit (Depends-on): Likewise.
50494         * modules/strcasestr-simple (Depends-on): Likewise.
50495         * modules/unictype/gen-ctype (Depends-on): Likewise.
50496         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50497         * modules/uniname/uniname (Depends-on): Likewise.
50498         * modules/unistr/u8-cmp (Depends-on): Likewise.
50499
50500 2008-11-02  Bruno Haible  <bruno@clisp.org>
50501
50502         Mark 'memchr' obsolete.
50503         * modules/memchr (Status, Notice): New sections.
50504         * modules/argp (Depends-on): Add memchr.
50505         * modules/base64 (Depends-on): Likewise.
50506         * modules/c-strcasestr (Depends-on): Likewise.
50507         * modules/chdir-long (Depends-on): Likewise.
50508         * modules/fnmatch (Depends-on): Likewise.
50509         * modules/getsubopt (Depends-on): Likewise.
50510         * modules/git-merge-changelog (Depends-on): Likewise.
50511         * modules/glob (Depends-on): Likewise.
50512         * modules/strcasestr-simple (Depends-on): Likewise.
50513         * modules/strnlen (Depends-on): Likewise.
50514
50515 2008-11-02  Bruno Haible  <bruno@clisp.org>
50516
50517         Mark 'atexit' obsolete.
50518         * modules/atexit (Status, Notice): New sections.
50519         * modules/chdir-long (Depends-on): Add atexit.
50520         * modules/wait-process (Depends-on): Likewise.
50521
50522 2008-11-02  Bruno Haible  <bruno@clisp.org>
50523
50524         * gnulib-tool: New option --with-obsolete.
50525         (func_usage): Document it.
50526         (func_modules_transitive_closure): Drop obsolete dependencies if
50527         incobsolete is not true.
50528         (func_import): Read and save the incobsolete variable to the cache.
50529
50530 2008-11-02  Bruno Haible  <bruno@clisp.org>
50531
50532         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50533         * gnulib-tool: New option --extract-status.
50534         (func_usage): Document it.
50535         (sed_extract_prog): Recognize it.
50536         (func_get_status): New function.
50537
50538 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50539
50540         * modules/sockets (License): Change from LGPL to LGPLv2+.
50541
50542 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50543
50544         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50545
50546 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50547
50548         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50549         Mention times and sys_times.
50550         * modules/sys_times, modules/sys_times-tests: New modules.
50551         * modules/times, modules/times-tests: Likewise
50552         * m4/sys_times_h.m4: New file.
50553         * lib/sys_times.in.h: Likewise
50554         * lib/times.c: Likewise.
50555         * tests/test-sys_times.c: Likewise.
50556         * tests/test-times.c: Likewise.
50557         * doc/posix-headers/sys_times.texi: Update.
50558         * doc/posix-functions/times.texi: Update.
50559
50560 2008-10-28  Jim Meyering  <meyering@redhat.com>
50561
50562         * modules/tempname (Depends-on): Add lstat.
50563
50564         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50565
50566 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50567
50568         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50569         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50570         using idiom used elsewhere in gnulib.
50571
50572 2008-10-27  Jim Meyering  <meyering@redhat.com>
50573
50574         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50575
50576 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50577
50578         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50579         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50580         programs.
50581         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50582
50583 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50584
50585         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50586
50587 2008-10-27  Bruno Haible  <bruno@clisp.org>
50588
50589         * tests/test-lstat.c: Include <stdio.h>.
50590
50591 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50592
50593         * modules/lstat-tests: New module.
50594         * tests/test-lstat.c: New file.
50595
50596 2008-10-26  Jim Meyering  <meyering@redhat.com>
50597
50598         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50599
50600 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50601             Bruno Haible  <bruno@clisp.org>
50602
50603         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50604         * modules/configmake (Include): Add a note that the include must come
50605         after all system headers.
50606         * lib/javaversion.c: Include configmake.h after all other includes.
50607
50608 2008-10-26  Bruno Haible  <bruno@clisp.org>
50609
50610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50611         HAVE_STRUCT_RANDOM_DATA to 1.
50612         (gl_STDLIB_H): Simplify.
50613
50614 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50615
50616         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50617         substitute HAVE_STRUCT_RANDOM_DATA.
50618         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50619         random_data.
50620         * modules/stdlib (Makefile.am): Substitute
50621         HAVE_STRUCT_RANDOM_DATA.
50622
50623 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50624
50625         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50626         * doc/gnulib-intro.texi (Copyright): Likewise.
50627
50628 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50629
50630         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50631         findings.
50632
50633 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50634             Bruno Haible  <bruno@clisp.org>
50635
50636         * lib/unistd.in.h: Include <winsock2.h>.
50637         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50638         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50639         Provide dummy declarations.
50640         (gethostname): Override.
50641         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50642         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50643         gl_PREREQ_SYS_H_WINSOCK2.
50644         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50645         * doc/posix-functions/gethostname.texi: More details.
50646
50647 2008-10-25  Bruno Haible  <bruno@clisp.org>
50648
50649         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50650         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50651         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50652
50653         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50654         here ...
50655         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50656         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50657         gl_UNISTD_H_DEFAULTS.
50658
50659 2008-10-25  Eric Blake  <ebb9@byu.net>
50660
50661         signbit: avoid spurious compiler failure
50662         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50663         declarations inside function.
50664
50665 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50666             Bruno Haible  <bruno@clisp.org>
50667
50668         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50669         * modules/random_r (Depends-on): Add stdint.
50670
50671 2008-10-24  Bruno Haible  <bruno@clisp.org>
50672
50673         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50674         Eggert.
50675         * modules/strerror (License): Likewise.
50676
50677 2008-10-24  Jim Meyering  <meyering@redhat.com>
50678
50679         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50680         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50681
50682 2008-10-24  Eric Blake  <ebb9@byu.net>
50683
50684         getgroups: fix compilation when getgroups is available
50685         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50686         but with <config.h> override of getgroups disabled.
50687
50688 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50689
50690         * doc/gnulib.texi (Header files): Add note about C++ problems.
50691         Explained by Bruno Haible <bruno@clisp.org>.
50692
50693 2008-10-23  Bruno Haible  <bruno@clisp.org>
50694
50695         Define a dummy SA_NODEFER macro on Interix.
50696         * lib/signal.in.h (SA_NODEFER): Define fallback.
50697         Reported by Aleksey Cheusov <cheusov@tut.by> via
50698         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50699
50700 2008-10-23  Bruno Haible  <bruno@clisp.org>
50701
50702         * modules/freadahead (License): Change to LGPLv2+.
50703         Suggested by Simon Josefsson.
50704
50705 2008-10-23  Jim Meyering  <meyering@redhat.com>
50706
50707         random_r: new module
50708         * modules/random_r: New file.
50709         * m4/random_r.m4: New file.
50710         * lib/random_r.c: New file, from glibc.
50711         * modules/random_r-tests: New file.
50712         * tests/test-random_r.c: New file.
50713         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50714          Declare.
50715         (RAND_MAX): Define.
50716         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50717         * modules/stdlib: Substitute them, too.
50718         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50719         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50720         * doc/glibc-functions/random_r.texi: Likewise.
50721         * doc/glibc-functions/setstate_r.texi: Likewise.
50722         * doc/glibc-functions/srandom_r.texi: Likewise.
50723         * config/srclist.txt: Mention it.
50724
50725 2008-10-23  David Lutterkort  <lutter@redhat.com>
50726
50727         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50728         link requirement
50729
50730 2008-10-23  Jim Meyering  <meyering@redhat.com>
50731
50732         selinux-h: mark parameters of stub functions as intentionally unused
50733         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50734         * lib/se-context.in.h: Likewise.
50735
50736 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50737
50738         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50739
50740 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50741
50742         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50743
50744 2008-10-22  Eric Blake  <ebb9@byu.net>
50745
50746         glthread/thread: avoid compiler warning
50747         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50748         Add unreachable abort to silence compiler.
50749
50750 2008-10-22  Eric Blake  <ebb9@byu.net>
50751
50752         netdb: also supply struct addrinfo for cygwin 1.5.x
50753         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50754         older cygwin.
50755         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50756         cygwin.
50757         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50758
50759 2008-10-22  Bruno Haible  <bruno@clisp.org>
50760
50761         * users.txt: Update entry about pspp.
50762
50763 2008-10-21  Bruno Haible  <bruno@clisp.org>
50764
50765         Simplification.
50766         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50767         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50768
50769         Simplification.
50770         * lib/ioctl.c (ioctl): Don't undefine.
50771         * lib/socket.c (socket): Don't undefine.
50772
50773         Remove unused module indicator macros.
50774         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50775         GNULIB_$1 as a C macro.
50776
50777         * doc/posix-functions/close.texi: Undo last change.
50778         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50779         Windows platforms.
50780
50781 2008-10-21  Bruno Haible  <bruno@clisp.org>
50782
50783         Add gethostname() declaration to <unistd.h>.
50784         * lib/unistd.in.h (gethostname): New declaration.
50785         * lib/gethostname.c: Include <unistd.h>.
50786         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50787         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50789         and HAVE_GETHOSTNAME.
50790         * modules/gethostname (Depends-on): Add unistd.
50791         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50792         (Include): Specify <unistd.h>.
50793         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50794         HAVE_GETHOSTNAME.
50795         * tests/test-gethostname.c: Include <unistd.h> first.
50796
50797 2008-10-21  Bruno Haible  <bruno@clisp.org>
50798
50799         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50800         * modules/select-tests (Depends-on): Likewise.
50801         Reported by Simon Josefsson.
50802
50803 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50804
50805         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50806         * lib/accept.c: New file, based on winsock.c.
50807         * lib/bind.c: New file, based on winsock.c.
50808         * lib/connect.c: New file, based on winsock.c.
50809         * lib/getpeername.c: New file, based on winsock.c.
50810         * lib/getsockname.c: New file, based on winsock.c.
50811         * lib/getsockopt.c: New file, based on winsock.c.
50812         * lib/ioctl.c: New file, based on winsock.c.
50813         * lib/listen.c: New file, based on winsock.c.
50814         * lib/recv.c: New file, based on winsock.c.
50815         * lib/recvfrom.c: New file, based on winsock.c.
50816         * lib/send.c: New file, based on winsock.c.
50817         * lib/sendto.c: New file, based on winsock.c.
50818         * lib/setsockopt.c: New file, based on winsock.c.
50819         * lib/shutdown.c: New file, based on winsock.c.
50820         * lib/socket.c: New file, based on winsock.c.
50821         * lib/w32sock.h: New file, based on winsock.c.
50822         * lib/winsock.c: Remove file.
50823         * modules/accept: Likewise.
50824         * modules/bind: Likewise.
50825         * modules/connect: Likewise.
50826         * modules/getpeername: Likewise.
50827         * modules/getsockname: Likewise.
50828         * modules/getsockopt: Likewise.
50829         * modules/ioctl: Likewise.
50830         * modules/listen: Likewise.
50831         * modules/recv: Likewise.
50832         * modules/recvfrom: Likewise.
50833         * modules/send: Likewise.
50834         * modules/sendto: Likewise.
50835         * modules/setsockopt: Likewise.
50836         * modules/shutdown: Likewise.
50837         * modules/socket: Use socket.c instead of winsock.c.
50838         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50839         * doc/posix-functions/accept.texi: Doc fix.
50840         * doc/posix-functions/bind.texi: Doc fix.
50841         * doc/posix-functions/close.texi: Doc fix.
50842         * doc/posix-functions/connect.texi: Doc fix.
50843         * doc/posix-functions/getpeername.texi: Doc fix.
50844         * doc/posix-functions/getsockname.texi: Doc fix.
50845         * doc/posix-functions/getsockopt.texi: Doc fix.
50846         * doc/posix-functions/ioctl.texi: Doc fix.
50847         * doc/posix-functions/listen.texi: Doc fix.
50848         * doc/posix-functions/recv.texi: Doc fix.
50849         * doc/posix-functions/recvfrom.texi: Doc fix.
50850         * doc/posix-functions/send.texi: Doc fix.
50851         * doc/posix-functions/sendto.texi: Doc fix.
50852         * doc/posix-functions/setsockopt.texi: Doc fix.
50853         * doc/posix-functions/shutdown.texi: Doc fix.
50854         * doc/posix-functions/socket.texi: Doc fix.
50855
50856 2008-10-20  Bruno Haible  <bruno@clisp.org>
50857
50858         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50859         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50860         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50861         as an alias for SIGABRT.
50862         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50863         (sigaction): Map it to SIGABRT.
50864         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50865
50866 2008-10-20  Bruno Haible  <bruno@clisp.org>
50867
50868         * lib/fts.c: Don't include lstat.h.
50869         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50870
50871         Move the lstat() declaration to <sys/stat.h>.
50872         * lib/lstat.h: Remove file.
50873         * lib/sys_stat.in.h: Add special invocation convention.
50874         (lstat): New declaration.
50875         * lib/lstat.c (orig_lstat): New function.
50876         (rpl_lstat): Use orig_lstat instead of lstat.
50877         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50878         AC_C_INLINE. Set REPLACE_LSTAT.
50879         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50880         and REPLACE_LSTAT.
50881         * modules/lstat (Files): Remove lib/lstat.h.
50882         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50883         (Include): Specify <sys/stat.h> instead of lstat.h.
50884         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50885         REPLACE_LSTAT.
50886         * NEWS: Mention the change.
50887
50888 2008-10-20  Bruno Haible  <bruno@clisp.org>
50889
50890         * modules/posix_spawn-tests: New file.
50891         * tests/test-posix_spawn3.c: New file.
50892
50893 2008-10-20  Bruno Haible  <bruno@clisp.org>
50894
50895         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50896         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50897         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50898         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50899         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50900
50901 2008-10-20  Bruno Haible  <bruno@clisp.org>
50902
50903         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50904         of posix_spawn on AIX 5.3.
50905
50906 2008-10-20  Bruno Haible  <bruno@clisp.org>
50907
50908         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50909
50910 2008-10-20  Bruno Haible  <bruno@clisp.org>
50911
50912         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50913         of AC_LANG_PROGRAM.
50914
50915 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50916
50917         * lib/netdb.in.h: Don't define GNU specific constants until they
50918         are supported or needed.  Reported by Bruno Haible
50919         <bruno@clisp.org>.
50920
50921 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50922
50923         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50924
50925 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50926
50927         * lib/getaddrinfo.h: Remove file.
50928         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50929         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50930         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50931         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50932         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50933         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50934         * tests/test-getaddrinfo.c: Likewise.
50935         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50936         * NEWS: Mention change.
50937
50938 2008-10-19  Bruno Haible  <bruno@clisp.org>
50939
50940         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50941
50942 2008-10-19  Bruno Haible  <bruno@clisp.org>
50943
50944         * lib/wait-process.c: Include simply <sys/wait.h>.
50945         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50946         WIFSTOPPED): Remove fallback definitions.
50947         * modules/wait-process (Depends-on): Add sys_wait.
50948
50949         New module 'sys_wait'.
50950         * modules/sys_wait: New file.
50951         * lib/sys_wait.in.h: New file, partially copied from
50952         lib/wait-process.c.
50953         * m4/sys_wait_h.m4: New file.
50954         * doc/posix-headers/sys_wait.texi: Mention the new module.
50955
50956 2008-10-19  Bruno Haible  <bruno@clisp.org>
50957
50958         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50959
50960 2008-10-19  Bruno Haible  <bruno@clisp.org>
50961
50962         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50963         * lib/wait-process.c (WAIT_T): Remove type.
50964         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50965         (wait_subprocess): Update.
50966
50967 2008-10-19  Bruno Haible  <bruno@clisp.org>
50968
50969         New module 'atoll'.
50970         * modules/atoll: New file.
50971         * lib/stdlib.in.h (atoll): New declaration.
50972         * lib/atoll.c: New file, from glibc with modifications.
50973         * m4/atoll.m4: New file.
50974         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50975         HAVE_ATOLL.
50976         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50977         * doc/posix-functions/atoll.texi: Mention the new module.
50978
50979 2008-10-19  Bruno Haible  <bruno@clisp.org>
50980
50981         Add strtoull() declaration to <stdlib.h>.
50982         * lib/stdlib.in.h (strtoull): New declaration.
50983         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50984         Set HAVE_STRTOULL.
50985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50986         HAVE_STRTOULL.
50987         * modules/strtoull (Depends-on): Add stdlib.
50988         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50989         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50990         HAVE_STRTOULL.
50991
50992 2008-10-19  Bruno Haible  <bruno@clisp.org>
50993
50994         Add strtoll() declaration to <stdlib.h>.
50995         * lib/stdlib.in.h (strtoll): New declaration.
50996         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50997         Set HAVE_STRTOLL.
50998         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50999         HAVE_STRTOLL.
51000         * modules/strtoll (Depends-on): Add stdlib.
51001         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51002         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51003
51004 2008-10-19  Bruno Haible  <bruno@clisp.org>
51005
51006         * modules/bcopy (Depends-on): Add strings.
51007         (Include): Specify <strings.h>.
51008
51009 2008-10-19  Bruno Haible  <bruno@clisp.org>
51010
51011         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51012
51013 2008-10-19  Bruno Haible  <bruno@clisp.org>
51014
51015         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51016         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51017         mingw.
51018
51019 2008-10-19  Bruno Haible  <bruno@clisp.org>
51020
51021         * lib/atanl.c: Don't include isnanl.h.
51022         * lib/cosl.c: Likewise.
51023         * lib/ldexpl.c: Likewise.
51024         * lib/logl.c: Likewise.
51025         * lib/sinl.c: Likewise.
51026         * lib/sqrtl.c: Likewise.
51027         * lib/tanl.c: Likewise.
51028
51029         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51030         * lib/isnanf.h: Remove file.
51031         * lib/isnand.h: Remove file.
51032         * lib/isnanl.h: Remove file.
51033         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51034         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51035         macros.
51036         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51037         HAVE_ISNANF, don't define it as a C macro.
51038         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51039         HAVE_ISNAND, don't define it as a C macro.
51040         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51041         HAVE_ISNANL, don't define it as a C macro.
51042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51043         HAVE_ISNAN[FDL].
51044         * modules/isnanf (Files): Remove lib/isnanf.h.
51045         (Depends-on): Add math.
51046         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51047         (Include): Specify <math.h> instead of isnanf.h.
51048         * modules/isnand (Files): Remove lib/isnand.h.
51049         (Depends-on): Add math.
51050         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51051         (Include): Specify <math.h> instead of isnand.h.
51052         * modules/isnanl (Files): Remove lib/isnanl.h.
51053         (Depends-on): Add math.
51054         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51055         (Include): Specify <math.h> instead of isnanl.h.
51056         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51057         HAVE_ISNAN[FDL].
51058         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51059         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51060         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51061         * NEWS: Mention the change.
51062
51063 2008-10-18  Bruno Haible  <bruno@clisp.org>
51064
51065         Add getusershell(), setusershell(), endusershell() declarations to
51066         <unistd.h>.
51067         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51068         declarations.
51069         * lib/getusershell.c: Include unistd.h.
51070         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51071         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51072         HAVE_GETUSERSHELL.
51073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51074         and HAVE_GETUSERSHELL.
51075         * modules/getusershell (Depends-on): Add unistd, extensions.
51076         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51077         (Include): Specify <unistd.h>.
51078         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51079         HAVE_GETUSERSHELL.
51080
51081 2008-10-18  Bruno Haible  <bruno@clisp.org>
51082
51083         Add a getloadavg() declaration to <stdlib.h>.
51084         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51085         getloadavg declaration.
51086         (getloadavg): New declaration.
51087         * lib/getloadavg.c: Include <stdlib.h> first.
51088         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51089         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51090         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51092         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51093         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51094         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51095         (Include): Specify <stdlib.h>.
51096         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51097         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51098
51099 2008-10-18  Bruno Haible  <bruno@clisp.org>
51100
51101         * lib/dirchownmod.c: Don't include lchmod.h.
51102
51103         Move the lchmod() declaration to <sys/stat.h>.
51104         * lib/lchmod.h: Remove file.
51105         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51106         (lchmod): New declaration, moved here from lib/lchown.h.
51107         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51108         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51109         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51110         and HAVE_LCHMOD.
51111         * modules/lchmod (Files): Remove lib/lchmod.h.
51112         (Depends-on): Add sys_stat, extensions.
51113         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51114         (Include): Specify <sys/stat.h> instead of lchmod.h.
51115         * modules/sys_stat (Depends-on): Add link-warning.
51116         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51117         definition of GL_LINK_WARNING.
51118         * NEWS: Mention the change.
51119
51120 2008-10-18  Bruno Haible  <bruno@clisp.org>
51121
51122         * lib/fchdir.c: Don't include dirfd.h.
51123         * lib/fts.c: Likewise.
51124         * lib/getcwd.c: Likewise.
51125         * lib/glob.c: Likewise.
51126
51127         Move the dirfd() declaration to <dirent.h>.
51128         * lib/dirfd.h: Remove file.
51129         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51130         (dirfd): New declaration.
51131         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51132         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51133         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51134         HAVE_DECL_DIRFD.
51135         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51136         HAVE_DECL_DIRFD.
51137         * modules/dirfd (Files): Remove lib/dirfd.h.
51138         (Depends-on): Add dirent, extensions.
51139         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51140         (Include): Specify <dirent.h> instead of dirfd.h.
51141         * modules/dirent (Depends-on): Add link-warning.
51142         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51143         definition of GL_LINK_WARNING.
51144         * NEWS: Mention the change.
51145
51146 2008-10-18  Bruno Haible  <bruno@clisp.org>
51147
51148         Move the euidaccess() declaration to <unistd.h>.
51149         * lib/euidaccess.h: Remove file.
51150         * lib/unistd.in.h (euidaccess): New declaration.
51151         * lib/euidaccess.c: Don't include euidaccess.h.
51152         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51153         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51155         and HAVE_EUIDACCESS.
51156         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51157         (Depends-on): Add unistd.
51158         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51159         (Include): Specify <unistd.h> instead of euidaccess.h.
51160         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51161         HAVE_EUIDACCESS.
51162         * NEWS: Mention the change.
51163
51164 2008-10-18  Bruno Haible  <bruno@clisp.org>
51165
51166         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51167
51168         Move the getdomainname() declaration to <unistd.h>.
51169         * lib/getdomainname.h: Remove file.
51170         * lib/unistd.in.h (getdomainname): New declaration.
51171         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51172         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51173         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51174         HAVE_GETDOMAINNAME.
51175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51176         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51177         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51178         (Depends-on): Add unistd, extensions.
51179         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51180         (Includes): Specify <unistd.h> instead of getdomainname.h.
51181         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51182         HAVE_GETDOMAINNAME.
51183         * NEWS: Mention the change.
51184
51185 2008-10-18  Bruno Haible  <bruno@clisp.org>
51186
51187         * modules/dirent: New file.
51188         * m4/dirent_h.m4: New file.
51189         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51190         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51191         * modules/fchdir (Files): Remove lib/dirent.in.h.
51192         (Depends-on): Add dirent.
51193         (Makefile.am): Move rules to modules/dirent.
51194         * doc/posix-headers/dirent.texi: Mention the new module.
51195
51196 2008-10-18  Bruno Haible  <bruno@clisp.org>
51197
51198         Avoid -Wunused-parameter warnings in public gnulib header files.
51199         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51200         macro.
51201         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51202
51203 2008-10-18  Bruno Haible  <bruno@clisp.org>
51204
51205         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51206         * doc/glibc-functions/error.texi: Mention the module 'error'.
51207         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51208         * doc/glibc-functions/getdomainname.texi: Mention the module
51209         'getdomainname'.
51210         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51211         * doc/glibc-functions/getpagesize.texi: Mention the module
51212         'getpagesize'.
51213         * doc/glibc-functions/getusershell.texi: Mention the module
51214         'getusershell'.
51215         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51216         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51217         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51218         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51219         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51220         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51221         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51222         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51223         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51224         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51225         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51226         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51227         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51228         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51229
51230 2008-10-17  Bruno Haible  <bruno@clisp.org>
51231
51232         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51233         HP-UX and IRIX, use -0.0L.
51234         * tests/test-ceill.c (minus_zero): Likewise.
51235         * tests/test-floorl.c (minus_zero): Likewise.
51236         * tests/test-frexpl.c (minus_zero): Likewise.
51237         * tests/test-isnan.c (minus_zerol): Likewise.
51238         * tests/test-isnanl.h (minus_zero): Likewise.
51239         * tests/test-ldexpl.c (minus_zero): Likewise.
51240         * tests/test-roundl.c (minus_zero): Likewise.
51241         * tests/test-signbit.c (minus_zerol): Likewise.
51242         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51243         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51244         * tests/test-truncl.c (minus_zero): Likewise.
51245         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51246         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51247         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51248         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51249
51250 2008-10-17  Bruno Haible  <bruno@clisp.org>
51251
51252         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51253         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51254         that it gets activated only for gcc >= 3.0.
51255         * lib/dirent.in.h: Likewise.
51256         * lib/errno.in.h: Likewise.
51257         * lib/fcntl.in.h: Likewise.
51258         * lib/float.in.h: Likewise.
51259         * lib/iconv.in.h: Likewise.
51260         * lib/inttypes.in.h: Likewise.
51261         * lib/locale.in.h: Likewise.
51262         * lib/math.in.h: Likewise.
51263         * lib/netdb.in.h: Likewise.
51264         * lib/netinet_in.in.h: Likewise.
51265         * lib/search.in.h: Likewise.
51266         * lib/signal.in.h: Likewise.
51267         * lib/spawn.in.h: Likewise.
51268         * lib/stdarg.in.h: Likewise.
51269         * lib/stdint.in.h: Likewise.
51270         * lib/stdio.in.h: Likewise.
51271         * lib/stdlib.in.h: Likewise.
51272         * lib/string.in.h: Likewise.
51273         * lib/strings.in.h: Likewise.
51274         * lib/sys_file.in.h: Likewise.
51275         * lib/sys_ioctl.in.h: Likewise.
51276         * lib/sys_select.in.h: Likewise.
51277         * lib/sys_socket.in.h: Likewise.
51278         * lib/sys_stat.in.h: Likewise.
51279         * lib/sys_time.in.h: Likewise.
51280         * lib/sysexits.in.h: Likewise.
51281         * lib/time.in.h: Likewise.
51282         * lib/unistd.in.h: Likewise.
51283         * lib/wchar.in.h: Likewise.
51284         * lib/wctype.in.h: Likewise.
51285         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51286
51287 2008-10-17  Jim Meyering  <meyering@redhat.com>
51288
51289         ignore-value: don't depend on inline module
51290         * modules/ignore-value (Depends-on): Remove 'inline'.
51291         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51292         Suggestion from Bruno Haible.
51293
51294 2008-10-17  Bruno Haible  <bruno@clisp.org>
51295
51296         New implementation of condition variables for Win32.
51297         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51298         (gl_linked_waitqueue_t): New type.
51299         (gl_cond_t): Use it.
51300         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51301         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51302         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51303         (glthread_cond_init_func, glthread_cond_wait_func,
51304         glthread_cond_timedwait_func, glthread_cond_signal_func,
51305         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51306         Reimplemented on the basis of gl_linked_waitqueue_t.
51307         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51308         gl_waitqueue_t.
51309         (gl_rwlock_t): Update.
51310         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51311
51312 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51313
51314         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51315         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51316
51317 2008-10-17  Jim Meyering  <meyering@redhat.com>
51318
51319         ignore-value: new module
51320         * modules/ignore-value: New file.
51321         * lib/ignore-value.h: New file.
51322         * MODULES.html.sh (Compiler warning management): New section,
51323         just for this module.  More to come.
51324
51325 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51326
51327         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51328         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51329         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51330
51331 2008-10-16  Jim Meyering  <meyering@redhat.com>
51332
51333         openat-die.c: avoid 'no previous prototype' warning
51334         * lib/openat-die.c: Include "openat.h".
51335         Reported by Reuben Thomas <rrt@sc3d.org>.
51336
51337 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51338
51339         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51340         * lib/netdb.in.h: Fix typo.
51341         Reported by Bruno Haible  <bruno@clisp.org>
51342
51343         * lib/netdb.in.h: Include sys/socket.h for platforms without
51344         netdb.h, to get structures like hostent on MinGW.
51345         * modules/netdb (Depends-on): Add sys_socket.
51346
51347 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51348
51349         * modules/netdb, modules/netdb-tests: New file.
51350         * m4/netdb_h.m4: New file.
51351         * lib/netdb.in.h: Add, currently just an empty file pending
51352         definitions.
51353         * tests/test-netdb.c: New file.
51354         * doc/posix-headers/netdb.texi: Mention that we replace it if
51355         needed.
51356         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51357         netdb.
51358
51359 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51360
51361         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51362         with code.
51363
51364 2008-10-13  Bruno Haible  <bruno@clisp.org>
51365
51366         * lib/glthread/cond.c (glthread_cond_wait_func,
51367         glthread_cond_timedwait_func): Add a comment.
51368
51369 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51370
51371         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51372         * tests/test-select.c: Likewise,
51373
51374 2008-10-13  Bruno Haible  <bruno@clisp.org>
51375
51376         * lib/glthread/cond.c (glthread_cond_wait_func,
51377         glthread_cond_timedwait_func): Fix variable name.
51378         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51379
51380 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51381
51382         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51383         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51384         struct sockaddr.sa_len.
51385         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51386
51387 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51388
51389         * build-aux/pmccabe2html: Add css and css_url parameters.
51390
51391 2008-10-12  Bruno Haible  <bruno@clisp.org>
51392
51393         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51394         calling aclx_get.
51395         Reported by Rainer Tammer <tammer@tammer.net>.
51396
51397 2008-10-12  Bruno Haible  <bruno@clisp.org>
51398
51399         Use msvcrt aware primitives for creation/termination of Win32 threads.
51400         * lib/glthread/thread.c: Include <process.h>.
51401         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51402         (wrapper_func): Update signature.
51403         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51404
51405 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51406             Bruno Haible  <bruno@clisp.org>
51407
51408         Provide a Win32 implementation of the 'cond' module.
51409         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51410         * lib/glthread/cond.c (glthread_cond_init_func,
51411         glthread_cond_wait_func, glthread_cond_timedwait_func,
51412         glthread_cond_signal_func, glthread_cond_broadcast_func,
51413         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51414         * modules/cond (Dependencies): Add gettimeofday.
51415
51416 2008-10-11  Bruno Haible  <bruno@clisp.org>
51417
51418         Make sleep work on older versions of mingw.
51419         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51420         only whether it exists.
51421         * doc/posix-functions/sleep.texi: Mention the problem with older
51422         versions of mingw.
51423
51424 2008-10-11  Bruno Haible  <bruno@clisp.org>
51425
51426         New module 'shutdown'.
51427         * modules/shutdown: New file.
51428         * lib/sys_socket.in.h (shutdown): New declaration.
51429         * lib/winsock.c (shutdown): New function.
51430         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51431         GNULIB_SHUTDOWN.
51432         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51433         * doc/posix-functions/shutdown.texi: Document the new module.
51434
51435 2008-10-11  Jim Meyering  <meyering@redhat.com>
51436
51437         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51438
51439 2008-10-11  Bruno Haible  <bruno@clisp.org>
51440
51441         New module 'fclose'.
51442         * modules/fclose: New file.
51443         * lib/stdio.in.h (fclose): New declaration.
51444         * lib/fclose.c: New file.
51445         * m4/fclose.m4: New file.
51446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51447         REPLACE_FCLOSE.
51448         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51449         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51450         REPLACE_FCLOSE.
51451         * modules/close (Depends-on): fclose.
51452         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51453
51454 2008-10-11  Bruno Haible  <bruno@clisp.org>
51455
51456         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51457         set errno and don't call _close.
51458
51459 2008-10-10  Bruno Haible  <bruno@clisp.org>
51460
51461         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51462         ACL, not afterwards. Fixes test failure on Cygwin.
51463
51464 2008-10-09  Ben Pfaff  <blp@gnu.org>
51465
51466         * build-aux/announce-gen: Fix gnulib version related part of usage
51467         message.  Die with a useful error message if no tarballs are
51468         found.
51469
51470 2008-10-10  Jim Meyering  <meyering@redhat.com>
51471
51472         bootstrap: use git's --depth=N option only if it's supported
51473         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51474         recognize the --depth option.  Reported by Pádraig Brady.
51475
51476 2008-10-09  Bruno Haible  <bruno@clisp.org>
51477
51478         New module 'ioctl'.
51479         * modules/ioctl: New file.
51480         * lib/sys_socket.in.h (ioctl): Remove declaration.
51481         * lib/winsock.c: Include <sys/ioctl.h>.
51482         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51483         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51484         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51485         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51486         * doc/posix-functions/ioctl.texi: Mention the new module.
51487
51488 2008-10-09  Bruno Haible  <bruno@clisp.org>
51489
51490         New module 'sys_ioctl'.
51491         * lib/sys_ioctl.in.h: New file.
51492         * m4/sys_ioctl_h.m4: New file.
51493         * modules/sys_ioctl: New file.
51494         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51495
51496 2008-10-09  Bruno Haible  <bruno@clisp.org>
51497
51498         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51499         * lib/winsock.c: Include <stdarg.h>.
51500         (rpl_ioctl): Change to second argument 'int' and then varargs.
51501
51502 2008-10-09  Bruno Haible  <bruno@clisp.org>
51503
51504         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51505         when the sys_socket module is present and the system has <winsock2.h>.
51506
51507 2008-10-09  Bruno Haible  <bruno@clisp.org>
51508
51509         * doc/posix-functions/close.texi: Mention module 'close' instead of
51510         module 'sys_socket'.
51511
51512 2008-10-09  Bruno Haible  <bruno@clisp.org>
51513
51514         * doc/glibc-headers/sys_ioctl.texi: New file.
51515         * doc/gnulib.texi: Include it.
51516
51517 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51518             Bruno Haible  <bruno@clisp.org>
51519
51520         Combine the two replacements of 'close'.
51521         * lib/sys_socket.in.h (close): Define to a reminder to include
51522         <unistd.h>.
51523         (_gl_close_fd_maybe_socket): New declaration.
51524         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51525         * lib/winsock.c (close): Remove undefinition.
51526         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51527         needed for the gnulib module 'close'.
51528         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51529         define to an error symbol or to a warning, if suitable.
51530         * lib/close.c: Include <sys/socket.h>.
51531         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51532         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51533         UNISTD_H_HAVE_WINSOCK2_H.
51534         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51536         UNISTD_H_HAVE_WINSOCK2_H.
51537         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51538         (configure.ac): Set a module indicator.
51539         (Makefile.am): Substitute GNULIB_CLOSE.
51540         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51541         * modules/poll-tests (Depends-on): Add close.
51542         * modules/select-tests (Depends-on): Likewise.
51543
51544 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51545             Bruno Haible  <bruno@clisp.org>
51546
51547         New module 'close'.
51548         * modules/close: New file.
51549         * lib/unistd.in.h (close): Move declaration out of the
51550         FCHDIR_REPLACEMENT scope.
51551         (_gl_unregister_fd): New declaration.
51552         * lib/close.c: New file.
51553         * lib/fchdir.c (rpl_close): Remove function.
51554         * m4/close.m4: New file.
51555         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51556         close.
51557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51558         REPLACE_CLOSE.
51559         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51560         REPLACE_CLOSE.
51561         * modules/fchdir (Depends-on): Add close.
51562
51563 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51564             Bruno Haible  <bruno@clisp.org>
51565
51566         * lib/fcntl.in.h (open): Simplify conditionals.
51567         (_gl_register_fd): New declaration.
51568         * lib/fchdir.c (rpl_open): Remove function.
51569         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51570         also.
51571         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51572         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51573         open.
51574
51575 2008-10-09  Jim Meyering  <meyering@redhat.com>
51576
51577         GNUmakefile: use the more name-space-friendly "_version"
51578         * top/GNUmakefile (_dummy): Update.
51579         (_version): Rename from "version".
51580
51581 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51582             Bruno Haible  <bruno@clisp.org>
51583
51584         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51585         rpl_close.
51586         (_gl_register_fd): New function, extracted from rpl_open.
51587         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51588         (rpl_open, rpl_opendir): Use _gl_register_fd.
51589
51590 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51591
51592         Fix organization of 'open' replacement.
51593         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51594         (gl_FUNC_OPEN): Use it.
51595         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51596
51597 2008-10-08  Bruno Haible  <bruno@clisp.org>
51598
51599         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51600
51601 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51602
51603         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51604         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51605         listen).
51606
51607 2008-10-08  Eric Blake  <ebb9@byu.net>
51608
51609         GNUmakefile: add 'make version' target
51610         * top/GNUmakefile (_curr-ver): Split version update rules...
51611         (version): ...into a target.
51612
51613 2008-10-07  Bruno Haible  <bruno@clisp.org>
51614
51615         Use a more portable replacement expression for -0.0L.
51616         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51617         instead of -0.0L. Fix m4 quotation.
51618
51619         * tests/test-signbit.c: Include <float.h>.
51620         (minus_zero): New variable.
51621         (test_signbitl): Use minus_zero instead of -zero.
51622         * modules/signbit-tests (Depends-on): Add float.
51623
51624         * tests/test-ceill.c: Include <float.h>.
51625         (zero): Remove variable.
51626         (minus_zero): New variable.
51627         (main): Use minus_zero instead of -zero.
51628         * modules/ceill-tests (Depends-on): Add float.
51629
51630         * tests/test-floorl.c: Include <float.h>.
51631         (zero): Remove variable.
51632         (minus_zero): New variable.
51633         (main): Use minus_zero instead of -zero.
51634         * modules/floorl-tests (Depends-on): Add float.
51635
51636         * tests/test-roundl.c: Include <float.h>.
51637         (zero): Remove variable.
51638         (minus_zero): New variable.
51639         (main): Use minus_zero instead of -zero.
51640         * modules/roundl-tests (Depends-on): Add float.
51641
51642         * tests/test-truncl.c: Include <float.h>.
51643         (zero): Remove variable.
51644         (minus_zero): New variable.
51645         (main): Use minus_zero instead of -zero.
51646         * modules/truncl-tests (Depends-on): Add float.
51647
51648         * tests/test-frexpl.c (zero): Remove variable.
51649         (minus_zero): New variable.
51650         (main): Use minus_zero instead of -zero.
51651         * modules/frexpl-tests (Depends-on): Add float.
51652
51653         * tests/test-isnan.c (zerol): Remove variable.
51654         (minus_zerol): New variable.
51655         (test_long_double): Use minus_zerol instead of -zerol.
51656         * modules/isnan-tests (Depends-on): Add float.
51657
51658         * tests/test-isnanl.h (zero): Remove variable.
51659         (minus_zero): New variable.
51660         (main): Use minus_zero instead of -zero.
51661         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51662         * modules/isnanl-tests (Depends-on): Add float.
51663
51664         * tests/test-ldexpl.c (zero): Remove variable.
51665         (minus_zero): New variable.
51666         (main): Use minus_zero instead of -zero.
51667         * modules/ldexpl-tests (Depends-on): Add float.
51668
51669         * tests/test-snprintf-posix.h (zerol): Remove variable.
51670         (minus_zerol): New variable.
51671         (test_function): Use minus_zerol instead of -zerol.
51672         * modules/snprintf-posix-tests (Depends-on): Add float.
51673         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51674
51675         * tests/test-sprintf-posix.h (zerol): Remove variable.
51676         (minus_zerol): New variable.
51677         (test_function): Use minus_zerol instead of -zerol.
51678         * modules/sprintf-posix-tests (Depends-on): Add float.
51679         * modules/vsprintf-posix-tests (Depends-on): Add float.
51680
51681         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51682         (minus_zerol): New variable.
51683         (test_function): Use minus_zerol instead of -zerol.
51684         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51685
51686         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51687         (minus_zerol): New variable.
51688         (test_function): Use minus_zerol instead of -zerol.
51689         * modules/vasprintf-posix-tests (Depends-on): Add float.
51690
51691 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51692
51693         * MODULES.html.sh (Support for building documentation): Mention
51694         pmccabe2html.  Sort entries.
51695
51696         Add pmccabe2html module, from gnupdf.
51697         * build-aux/pmccabe.css: New file.
51698         * build-aux/pmccabe2html: New file.
51699         * m4/pmccabe2html.m4: New file.
51700         * modules/pmccabe2html: New file.
51701
51702 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51703
51704         flock: new module
51705         * MODULES.html.sh: Add to list of modules.
51706         * lib/flock.c: flock implementation for Windows and Unix systems
51707         which have fcntl.
51708         * doc/glibc-functions/flock.texi: Update documentation.
51709         * lib/sys_file.in.h: <sys/file.h> header file.
51710         * m4/flock.m4: M4 macros.
51711         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51712         * modules/flock: flock module.
51713         * modules/flock-tests: flock tests module.
51714         * modules/sys_file: sys/file.h module.
51715         * tests/test-flock.c: test suite for flock.
51716
51717 2008-10-06  Jim Meyering  <meyering@redhat.com>
51718
51719         bootstrap: check for LT_INIT more portably still ;-)
51720         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51721         Spotted by Bruno Haible.
51722
51723 2008-10-06  Eric Blake  <ebb9@byu.net>
51724
51725         test-signbit: avoid tripping Irix cc bug on -0.0L
51726         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51727         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51728         entire testsuite consistent and avoids an Irix 6.2 bug.
51729
51730 2008-10-05  Bruno Haible  <bruno@clisp.org>
51731             Jim Meyering  <jim@meyering.net>
51732
51733         Add an option for ignoring EPIPE during close_stdout.
51734         * lib/closeout.h: Include <stdbool.h>.
51735         (close_stdout_set_ignore_EPIPE): New declaration.
51736         * lib/closeout.c: Include <stdbool.h>.
51737         (ignore_EPIPE): New variable.
51738         (close_stdout_set_ignore_EPIPE): New function.
51739         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51740         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51741         failure.
51742         * modules/closeout (Depends-on): Add stdbool.
51743
51744 2008-10-05  Bruno Haible  <bruno@clisp.org>
51745
51746         * modules/accept: New file.
51747         * modules/bind: New file.
51748         * modules/connect: New file.
51749         * modules/getpeername: New file.
51750         * modules/getsockname: New file.
51751         * modules/getsockopt: New file.
51752         * modules/listen: New file.
51753         * modules/recv: New file.
51754         * modules/recvfrom: New file.
51755         * modules/send: New file.
51756         * modules/sendto: New file.
51757         * modules/setsockopt: New file.
51758         * modules/socket: New file.
51759         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51760         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51761         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51762         the particular module is requested. Add a link warning when the
51763         particular module is not requested.
51764         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51765         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51766         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51767         the particular module is requested.
51768         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51769         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51770         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51771         * modules/sys_socket (Depends-on): Add link-warning.
51772         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51773         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51774         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51775         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51776         GL_LINK_WARNING.
51777         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51778         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51779         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51780         * doc/posix-functions/getpeername.texi: Mention the new module
51781         'getpeername'.
51782         * doc/posix-functions/getsockname.texi: Mention the new module
51783         'getsockname'.
51784         * doc/posix-functions/getsockopt.texi: Mention the new module
51785         'getsockopt'.
51786         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51787         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51788         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51789         * doc/posix-functions/send.texi: Mention the new module 'send'.
51790         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51791         * doc/posix-functions/setsockopt.texi: Mention the new module
51792         'setsockopt'.
51793         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51794         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51795         listen, connect, accept.
51796         * modules/select-tests (Depends-on): Likewise.
51797
51798 2008-10-05  Bruno Haible  <bruno@clisp.org>
51799
51800         * lib/winsock.c (strerror): Remove unused #undef.
51801         (rpl_close): Remove unused local variable.
51802
51803         * modules/sys_socket (Depends-on); Add errno.
51804
51805 2008-10-05  Bruno Haible  <bruno@clisp.org>
51806
51807         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51808         (select): Add a link warning when the 'select' module is not used.
51809         * modules/sys_select (Depends-on): Add link-warning.
51810         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51811         Suggested by Paolo Bonzini.
51812
51813 2008-10-05  Jim Meyering  <meyering@redhat.com>
51814
51815         bootstrap: check for LT_INIT more portably
51816         * build-aux/bootstrap: Avoid using grep -E, since it's not
51817         portable enough.  Suggestion from Bruno Haible.
51818
51819 2008-10-05  Bruno Haible  <bruno@clisp.org>
51820
51821         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51822         as being fixed by gnulib.
51823
51824 2008-10-05  Bruno Haible  <bruno@clisp.org>
51825
51826         * modules/select-tests: New file, mostly copied from
51827         modules/sys_select-tests.
51828         * tests/test-select.c: New file, mostly copied from
51829         tests/test-sys_select.c.
51830         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51831         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51832         (Makefile.am): Remove test_sys_select_LDADD.
51833
51834         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51835         to an undefined symbol, for an error message.
51836         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51837         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51838         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51839         winsock-select.c here.
51840         * modules/sys_select (Files): Remove lib/winsock-select.c.
51841         (Depends-on): Remove alloca.
51842         (Makefile.am): Substitute GNULIB_SELECT.
51843         * modules/select: New file.
51844         * doc/posix-functions/select.texi: Update.
51845
51846 2008-10-05  Bruno Haible  <bruno@clisp.org>
51847
51848         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51849         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51850         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51851         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51852         getdtablesize.
51853         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51854         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51855
51856 2008-10-05  Bruno Haible  <bruno@clisp.org>
51857
51858         * modules/getdtablesize-tests: New file.
51859         * tests/test-getdtablesize.c: New file.
51860
51861         New module 'getdtablesize'.
51862         * lib/unistd.in.h (getdtablesize): New declaration.
51863         * lib/getdtablesize.c: New file.
51864         * m4/getdtablesize.m4: New file.
51865         * modules/getdtablesize: New file.
51866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51867         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51868         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51869         HAVE_GETDTABLESIZE.
51870         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51871
51872 2008-10-05  Bruno Haible  <bruno@clisp.org>
51873
51874         * modules/sched (Makefile.am): Fix typo.
51875         Reported by Simon Josefsson.
51876
51877 2008-10-05  Jim Meyering  <meyering@redhat.com>
51878
51879         bootstrap: check for LT_INIT, too
51880         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51881         are deprecated.  Suggestion from Ralf Wildenhues.
51882
51883 2008-10-05  Bruno Haible  <bruno@clisp.org>
51884
51885         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51886         overriding them by ours.
51887         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51888
51889 2008-10-05  Jim Meyering  <meyering@redhat.com>
51890
51891         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51892         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51893         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51894
51895 2008-10-04  Bruno Haible  <bruno@clisp.org>
51896
51897         * modules/dup2 (License): Change to LGPLv2+.
51898         * modules/sleep (License): Likewise.
51899         * modules/perror (License): Likewise.
51900         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51901         Blake.
51902         * modules/signal (License): Likewise.
51903         * modules/sigprocmask (License): Likewise.
51904         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51905         Meyering.
51906
51907 2008-10-04  Bruno Haible  <bruno@clisp.org>
51908
51909         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51910         Reported by Rainer Tammer <tammer@tammer.net>.
51911
51912 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51913             Bruno Haible  <bruno@clisp.org>
51914
51915         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51916         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51917         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51918
51919 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51920
51921         filevercmp: new module
51922         * lib/filevercmp.h: New function filevercmp comparing version strings.
51923         * lib/filevercmp.c: Implementation of filevercmp function.
51924         * modules/filevercmp: Module metadata.
51925         * tests/test-filevercmp.c: Unit test for new module.
51926         * modules/filevercmp-tests: Unit test metadata.
51927         * MODULES.html.sh: Add filevercmp module.
51928
51929 2008-10-03  Bruno Haible  <bruno@clisp.org>
51930
51931         * lib/c-ctype.h: Add comment.
51932         Reported by Jim Meyering.
51933
51934 2008-10-02  Bruno Haible  <bruno@clisp.org>
51935
51936         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51937
51938 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51939
51940         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51941         name of bootstrap.conf accordingly.
51942
51943 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51944
51945         * build-aux/bootstrap: Install git-merge-changelog configuration
51946         items into .gitconfig if needed.
51947
51948 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51949
51950         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51951         git repository, and initialize/update it accordingly.
51952
51953 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51954
51955         * modules/fsync-tests: New file.
51956         * tests/test-fsync.c: New file.
51957
51958         New module 'fsync'.
51959         * lib/fsync.c: New file.
51960         * m4/fsync.m4: New file.
51961         * modules/fsync: New file.
51962         * lib/unistd.in.h (fsync): New declaration.
51963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51964         GNULIB_FSYNC and HAVE_FSYNC.
51965         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51966         * MODULES.html.sh (posix_functions): Add fsync.
51967         * doc/posix-functions/fsync.texi: Mention the new module.
51968
51969 2008-10-02  Jim Meyering  <meyering@redhat.com>
51970
51971         fts.c: sync with similar code from coreutils' remove.c
51972         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51973         Guard also with "#if defined __linux__", since for now at least,
51974         this code is Linux-kernel-specific.
51975
51976 2008-10-02  Jim Meyering  <meyering@redhat.com>
51977
51978         fts: bug fixes
51979         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51980         Include <sys/vfs.h>, not <sys/statfs.h>.
51981
51982         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51983         Include <sys/vfs.h>, not <sys/statfs.h>.
51984
51985 2008-10-01  Bruno Haible  <bruno@clisp.org>
51986
51987         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51988         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51989         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51990         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51991         * doc/posix-functions/posix_spawnp.texi: Likewise.
51992         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51993         whether posix_spawn actually works.
51994         * m4/pipe.m4 (gl_PIPE): Likewise.
51995         * modules/execute (Files): Add m4/posix_spawn.m4.
51996         * modules/pipe (Files): Add m4/posix_spawn.m4.
51997         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51998
51999 2008-10-01  Jim Meyering  <meyering@redhat.com>
52000
52001         remove trailing spaces
52002         * NEWS: Likewise.
52003         * lib/poll.c (poll): Likewise.
52004         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52005         * lib/winsock.c (rpl_close): Likewise.
52006         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52007         * modules/yield: Likewise.
52008         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52009         * tests/test-sys_select.c (connect_to_socket): Likewise.
52010
52011         fts.c: adjust a new interface to be more generally useful
52012         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52013         (fts_build): Adjust caller.
52014
52015 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52016
52017         * modules/cond-tests: New file.
52018         * tests/test-cond.c: New file.
52019
52020 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52021             Bruno Haible  <bruno@clisp.org>
52022
52023         * modules/cond (Dependencies): Add errno, time.
52024         * lib/glthread/cond.h: Include <time.h>.
52025         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52026         across platforms.
52027
52028 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52029             Bruno Haible  <bruno@clisp.org>
52030
52031         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52032
52033 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52034             Bruno Haible  <bruno@clisp.org>
52035
52036         * modules/tls-tests (Depends-on): Add thread, yield.
52037         (configure.ac): Remove all checks.
52038         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52039         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52040         gl_thread_self): Remove definitions. Include glthread/thread.h and
52041         glthread/yield.h instead.
52042         (test_tls): Pass an additional NULL argument to gl_thread_join.
52043
52044 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52045             Bruno Haible  <bruno@clisp.org>
52046
52047         * modules/lock-tests (Depends-on): Add thread, yield.
52048         (configure.ac): Remove all checks.
52049         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52050         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52051         gl_thread_self): Remove definitions. Include glthread/thread.h and
52052         glthread/yield.h instead.
52053         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52054         additional NULL argument to gl_thread_join.
52055
52056 2008-09-30  Bruno Haible  <bruno@clisp.org>
52057
52058         Fix the Win32 implementation of the 'thread' module.
52059         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52060         pointer type.
52061         (gl_thread_self): Invoke gl_thread_self_func.
52062         (gl_thread_self_func): New declaration.
52063         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52064         (do_init_self_key, init_self_key): New functions.
52065         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52066         Remove some fields.
52067         (running_threads, running_lock): Remove variables.
52068         (get_current_thread_handle): New function.
52069         (gl_thread_self_func, wrapper_func, glthread_create_func,
52070         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52071         simplified.
52072
52073 2008-09-30  Bruno Haible  <bruno@clisp.org>
52074
52075         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52076         files.
52077
52078 2008-09-30  Jim Meyering  <meyering@redhat.com>
52079
52080         fts.m4: correct the test for statfs.f_type
52081         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52082         when checking for statfs.f_type.
52083
52084 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52085
52086         tests: avoid some compiler warnings
52087         * tests/test-memchr.c (main): Pass NULL indirectly.
52088         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52089
52090 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
52091
52092         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52093         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52094         exactly specified dayshifts.
52095         (dayshift): New rule.
52096         (rel): Add dayshift.
52097         (relative_time_table) [tomorrow, yesterday, today, now]:
52098         Use tDAY_SHIFT in place of tDAY_UNIT.
52099         * tests/test-getdate.c: Add tests for now-disallowed countable
52100         dayshifts, e.g., "4 yesterday ago".
52101
52102 2008-09-29  Bruno Haible  <bruno@clisp.org>
52103
52104         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52105         * tests/test-posix_spawn1.in.sh: Renamed from
52106         tests/test-posix_spawn.in.sh.
52107         * tests/test-posix_spawn2.c: New file.
52108         * tests/test-posix_spawn2.in.sh: New file.
52109         * modules/posix_spawnp-tests (Files): Update.
52110         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52111
52112 2008-09-29  Bruno Haible  <bruno@clisp.org>
52113
52114         Propagate effects of putenv/setenv/unsetenv to child processes.
52115         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52116         * lib/pipe.c (create_pipe): Likewise.
52117
52118 2008-09-29  Bruno Haible  <bruno@clisp.org>
52119
52120         Enable use of shell scripts as executables in mingw.
52121         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52122         run the program as a shell script.
52123         * lib/pipe.c (create_pipe): Likewise.
52124         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52125         resulting array.
52126
52127 2008-09-29  Eric Blake  <ebb9@byu.net>
52128
52129         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52130
52131 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52132
52133         * doc/posix-functions/accept.texi: Update mingw problems.
52134         * doc/posix-functions/bind.texi: Update mingw problems.
52135         * doc/posix-functions/close.texi: Update mingw problems.
52136         * doc/posix-functions/connect.texi: Update mingw problems.
52137         * doc/posix-functions/getpeername.texi: Update mingw problems.
52138         * doc/posix-functions/getsockname.texi: Update mingw problems.
52139         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52140         * doc/posix-functions/ioctl.texi: Update mingw problems.
52141         * doc/posix-functions/listen.texi: Update mingw problems.
52142         * doc/posix-functions/recv.texi: Update mingw problems.
52143         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52144         * doc/posix-functions/select.texi: Update mingw problems.
52145         * doc/posix-functions/send.texi: Update mingw problems.
52146         * doc/posix-functions/sendto.texi: Update mingw problems.
52147         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52148         * doc/posix-functions/socket.texi: Update mingw problems.
52149
52150 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52151             Bruno Haible  <bruno@clisp.org>
52152
52153         * lib/sys_select.in.h: Include sys/time.h.
52154         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52155         * modules/sys_select: Depend on sys_time.
52156         * tests/test-sys_select.c: Test that sys/select.h defines struct
52157         timeval fully.
52158
52159 2008-09-29  Bruno Haible  <bruno@clisp.org>
52160
52161         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52162         * lib/sys_select.in.h: Likewise.
52163
52164 2008-09-29  Bruno Haible  <bruno@clisp.org>
52165
52166         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52167
52168 2008-09-29  Bruno Haible  <bruno@clisp.org>
52169
52170         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52171         Set LIBSOCKET instead of augmenting LIBS.
52172         * modules/sockets (Link): New section.
52173         * modules/sockets-tests (test_sockets_LDADD): New variable.
52174         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52175         * modules/poll-tests (test_poll_LDADD): New variable.
52176         * NEWS: Document the change.
52177
52178 2008-09-29  Bruno Haible  <bruno@clisp.org>
52179
52180         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52181         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52182         ARPA_INET_H directly.
52183         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52184
52185 2008-09-28  Bruno Haible  <bruno@clisp.org>
52186
52187         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52188         from gl_HEADER_SYS_SOCKET.
52189         (gl_HEADER_SYS_SOCKET): Invoke it.
52190         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52191
52192 2008-09-28  Bruno Haible  <bruno@clisp.org>
52193
52194         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52195         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52196         Needed on OSF/1 4.0.
52197
52198 2008-09-28  Bruno Haible  <bruno@clisp.org>
52199
52200         Override open more carefully.
52201         * lib/open.c (orig_open): New function.
52202         (rpl_open): Use orig_open instead of open.
52203         * lib/fcntl.in.h: Add special invocation convention.
52204         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52205         (gl_FUNC_OPEN): Invoke it.
52206
52207         Override freopen more carefully.
52208         * lib/freopen.c (orig_freopen): New function.
52209         (rpl_freopen): Use orig_freopen instead of freopen.
52210         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52211         (gl_FUNC_FREOPEN): Invoke it.
52212
52213         Override fopen more carefully.
52214         * lib/fopen.c (orig_fopen): New function.
52215         (rpl_fopen): Use orig_fopen instead of fopen.
52216         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52217         (gl_FUNC_FOPEN): Invoke it.
52218         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52219
52220 2008-09-28  Bruno Haible  <bruno@clisp.org>
52221
52222         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52223         SIGPIPE.
52224
52225 2008-09-28  Bruno Haible  <bruno@clisp.org>
52226
52227         * tests/test-sigaction.c (handler, main): Disable the check whether
52228         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52229         glibc systems with LinuxThreads.
52230
52231 2008-09-28  Bruno Haible  <bruno@clisp.org>
52232
52233         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52234
52235         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52236         with AIX xlc.
52237         * lib/fcntl.in.h (open): Likewise.
52238         Reported by Rainer Tammer <tammer@tammer.net>.
52239
52240 2008-09-28  Bruno Haible  <bruno@clisp.org>
52241
52242         * modules/posix_spawnp-tests: New file.
52243         * tests/test-posix_spawn.c: New file.
52244         * tests/test-posix_spawn.in.sh: New file.
52245
52246         New module 'posix_spawnp'.
52247         * modules/posix_spawnp: New file.
52248         * lib/spawnp.c: New file, from GNU libc with modifications.
52249         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52250
52251         New module 'posix_spawn'.
52252         * modules/posix_spawn: New file.
52253         * lib/spawn.c: New file, from GNU libc with modifications.
52254         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52255
52256         New module 'posix_spawnattr_destroy'.
52257         * modules/posix_spawnattr_destroy: New file.
52258         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52259         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52260         module.
52261
52262         New module 'posix_spawnattr_setsigmask'.
52263         * modules/posix_spawnattr_setsigmask: New file.
52264         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52265         modifications.
52266         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52267         new module.
52268
52269         New module 'posix_spawnattr_getsigmask'.
52270         * modules/posix_spawnattr_getsigmask: New file.
52271         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52272         modifications.
52273         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52274         new module.
52275
52276         New module 'posix_spawnattr_setsigdefault'.
52277         * modules/posix_spawnattr_setsigdefault: New file.
52278         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52279         modifications.
52280         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52281         new module.
52282
52283         New module 'posix_spawnattr_getsigdefault'.
52284         * modules/posix_spawnattr_getsigdefault: New file.
52285         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52286         modifications.
52287         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52288         new module.
52289
52290         New module 'posix_spawnattr_setschedpolicy'.
52291         * modules/posix_spawnattr_setschedpolicy: New file.
52292         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52293         modifications.
52294         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52295         new module.
52296
52297         New module 'posix_spawnattr_getschedpolicy'.
52298         * modules/posix_spawnattr_getschedpolicy: New file.
52299         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52300         modifications.
52301         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52302         new module.
52303
52304         New module 'posix_spawnattr_setschedparam'.
52305         * modules/posix_spawnattr_setschedparam: New file.
52306         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52307         modifications.
52308         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52309         new module.
52310
52311         New module 'posix_spawnattr_getschedparam'.
52312         * modules/posix_spawnattr_getschedparam: New file.
52313         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52314         modifications.
52315         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52316         new module.
52317
52318         New module 'posix_spawnattr_setpgroup'.
52319         * modules/posix_spawnattr_setpgroup: New file.
52320         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52321         modifications.
52322         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52323         module.
52324
52325         New module 'posix_spawnattr_getpgroup'.
52326         * modules/posix_spawnattr_getpgroup: New file.
52327         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52328         modifications.
52329         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52330         module.
52331
52332         New module 'posix_spawnattr_setflags'.
52333         * modules/posix_spawnattr_setflags: New file.
52334         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52335         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52336         module.
52337
52338         New module 'posix_spawnattr_getflags'.
52339         * modules/posix_spawnattr_getflags: New file.
52340         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52341         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52342         module.
52343
52344         New module 'posix_spawnattr_init'.
52345         * modules/posix_spawnattr_init: New file.
52346         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52347         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52348         module.
52349
52350         New module 'posix_spawn_file_actions_destroy'.
52351         * modules/posix_spawn_file_actions_destroy: New file.
52352         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52353         modifications.
52354         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52355         the new module.
52356
52357         New module 'posix_spawn_file_actions_addopen'.
52358         * modules/posix_spawn_file_actions_addopen: New file.
52359         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52360         modifications.
52361         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52362         the new module.
52363
52364         New module 'posix_spawn_file_actions_adddup2'.
52365         * modules/posix_spawn_file_actions_adddup2: New file.
52366         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52367         modifications.
52368         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52369         the new module.
52370
52371         New module 'posix_spawn_file_actions_addclose'.
52372         * modules/posix_spawn_file_actions_addclose: New file.
52373         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52374         modifications.
52375         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52376         the new module.
52377
52378         New module 'posix_spawn_file_actions_init'.
52379         * modules/posix_spawn_file_actions_init: New file.
52380         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52381         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52382         new module.
52383
52384         New module 'posix_spawn-internal'.
52385         * modules/posix_spawn-internal: New file.
52386         * lib/spawn_int.h: New file, from GNU libc with modifications.
52387         * lib/spawni.c: New file, from GNU libc with modifications.
52388         * m4/posix_spawn.m4: New file.
52389
52390         New module 'spawn'.
52391         * modules/spawn: New file.
52392         * lib/spawn.in.h: New file, from GNU libc with modifications.
52393         * m4/spawn_h.m4: New file.
52394         * doc/posix-headers/spawn.texi: Mention the new module.
52395
52396 2008-09-28  Bruno Haible  <bruno@clisp.org>
52397
52398         * modules/sched-tests: New file.
52399         * tests/test-sched.c: New file.
52400
52401         New module 'sched'.
52402         * modules/sched: New file.
52403         * lib/sched.in.h: New file.
52404         * m4/sched_h.m4: New file.
52405         * doc/posix-headers/sched.texi: Mention the new module.
52406
52407 2008-09-27  Eric Blake  <ebb9@byu.net>
52408
52409         Fix previous patch, and tweak references to $0.
52410         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52411         (func_version, func_gnulib_dir): Don't call this program
52412         gnulib-tool.
52413         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52414         with using $0 in function.
52415         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52416         (func_fatal_error): Reuse the name the user invoked us with.
52417
52418 2008-09-27  Bruno Haible  <bruno@clisp.org>
52419
52420         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52421         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52422         (gl_ICONV_H): Not here.
52423         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52424         instead of assigning ICONV_H directly.
52425
52426         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52427         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52428         WCHAR_H directly.
52429
52430 2008-09-27  Bruno Haible  <bruno@clisp.org>
52431
52432         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52433         * modules/arpa_inet (Depends-on): Add link-warning.
52434         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52435         * modules/unistd (Makefile.am): Likewise.
52436
52437 2008-09-26  Bruno Haible  <bruno@clisp.org>
52438
52439         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52440         variables.
52441         (func_version): Essentially copied from gnulib-tool.
52442         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52443         func_readlink): Copied from gnulib-tool.
52444
52445 2008-09-26  Bruno Haible  <bruno@clisp.org>
52446
52447         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52448         invoking git-version-gen.
52449
52450 2008-09-26  Bruno Haible  <bruno@clisp.org>
52451
52452         * posix-modules: Update to directory names changed on 2008-01-19.
52453         Remove commas in output before splitting into words. No more need to
52454         avoid 'ftruncate' since 2007-02-19.
52455
52456 2008-09-26  Bruno Haible  <bruno@clisp.org>
52457
52458         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52459
52460 2008-09-26  Bruno Haible  <bruno@clisp.org>
52461
52462         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52463         * modules/fwriteerror (Depends-on): Add errno.
52464
52465 2008-09-26  Bruno Haible  <bruno@clisp.org>
52466
52467         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52468         * tests/test-vc-list-files-cvs.sh: Likewise.
52469
52470 2008-09-26  Bruno Haible  <bruno@clisp.org>
52471
52472         * doc/posix-headers/sys_resource.texi: Reorder items.
52473
52474 2008-09-26  Jim Meyering  <meyering@redhat.com>
52475
52476         fts: tweak inode comparison function
52477         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52478         inode numbers, as documented.
52479
52480         fts: sort dirent entries on inode number before traversing
52481         This avoids a quadratic, seek-related performance penalty when
52482         operating on a directory containing many entries (measurable at 10k;
52483         3.5 hours at 2 million entries with a cold cache) on certain types
52484         of file systems, including ext3 and ext4, but not tmpfs.
52485         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52486         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52487         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52488         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52489         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52490         (fts_build): Set the stat.st_ino member from D_INO.
52491         If it is likely to be useful, sort dirent entries on inode number.
52492
52493         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52494         and the struct statfs.f_type member.
52495         * modules/fts (Depends-on): Add d-ino.
52496
52497 2008-09-26  Bruno Haible  <bruno@clisp.org>
52498
52499         * modules/sigpipe-die (Depends-on): Add sigpipe.
52500
52501         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52502         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52503         and GNULIB_STDIO_H_SIGPIPE are set.
52504         * lib/stdio-write.c: New file.
52505         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52506         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52507         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52508         REPLACE_STDIO_WRITE_FUNCS.
52509         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52510         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52511         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52512         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52513         * modules/stdio (Files): Add lib/stdio-write.c.
52514         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52515         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52516         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52517         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52518         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52519         REPLACE_FPRINTF_POSIX.
52520         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52521         REPLACE_PRINTF_POSIX.
52522         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52523         REPLACE_VFPRINTF_POSIX.
52524         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52525         REPLACE_VPRINTF_POSIX.
52526         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52527         SIGPIPE issue.
52528         * doc/posix-functions/fputc.texi: Likewise.
52529         * doc/posix-functions/fputs.texi: Likewise.
52530         * doc/posix-functions/fwrite.texi: Likewise.
52531         * doc/posix-functions/printf.texi: Likewise.
52532         * doc/posix-functions/putc.texi: Likewise.
52533         * doc/posix-functions/putchar.texi: Likewise.
52534         * doc/posix-functions/puts.texi: Likewise.
52535         * doc/posix-functions/vfprintf.texi: Likewise.
52536         * doc/posix-functions/vprintf.texi: Likewise.
52537
52538         * modules/safe-write (Depends-on): Add write.
52539
52540         * modules/sigpipe-tests: New file.
52541         * tests/test-sigpipe.c: New file.
52542         * tests/test-sigpipe.sh: New file.
52543
52544         * modules/write: New file.
52545         * lib/unistd.in.h: Include <sys/types.h>.
52546         (write): New declaration.
52547         * lib/write.c: New file.
52548         * m4/write.m4: New file.
52549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52550         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52551         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52552         GNULIB_WRITE, REPLACE_WRITE.
52553         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52554         and the SIGPIPE issue.
52555
52556         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52557         (raise): New declaration.
52558         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52559         (ext_signal): New function.
52560         (rpl_raise): New function.
52561         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52562         GNULIB_SIGNAL_H_SIGPIPE.
52563         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52564         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52565
52566         * modules/sigpipe: New file.
52567         * m4/sigpipe.m4: New file.
52568
52569 2008-09-25  Derek Price  <derek@ximbiot.com>
52570             Bruno Haible  <bruno@clisp.org>
52571
52572         * gnulib-tool (func_import): Report all license incompatibilities, not
52573         just the first one.
52574
52575 2008-09-25  Bruno Haible  <bruno@clisp.org>
52576
52577         * gnulib-tool (func_import): When computing the edits, consider not
52578         only the Makefile.ams that exist but also those that will be generated.
52579
52580 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52581
52582         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52583         fixes gnulib-tool --test warning about duplicate dependency.
52584
52585 2008-09-25  Bruno Haible  <bruno@clisp.org>
52586
52587         * gnulib-tool: Don't ask the user to perform edits in the generated
52588         Makefile.ams.
52589         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52590         apply to the Makefile.am being generated.
52591         (func_emit_tests_Makefile_am): Execute edits that apply to the
52592         Makefile.am being generated.
52593         (func_import): Setup list of Makefile.am edits before emitting the
52594         Makefile.ams, not at the end.
52595         (func_create_testdir): Update.
52596         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52597
52598 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52599
52600         * gnulib-tool (func_import): Store the --tests-base option in the
52601         comment in gnulib-cache.m4.
52602
52603 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52604
52605         * NEWS: Document increased portability that sys_select now provides.
52606
52607         * lib/sys_select.in.h: Install select wrapper.
52608         * lib/sys_socket.in.h: Use more descriptive name when there is no
52609         select wrapper.
52610         * lib/winsock-select.c: New.
52611         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52612         Require gl_HEADER_SYS_SOCKET.
52613         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52614         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52615         * tests/test-sys_select.c: Add functional tests.
52616
52617 2008-09-24  Eric Blake  <ebb9@byu.net>
52618
52619         open, fopen: close fd leak in last patch
52620         * lib/open.c (rpl_open): Close fd before returning error.
52621         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52622         * doc/posix-functions/open.texi (open): Document that Irix also
52623         has the bug.
52624         * doc/posix-functions/fopen.texi (fopen): Likewise.
52625         Reported by Paolo Bonzini.
52626
52627 2008-09-24  Bruno Haible  <bruno@clisp.org>
52628
52629         Ensure that a filename ending in a slash cannot be used to access a
52630         non-directory.
52631         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52632         to check whether it's really a directory.
52633         * lib/fopen.c: Include fcntl.h, unistd.h.
52634         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52635         and fdopen().
52636         * modules/fopen (Depends-on): Add unistd.
52637         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52638         * tests/test-fopen.c (main): Likewise.
52639         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52640         * doc/posix-functions/fopen.texi: Likewise.
52641         Reported by Eric Blake.
52642
52643 2008-09-23  Eric Blake  <ebb9@byu.net>
52644
52645         c-stack: avoid compiler optimizations when provoking overflow
52646         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52647         recursion harder to optimize, to ensure a stack overflow occurs.
52648         * tests/test-c-stack.c (recurse): Likewise.
52649         Borrowed from libsigsegv.
52650
52651         c-stack: work around Irix sigaltstack bug
52652         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52653         whether sigaltstack uses wrong end of stack_t (copied in part from
52654         libsigsegv).
52655         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52656         Irix bug, without requiring an over-allocation.
52657         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52658         bug.
52659
52660         fopen: document mingw bug on directories
52661         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52662         not allowing a stream visiting a directory, even though reading
52663         from such a stream is not portable.
52664
52665 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52666
52667         * lib/poll.c: Rewrite.
52668         * modules/poll: Depend on alloca.
52669
52670 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52671
52672         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52673         instead define prototypes for a full set of wrappers.  Ensure
52674         that Cygwin does not use the compatibility code, which is only
52675         for MinGW.
52676         * lib/winsock.c: New.
52677         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52678         * modules/sys_socket: Add lib/winsock.c.
52679
52680         * modules/poll-tests: Add errno and perror.
52681         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52682
52683 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52684
52685         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52686
52687 2008-09-23  Bruno Haible  <bruno@clisp.org>
52688
52689         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52690         * doc/glibc-functions/*: Likewise.
52691
52692 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52693
52694         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52695         success.
52696
52697 2008-09-22  Eric Blake  <ebb9@byu.net>
52698             Bruno Haible  <bruno@clisp.org>
52699
52700         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52701         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52702         supply %A but mishandle pseudo-NaN.
52703         Reported by Simon Josefsson.
52704
52705 2008-09-21  Bruno Haible  <bruno@clisp.org>
52706
52707         * tests/test-lock.c (main): Tweak skip message.
52708         * tests/test-tls.c (main): Likewise.
52709
52710 2008-09-21  Bruno Haible  <bruno@clisp.org>
52711
52712         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52713         whether 'struct sigaction' has sa_sigaction here...
52714         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52715         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52716
52717 2008-09-21  Bruno Haible  <bruno@clisp.org>
52718
52719         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52720         section.
52721         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52722         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52723         the new section.
52724         (Support for obsolete systems lacking POSIX:2001): New section.
52725         (String handling <string.h>): Move strdup to the new section.
52726         Suggested by Simon Josefsson and Paolo Bonzini.
52727
52728 2008-09-21  Bruno Haible  <bruno@clisp.org>
52729
52730         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52731         exponents in %e and %g results on 'long double'. Needed for mingw's
52732         improved *printf functions.
52733         * tests/test-vasprintf-posix.c (test_function): Likewise.
52734         * tests/test-snprintf-posix.h (test_function): Likewise.
52735         * tests/test-sprintf-posix.h (test_function): Likewise.
52736         Reported by Eric Blake.
52737
52738 2008-09-21  Bruno Haible  <bruno@clisp.org>
52739
52740         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52741         * tests/test-sprintf-posix.h (test_function): Likewise.
52742
52743 2008-09-21  Bruno Haible  <bruno@clisp.org>
52744
52745         * modules/getpass (Depends-on): Add strdup-posix.
52746
52747         New module 'strdup-posix'.
52748         * modules/strdup-posix: New file.
52749         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52750         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52751         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52752         REPLACE_STRDUP.
52753         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52754         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52755         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52756         strdup-posix.
52757
52758         * modules/strdup (Depends-on): Remove malloc-posix.
52759
52760 2008-09-20  Bruno Haible  <bruno@clisp.org>
52761
52762         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52763         Wildenhues.
52764
52765 2008-09-20  Bruno Haible  <bruno@clisp.org>
52766
52767         Ensure that wint_t gets defined on IRIX 5.3.
52768         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52769         * lib/wctype.in.h (wint_t): Likewise.
52770         (__wctype_wint_t): Remove type.
52771         (isw*): Use wint_t instead of __wctype_wint_t.
52772         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52773         * modules/wchar (Files): Add m4/wint_t.m4.
52774         (Makefile.am): Substitute HAVE_WINT_T.
52775         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52776         * tests/test-wctype.c: Check that wint_t is defined.
52777         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52778         * doc/posix-headers/wctype.texi: Likewise.
52779         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52780
52781 2008-09-18  Bruno Haible  <bruno@clisp.org>
52782
52783         * gnulib-tool (func_exit): Update comment.
52784
52785 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52786
52787         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52788         assumes strdup exists and does not depend on strdup to return
52789         ENOMEM on out of memory conditions.
52790
52791 2008-09-18  Bruno Haible  <bruno@clisp.org>
52792
52793         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52794         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52795         digits for the exponent.
52796
52797 2008-09-18  Jim Meyering  <meyering@redhat.com>
52798             Bruno Haible  <bruno@clisp.org>
52799
52800         * lib/vasnprintf.c (decimal_point_char): Define also if
52801         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52802
52803 2008-09-16  Bruno Haible  <bruno@clisp.org>
52804         and Eric Blake  <ebb9@byu.net>
52805
52806         vasnprintf: support Irix 5.3
52807         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52808         that mishandle long double infinity.
52809         Reported by Tom G. Christensen.
52810
52811 2008-09-16  Bruno Haible  <bruno@clisp.org>
52812
52813         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52814         Solaris 9.
52815         * doc/glibc-functions/alphasort.texi: Likewise.
52816         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52817
52818 2008-09-16  Jim Meyering  <meyering@redhat.com>
52819
52820         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52821         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52822         a umask modification leak out of a subshell.  Otherwise, the
52823         opensolaris /bin/sh would be accepted and thus cause unwarranted
52824         failures in the coreutils test suite.
52825
52826 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52827
52828         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52829         to succeed.
52830
52831 2008-09-16  Jim Meyering  <meyering@redhat.com>
52832
52833         avoid spurious test failure when library is built without ACL support
52834         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52835         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52836         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52837         * tests/test-copy-acl.sh: Likewise.
52838
52839 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52840
52841         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52842         based on character occurrence counts.
52843
52844 2008-09-15  Eric Blake  <ebb9@byu.net>
52845
52846         tests: avoid some compiler warnings
52847         * tests/test-memchr.c (main): Pass NULL indirectly.
52848         * tests/test-closein.c (main): Avoid unused variable.
52849
52850 2008-09-15  Bruno Haible  <bruno@clisp.org>
52851
52852         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52853         are missing on OpenBSD 4.0 individually.
52854         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52855
52856 2008-09-15  Bruno Haible  <bruno@clisp.org>
52857
52858         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52859         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52860         * doc/posix-functions/perror.texi: Likewise.
52861         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52862         is missing.
52863         Reported by Eric Blake.
52864
52865         * lib/errno.in.h: Use replacement values >= 2000.
52866         Reported by Eric Blake.
52867
52868 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52869
52870         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52871         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52872         limit.
52873         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52874         compareseq was aborted.
52875
52876 2008-09-14  Bruno Haible  <bruno@clisp.org>
52877
52878         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52879         yvec_edit_count.
52880         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52881         (fstrcmp_bounded): Simplify result computation accordingly.
52882
52883 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52884
52885         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52886         (fstrcmp): Define in terms of fstrcmp_bounded.
52887         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52888         lower_bound argument.
52889         Return quickly if the result is certainly < lower_bound.
52890         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52891
52892 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52893
52894         * lib/diffseq.h (EARLY_ABORT): New macro.
52895         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52896         evaluates to true.
52897
52898 2008-09-14  Bruno Haible  <bruno@clisp.org>
52899
52900         * modules/perror-tests: New file.
52901         * tests/test-perror.sh: New file.
52902         * tests/test-perror.c: New file.
52903
52904         New module 'perror'.
52905         * lib/stdio.in.h (perror): New declaration.
52906         * lib/perror.c: New file.
52907         * m4/perror.m4: New file.
52908         * modules/perror: New file.
52909         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52910         * doc/posix-functions/perror.texi: Mention the perror module.
52911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52912         REPLACE_PERROR.
52913         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52914         REPLACE_PERROR.
52915
52916 2008-09-14  Bruno Haible  <bruno@clisp.org>
52917
52918         * modules/stdio (Makefile.am): Reorder to match the order in
52919         lib/stdio.in.h.
52920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52921
52922 2008-09-13  Bruno Haible  <bruno@clisp.org>
52923
52924         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52925
52926 2008-09-13  Bruno Haible  <bruno@clisp.org>
52927
52928         Extend strerror to cover the added errno values.
52929         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52930         (rpl_strerror): Provide error messages for the added errno values and
52931         for the WSA* values.
52932         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52933         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52934         strerror.
52935         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52936         * modules/strerror (Depends-on): Add errno.
52937         * doc/posix-functions/strerror.texi: Document the change.
52938         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52939         and EOVERFLOW.
52940
52941 2008-09-13  Bruno Haible  <bruno@clisp.org>
52942
52943         * modules/EOVERFLOW: Remove file.
52944         * m4/eoverflow.m4: Remove file.
52945         * modules/EOVERFLOW-tests: Remove file.
52946         * tests/test-EOVERFLOW.c: Remove file.
52947         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52948         * modules/ftell (Depends-on): Likewise.
52949         * modules/getdelim (Depends-on): Likewise.
52950         * modules/getugroups (Depends-on): Likewise.
52951         * modules/poll (Depends-on): Likewise.
52952         * modules/snprintf (Depends-on): Likewise.
52953         * modules/sprintf-posix (Depends-on): Likewise.
52954         * modules/vasnprintf (Depends-on): Likewise.
52955         * modules/vasprintf (Depends-on): Likewise.
52956         * modules/vfprintf-posix (Depends-on): Likewise.
52957         * modules/vsnprintf (Depends-on): Likewise.
52958         * modules/vsprintf-posix (Depends-on): Likewise.
52959         * modules/xvasprintf (Depends-on): Likewise.
52960         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52961         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52962         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52963         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52964         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52965         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52966         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52967         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52968         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52969         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52970         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52971         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52972         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52973         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52974         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52975         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52976         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52977         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52978         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52979         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52980         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52981         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52982         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52983         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52984         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52985         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52986         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52987         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52988         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52989         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52990         * MODULES.html.sh: Remove EOVERFLOW.
52991         * NEWS: Mention the change.
52992
52993 2008-09-13  Bruno Haible  <bruno@clisp.org>
52994
52995         * modules/errno-tests: New file.
52996         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52997
52998         * lib/errno.in.h: New file.
52999         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53000         * modules/errno: New file.
53001         * doc/posix-headers/errno.texi: Update documentation.
53002         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53003
53004 2008-09-13  Bruno Haible  <bruno@clisp.org>
53005
53006         * tests/test-poll.c: Use #if for native Windows, rather than testing
53007         __MSVCRT__.
53008
53009 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53010             Bruno Haible  <bruno@clisp.org>
53011
53012         * lib/glob.c: Don't include <pwd.h> on native Windows.
53013         (WINDOWS32): New macro.
53014         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53015
53016 2008-09-13  Bruno Haible  <bruno@clisp.org>
53017
53018         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53019         (ETIMEDOUT): Remove macro.
53020         (glthread_cond_timedwait_multithreaded): New declaration.
53021         (glthread_cond_timedwait): Use it.
53022         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53023         (glthread_cond_timedwait_multithreaded): New function.
53024
53025 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53026
53027         * modules/poll-tests: Do not check for io.h.
53028         * tests/test-poll.c: Check for __MSVCRT__ instead.
53029
53030 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53031
53032         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53033         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53034         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53035
53036 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53037
53038         * modules/poll-tests: New.
53039         * tests/test-poll.c: New.
53040
53041 2008-09-12  Eric Blake  <ebb9@byu.net>
53042
53043         frexp: test for NetBSD failure on -0.0
53044         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53045         not all, bugs from NetBSD 3.0 have been fixed.
53046         * doc/posix-functions/frexp.texi (frexp): Document bug.
53047         Reported by Thomas Klausner.
53048
53049         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53050         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53051         literal -0.0.
53052         Reported by Jonathan C. Patschke <jp@centtech.com>.
53053
53054 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53055
53056         * lib/glthread/cond.h: Use dummy implementation also if
53057         USE_WIN32_THREADS.
53058
53059 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53060
53061         * modules/fnmatch-posix (License): Change to LGPLv2+.
53062         * modules/fnmatch-gnu (License): Likewise.
53063
53064 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53065
53066         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53067
53068 2008-09-11  Jim Meyering  <meyering@redhat.com>
53069
53070         * users.txt: Add gtk-vnc.
53071
53072 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53073
53074         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53075         rotate amounts.
53076
53077         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53078         required for 16-bit and 8-bit rotates.
53079         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53080         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53081         UINT8_MAX instead of hard-coded constants.
53082         Suggested by Paul Eggert.
53083
53084 2008-09-07  Bruno Haible  <bruno@clisp.org>
53085
53086         * tests/test-striconveh.c (main): Check behaviour when converting from
53087         UTF-7.
53088
53089         Make striconveh work better with stateful encodings.
53090         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53091         that iconv does not increment the inptr when returning -1/EINVAL.
53092
53093 2008-09-07  Bruno Haible  <bruno@clisp.org>
53094
53095         * build-aux/config.rpath: Update according to libtool-2.2.6.
53096         * build-aux/config.libpath: Likewise.
53097
53098 2008-09-06  Bruno Haible  <bruno@clisp.org>
53099
53100         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53101         * lib/freadptr.c (freadptr): Likewise.
53102         * lib/freadseek.c (freadptrinc): Likewise.
53103         Reported by Simon Josefsson.
53104
53105 2008-09-06  Bruno Haible  <bruno@clisp.org>
53106
53107         * modules/freadptr (License): Change to LGPLv2+.
53108         * modules/freadseek (License): Likewise.
53109         Suggested by Eric Blake.
53110
53111         * modules/memchr2 (License): Change to LGPLv2+.
53112         Approved by Eric Blake.
53113
53114 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53115             Bruno Haible  <bruno@clisp.org>
53116
53117         Make gnulib-tool work with native 'sed' on AIX.
53118         * gnulib-tool (sed_noop): New variable.
53119         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53120         func_add_or_update, func_create_testdir): Use it to initialize sed
53121         script variables.
53122         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53123
53124 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53125             Bruno Haible  <bruno@clisp.org>
53126
53127         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53128         also works after #include directives.
53129
53130 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53131
53132         getdate.y: reject an out-of-range timezone value
53133         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53134         the range [-24...+24].  When specified with only one or two digits,
53135         * tests/test-getdate.c: Tests for the fix.
53136         * doc/getdate.texi: Document this change.
53137
53138 2008-09-03  Bruno Haible  <bruno@clisp.org>
53139
53140         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53141
53142 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53143
53144         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53145         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53146         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53147         Blake <ebb9@byu.net>.
53148
53149         * tests/test-bitrotate.c: Add more test vectors.
53150
53151 2008-09-02  Eric Blake  <ebb9@byu.net>
53152
53153         vasnprintf-posix: handle large precision via %.*d
53154         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53155         when handling it ourselves.
53156         * tests/test-vasnprintf-posix.c (test_function): Add test.
53157         * tests/test-snprintf-posix.h (test_function): Likewise.
53158         * tests/test-sprintf-posix.h (test_function): Likewise.
53159         * tests/test-vasprintf-posix.c (test_function): Likewise.
53160         Reported by Alain Guibert.
53161
53162 2008-09-01  Eric Blake  <ebb9@byu.net>
53163
53164         c-stack: make configure-time check more robust
53165         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53166         successful sigaction call.
53167         Reported by Tom G. Christensen.
53168
53169 2008-09-01  Bruno Haible  <bruno@clisp.org>
53170
53171         New module 'findprog-lgpl'.
53172         * modules/findprog-lgpl: New file.
53173         * lib/findprog-lgpl.c: New file.
53174         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53175         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53176         to decide whether to use strdup or xstrdup, concatenated_filename or
53177         xconcatenated_filename.
53178
53179 2008-09-01  Bruno Haible  <bruno@clisp.org>
53180
53181         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53182         'xconcat-filename' (GPL).
53183         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53184         (License): Change to LGPLv2+.
53185         * modules/xconcat-filename: New file.
53186         * lib/concat-filename.h (concatenated_filename): Change specification.
53187         (xconcatenated_filename): New declaration.
53188         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53189         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53190         memory situations.
53191         * lib/xconcat-filename.c: New file.
53192         * NEWS: Mention the change.
53193         * lib/findprog.c: Include concat-filename.h, not filename.h.
53194         (find_in_path): Use xconcatenated_filename instead of
53195         concatenated_filename.
53196         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53197         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53198         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53199         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53200         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53201         instead of concatenated_filename.
53202         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53203         (execute_java_class): Use xconcatenated_filename instead of
53204         concatenated_filename.
53205         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53206         * modules/javacomp (Depends-on): Likewise.
53207         * modules/javaexec (Depends-on): Likewise.
53208
53209 2008-09-01  Bruno Haible  <bruno@clisp.org>
53210
53211         Split module 'filename' into 'filename' and 'concat-filename'.
53212         * modules/filename: Keep only lib/filename.h.
53213         (License): Change to LGPLv2+.
53214         * modules/concat-filename: New file, extracted from modules/filename.
53215         * lib/filename.h (concatenated_filename): Remove declaration.
53216         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53217         * lib/concat-filename.c: Include concat-filename.h.
53218         * NEWS: Mention the change.
53219
53220 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53221
53222         * lib/bitrotate.h (rotl8, rotr8): Add.
53223
53224         * modules/bitrotate (configure.ac): Need
53225         AC_REQUIRE([AC_C_INLINE]).
53226         (Description): Mention stdint.h.  Reported by Bruno Haible
53227         <bruno@clisp.org>.
53228
53229         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53230         Paolo Bonzini <bonzini@gnu.org>.
53231
53232 2008-08-31  Bruno Haible  <bruno@clisp.org>
53233
53234         Assume Solaris specific bi-arch conventions on Solaris systems.
53235         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53236         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53237         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53238         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53239         like acl_libdirstem.
53240         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53241         acl_libdirstem.
53242         * NEWS: Mention the change.
53243         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53244
53245 2008-08-31  Jim Meyering  <meyering@redhat.com>
53246
53247         * lib/strftime.h: Add comments describing the two added arguments.
53248
53249         remove duplicate #include directives
53250         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53251         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53252
53253 2008-08-31  Bruno Haible  <bruno@clisp.org>
53254
53255         New module 'sigpipe-die'.
53256         * modules/sigpipe-die: New file.
53257         * lib/sigpipe-die.h: New file.
53258         * lib/sigpipe-die.c: New file.
53259         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53260
53261 2008-08-31  Bruno Haible  <bruno@clisp.org>
53262
53263         Don't override previously installed signal handlers.
53264         * lib/fatal-signal.c (saved_sigactions): New variable.
53265         (uninstall_handlers): Reset the signal to the saved handler, not
53266         to SIG_DFL (except when ignored).
53267         (install_handlers): Save the previous handlers.
53268
53269 2008-08-30  Bruno Haible  <bruno@clisp.org>
53270
53271         * gnulib-tool (func_reset_sigpipe): New function.
53272         (func_get_automake_snippet, func_modules_transitive_closure,
53273         func_import): Invoke it before a join command that reads from stdin,
53274         to avoid "echo: write error: Broken pipe" error messages on stderr.
53275         Reported by Sam Steingold <sds@gnu.org>.
53276
53277 2008-08-30  Bruno Haible  <bruno@clisp.org>
53278
53279         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53280         Code copied from m4/open.m4.
53281         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53282         access and the filename ends in a slash. Code copied from lib/open.c.
53283         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53284         * tests/test-fopen.c (main): Check against bug with trailing slash.
53285
53286 2008-08-29  Bruno Haible  <bruno@clisp.org>
53287
53288         Avoid some "gcc -pedantic" warnings.
53289         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53290         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53291         * lib/dirent.in.h: Likewise.
53292         * lib/fcntl.in.h: Likewise.
53293         * lib/float.in.h: Likewise.
53294         * lib/iconv.in.h: Likewise.
53295         * lib/inttypes.in.h: Likewise.
53296         * lib/locale.in.h: Likewise.
53297         * lib/math.in.h: Likewise.
53298         * lib/netinet_in.in.h: Likewise.
53299         * lib/search.in.h: Likewise.
53300         * lib/signal.in.h: Likewise.
53301         * lib/stdarg.in.h: Likewise.
53302         * lib/stdint.in.h: Likewise.
53303         * lib/stdio.in.h: Likewise.
53304         * lib/stdlib.in.h: Likewise.
53305         * lib/string.in.h: Likewise.
53306         * lib/strings.in.h: Likewise.
53307         * lib/sys_select.in.h: Likewise.
53308         * lib/sys_socket.in.h: Likewise.
53309         * lib/sys_stat.in.h: Likewise.
53310         * lib/sys_time.in.h: Likewise.
53311         * lib/sysexits.in.h: Likewise.
53312         * lib/time.in.h: Likewise.
53313         * lib/unistd.in.h: Likewise.
53314         * lib/wchar.in.h: Likewise.
53315         * lib/wctype.in.h: Likewise.
53316         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53317         * modules/fchdir (Makefile.am): Likewise.
53318         * modules/fcntl (Makefile.am): Likewise.
53319         * modules/float (Makefile.am): Likewise.
53320         * modules/iconv_open (Makefile.am): Likewise.
53321         * modules/inttypes (Makefile.am): Likewise.
53322         * modules/locale (Makefile.am): Likewise.
53323         * modules/math (Makefile.am): Likewise.
53324         * modules/netinet_in (Makefile.am): Likewise.
53325         * modules/search (Makefile.am): Likewise.
53326         * modules/signal (Makefile.am): Likewise.
53327         * modules/stdarg (Makefile.am): Likewise.
53328         * modules/stdint (Makefile.am): Likewise.
53329         * modules/stdio (Makefile.am): Likewise.
53330         * modules/stdlib (Makefile.am): Likewise.
53331         * modules/string (Makefile.am): Likewise.
53332         * modules/strings (Makefile.am): Likewise.
53333         * modules/sys_select (Makefile.am): Likewise.
53334         * modules/sys_socket (Makefile.am): Likewise.
53335         * modules/sys_stat (Makefile.am): Likewise.
53336         * modules/sys_time (Makefile.am): Likewise.
53337         * modules/sysexits (Makefile.am): Likewise.
53338         * modules/time (Makefile.am): Likewise.
53339         * modules/unistd (Makefile.am): Likewise.
53340         * modules/wchar (Makefile.am): Likewise.
53341         * modules/wctype (Makefile.am): Likewise.
53342         Reported by Reuben Thomas <rrt@sc3d.org>.
53343
53344 2008-08-29  Bruno Haible  <bruno@clisp.org>
53345
53346         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53347         any more.
53348
53349 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53350
53351         * MODULES.html.sh (Misc): Add bitrotate.
53352
53353         * modules/bitrotate: New file.
53354
53355         * lib/bitrotate.h: New file.
53356
53357         * modules/bitrotate-tests: New file.
53358
53359         * tests/test-bitrotate.c: New file.
53360
53361         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53362         on the bitrotate module.
53363
53364         * lib/arctwo.c: Use new bitrotate module.
53365
53366 2008-08-29  Jim Meyering  <meyering@redhat.com>
53367
53368         bootstrap: merge changes from coreutils
53369         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53370         of copied files.  Remove a kludge, now that this is fixed.
53371         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53372         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53373         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53374
53375 2008-08-29  Bruno Haible  <bruno@clisp.org>
53376
53377         * MODULES.html.sh: Remove --cvs-urls option.
53378
53379 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53380
53381         maint.mk: adjust to file name change
53382         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53383
53384 2008-08-28  Jim Meyering  <meyering@redhat.com>
53385
53386         * modules/getndelim2 (License): Relicense to LGPLv2+.
53387         Approved by Richard Stallman for the version of 1995, and by
53388         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53389
53390 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53391
53392         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53393         dummy if one is not available.  Do not touch them if
53394         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53395         (getc_maybe_unlocked): New.
53396         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53397
53398 2008-08-26  Eric Blake  <ebb9@byu.net>
53399
53400         doc/INSTALL: resync from autoconf
53401         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53402         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53403         moving...
53404         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53405         * INSTALL: Regenerate.
53406         * INSTALL.ISO: New file.
53407         * INSTALL.UTF-8: Likewise.
53408
53409 2008-08-26  Jim Meyering  <meyering@redhat.com>
53410
53411         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53412         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53413         these definitions conditional, so that they may be overridden, too.
53414
53415 2008-08-26  Bruno Haible  <bruno@clisp.org>
53416
53417         Generate INSTALL file variants with prettier quotes.
53418         * doc/Makefile (INSTALL_PRELUDE): New macro.
53419         (INSTALL): Use it.
53420         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53421
53422 2008-08-26  Bruno Haible  <bruno@clisp.org>
53423
53424         Run makeinfo in an English locale.
53425         * doc/Makefile (MAKEINFO): New variable.
53426
53427 2008-08-26  Bruno Haible  <bruno@clisp.org>
53428
53429         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53430         Suggested by Eric Blake.
53431
53432 2008-08-25  Bruno Haible  <bruno@clisp.org>
53433
53434         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53435
53436 2008-08-25  Eric Blake  <ebb9@byu.net>
53437
53438         c-stack: test that stack overflow can be caught
53439         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53440         that platform allows handling stack overflow; at least OS/2 EMX
53441         has sigaltstack, but crashes before transferring control to
53442         handler on stack overflow.
53443         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53444         check for HAVE_STACK_OVERFLOW_HANDLING.
53445         Reported by Elbert Pol.
53446
53447 2008-08-25  Bruno Haible  <bruno@clisp.org>
53448
53449         * doc/posix-functions/strftime.texi: Fix description of strftime
53450         module.
53451
53452 2008-08-24  Bruno Haible  <bruno@clisp.org>
53453
53454         * tests/uniwidth/test-uc_width2.c: New file.
53455         * tests/uniwidth/test-uc_width2.sh: New file.
53456         * modules/uniwidth/width-tests (Files): Add the new files.
53457         (TESTS): Add uniwidth/test-uc_width2.sh.
53458         (TESTS_ENVIRONMENT): New variable.
53459         (check_PROGRAMS): Add test-uc_width2.
53460         (test_uc_width2_SOURCES): New variable.
53461
53462         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53463         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53464         not 0x00AB.
53465         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53466
53467 2008-08-22  Eric Blake  <ebb9@byu.net>
53468
53469         test-lock, test-tls: mention why a test is skipped
53470         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53471         skipped.
53472         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53473
53474         count-one-bits: relax license
53475         * modules/count-one-bits (License): Relicense to LGPLv2+.
53476         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53477
53478 2008-08-22  Andreas Schwab  <schwab@suse.de>
53479
53480         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53481         Remove spurious space in assignment.
53482
53483 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53484
53485         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53486         Paul Eggert <eggert@CS.UCLA.EDU>.
53487
53488 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53489
53490         * modules/gettext: Add m4/threadlib.m4.
53491
53492 2008-08-19  Eric Blake  <ebb9@byu.net>
53493
53494         test-c-stack: fix compilation failure on FreeBSD 5.0
53495         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53496         headers before <sys/resource.h>.
53497         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53498         the bug.
53499         Reported by Nelson H. F. Beebe.
53500
53501         strverscmp: migrate from "strverscmp.h" to <string.h>
53502         * modules/string (Makefile.am): Add new hooks.
53503         * modules/strverscmp (Files): Remove strverscmp.h.
53504         (Depends-on): Add string.
53505         (configure.ac): Add indicator.
53506         (Include): Mention new header.
53507         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53508         defaults.
53509         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53510         results.
53511         * lib/strverscmp.h: Delete.
53512         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53513         * tests/test-strverscmp.c (includes): Adjust client.
53514         * lib/check-version.c (includes): Likewise.
53515         * NEWS: Document the change.
53516
53517         strverscmp: add unit test
53518         * modules/strverscmp-tests: New file.
53519         * tests/test-strverscmp.c: Likewise.
53520
53521 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53522
53523         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53524         regarding Windows crypto stuff, from Mono.
53525
53526 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53527
53528         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53529         if present, for intel RND.  Return error on failures.
53530
53531 2008-08-18  Ben Pfaff  <blp@gnu.org>
53532
53533         gitlog-to-changelog: give better diagnostic for failed pipe-open
53534         * build-aux/gitlog-to-changelog: Improve error message: suggest
53535         that the version of Git may be too old.
53536
53537 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53538
53539         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53540         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53541
53542 2008-08-18  Bruno Haible  <bruno@clisp.org>
53543
53544         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53545         pthread_in_use().
53546
53547 2008-08-18  Bruno Haible  <bruno@clisp.org>
53548
53549         * lib/glthread/threadlib.c: Include <pthread.h>.
53550
53551 2008-08-18  Bruno Haible  <bruno@clisp.org>
53552
53553         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53554         glthread_recursive_lock_* macros.
53555         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53556         Fix syntax error.
53557
53558 2008-08-18  Bruno Haible  <bruno@clisp.org>
53559
53560         * lib/glthread/thread.c: Avoid forcing a context switch right after
53561         thread creation.
53562
53563 2008-08-17  Bruno Haible  <bruno@clisp.org>
53564
53565         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53566         * lib/glthread/thread.h: Provide Win32 specific implementation.
53567         * modules/thread (Files): Add lib/glthread/thread.c.
53568         (Depends-on): Add lock.
53569         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53570
53571 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53572
53573         New module 'yield'.
53574         * modules/yield: New file.
53575         * lib/glthread/yield.h: New file.
53576         * m4/yield.m4: New file.
53577         * MODULES.html.sh (Multithreading): Add yield.
53578
53579 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53580
53581         New module 'thread'.
53582         * modules/thread: New file.
53583         * lib/glthread/thread.h: New file.
53584         * m4/thread.m4: New file.
53585         * MODULES.html.sh (Multithreading): Add thread.
53586
53587 2008-08-17  Bruno Haible  <bruno@clisp.org>
53588
53589         * lib/glthread/lock.h: Include <stdlib.h> always.
53590         * lib/glthread/tls.h: Likewise.
53591         * lib/glthread/cond.h: Likewise.
53592
53593 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53594
53595         New module 'cond'.
53596         * modules/cond: New file.
53597         * lib/glthread/cond.h: New file.
53598         * lib/glthread/cond.c: New file.
53599         * m4/cond.m4: New file.
53600         * MODULES.html.sh (Multithreading): Add cond.
53601
53602 2008-08-16  Eric Blake  <ebb9@byu.net>
53603
53604         c-stack: fix regression on Irix 5.3 from 2008-06-21
53605         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53606         sa_sigaction...
53607         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53608         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53609         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53610         * modules/signal (Makefile.am): Use the value.
53611         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53612         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53613         * doc/posix-headers/signal.texi (signal.h): Document this
53614         portability issue.
53615         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53616         Reported by Tom G. Christensen.
53617
53618 2008-08-17  Bruno Haible  <bruno@clisp.org>
53619
53620         New module 'threadlib'.
53621         * modules/threadlib: New file.
53622         * lib/glthread/threadlib.c: New file, extracted from
53623         lib/glthread/lock.c.
53624         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53625         functions.
53626         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53627         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53628         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53629         macros.
53630         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53631         (gl_DISABLE_THREADS): Remove macro.
53632         * modules/lock (Files): Remove build-aux/config.rpath.
53633         (Depends-on): Remove havelib. Add threadlib.
53634         (configure.ac-early): Remove section.
53635         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53636         * modules/tls (Depends-on): Remove lock. Add threadlib.
53637         (Link): New section, copied from threadlib.
53638         * MODULES.html.sh (Multithreading): Add threadlib.
53639
53640 2008-08-14  Bruno Haible  <bruno@clisp.org>
53641
53642         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53643         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53644         glthread_rwlock_unlock, glthread_rwlock_destroy,
53645         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53646         glthread_recursive_lock_destroy): Define as macros always.
53647         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53648         glthread_lock_lock.
53649         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53650         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53651         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53652         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53653         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53654         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53655         (glthread_recursive_lock_lock_func): Renamed from
53656         glthread_recursive_lock_lock.
53657         (glthread_recursive_lock_unlock_func): Renamed from
53658         glthread_recursive_lock_unlock.
53659         (glthread_recursive_lock_destroy_func): Renamed from
53660         glthread_recursive_lock_destroy.
53661
53662 2008-08-14  Bruno Haible  <bruno@clisp.org>
53663
53664         * lib/glthread/lock.h: Renamed from lib/lock.h.
53665         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53666         * lib/glthread/tls.h: Renamed from lib/tls.h.
53667         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53668         * lib/fstrcmp.c: Update includes.
53669         * lib/strsignal.c: Update includes.
53670         * modules/lock (Files, Makefile.am): Update.
53671         (Include): Change to "glthread/lock.h".
53672         * modules/tls (Files, Makefile.am): Update.
53673         (Include): Change to "glthread/tls.h".
53674         * tests/test-lock.c: Update includes.
53675         * tests/test-tls.c: Update includes.
53676         * NEWS: Mention the renamed header files.
53677
53678 2008-08-11  Jim Meyering  <meyering@redhat.com>
53679
53680         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53681
53682 2008-08-11  Eric Blake  <ebb9@byu.net>
53683
53684         test-c-stack: avoid C99-ism
53685         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53686         before statement.
53687         Reported by Alain Guibert.
53688
53689 2008-08-10  Jim Meyering  <meyering@redhat.com>
53690
53691         ensure that return value of uinttostr et al are not ignored
53692         * lib/inttostr.h (__GNUC_PREREQ): Define.
53693         (__attribute_warn_unused_result__): Define.
53694         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53695
53696 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53697
53698         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53699         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53700
53701 2008-08-07  Jim Meyering  <meyering@redhat.com>
53702
53703         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53704
53705         * modules/mkstemp (License): Relicense under LGPLv2+.
53706         * modules/tempname (License): Likewise.
53707
53708 2008-08-06  Bruno Haible  <bruno@clisp.org>
53709
53710         * lib/poll.c (poll): Further micro-optimization.
53711
53712 2008-08-06  Jim Meyering  <meyering@redhat.com>
53713
53714         inet_pton.c: use locale-independent tolower
53715         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53716         (inet_pton6): Use c_tolower rather than tolower.
53717         * modules/inet_pton (Depends-on): Add c-ctype.
53718
53719 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53720
53721         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53722         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53723
53724 2008-08-06  Jim Meyering  <meyering@redhat.com>
53725
53726         * modules/inet_pton (License): Relicense under LGPLv2+.
53727
53728 2008-08-03  Bruno Haible  <bruno@clisp.org>
53729
53730         Additional non-aborting API for lock and tls.
53731         * lib/lock.h: Include <errno.h>.
53732         (glthread_lock_init): New macro/function.
53733         (gl_lock_init): Define as wrapper around glthread_lock_init.
53734         (glthread_lock_lock): New macro/function.
53735         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53736         (glthread_lock_unlock): New macro/function.
53737         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53738         (glthread_lock_destroy): New macro/function.
53739         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53740         (glthread_rwlock_init): New macro/function.
53741         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53742         (glthread_rwlock_rdlock): New macro/function.
53743         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53744         (glthread_rwlock_wrlock): New macro/function.
53745         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53746         (glthread_rwlock_unlock): New macro/function.
53747         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53748         (glthread_rwlock_destroy): New macro/function.
53749         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53750         (glthread_recursive_lock_init): New macro/function.
53751         (gl_recursive_lock_init): Define as wrapper around
53752         glthread_recursive_lock_init.
53753         (glthread_recursive_lock_lock): New macro/function.
53754         (gl_recursive_lock_lock): Define as wrapper around
53755         glthread_recursive_lock_lock.
53756         (glthread_recursive_lock_unlock): New macro/function.
53757         (gl_recursive_lock_unlock): Define as wrapper around
53758         glthread_recursive_lock_unlock.
53759         (glthread_recursive_lock_destroy): New macro/function.
53760         (gl_recursive_lock_destroy): Define as wrapper around
53761         glthread_recursive_lock_destroy.
53762         (glthread_once): New macro/function.
53763         (gl_once): Define as wrapper around glthread_once.
53764         Update function declarations.
53765         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53766         glthread_rwlock_init. Return error code.
53767         (glthread_rwlock_rdlock_multithreaded): Renamed from
53768         glthread_rwlock_rdlock. Return error code.
53769         (glthread_rwlock_wrlock_multithreaded): Renamed from
53770         glthread_rwlock_wrlock. Return error code.
53771         (glthread_rwlock_unlock_multithreaded): Renamed from
53772         glthread_rwlock_unlock. Return error code.
53773         (glthread_rwlock_destroy_multithreaded): Renamed from
53774         glthread_rwlock_destroy. Return error code.
53775         (glthread_recursive_lock_init_multithreaded): Renamed from
53776         glthread_recursive_lock_init. Return error code.
53777         (glthread_recursive_lock_lock_multithreaded): Renamed from
53778         glthread_recursive_lock_lock. Return error code.
53779         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53780         glthread_recursive_lock_unlock. Return error code.
53781         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53782         glthread_recursive_lock_destroy. Return error code.
53783         (glthread_once_call): Make static.
53784         (glthread_once_multithreaded): Renamed from glthread_once.
53785         * lib/tls.h: Include <errno.h>.
53786         (glthread_tls_key_init): New macro/function.
53787         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53788         (glthread_tls_set): New macro/function.
53789         (gl_tls_set): Define as wrapper around glthread_tls_set.
53790         (glthread_tls_key_destroy): New macro/function.
53791         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53792         Update function declarations.
53793         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53794         glthread_tls_get.
53795         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53796
53797 2008-08-04  Eric Blake  <ebb9@byu.net>
53798
53799         gnumakefile: use space, not TAB, outside of targets
53800         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53801
53802 2008-08-02  Jim Meyering  <meyering@redhat.com>
53803
53804         getdate.y: avoid locale-dependent date parsing failure
53805         In Turkish locales, getdate would fail to recognize keywords
53806         containing a lowercase "i".  The solution is not to rely on
53807         locale-sensitive case-conversion.
53808         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53809         (lookup_word): Use c_toupper in place of toupper.
53810         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53811         Reported by Vefa Bicakci <bicave@superonline.com> in
53812         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53813         * modules/getdate (Depends-on): Add c-ctype.
53814
53815 2008-08-02  Bruno Haible  <bruno@clisp.org>
53816
53817         * gnulib-tool (func_import): When updating or creating a .gitignore
53818         file, prepend each added line with a slash, and ignore leading slashes
53819         from the existing lines.
53820         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53821
53822 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53823
53824         Portability fix for GNU make 3.79.1.
53825         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53826         versions do not understand.
53827
53828 2008-08-01  Bruno Haible  <bruno@clisp.org>
53829
53830         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53831         * tests/test-isnanf.h (zero): New variable.
53832         (main): Avoid literal -0.0f.
53833         * tests/test-isnand.h (zero): New variable.
53834         (main): Avoid literal -0.0.
53835         * tests/test-isnanl.h (zero): New variable.
53836         (main): Avoid literal -0.0L.
53837         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53838         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53839         -0.0, -0.0L.
53840         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53841         (test_signbitd): Avoid literal -0.0.
53842         (test_signbitl): Avoid literal -0.0L.
53843         * tests/test-ceilf1.c (zero): New variable.
53844         (main): Avoid literal -0.0f.
53845         * tests/test-ceill.c (zero): New variable.
53846         (main): Avoid literal -0.0L.
53847         * tests/test-floorf1.c (zero): New variable.
53848         (main): Avoid literal -0.0f.
53849         * tests/test-floorl.c (zero): New variable.
53850         (main): Avoid literal -0.0L.
53851         * tests/test-roundf1.c (zero): New variable.
53852         (main): Avoid literal -0.0f.
53853         * tests/test-round1.c (zero): New variable.
53854         (main): Avoid literal -0.0.
53855         * tests/test-roundl.c (zero): New variable.
53856         (main): Avoid literal -0.0L.
53857         * tests/test-truncf1.c (zero): New variable.
53858         (main): Avoid literal -0.0f.
53859         * tests/test-trunc1.c (zero): New variable.
53860         (main): Avoid literal -0.0.
53861         * tests/test-truncl.c (zero): New variable.
53862         (main): Avoid literal -0.0L.
53863         * tests/test-frexp.c (zero): New variable.
53864         (main): Avoid literal -0.0.
53865         * tests/test-frexpl.c (zero): New variable.
53866         (main): Avoid literal -0.0L.
53867         * tests/test-ldexpl.c (zero): New variable.
53868         (main): Avoid literal -0.0L.
53869         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53870         (zerod, zerol): New variables.
53871         (test_function): Avoid literals -0.0, -0.0L.
53872         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53873         (zerod, zerol): New variables.
53874         (test_function): Avoid literals -0.0, -0.0L.
53875         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53876         (zerod, zerol): New variables.
53877         (test_function): Avoid literals -0.0, -0.0L.
53878         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53879         (zerod, zerol): New variables.
53880         (test_function): Avoid literals -0.0, -0.0L.
53881         * tests/test-strtod.c (zero): New variable.
53882         (main): Avoid literal -0.0.
53883         Reported by Jonathan C. Patschke <jp@centtech.com>.
53884
53885 2008-07-31  Jim Meyering  <meyering@redhat.com>
53886
53887         sha256.h: correct definition of SHA224_DIGEST_SIZE
53888         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53889         Reported by Paulie Pena IV <paulie4@gmail.com>.
53890         Define as 224 / 8, rather than as a literal.
53891         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53892         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53893         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53894
53895 2008-07-31  Bruno Haible  <bruno@clisp.org>
53896
53897         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53898         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53899         Reported by Jonathan Patschke <jp@centtech.com>.
53900
53901 2008-07-31  Bruno Haible  <bruno@clisp.org>
53902
53903         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53904         Reported by Paolo Bonzini <bonzini@gnu.org>.
53905
53906 2008-07-30  Eric Blake  <ebb9@byu.net>
53907
53908         test-strtod: allow compilation without -lm
53909         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53910         Reported by Dennis Clarke <blastwave@gmail.com>.
53911
53912 2008-07-28  Jim Meyering  <meyering@redhat.com>
53913
53914         bootstrap: work also when there are no .po files in po/
53915         * build-aux/bootstrap (update_po_files): Complete the change
53916         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53917
53918 2008-07-27  Jim Meyering  <meyering@redhat.com>
53919
53920         * users.txt: Add zile.
53921
53922 2008-07-26  Ben Pfaff  <blp@gnu.org>
53923
53924         Add missing dependencies on new m4/exponent[fdl].m4 files.
53925         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53926         * modules/isnand-nolibm: Add m4/exponentd.m4.
53927         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53928         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53929         m4/isnan[fdl].m4, because the macros actually used moved.
53930         Reported by Jim Meyering.
53931
53932 2008-07-14  Ben Pfaff  <blp@gnu.org>
53933
53934         Add isinf module.
53935         * lib/isinf.c: New file.
53936         * lib/math.in.h: Define isinf macro if we have decided to replace
53937         it.
53938         * m4/isinf.m4: New file.
53939         * m4/math_h.m4: Initialize and substitute variables for isinf
53940         module.
53941         * modules/isinf: New file.
53942         * modules/isinf-tests: New file.
53943         * modules/math: Add substitutions for new module.
53944         * tests/test-isinf.c: New file.
53945         * doc/posix-functions/isinf.texi: Mention new module.
53946         * MODULES.html.sh: Mention new module.
53947
53948 2008-07-14  Ben Pfaff  <blp@gnu.org>
53949
53950         Factor out some macros for use by additional modules.
53951         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53952         exponentf.m4.
53953         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53954         exponentd.m4.
53955         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53956         file exponentl.m4.
53957         * m4/exponentf.m4: New file.
53958         * m4/exponentd.m4: New file.
53959         * m4/exponentl.m4: New file.
53960         * modules/isnanf: Use new file m4/exponentf.m4.
53961         * modules/isnand: Use new file m4/exponentd.m4.
53962         * modules/isnanl: Use new file m4/exponentl.m4.
53963
53964 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53965
53966         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53967         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53968         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53969         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53970
53971         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53972         readlink on platforms without PATH_MAX.
53973
53974 2008-07-21  Eric Blake  <ebb9@byu.net>
53975
53976         Warn, not fail, on stale version.
53977         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53978
53979         Don't allow installation with stale devel version number.
53980         * top/GNUmakefile (_is-install-target): New macro.
53981         (_curr-ver): Forbid installation with stale version number.
53982
53983 2008-07-20  Bruno Haible  <bruno@clisp.org>
53984
53985         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53986         TESTS_ENVIRONMENT.
53987         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53988
53989 2008-07-20  Bruno Haible  <bruno@clisp.org>
53990
53991         * lib/c-stack.h (c_stack_action): Add documentation.
53992         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53993
53994 2008-07-20  Bruno Haible  <bruno@clisp.org>
53995
53996         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53997         * modules/readlink (License): Likewise.
53998
53999 2008-07-17  Eric Blake  <ebb9@byu.net>
54000
54001         * modules/c-stack (Link): Fix typo.
54002
54003         Make c-stack use libsigsegv, when available.
54004         * modules/c-stack (Depends-on): Add libsigsegv.
54005         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54006         needed.
54007         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54008         (segv_handler, overflow_handler, c_stack_action)
54009         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54010         implementation when libsigsegv is available, but only when using
54011         the library is necessary.
54012         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54013         comment, explaining why XSI check fails on Linux.
54014         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54015         * tests/test-c-stack2.sh: Tweak skip message.
54016         * NEWS: Document new link-time requirements.
54017
54018 2008-07-16  Eric Blake  <ebb9@byu.net>
54019
54020         c-stack: Expose false positives when not using libsigsegv.
54021         * modules/c-stack-tests (Files): Expand test.
54022         * tests/test-c-stack.c (main): Add means to conditionally trigger
54023         non-overflow SIGSEGV.
54024         * tests/test-c-stack2.sh: New file.
54025
54026 2008-07-14  Bruno Haible  <bruno@clisp.org>
54027
54028         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54029         Reported by Eric Blake.
54030
54031 2008-07-14  Sam Steingold  <sds@gnu.org>
54032             Bruno Haible  <bruno@clisp.org>
54033
54034         New module libsigsegv.
54035         * modules/libsigsegv: New file.
54036         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54037         modifications.
54038         * MODULES.html.sh (Signal handling): New section.
54039
54040 2008-07-14  Bruno Haible  <bruno@clisp.org>
54041
54042         * modules/unictype/ctype-* (Description): Add the word "function".
54043         Improves the resulting doc in MODULES.html.
54044
54045 2008-07-12  Ben Pfaff  <blp@gnu.org>
54046
54047         Add longlong module.
54048         * modules/longlong: New file.
54049
54050 2008-07-12  Bruno Haible  <bruno@clisp.org>
54051
54052         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54053         to empty.
54054
54055 2008-07-10  Ben Pfaff  <blp@gnu.org>
54056
54057         Add isnan module.
54058         * doc/posix-functions/isnan.texi: Mention new module.
54059         * lib/math.in.h: Define isnan macro if we have decided to replace
54060         it.
54061         * m4/isnan.m4: New file.
54062         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54063         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54064         also.
54065         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54066         redundancy.
54067         * m4/math_h.m4: Initialize and substitute variables for isnan
54068         module.
54069         * modules/isnan: New file.
54070         * modules/isnan-tests: New file.
54071         * modules/math: Add substitutions for new module.
54072         * tests/test-isnan.c: New file.
54073         * MODULES.html.sh: Mention new module.
54074
54075 2008-07-10  Ben Pfaff  <blp@gnu.org>
54076
54077         Add isnanf module.
54078         * lib/isnanf.m4: New file.
54079         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54080         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54081         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54082         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54083         * modules/isnanf: New file.
54084         * modules/isnanf-tests: New file.
54085         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54086         files.
54087         * tests/test-isnanf-nolibm.c: factored most of its contents into
54088         new file tests/test-isnanf.h.
54089         * tests/test-isnanf.h: New file.
54090         * tests/test-isnanf.c: New file.
54091         * MODULES.html.sh: Mention new module.
54092         * doc/glibc-functions/isnanf.texi: Mention new module.
54093
54094 2008-07-10  Ben Pfaff  <blp@gnu.org>
54095
54096         Add isnand module.
54097         * lib/isnand.h: New file.
54098         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54099         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54100         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54101         functionality also.
54102         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54103         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54104         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54105         * modules/isnand: New file.
54106         * modules/isnand-tests: New file.
54107         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54108         files.
54109         * tests/test-isnand-nolibm.c: factored most of its contents into
54110         new file tests/test-isnand.h.
54111         * tests/test-isnand.h: New file.
54112         * tests/test-isnand.c: New file.
54113         * MODULES.html.sh: Mention new module.
54114
54115 2008-07-10  Ben Pfaff  <blp@gnu.org>
54116
54117         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54118         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54119         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54120         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54121         * modules/isnanf-nolibm: Update references to renamed files.
54122         * modules/isnand-nolibm: Likewise.
54123         * modules/isnanf-nolibm-tests: Likewise.
54124         * modules/isnand-nolibm-tests: Likewise.
54125         * lib/frexp.c: Likewise.
54126         * lib/isfinite.c: Likewise.
54127         * lib/signbitd.c: Likewise.
54128         * lib/signbitf.c: Likewise.
54129         * lib/vasnprintf.c: Likewise.
54130         * tests/test-ceilf1.c: Likewise.
54131         * tests/test-ceilf2.c: Likewise.
54132         * tests/test-floorf1.c: Likewise.
54133         * tests/test-floorf2.c: Likewise.
54134         * tests/test-frexp.c: Likewise.
54135         * tests/test-round1.c: Likewise.
54136         * tests/test-round2.c: Likewise.
54137         * tests/test-roundf1.c: Likewise.
54138         * tests/test-strtod.c: Likewise.
54139         * tests/test-trunc1.c: Likewise.
54140         * tests/test-trunc2.c: Likewise.
54141         * tests/test-truncf1.c: Likewise.
54142         * tests/test-truncf2.c: Likewise.
54143         * NEWS: Mention the renamed header files.
54144
54145 2008-07-11  Jim Meyering  <meyering@redhat.com>
54146
54147         vc-list-files: make the last-resort awk code more portable
54148         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54149         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54150         does not support it.
54151
54152 2008-07-10  Eric Blake  <ebb9@byu.net>
54153
54154         Work with tar's bootstrap.
54155         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54156         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54157         an m4 comment.
54158
54159 2008-07-09  Jim Meyering  <meyering@redhat.com>
54160
54161         posix-shell.m4: fix typo that made this test malfunction
54162         * m4/posix-shell.m4: Remove capitalization in variable name.
54163
54164 2008-07-08  Bruno Haible  <bruno@clisp.org>
54165
54166         * m4/onceonly.m4: Update comments.
54167         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54168
54169 2008-07-04  Jim Meyering  <meyering@redhat.com>
54170
54171         * users.txt: Add vc-dwim.
54172         (bison, coreutils): Use the gitweb URL.
54173
54174 2008-07-03  Jim Meyering  <meyering@redhat.com>
54175
54176         * users.txt: Add libffcall.  From Sam Steingold.
54177
54178 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54179
54180         getdate.y: do not ignore TZ with relative day, month or year offset
54181         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54182         relative-date-handling, since otherwise, the latter would clobber the
54183         sole output (an updated Start value) of the tz-handling block.
54184         * tests/test-getdate.c: Tests for the fix
54185
54186 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54187
54188         Recognize 'foo_LIBRARIES += libgnu.a'.
54189         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54190         makefile snippet has already specified an installation location,
54191         also using '+='.
54192
54193 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54194
54195         getdate.y: factor out common actions
54196         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54197         Use them in place of open-coded actions.
54198
54199 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54200
54201         Add self-test for getdate module.
54202         * modules/getdate-tests: New file.
54203         * tests/test-getdate.c: New file.
54204
54205 2008-06-29  Bruno Haible  <bruno@clisp.org>
54206
54207         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54208         .gitignore.
54209         Reported by Sylvain Beucler <beuc@beuc.net>.
54210
54211 2008-06-29  Bruno Haible  <bruno@clisp.org>
54212
54213         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54214         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54215
54216 2008-06-29  Bruno Haible  <bruno@clisp.org>
54217
54218         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54219         EXTRA_DIST.
54220         Reported by Sylvain Beucler <beuc@beuc.net>.
54221
54222 2008-06-26  Jim Meyering  <meyering@redhat.com>
54223
54224         make several modules depend on the "open" module
54225         This provides slightly increased consistency when opening-for-write
54226         the name of a non-directory spelled with a trailing slash.
54227         * modules/chdir-safer: Likewise.
54228         * modules/chown: Likewise.
54229         * modules/clean-temp: Likewise.
54230         * modules/copy-file: Likewise.
54231         * modules/fchdir: Likewise.
54232         * modules/fcntl-safer: Likewise.
54233         * modules/pipe: Likewise.
54234         * modules/utime: Likewise.
54235         Prompted by Eric Blake and Bruno Haible.
54236
54237 2008-06-24  Andreas Schwab  <schwab@suse.de>
54238
54239         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54240         literals can be used as initializers for global variables.
54241
54242 2008-06-23  Eric Blake  <ebb9@byu.net>
54243
54244         Make gnulib-cache.m4 easier to diff.
54245         * gnulib-tool (func_import): Allow newlines when reading cached
54246         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54247
54248 2008-06-23  Bruno Haible  <bruno@clisp.org>
54249
54250         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54251         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54252         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54253         m4/signalblocking.m4.
54254         (gl_PREREQ_SIGACTION): Don't invoke it.
54255         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54256         gl_PREREQ_SIG_HANDLER_H.
54257         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54258         Don't check for sigaction here.
54259
54260 2008-06-23  Bruno Haible  <bruno@clisp.org>
54261
54262         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54263         (install_handlers): Don't set the SA_RESETHAND flag.
54264
54265 2008-06-23  Bruno Haible  <bruno@clisp.org>
54266
54267         * m4/sigaction.m4: Comment fixes.
54268         * lib/signal.in.h: Likewise.
54269
54270 2008-06-23  Eric Blake  <ebb9@byu.net>
54271
54272         Fix typo.
54273         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54274
54275         Avoid SA_ namespace.
54276         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54277         Reported by Ralf Wildenhues.
54278
54279         Avoid test failure due to SA_RESTORER.
54280         * tests/test-sigaction.c (SA_MASK): New macro.
54281         (main): Avoid failing due to extension flags being set.
54282         Reported by Jim Meyering.
54283
54284         Revert use of sig-handler.h in sigprocmask.c.
54285         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54286         it requires the existence of struct sigaction.
54287         * lib/sigprocmask.c (handler_t): Restore typedef.
54288         (rpl_signal, old_handlers): Use local type.
54289
54290 2008-06-22  Bruno Haible  <bruno@clisp.org>
54291
54292         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54293         conditionally.
54294         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54295
54296 2008-06-22  Bruno Haible  <bruno@clisp.org>
54297
54298         * doc/posix-functions/siginterrupt.texi: Move note.
54299
54300         * lib/signal.in.h (SA_RESTART): New macro.
54301         * lib/sigaction.c: Update comment.
54302
54303         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54304
54305         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54306         (gl_PREREQ_SIGPROCMASK): Invoke it.
54307         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54308
54309         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54310
54311         * lib/sigprocmask.c: Update a comment.
54312
54313 2008-06-21  Eric Blake  <ebb9@byu.net>
54314
54315         Use sigaction module rather than signal().
54316         * modules/c-stack (Depends-on): Add sigaction.
54317         * modules/fatal-signal (Depends-on): Likewise.
54318         * modules/nanosleep (Depends-on): Likewise.
54319         * modules/sigprocmask (Files): Add sig-handler.h.
54320         * modules/sigaction (Files): Likewise.
54321         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54322         Eggert.
54323         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54324         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54325         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54326         (init_fatal_signals): Likewise.
54327         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54328         (siginterrupt): Delete fallback.
54329         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54330         instead.
54331         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54332         siginterrupt.
54333
54334         New module sigaction, for mingw.
54335         * modules/sigaction: New module...
54336         * modules/sigaction-tests: ...and its test.
54337         * m4/sigaction.m4: New file.
54338         * lib/sigaction.c: Likewise.
54339         * tests/test-sigaction.c: Likewise.
54340         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54341         * modules/signal (Makefile.am): Likewise.
54342         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54343         needed.
54344         * doc/posix-headers/signal.texi (signal.h): Mention provided
54345         types.
54346         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54347         that sigaction is preferable.
54348         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54349         module.
54350         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54351         sigaction.
54352
54353         Improve robustness of sigprocmask by overriding signal.
54354         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54355         is in use.
54356         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54357         (SIGKILL, SIGSTOP): Provide fallbacks.
54358         (rpl_signal): Implement.
54359         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54360         signal can be called inside handlers.
54361
54362         Fix nanosleep module on mingw.
54363         * modules/nanosleep (Depends-on): Add sys_select.
54364         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54365
54366         Fix licensing of sigprocmask.
54367         * modules/raise (License): Relicense as LGPL.
54368
54369 2008-06-21  Bruno Haible  <bruno@clisp.org>
54370
54371         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54372         result if it contains question marks.
54373         Reported by Michael Geng <linux@michaelgeng.de>.
54374
54375 2008-06-19  Bruno Haible  <bruno@clisp.org>
54376
54377         Fix CVS-ism.
54378         * doc/gnulib.texi: Include updated-stamp.texi.
54379         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54380         (updated-stamp.texi): New rule.
54381         (gnulib.info): Depend on it.
54382         * doc/.gitignore: Add updated-stamp.texi.
54383         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54384
54385 2008-06-19  Bruno Haible  <bruno@clisp.org>
54386
54387         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54388         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54389
54390 2008-06-19  Eric Blake  <ebb9@byu.net>
54391
54392         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54393         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54394         Reported by Stepan Kasal.
54395
54396 2008-06-18  Bruno Haible  <bruno@clisp.org>
54397
54398         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54399         Reported by Eric Blake.
54400
54401 2008-06-18  Eric Blake  <ebb9@byu.net>
54402
54403         Work around cygwin 1.5.25 strsignal bug.
54404         * tests/test-strsignal.c: Allow for const char *.
54405         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54406
54407 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54408
54409         * users.txt: Update URL to article and add author/date
54410         information.
54411
54412 2008-06-17  Bruno Haible  <bruno@clisp.org>
54413
54414         New macro gl_DISABLE_THREADS.
54415         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54416         if the user did not pass --enable-threads or --disable-threads option.
54417         (gl_DISABLE_THREADS): New macro.
54418         Reported by Eric Blake <ebb9@byu.net>.
54419
54420 2008-06-17  Bruno Haible  <bruno@clisp.org>
54421
54422         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54423         when the macro ignores it.
54424         Based on a patch by Eric Blake <ebb9@byu.net>.
54425
54426 2008-06-17  Bruno Haible  <bruno@clisp.org>
54427
54428         * modules/tls (License): Change to LGPLv2+.
54429         Reported by Eric Blake.
54430
54431 2008-06-17  Eric Blake  <ebb9@byu.net>
54432
54433         Simplify c-stack prerequisites.
54434         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54435         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54436         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54437         check.
54438         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54439         <sys/resource.h>.
54440
54441         Move c-stack test into testsuite.
54442         * modules/c-stack-tests: New file.
54443         * lib/c-stack.c [DEBUG]: Move test program...
54444         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54445         fail test if sigaltstack is lacking.
54446         * tests/test-c-stack.sh: New driver file.
54447
54448 2008-06-16  Eric Blake  <ebb9@byu.net>
54449
54450         Use raise module consistently.
54451         * modules/fatal-signal (Depends-on): Add raise.
54452         * modules/sigprocmask (Depends-on): Likewise.
54453         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54454         * lib/sigprocmask.c (sigprocmask): Likewise.
54455         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54456         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54457
54458         Fix compliance bug in sigpending.
54459         * lib/sigprocmask.c (sigpending): Return pending array via
54460         parameter, not return value.
54461
54462 2008-06-14  Eric Blake  <ebb9@byu.net>
54463
54464         Improve obstack-printf test code.
54465         * tests/test-obstack-printf.c (test_function): Fix comment, and
54466         simplify usage of obstack_* in macros.  Add a test for coverage.
54467         Reported by Bruno Haible.
54468
54469 2008-06-14  Bruno Haible  <bruno@clisp.org>
54470
54471         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54472         array size as a constant, not as a const variable.
54473         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54474         AC_USE_SYSTEM_EXTENSIONS.
54475         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54476         Test whether the obstack_printf function actually exists.
54477         * modules/obstack-printf (Depends-on): Add extensions.
54478         (Include): Remove obstack.h.
54479         * modules/obstack-printf-posix (Depends-on): Add extensions.
54480         (Include): Remove obstack.h.
54481
54482 2008-06-13  Eric Blake  <ebb9@byu.net>
54483
54484         Add obstack-printf and obstack-printf-posix modules.
54485         * modules/obstack-printf: New file.
54486         * modules/obstack-printf-posix: Likewise.
54487         * MODULES.html.sh (Misc): Mention them.
54488         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54489         Likewise.
54490         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54491         Likewise.
54492         * modules/stdio (Makefile.am): Accomodate new modules.
54493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54494         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54495         Declare.
54496         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54497         functions.
54498         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54499         (gl_REPLACE_OBSTACK_PRINTF): New macros
54500         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54501         * tests/test-obstack-printf.c: New file.
54502         * modules/obstack-printf-tests: Likewise.
54503         * modules/obstack-printf-posix-tests: Likewise.
54504
54505 2008-06-11  Bruno Haible  <bruno@clisp.org>
54506
54507         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54508         * lib/open.c: Include errno.h.
54509         (open): Fail when attempting to write to a file that has a trailing
54510         slash.
54511         * tests/test-open.c (main): Test against trailing slash bug.
54512         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54513
54514 2008-06-10  Bruno Haible  <bruno@clisp.org>
54515
54516         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54517         for $? to work inside the trap command, with various /bin/sh-s.
54518         * tests/test-vc-list-files-cvs.sh: Likewise.
54519
54520 2008-06-10  Bruno Haible  <bruno@clisp.org>
54521
54522         * lib/acl-internal.h: Don't include gettext.h here.
54523         * lib/set-mode-acl.c: Include gettext.h here.
54524         * lib/copy-acl.c: Likewise.
54525
54526 2008-06-10  Bruno Haible  <bruno@clisp.org>
54527
54528         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54529         * lib/wait-process.c (wait_subprocess): Likewise.
54530         * lib/execute.h (execute): Add termsigp argument.
54531         * lib/execute.c (execute): Likewise.
54532         * lib/csharpcomp.c (compile_csharp_using_pnet,
54533         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54534         * lib/csharpexec.c (execute_csharp_using_pnet,
54535         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54536         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54537         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54538         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54539         is_jikes_present): Update.
54540         * lib/javaexec.c (execute_java_class): Update.
54541         * lib/javaversion.c (execute_and_read_line): Update.
54542         * NEWS: Document the changes.
54543         Reported by Eric Blake.
54544
54545 2008-06-10  Eric Blake  <ebb9@byu.net>
54546
54547         Add missing include.
54548         * tests/test-strstr.c (includes): Add <signal.h>.
54549         * tests/test-strcasestr.c (includes): Likewise.
54550         * tests/test-memmem.c (includes): Likewise.
54551
54552 2008-06-10  Bruno Haible  <bruno@clisp.org>
54553
54554         * lib/wait-process.c (wait_subprocess): Add an assertion.
54555
54556 2008-06-10  Bruno Haible  <bruno@clisp.org>
54557
54558         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54559
54560 2008-06-10  Bruno Haible  <bruno@clisp.org>
54561
54562         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54563         using alarm().
54564         * tests/test-strcasestr.c (main): Likewise.
54565         * tests/test-strstr.c (main): Likewise.
54566
54567 2008-06-09  Bruno Haible  <bruno@clisp.org>
54568
54569         Work around the Solaris 10 ACE ACLs ABI change.
54570         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54571         declare if ACL_NO_TRIVIAL is present.
54572         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54573         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54574         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54575         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54576         define if ACL_NO_TRIVIAL is present.
54577         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54578         and use the current ABI.
54579         (file_has_acl): Use same #if condition as elsewhere.
54580         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54581         in use, and use the current ABI.
54582         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54583         Reported by Jim Meyering.
54584
54585 2008-06-09  Eric Blake  <ebb9@byu.net>
54586
54587         Work around environments that (stupidly) ignore SIGALRM.
54588         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54589         before using alarm().
54590         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54591         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54592         Reported by Ian Beckwith <ianb@erislabs.net>.
54593
54594         Produce autobuild blurb earlier in log.
54595         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54596
54597 2008-06-09  Jim Meyering  <meyering@redhat.com>
54598         and OndÅ™ej Vašík  <ovasik@redhat.com>
54599
54600         utimens.c: correct kernel bug work-around
54601         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54602         failure, not success, and the kernel bug we're trying to work
54603         around affects not just the utimensat call, but also the fallback
54604         futimens call.
54605         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54606         not success.
54607         [HAVE_FUTIMENS]: Use the same work-around, here.
54608
54609 2008-06-09  Jim Meyering  <meyering@redhat.com>
54610
54611         add more guards around definition of ACE_-related code
54612         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54613         ALLOW and ACE_OWNER are also defined.
54614
54615 2008-06-08  Bruno Haible  <bruno@clisp.org>
54616
54617         * lib/acl-internal.h: Add me as co-author.
54618         * lib/file-has-acl.c: Likewise.
54619         * lib/set-mode-acl.c: Likewise.
54620         * lib/copy-acl.c: Likewise.
54621
54622 2008-06-08  Bruno Haible  <bruno@clisp.org>
54623
54624         Add support for AIX ACLs.
54625         * lib/acl-internal.h (acl_nontrivial): New declaration.
54626         * lib/file-has-acl.c (acl_nontrivial): New function.
54627         (file_has_acl): Add implementation using AIX 4 ACL API.
54628         * lib/set-mode-acl.c (qset_acl): Likewise.
54629         * lib/copy-acl.c (qcopy_acl): Likewise.
54630
54631 2008-06-08  Bruno Haible  <bruno@clisp.org>
54632
54633         Add support for HP-UX ACLs.
54634         * lib/acl-internal.h (acl_nontrivial): New declaration.
54635         * lib/file-has-acl.c (acl_nontrivial): New function.
54636         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54637         * lib/set-mode-acl.c (qset_acl): Likewise.
54638         * lib/copy-acl.c (qcopy_acl): Likewise.
54639
54640 2008-06-08  Bruno Haible  <bruno@clisp.org>
54641
54642         Add support for Cygwin ACLs.
54643         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54644         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54645         the chmod_or_fchmod call.
54646         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54647
54648 2008-06-08  Bruno Haible  <bruno@clisp.org>
54649
54650         Fix bug with setuid modes in Solaris 10+ code.
54651         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54652         succeeded, when the mode contains some special bits.
54653
54654 2008-06-08  Bruno Haible  <bruno@clisp.org>
54655
54656         Add support for Solaris 7..10 ACLs.
54657         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54658         declarations.
54659         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54660         functions.
54661         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54662         * lib/set-mode-acl.c (qset_acl): Likewise.
54663         * lib/copy-acl.c (qcopy_acl): Likewise.
54664
54665 2008-06-08  Bruno Haible  <bruno@clisp.org>
54666
54667         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54668         declaration.
54669         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54670         (acl_access_nontrivial): Remove MacOS X case.
54671         (file_has_acl): Use acl_extended_nontrivial.
54672         * lib/copy-acl.c (qcopy_acl): Likewise.
54673
54674 2008-06-08  Bruno Haible  <bruno@clisp.org>
54675
54676         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54677
54678 2008-06-08  Jim Meyering  <meyering@redhat.com>
54679
54680         * modules/acl (Maintainer): Add Bruno Haible.
54681
54682 2008-06-07  Bruno Haible  <bruno@clisp.org>
54683
54684         Improve support for Tru64 ACLs.
54685         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54686         ACL on OSF/1.
54687
54688 2008-06-07  Bruno Haible  <bruno@clisp.org>
54689
54690         Add support for MacOS X ACLs.
54691         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54692         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54693         * lib/set-mode-acl.c (qset_acl): Likewise.
54694         * lib/copy-acl.c (qcopy_acl): Likewise.
54695
54696 2008-06-07  Bruno Haible  <bruno@clisp.org>
54697
54698         Fix memory leak introduced on 2008-05-22.
54699         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54700         use.
54701
54702 2008-06-07  Bruno Haible  <bruno@clisp.org>
54703
54704         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54705         to construct an empty ACL.
54706
54707 2008-06-07  Bruno Haible  <bruno@clisp.org>
54708
54709         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54710         precisely.
54711         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54712
54713 2008-06-07  Bruno Haible  <bruno@clisp.org>
54714
54715         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54716         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54717
54718 2008-06-07  Bruno Haible  <bruno@clisp.org>
54719
54720         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54721         regardless of POSIX.
54722         * doc/posix-functions/_longjmp.texi: Likewise.
54723         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54724         SystemV platform in this case.
54725
54726 2008-06-06  Eric Blake  <ebb9@byu.net>
54727
54728         Document abort() bugs.
54729         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54730
54731         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54732         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54733         sigsetjmp.
54734         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54735         siglongjmp, but only as a macro.
54736         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54737         is obsolete.
54738         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54739
54740         Tweak documentation to cover cygwin argz bugs.
54741         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54742         argz bug fix; no code change needed since no cygwin releases
54743         occurred between the last fix and the bug being tested.
54744         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54745         module and recently fixed cygwin bugs.
54746         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54747         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54748         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54749         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54750         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54751         Likewise.
54752         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54753         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54754         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54755         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54756         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54757         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54758         Likewise.
54759
54760         Avoid gcc warning on cygwin.
54761         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54762         !ACL_NO_TRIVIAL]: Avoid unused variable.
54763
54764 2008-06-05  Eric Blake  <ebb9@byu.net>
54765
54766         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54767         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54768         git-version-gen fails to come up with a version.
54769         Reported by Simon Josefsson.
54770
54771 2008-06-05  Jim Meyering  <meyering@redhat.com>
54772             Paul Eggert  <eggert@cs.ucla.edu>
54773
54774         utimens.c: work around a probable Linux kernel bug
54775         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54776         appears to be a kernel bug that causes utimensat to return 280
54777         instead of 0, indicating success.
54778
54779 2008-06-04  Bruno Haible  <bruno@clisp.org>
54780
54781         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54782         2008-06-01 commit.
54783
54784 2008-06-04  Bruno Haible  <bruno@clisp.org>
54785
54786         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54787         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54788         (file_has_acl): Use it. Save errno afterwards.
54789         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54790
54791 2008-06-03  Bruno Haible  <bruno@clisp.org>
54792
54793         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54794         draft code. Simplify #ifs.
54795         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54796         Put Solaris code after POSIX-draft code. Fix comments regarding
54797         Solaris 10, HP-UX. Mention Cygwin.
54798         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54799
54800 2008-06-03  Eric Blake  <ebb9@byu.net>
54801
54802         Provide fallback for older kernels.
54803         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54804         Provide runtime fallback if kernel lacks support.
54805         Reported by Mike Frysinger.
54806
54807 2008-06-02  Bruno Haible  <bruno@clisp.org>
54808
54809         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54810         it exists.
54811
54812 2008-06-02  Bruno Haible  <bruno@clisp.org>
54813
54814         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54815         * lib/copy-acl.c (qcopy_acl): Update comment.
54816
54817 2008-06-02  Bruno Haible  <bruno@clisp.org>
54818
54819         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54820         like ACL APIs.
54821
54822 2008-06-02  Bruno Haible  <bruno@clisp.org>
54823
54824         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54825         * tests/test-set-mode-acl.sh: Likewise.
54826         * tests/test-copy-acl.sh: Likewise.
54827         * tests/test-copy-file.sh: Likewise.
54828
54829 2008-06-02  Bruno Haible  <bruno@clisp.org>
54830
54831         * tests/test-file-has-acl.sh: Remove unused code.
54832
54833 2008-06-01  Bruno Haible  <bruno@clisp.org>
54834
54835         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54836         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54837         messages.
54838         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54839
54840 2008-06-01  Bruno Haible  <bruno@clisp.org>
54841
54842         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54843         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54844         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54845         APIs.
54846         * modules/acl-tests (configure.ac): Remove tests now contained in
54847         m4/acl.m4.
54848
54849 2008-06-02  Jim Meyering  <meyering@redhat.com>
54850
54851         announce-gen: use a better key-server host name
54852         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54853         it may be more consistently reliable.  Suggested by Werner Koch
54854         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54855
54856 2008-06-01  Bruno Haible  <bruno@clisp.org>
54857
54858         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54859         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54860
54861 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54862
54863         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54864
54865 2008-06-01  Bruno Haible  <bruno@clisp.org>
54866
54867         New ACL tests.
54868         * tests/test-file-has-acl.sh: New file.
54869         * tests/test-file-has-acl.c: New file.
54870         * tests/test-set-mode-acl.sh: New file.
54871         * tests/test-set-mode-acl.c: New file.
54872         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54873         * tests/test-copy-acl.c: New file.
54874         * modules/acl-tests: New file, based on modules/copy-file-tests.
54875         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54876         (Depends-on): Add acl-tests.
54877         (configure.ac): Remove checks.
54878         (Makefile.am): Don't create test-sameacls program here any more.
54879
54880 2008-06-01  Bruno Haible  <bruno@clisp.org>
54881
54882         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54883         * tests/test-sameacls.c: Include progname.h.
54884         (main): Invoke set_program_name. Portability fixes for MacOS X,
54885         Solaris, HP-UX.
54886
54887 2008-06-01  Bruno Haible  <bruno@clisp.org>
54888
54889         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54890         function.
54891         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54892
54893 2008-06-01  Bruno Haible  <bruno@clisp.org>
54894
54895         * modules/rpmatch (Depends-on): Add strdup.
54896
54897 2008-06-01  Bruno Haible  <bruno@clisp.org>
54898
54899         * lib/pipe.c: Include unistd-safer.h.
54900         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54901         * modules/pipe (Depends-on): Add unistd-safer.
54902
54903 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54904
54905         * modules/autobuild (configure.ac): Call AB_INIT.
54906
54907 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54908
54909         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54910         Suggested by Bruno Haible <bruno@clisp.org>.
54911
54912 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54913
54914         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54915         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54916         <bruno@clisp.org>.
54917
54918 2008-05-29  Eric Blake  <ebb9@byu.net>
54919
54920         Prefer new POSIX 200x interfaces over futimesat.
54921         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54922         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54923         when available.
54924         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54925
54926 2008-05-28  Bruno Haible  <bruno@clisp.org>
54927
54928         * modules/stpcpy (License): Change to LGPLv2+.
54929         Requested by David Lutterkort <dlutter@redhat.com>.
54930
54931 2008-05-27  Bruno Haible  <bruno@clisp.org>
54932
54933         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54934         current mingw.
54935         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54936
54937 2008-05-27  Bruno Haible  <bruno@clisp.org>
54938
54939         * modules/iconv_open (Link): New section, from module 'iconv'.
54940         * modules/striconv (Link): Likewise.
54941         * modules/striconveh (Link): Likewise.
54942         * modules/xstriconv (Link): Likewise.
54943         * modules/unicodeio (Link): Likewise.
54944         * modules/propername (Link): Likewise.
54945         Reported by Jim Meyering.
54946
54947 2008-05-26  Jim Meyering  <meyering@redhat.com>
54948
54949         sha256: do not artificially restrict buffer length to be < 2^32
54950         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54951         uint32_t to size_t.
54952         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54953         to match.
54954
54955         avoid unaligned access errors, e.g., on sparc
54956         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54957         direct access through a possibly-unaligned uint64* pointer.
54958         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54959         direct access through a possibly-unaligned uint32* pointer.
54960         Prompted by this patch from Tom "spot" Callaway:
54961         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54962
54963         sha512.c: fix typo in comment
54964         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54965
54966 2008-05-25  Bruno Haible  <bruno@clisp.org>
54967
54968         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54969         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54970         (Makefile.am): Update lib_SOURCES.
54971
54972 2008-05-25  Bruno Haible  <bruno@clisp.org>
54973
54974         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54975
54976 2008-05-25  Jim Meyering  <meyering@redhat.com>
54977
54978         useless-if-before-free: freed expr may have white-space differences
54979         * build-aux/useless-if-before-free: Recognize cases in which the
54980         freed expression differs from the tested one in embedded white
54981         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54982         $1 was used, so we can't make any regexp shy.  Improved tests now
54983         detect this.
54984
54985         useless-if-before-free: accept white space in the expression.
54986         * build-aux/useless-if-before-free: For now, any white space
54987         in the expression must be identical in the free argument.
54988
54989         useless-if-before-free: efficiency tweak
54990         * build-aux/useless-if-before-free: Make the expression-matching
54991         regexp "shy".
54992         Make the *outer* regexp shy, not the expr-matching one.
54993
54994         update code-in-comment to accept cast of free arg
54995         * build-aux/useless-if-before-free: Update regexp.
54996
54997 2008-05-25  Bruno Haible  <bruno@clisp.org>
54998
54999         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55000         * modules/copy-file-tests (Files, Makefile.am): Update.
55001         * tests/test-copy-file.c (func_test_copy): Update.
55002
55003 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55004
55005         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55006
55007 2008-05-23  Bruno Haible  <bruno@clisp.org>
55008
55009         Improve support for ACLs on OSF/1.
55010         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55011         Remove fallback for unknown flavors of ACLs.
55012
55013 2008-05-22  Bruno Haible  <bruno@clisp.org>
55014
55015         Add support for ACLs on OSF/1.
55016         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55017         replacements.
55018         (acl_free_text): New macro fallback.
55019         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55020         acl_free.
55021         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55022         acl_free_text function. Require AC_C_INLINE.
55023
55024 2008-05-22  Bruno Haible  <bruno@clisp.org>
55025
55026         Make copy_acl work on MacOS X 10.5.
55027         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55028         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55029         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55030         If MODE_INSIDE_ACL, don't assume that every system has the same text
55031         representation for ACLs as FreeBSD.
55032         * lib/copy-acl.c (copy_acl): Add support for platforms with
55033         !MODE_INSIDE_ACL.
55034         * lib/file-has-acl.c (file_has_acl): Likewise.
55035         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55036         FreeBSD, MacOS X, or IRIX, respectively.
55037
55038 2008-05-22  Bruno Haible  <bruno@clisp.org>
55039
55040         * lib/acl.h: Don't include <sys/acl.h>.
55041         (GETACLCNT): Move fallback to lib/acl-internal.h.
55042         * lib/acl-internal.h: Include <sys/acl.h> here.
55043         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55044
55045 2008-05-22  Bruno Haible  <bruno@clisp.org>
55046
55047         Split off copy_acl function to separate file.
55048         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55049         * lib/acl.c (copy_acl): Moved function to separate file.
55050         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55051         * modules/acl (Files): Add lib/copy-acl.c.
55052         (Makefiles.am): Augment lib_SOURCES.
55053
55054 2008-05-22  Bruno Haible  <bruno@clisp.org>
55055
55056         * modules/copy-file-tests: New file.
55057         * tests/test-copy-file.sh: New file.
55058         * tests/test-copy-file.c: New file.
55059         * tests/test-copy-file-sameacls.c: New file.
55060
55061 2008-05-22  Eric Blake  <ebb9@byu.net>
55062
55063         Avoid gcc warning.
55064         * tests/test-memcmp.c (main): Pass NULL indirectly.
55065
55066 2008-05-21  Bruno Haible  <bruno@clisp.org>
55067
55068         Add reference doc about ACLs.
55069         * doc/acl-resources.txt: New file.
55070         * doc/acl-cygwin.txt: New file.
55071
55072 2008-05-21  Bruno Haible  <bruno@clisp.org>
55073
55074         Avoid one more warning from gcc.
55075         * lib/vasnprintf.c (IF_LINT): Update comments.
55076         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55077
55078 2008-05-21  Jim Meyering  <meyering@redhat.com>
55079
55080         avoid a warning from gcc
55081         * lib/vasnprintf.c (IF_LINT): Define.
55082         (scale10_round_decimal_long_double):
55083         Use it to avoid a "may be used uninitialized" warning.
55084         (scale10_round_decimal_double): Likewise.
55085
55086 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55087
55088         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55089         declared.
55090
55091 2008-05-20  Bruno Haible  <bruno@clisp.org>
55092
55093         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55094         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55095
55096 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55097
55098         * modules/memcmp-tests: New file.
55099         * tests/test-memcmp.c: New file.
55100
55101 2008-05-19  Bruno Haible  <bruno@clisp.org>
55102
55103         * modules/propername (Notice, configure.ac): Put quoted "..." into
55104         --keyword option.
55105         * lib/propername.h: Update comments accordingly.
55106         Reported by Eric Blake.
55107
55108 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55109
55110         * modules/getpass-gnu (Depends-on): Add fseeko.
55111
55112 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55113
55114         * modules/base64-tests: New file.
55115
55116 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55117
55118         * lib/base64.c (base64_decode_ctx): If a decode context structure
55119         was passed in use it to ignore newlines.  If a context structure
55120         was _not_ passed in, continue to treat newlines as garbage (this
55121         is the historical behavior).  Formerly base64_decode.
55122         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55123         takes a decode context structure.
55124         * lib/base64.h (base64_decode): Macro for four-argument calls.
55125         (base64_decode_alloc): Likewise.
55126         * lib/base64.c (base64_decode_ctx): If a decode context structure
55127         was passed in use it to ignore newlines.  If a context structure
55128         was _not_ passed in, continue to treat newlines as garbage (this
55129         is the historical behavior).  Formerly base64_decode.
55130         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55131         takes a decode context structure.
55132         * lib/base64.h (base64_decode): Macro for four-argument calls.
55133         (base64_decode_alloc): Likewise.
55134
55135 2008-05-19  Jim Meyering  <meyering@redhat.com>
55136
55137         avoid a warning from gcc
55138         * lib/trim.c (IF_LINT): Define.
55139         (trim2): Use it to avoid a "may be used uninitialized" warning.
55140
55141         Fix doc typo.
55142         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55143
55144 2008-05-19  Bruno Haible  <bruno@clisp.org>
55145
55146         * doc/glibc-functions/getpass.texi: Document limits of other
55147         implementations.
55148
55149 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55150             Bruno Haible <bruno@clisp.org>
55151
55152         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55153
55154 2008-05-18  Bruno Haible  <bruno@clisp.org>
55155
55156         * modules/propername: New file, from GNU gettext.
55157         * lib/propername.h: New file, from GNU gettext.
55158         * lib/propername.c: New file, from GNU gettext.
55159         * MODULES.html.sh (Internationalization functions): Add propername.
55160
55161 2008-05-16  Jim Meyering  <meyering@redhat.com>
55162             Bruno Haible  <bruno@clisp.org>
55163
55164         Avoid some warnings from "gcc -Wshadow".
55165         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55166
55167 2008-05-15  Eric Blake  <ebb9@byu.net>
55168
55169         Extend previous patch to cygwin 1.7.0.
55170         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55171         fast implementation in cygwin >= 1.7.0.
55172         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55173         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55174
55175 2008-05-15  Bruno Haible  <bruno@clisp.org>
55176
55177         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55178         implementation in glibc >= 2.9.
55179         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55180         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55181
55182 2008-05-15  Bruno Haible  <bruno@clisp.org>
55183
55184         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55185         (Unicode string functions): Add unilbrk/*.
55186         Reported by Karl Berry.
55187
55188 2008-05-15  Eric Blake  <ebb9@byu.net>
55189
55190         Fix violation of <stdbool.h> replacement in regex.
55191         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55192         * lib/regexec.c (re_search_internal): Likewise.
55193         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55194
55195 2008-05-15  Jim Meyering  <meyering@redhat.com>
55196
55197         avoid distracting test output when git or cvs is not found
55198         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55199         * tests/test-vc-list-files-git.sh: Likewise.
55200
55201 2008-05-15  Eric Blake  <ebb9@byu.net>
55202
55203         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55204         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55205         glibc version.
55206         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55207         * doc/posix-functions/strstr.texi (strstr): Likewise.
55208         * lib/str-two-way.h (MAX): Sychronize with glibc.
55209
55210 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55211
55212         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55213         opr.ctx_type.
55214         (calc_first): Initialize constraint field.
55215         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55216         Fix grammar.
55217         (duplicate_node): Merge constraint field for all node types.
55218         (calc_eclosure_iter): Look at constraint field for all node types.
55219         * lib/regex_internal.c (create_cd_newstate): Don't look at
55220         opr.ctx_type.
55221
55222 2008-05-14  Bruno Haible  <bruno@clisp.org>
55223
55224         Help GCC to do better code generation.
55225         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55226         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55227         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55228         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55229         Declare with attribute 'malloc' if supported.
55230
55231 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55232
55233         use "echo STR|wc -c" rather than unportable "expr length STR"
55234         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55235         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55236
55237 2008-05-14  Jim Meyering  <meyering@redhat.com>
55238
55239         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55240         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55241         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55242         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55243         via Collin Lasse.
55244
55245 2008-05-14  Eric Blake  <ebb9@byu.net>
55246
55247         Avoid quadratic growth in gl_LIBSOURCES.
55248         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55249         Suggested by Bruno Haible.
55250
55251         Test xmemdup0.
55252         * modules/xmemdup0-tests: New file.
55253         * tests/test-xmemdup0.c: Likewise.
55254
55255 2008-05-13  Eric Blake  <ebb9@byu.net>
55256
55257         Split xmemdup0 into its own module.
55258         * modules/xmemdup0: New file.
55259         * lib/xmemdup0.h: Likewise.
55260         * lib/xmemdup0.c: Likewise.
55261         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55262         * lib/xalloc.h (xmemdup0): Remove.
55263         * lib/xmalloc.c (xmemdup0): Likewise.
55264
55265 2008-05-13  Eric Blake  <ebb9@byu.net>
55266             Bruno Haible  <bruno@clisp.org>
55267
55268         Reduce number of forks required during autoconf.
55269         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55270         and gl_LIBSOURCES_DIR.
55271         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55272         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55273         m4_syscmd per file.
55274         <m4_foreach_w>: Move...
55275         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55276
55277 2008-05-13  Eric Blake  <ebb9@byu.net>
55278
55279         * gnulib-tool: Fix various comment typos.
55280
55281 2008-05-12  Bruno Haible  <bruno@clisp.org>
55282
55283         Tailor the linebreaking algorithm.
55284         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55285
55286 2008-05-12  Bruno Haible  <bruno@clisp.org>
55287
55288         Update to Unicode 5.0.0.
55289         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55290         LBP_JV, LBP_JT. Redistribute values.
55291         (unilbrk_table): Change size.
55292         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55293         Unicode TR#14 rev. 22.
55294         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55295         LBP_JV, LBP_JT. Redistribute values.
55296         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55297         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55298         Update.
55299         * lib/unilbrk/lbrkprop1.h: Regenerated.
55300         * lib/unilbrk/lbrkprop2.h: Regenerated.
55301         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55302         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55303         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55304         Likewise.
55305         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55306         Likewise.
55307         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55308         result.
55309         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55310         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55311         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55312         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55313         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55314         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55315
55316 2008-05-11  Bruno Haible  <bruno@clisp.org>
55317
55318         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55319
55320 2008-05-11  Bruno Haible  <bruno@clisp.org>
55321
55322         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55323         * modules/unilbrk/gen-lbrk: New file.
55324
55325 2008-05-11  Bruno Haible  <bruno@clisp.org>
55326
55327         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55328         * m4/sha512.m4 (gl_SHA512): Likewise.
55329
55330 2008-05-11  Jim Meyering  <meyering@redhat.com>
55331
55332         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55333         * modules/crypto/sha256: New file.
55334         * modules/crypto/sha512: Likewise.
55335         * lib/sha256.c: Likewise.
55336         * lib/sha256.h: Likewise.
55337         * lib/sha512.c: Likewise.
55338         * lib/sha512.h: Likewise.
55339         * lib/u64.h: Likewise.
55340         * m4/sha256.m4: Likewise.
55341         * m4/sha512.m4: Likewise.
55342         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55343
55344 2008-05-10  Bruno Haible  <bruno@clisp.org>
55345
55346         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55347         (Input/Output <stdio.h>): Add xprintf.
55348         (Signal handling <signal.h>): Add strsignal.
55349         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55350         (Core language properties): Add func.
55351         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55352         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55353         strings.
55354         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55355         (Input/output): New section.
55356         (File system functions): Add openat-die, stat-macros.
55357         (Networking functions): Add sockets.
55358         (Unicode string functions): Add unictype/*.
55359         (Support for building libraries and executables): Add gperf.
55360         (Support for building documentation): Add agpl-3.0.
55361         (Misc): Add nocrash.
55362
55363 2008-05-10  Bruno Haible  <bruno@clisp.org>
55364
55365         * modules/unictype/gen-ctype: New file.
55366
55367 2008-05-10  Jim Meyering  <meyering@redhat.com>
55368
55369         Make chdir-safer.c more efficient on a system with no symlinks.
55370         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55371         also if ELOOP is zero.  Suggested by Bruno Haible.
55372
55373         Make chdir-safer.c slightly safer.
55374         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55375         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55376
55377         Avoid compile failure on systems without ELOOP (like mingw).
55378         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55379         Reported by Bruno Haible.
55380
55381 2008-05-10  Bruno Haible  <bruno@clisp.org>
55382
55383         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55384         (is_utf8_encoding): Use a case-insensitive comparison.
55385         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55386         streq.
55387
55388 2008-05-10  Bruno Haible  <bruno@clisp.org>
55389
55390         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55391         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55392         * lib/unilbrk/ulc-common.h (iconv_string_length,
55393         iconv_string_keeping_offsets): Remove declarations.
55394         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55395         Don't include <iconv.h>, streq.h, xsize.h.
55396         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55397         conversion.
55398         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55399         <iconv.h>, streq.h, xsize.h.
55400         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55401         conversion.
55402         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55403         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55404         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55405         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55406
55407 2008-05-10  Bruno Haible  <bruno@clisp.org>
55408
55409         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55410         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55411
55412         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55413         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55414
55415         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55416         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55417
55418         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55419         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55420
55421         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55422         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55423
55424         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55425         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55426
55427         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55428         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55429
55430         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55431         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55432
55433 2008-05-10  Bruno Haible  <bruno@clisp.org>
55434
55435         Split up 'linebreak' module.
55436         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55437         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55438         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55439         modifications.
55440         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55441         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55442         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55443         lib/linebreak.c.
55444         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55445         lib/linebreak.c.
55446         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55447         lib/linebreak.c.
55448         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55449         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55450         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55451         lib/linebreak.c.
55452         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55453         lib/linebreak.c.
55454         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55455         lib/linebreak.c.
55456         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55457         lib/linebreak.c.
55458         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55459         lib/linebreak.c.
55460         * modules/unilbrk/base: New file.
55461         * modules/unilbrk/tables: New file.
55462         * modules/unilbrk/u8-possible-linebreaks: New file.
55463         * modules/unilbrk/u16-possible-linebreaks: New file.
55464         * modules/unilbrk/u32-possible-linebreaks: New file.
55465         * modules/unilbrk/ulc-common: New file.
55466         * modules/unilbrk/ulc-possible-linebreaks: New file.
55467         * modules/unilbrk/u8-width-linebreaks: New file.
55468         * modules/unilbrk/u16-width-linebreaks: New file.
55469         * modules/unilbrk/u32-width-linebreaks: New file.
55470         * modules/unilbrk/ulc-width-linebreaks: New file.
55471         * lib/linebreak.h: Remove file.
55472         * lib/linebreak.c: Remove file.
55473         * m4/linebreak.m4: Remove file.
55474         * modules/linebreak: Remove file.
55475         * NEWS: Mention the changes.
55476
55477 2008-05-09  Eric Blake  <ebb9@byu.net>
55478
55479         Add xmemdup0.
55480         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55481         implementation.
55482         * lib/xmalloc.c (xmemdup0): New C implementation.
55483
55484 2008-05-08  Bruno Haible  <bruno@clisp.org>
55485
55486         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55487
55488 2008-05-07  Eric Blake  <ebb9@byu.net>
55489
55490         Support cross-compilation of <wctype.h>.
55491         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55492         AC_CACHE_CHECK.
55493
55494 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55495
55496         * build-aux/vc-list-files: Add support for bzr.
55497
55498 2008-05-03  Jim Meyering  <meyering@redhat.com>
55499
55500         avoid failed assertion with tight malloc
55501         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55502
55503 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55504
55505         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55506         are needed from arpa/inet.h.
55507         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55508         Reported by Bruno Haible.
55509
55510 2008-05-02  Jim Meyering  <meyering@redhat.com>
55511
55512         avoid compilation error on FreeBSD 6
55513         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55514
55515 2008-05-01  Jim Meyering  <meyering@redhat.com>
55516
55517         useless-if-before-free: correct --help's exit status description
55518         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55519         for one or more matches, etc.  Reported by Bruno Haible.
55520
55521         vc-list-files: make the stand-alone gnulib test work
55522         * modules/vc-list-files-tests (configure.ac):
55523         Define and AC_SUBST abs_aux_dir.
55524         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55525         $(abs_top_srcdir) to each script and having each of them
55526         duplicate the work of setting PATH, set PATH here, using
55527         the new variable, abs_aux_dir instead.
55528         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55529         * tests/test-vc-list-files-git.sh: Likewise.
55530         Reported by Bruno Haible.
55531
55532 2008-05-01  Bruno Haible  <bruno@clisp.org>
55533
55534         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55535         reallocation. Rename 'done' to 'found_delimiter'.
55536
55537 2008-05-01  Jim Meyering  <meyering@redhat.com>
55538
55539         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55540         * build-aux/vc-list-files: Use `...`, not $(...).
55541
55542 2008-04-30  Jim Meyering  <meyering@redhat.com>
55543
55544         add tests for vc-list-files
55545         * modules/vc-list-files-tests: New module.
55546         * tests/test-vc-list-files-cvs.sh: New file.
55547         * tests/test-vc-list-files-git.sh: New file.
55548
55549         avoid a warning from gcc
55550         * lib/getndelim2.c (IF_LINT): Define.
55551         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55552
55553         vc-list-files: work properly with build-aux/cvsu, too
55554         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55555         to all cvs-based clauses.
55556
55557         vc-list-files: work properly in the CVS+awk case, too
55558         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55559
55560         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55561         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55562         take more than one file argument, so .  Add quotes, just in case $dir
55563         ever contains a shell meta-character.  Prompted by Soren Hansen in
55564         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55565
55566 2008-04-29  Eric Blake  <ebb9@byu.net>
55567
55568         Optimize getndelim2 to use block operations when possible.
55569         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55570         freadseek, and memchr2.
55571         * lib/getndelim2.c (getndelim2): Use them for block reads.
55572
55573 2008-04-29  Bruno Haible  <bruno@clisp.org>
55574
55575         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55576         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55577         * modules/inet_ntop (Depends-on): Add extensions.
55578         * modules/inet_pton (Depends-on): Likewise.
55579         Reported by Simon Josefsson.
55580
55581 2008-04-29  Jim Meyering  <meyering@redhat.com>
55582
55583         When the is more than one match in a block, match all of them.
55584         * build-aux/useless-if-before-free: Iterate through each block
55585         until there are no more matches.
55586
55587         Fix broken useless-if-before-free script.
55588         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55589         the expression to match cast of argument to free-like function.
55590
55591 2008-04-29  Eric Blake  <ebb9@byu.net>
55592
55593         Use new header.
55594         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55595
55596 2008-04-29  Jim Meyering  <meyering@redhat.com>
55597
55598         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55599         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55600         by gnulib to exist and to declare e.g., inet_ntop.
55601         Don't include "inet_ntop.h", now removed.
55602
55603         * m4/arpa_inet_h.m4: Remove trailing blanks.
55604
55605 2008-04-29  Eric Blake  <ebb9@byu.net>
55606
55607         Silence valgrind on safe reads beyond potential array bounds.
55608         * lib/rawmemchr.valgrind: New file.
55609         * lib/strchrnul.valgrind: Likewise.
55610         * modules/rawmemchr (Files): Distribute new file.
55611         * modules/strchrnul (Files): Likewise.
55612         Suggested by Bruno Haible.
55613
55614 2008-04-29  Bruno Haible  <bruno@clisp.org>
55615
55616         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55617         (inet_ntop, inet_pton): Change portability warning's wording.
55618         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55619         Invoke gl_CHECK_NEXT_HEADERS.
55620         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55621         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55622         set ARPA_INET_H.
55623         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55624         * modules/arpa_inet (Description): No longer only for systems that
55625         lack it.
55626         (Depends-on): Add include_next.
55627         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55628         HAVE_ARPA_INET_H.
55629
55630 2008-04-29  Jim Meyering  <meyering@redhat.com>
55631
55632         * modules/mkdir (License): Re-license as LGPLv2+.
55633
55634 2008-04-29  Bruno Haible  <bruno@clisp.org>
55635
55636         * modules/rawmemchr (Maintainer): Set to Eric.
55637         * modules/strchrnul (Maintainer): Likewise.
55638
55639 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55640
55641         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55642         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55643
55644         * modules/arpa_inet (arpa/inet.h): Use them.
55645
55646 2008-04-28  Eric Blake  <ebb9@byu.net>
55647
55648         Test getndelim2.
55649         * modules/getndelim2-tests: New file.
55650         * tests/test-getndelim2.c: Likewise.
55651         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55652         stream.
55653         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55654
55655         * MODULES.html.sh: Document new module.
55656
55657 2008-04-20  Bruno Haible  <bruno@clisp.org>
55658
55659         * lib/c-stack.c (die): Use raise.
55660         * modules/c-stack (Depends-on): Add raise.
55661
55662 2008-04-28  Bruno Haible  <bruno@clisp.org>
55663
55664         Expect rpmatch to be declared.
55665         * lib/yesno.c (rpmatch): Remove declaration.
55666
55667         Declare rpmatch.
55668         * lib/stdlib.in.h (rpmatch): New declaration.
55669         * lib/rpmatch.c: Include <stdlib.h> first.
55670         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55671         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55673         HAVE_RPMATCH.
55674         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55675         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55676         (Include): Set to <stdlib.h>.
55677         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55678         HAVE_RPMATCH.
55679         * NEWS: Document the change.
55680
55681 2008-04-28  Bruno Haible  <bruno@clisp.org>
55682
55683         Change rpmatch to use nl_langinfo when appropriate.
55684         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55685         (N_): New macro.
55686         (localized_pattern): New function/macro.
55687         (try): Remove match, nomatch arguments. Copy the pattern into safe
55688         memory before caching it.
55689         (rpmatch): Use localized_pattern. Add translator comments.
55690         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55691         Suggested by Eric Blake.
55692         * modules/rpmatch (Depends-on): Add stdbool.
55693
55694 2008-04-28  Eric Blake  <ebb9@byu.net>
55695
55696         Add rawmemchr module, matching glibc.
55697         * modules/string (Makefile.am): New indicator.
55698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55699         * lib/string.in.h (rawmemchr): Declare when appropriate.
55700         * modules/rawmemchr: New file.
55701         * m4/rawmemchr.m4: Likewise.
55702         * lib/rawmemchr.c: Likewise.
55703         * modules/rawmemchr-tests: Likewise.
55704         * tests/test-rawmemchr.c: Likewise.
55705         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55706         module.
55707         * modules/strchrnul (Depends-on): Add rawmemchr.
55708         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55709
55710         Whitespace cleanup.
55711         * tests/test-strchrnul.c: Reindent.
55712         * lib/strchrnul.c: Likewise.
55713
55714         Optimize and test strchrnul.
55715         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55716         * modules/strchrnul-tests: New file.
55717         * tests/test-strchrnul.c: Likewise.
55718
55719         Remove intprops dependency.
55720         * modules/memchr (Depends-on): Remove intprops.
55721         * modules/memrchr (Depends-on): Likewise.
55722         * modules/memchr2 (Depends-on): Likewise.
55723         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55724         * lib/memrchr.c (__memrchr): Likewise.
55725         * lib/memrchr2.c (memchr2): Likewise.
55726         Reported by Simon Josefsson.
55727
55728 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55729
55730         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55731         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55732
55733 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55734
55735         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55736
55737         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55738
55739         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55740
55741         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55742         declarations.
55743         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55744
55745         * m4/inet_pton.m4: Don't check for header files.
55746
55747         * m4/inet_ntop.m4: Don't check for header files.
55748
55749 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55750
55751         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55752         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55753         trigger for cygwin).
55754         Reported by Bruno Haible  <bruno@clisp.org>.
55755
55756 2008-04-28  Bruno Haible  <bruno@clisp.org>
55757
55758         * doc/posix-functions/strdup.texi: Mention mingw problem.
55759
55760 2008-04-27  Bruno Haible  <bruno@clisp.org>
55761
55762         * modules/stat-time-tests (Depends-on): Add sleep.
55763         * tests/test-stat-time.c (force_unlink): New function.
55764         (cleanup): Use it.
55765         (test_mtime): Remove the ctime related tests.
55766         (test_ctime): New function, containing the ctime related tests.
55767         (main): Call test_ctime, except on native Windows platforms.
55768
55769 2008-04-27  Bruno Haible  <bruno@clisp.org>
55770
55771         * lib/rpmatch.c (rpmatch): Add some comments.
55772         Reported by James Youngman <jay@gnu.org>.
55773
55774 2008-04-27  Bruno Haible  <bruno@clisp.org>
55775
55776         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55777         quiet NaNs.
55778
55779 2008-04-27  Bruno Haible  <bruno@clisp.org>
55780
55781         Make test-yesno.sh work on mingw.
55782         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55783         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55784         (main): Set stdin to binary mode.
55785         * modules/yesno-tests (Depends-on): Add binary-io.
55786
55787 2008-04-27  Bruno Haible  <bruno@clisp.org>
55788
55789         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55790         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55791         argument that lie outside the IEEE 854 domain.
55792         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55793         (gl_ISFINITE): Use it.
55794         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55795
55796 2008-04-27  Bruno Haible  <bruno@clisp.org>
55797
55798         Allow local renaming in config.h.
55799         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55800
55801 2008-04-27  Bruno Haible  <bruno@clisp.org>
55802
55803         * lib/memchr.c (__memchr): Change type of 'i'.
55804         * lib/memchr2.c (memchr2): Likewise.
55805
55806 2008-04-26  Eric Blake  <ebb9@byu.net>
55807         and Bruno Haible  <bruno@clisp.org>
55808
55809         Optimize and test memrchr.
55810         * modules/memrchr (Depends-on): Add intprops.
55811         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55812         * modules/memrchr-tests: New file.
55813         * tests/test-memrchr.c: New file.
55814
55815 2008-04-26  Bruno Haible  <bruno@clisp.org>
55816
55817         Add tentative support for DragonFly BSD.
55818         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55819         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55820         fp.
55821         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55822         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55823         * lib/fpurge.c (fpurge): Likewise.
55824         * lib/freadable.c (freaadable): Likewise.
55825         * lib/freadahead.c (freadahead): Likewise.
55826         * lib/freading.c (freading): Likewise.
55827         * lib/freadptr.c (freadptr): Likewise.
55828         * lib/freadseek.c (freadptrinc): Likewise.
55829         * lib/fseeko.c (fseeko): Likewise.
55830         * lib/fseterr.c (fseterr): Likewise.
55831         * lib/fwritable.c (fwritable): Likewise.
55832         * lib/fwriting.c (fwriting): Likewise.
55833
55834 2008-04-26  Bruno Haible  <bruno@clisp.org>
55835
55836         * lib/stdio-impl.h: New file.
55837         * lib/fbufmode.c: Include stdio-impl.h.
55838         (fbufmode): Use fp_, remove redundant #defines.
55839         * lib/fflush.c: Include stdio-impl.h.
55840         (clear_ungetc_buffer): Remove redundant #defines.
55841         * lib/fpurge.c: Include stdio-impl.h.
55842         (fpurge): Remove redundant #defines.
55843         * lib/freadable.c: Include stdio-impl.h.
55844         (freadable): Remove redundant #defines.
55845         * lib/freadahead.c: Include stdio-impl.h.
55846         (freadahead): Remove redundant #defines.
55847         * lib/freading.c: Include stdio-impl.h.
55848         (freading): Remove redundant #defines.
55849         * lib/freadptr.c: Include stdio-impl.h.
55850         (freadptr): Remove redundant #defines.
55851         * lib/freadseek.c: Include stdio-impl.h.
55852         (freadptrinc): Remove redundant #defines.
55853         * lib/fseeko.c: Include stdio-impl.h.
55854         (rpl_fseeko): Remove redundant #defines.
55855         * lib/fseterr.c: Include stdio-impl.h.
55856         (fseterr): Remove redundant #defines.
55857         * lib/fwritable.c: Include stdio-impl.h.
55858         (fwritable: Remove redundant #defines.
55859         * lib/fwriting.c: Include stdio-impl.h.
55860         (fwriting): Remove redundant #defines.
55861         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55862         * modules/fflush (Files): Likewise.
55863         * modules/fpurge (Files): Likewise.
55864         * modules/freadable (Files): Likewise.
55865         * modules/freadahead (Files): Likewise.
55866         * modules/freading (Files): Likewise.
55867         * modules/freadptr (Files): Likewise.
55868         * modules/freadseek (Files): Likewise.
55869         * modules/fseeko (Files): Likewise.
55870         * modules/fseterr (Files): Likewise.
55871         * modules/fwritable (Files): Likewise.
55872         * modules/fwriting (Files): Likewise.
55873
55874 2008-04-26  Bruno Haible  <bruno@clisp.org>
55875
55876         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55877         restore_seek_optimization, update_fpos_cache): New functions, extracted
55878         from rpl_fflush.
55879         (rpl_fflush): Use them.
55880         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55881         (gl_REPLACE_FFLUSH): Use it.
55882
55883 2008-04-26  Bruno Haible  <bruno@clisp.org>
55884
55885         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55886         on Solaris.
55887         * tests/test-xstrtoimax.sh: Likewise.
55888         * tests/test-xstrtoumax.sh: Likewise.
55889         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55890
55891 2008-04-26  Bruno Haible  <bruno@clisp.org>
55892
55893         * modules/memchr-tests: New file.
55894         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55895
55896 2008-04-26  Eric Blake  <ebb9@byu.net>
55897             Bruno Haible  <bruno@clisp.org>
55898
55899         * lib/memchr.c: Include intprops.h.
55900         (__memchr): Optimize parallel detection of matching bytes. Rename local
55901         variables. Add explanatory comments.
55902
55903 2008-04-26  Bruno Haible  <bruno@clisp.org>
55904
55905         Fix module 'memchr', broken since 2000-10-28.
55906         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55907
55908 2008-04-26  Bruno Haible  <bruno@clisp.org>
55909
55910         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55911         comments.
55912
55913 2008-04-25  Eric Blake  <ebb9@byu.net>
55914
55915         Use native fstatat on cygwin 1.7.0.
55916         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55917         first.
55918
55919 2008-04-23  Eric Blake  <ebb9@byu.net>
55920
55921         Improve memchr2 performance.
55922         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55923         NUL bytes.
55924         * modules/memchr2 (Depends-on): Use intprops.h.
55925
55926 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55927
55928         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55929         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55930         <blp@cs.stanford.edu>.
55931
55932 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55933
55934         * lib/arpa_inet.in.h: New file.
55935
55936         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55937         (Makefile.am): Sed in substitute header file.
55938
55939         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55940         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55941
55942         * modules/inet_ntop (configure.ac): Use
55943         gl_ARPA_INET_MODULE_INDICATOR.
55944
55945         * modules/inet_pton (configure.ac): Use
55946         gl_ARPA_INET_MODULE_INDICATOR.
55947
55948 2008-04-22  Jim Meyering  <meyering@redhat.com>
55949
55950         * modules/verify (License): Re-license as LGPLv2+.
55951
55952 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55953
55954         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55955         parameter to void* as per POSIX standard (MinGW uses char*).
55956
55957 2008-04-21  Bruno Haible  <bruno@clisp.org>
55958
55959         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55960         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55961         Define to replacements if REPLACE_ISWCNTRL is 1.
55962         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55963         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55964         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55965         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55966         what it fixes.
55967         * doc/posix-functions/iswalpha.texi: Likewise.
55968         * doc/posix-functions/iswblank.texi: Likewise.
55969         * doc/posix-functions/iswcntrl.texi: Likewise.
55970         * doc/posix-functions/iswdigit.texi: Likewise.
55971         * doc/posix-functions/iswgraph.texi: Likewise.
55972         * doc/posix-functions/iswlower.texi: Likewise.
55973         * doc/posix-functions/iswprint.texi: Likewise.
55974         * doc/posix-functions/iswpunct.texi: Likewise.
55975         * doc/posix-functions/iswspace.texi: Likewise.
55976         * doc/posix-functions/iswupper.texi: Likewise.
55977         * doc/posix-functions/iswxdigit.texi: Likewise.
55978         Reported by Alain Guibert.
55979
55980 2008-04-21  Bruno Haible  <bruno@clisp.org>
55981
55982         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55983         Patch by Alain Guibert.
55984
55985 2008-04-21  Bruno Haible  <bruno@clisp.org>
55986
55987         Fix test failures on mingw.
55988         * tests/test-xstrtol.c (print_no_progname): New function.
55989         (main): Install it in error_print_progname hook.
55990         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55991         * tests/test-xstrtoimax.sh: Likewise.
55992         * tests/test-xstrtoumax.sh: Likewise.
55993
55994 2008-04-21  Bruno Haible  <bruno@clisp.org>
55995
55996         Fix test failure on mingw.
55997         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55998
55999 2008-04-21  Bruno Haible  <bruno@clisp.org>
56000
56001         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56002         Actually assign a value.
56003
56004 2008-04-20  Bruno Haible  <bruno@clisp.org>
56005
56006         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56007         take 2.
56008         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56009         'canonicalize-lgpl' module is also used.
56010         * lib/canonicalize-lgpl.c: Undo last change.
56011         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56012
56013 2008-04-20  Bruno Haible  <bruno@clisp.org>
56014
56015         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56016         config.h. Provide _mkdir based fallback for mingw.
56017         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56018         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56019         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56020         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56021         rather than defining mkdir in config.h.
56022         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56023         (gl_SYS_STAT_H_DEFAULTS): New macro.
56024         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56025         HAVE_IO_H any more.
56026         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56027         HAVE_DECL_MKDIR and HAVE_IO_H.
56028
56029 2008-04-20  Bruno Haible  <bruno@clisp.org>
56030
56031         * lib/isapipe.c: Port to native Windows platforms.
56032
56033 2008-04-20  Bruno Haible  <bruno@clisp.org>
56034
56035         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56036
56037 2008-04-21  Eric Blake  <ebb9@byu.net>
56038
56039         Work around preprocessors that don't handle UINTMAX_MAX.
56040         * lib/memchr2.c (memchr2): Avoid embedded #if.
56041         Reported by Alain Guibert, fix suggested by Bruno Haible.
56042
56043 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56044
56045         * doc/posix-functions/strftime.texi (strftime): Explain better
56046         Windows incompatibility.  Suggested by Micah Cowan
56047         <micah@cowan.name>.
56048
56049 2008-04-20  Bruno Haible  <bruno@clisp.org>
56050
56051         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56052         unistr/u8-mblen.
56053
56054 2008-04-20  Bruno Haible  <bruno@clisp.org>
56055
56056         Fix test failure on platforms with non-GNU iconv.
56057         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56058         (U_TO_U8): Use it, rather than u16_to_u8.
56059         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56060         units at the end of the input string.
56061         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56062
56063 2008-04-20  Bruno Haible  <bruno@clisp.org>
56064
56065         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56066         when the resulting length is 0.
56067         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56068
56069 2008-04-20  Bruno Haible  <bruno@clisp.org>
56070
56071         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56072         works.
56073         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56074
56075 2008-04-20  Bruno Haible  <bruno@clisp.org>
56076
56077         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56078         * modules/tsearch-tests (configure.ac): Test for initstate function.
56079
56080 2008-04-20  Bruno Haible  <bruno@clisp.org>
56081
56082         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56083         for nlink_t if missing.
56084         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56085
56086 2008-04-19  Bruno Haible  <bruno@clisp.org>
56087
56088         Work around snprintf bug on Linux libc5.
56089         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56090         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56091         gl_SNPRINTF_SIZE1.
56092         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56093         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56094         that test failed.
56095         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56096         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56097         * modules/snprintf (Files): Add m4/printf.m4.
56098         * modules/vsnprintf (Files): Likewise.
56099         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56100         * doc/posix-functions/vsnprintf.texi: Likewise.
56101
56102 2008-04-19  Bruno Haible  <bruno@clisp.org>
56103
56104         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56105         from 0.0058 to less than 10^-7.
56106
56107 2008-04-19  Bruno Haible  <bruno@clisp.org>
56108
56109         Fix rounding when a precision is given.
56110         * lib/vasnprintf.c (is_borderline): New function.
56111         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56112         9...9x.
56113         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56114         %e, %g.
56115         * tests/test-vasprintf-posix.c (test_function): Likewise.
56116         * tests/test-snprintf-posix.h (test_function): Likewise.
56117         * tests/test-sprintf-posix.h (test_function): Likewise.
56118         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56119         * tests/test-printf-posix.h (test_function): Likewise.
56120         * tests/test-printf-posix.output: Update.
56121         Reported by John Darrington <john@darrington.wattle.id.au> via
56122         Ben Pfaff <blp@cs.stanford.edu>.
56123
56124 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56125
56126         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56127         Suggested by Bruno Haible <bruno@clisp.org>.
56128
56129 2008-04-17  Bruno Haible  <bruno@clisp.org>
56130
56131         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56132         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56133         implementation.
56134         Patch by Bruce Merry <bmerry@gmail.com>.
56135
56136 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56137
56138         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56139         doesn't work under Windows.
56140
56141 2008-04-16  Bruno Haible  <bruno@clisp.org>
56142
56143         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56144         New macros.
56145         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56146         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56147         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56148         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56149         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56150         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56151         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56152         macros.
56153         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56154         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56155         Northern Sotho, Uighur.
56156
56157 2008-04-16  Bruno Haible  <bruno@clisp.org>
56158
56159         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56160         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56161         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56162         Reported by Daniel Bergström <daniel@octocode.com>.
56163
56164 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56165             Bruno Haible  <bruno@clisp.org>
56166
56167         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56168         function.
56169         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56170         New functions, mostly extracted from gl_locale_name_default.
56171         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56172
56173 2008-04-16  Eric Blake  <ebb9@byu.net>
56174
56175         Adjust strtod detection to catch glibc 2.7 bug.
56176         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56177         Reported by John Gatewood Ham.
56178
56179 2008-04-16  Bruno Haible  <bruno@clisp.org>
56180
56181         Add tentative support for Linux libc5.
56182         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56183         * lib/fpurge.c (fpurge): Likewise.
56184         * lib/freadable.c (freadable): Likewise.
56185         * lib/freadahead.c (freadahead): Likewise.
56186         * lib/freading.c (freading): Likewise.
56187         * lib/freadptr.c (freadptr): Likewise.
56188         * lib/freadseek.c (freadptrinc): Likewise.
56189         * lib/fseeko.c (rpl_fseeko): Likewise.
56190         * lib/fseterr.c (fseterr): Likewise.
56191         * lib/fwritable.c (fwritable): Likewise.
56192         * lib/fwriting.c (fwriting): Likewise.
56193         Reported by Alain Guibert <alguibert+bts@free.fr>.
56194
56195 2008-04-15  Bruno Haible  <bruno@clisp.org>
56196
56197         * modules/mathl (configure.ac): Define module indicator.
56198
56199 2008-04-15  Bruno Haible  <bruno@clisp.org>
56200
56201         * lib/logl.c (logl): Remove unused variables.
56202
56203 2008-04-15  Bruno Haible  <bruno@clisp.org>
56204
56205         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56206         fails.
56207
56208 2008-04-15  Bruno Haible  <bruno@clisp.org>
56209
56210         * lib/trim.c (trim2): Fix argument of isspace() macro.
56211
56212 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56213
56214         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56215         to 0.
56216         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56217
56218 2008-04-14  Bruno Haible  <bruno@clisp.org>
56219
56220         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56221         AC_LANG_PROGRAM argument.
56222         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56223         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56224         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56225         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56226         * m4/math_h.m4 (gl_MATH_H): Likewise.
56227         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56228         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56229         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56230         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56231         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56232         * m4/regex.m4 (gl_REGEX): Likewise.
56233         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56234         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56235         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56236         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56237         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56238         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56239         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56240         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56241
56242 2008-04-14  Jim Meyering  <meyering@redhat.com>
56243
56244         test-strtod: fix typos: s/abs/fabs/
56245         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56246
56247 2008-04-13  Bruno Haible  <bruno@clisp.org>
56248
56249         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56250         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56251         module is also used and while not building the reloc-wrapper.
56252
56253 2008-04-13  Bruno Haible  <bruno@clisp.org>
56254
56255         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56256
56257 2008-04-13  Bruno Haible  <bruno@clisp.org>
56258
56259         Fix AIX compilation failure introduced on 2008-04-02.
56260         * tests/test-frexp.c (exp): Undefine before redefining.
56261         * tests/test-frexpl.c (exp): Likewise.
56262
56263 2008-04-13  Bruno Haible  <bruno@clisp.org>
56264
56265         Work around a HP-UX stdio bug.
56266         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56267         * tests/test-ftello.c (main): Likewise.
56268         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56269         * doc/posix-functions/ftello.texi: Likewise.
56270
56271 2008-04-13  Bruno Haible  <bruno@clisp.org>
56272
56273         Make test-signbit pass on HP-UX/hppa.
56274         * tests/test-signbit.c (minus_zerol): New variable.
56275         (test_signbitl): Use it.
56276
56277 2008-04-13  Bruno Haible  <bruno@clisp.org>
56278
56279         Make truncl work on OSF/1 4.0.
56280         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56281         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56282         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56284         HAVE_DECL_TRUNCL.
56285         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56286         HAVE_DECL_TRUNCL.
56287         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56288
56289 2008-04-13  Bruno Haible  <bruno@clisp.org>
56290
56291         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56292
56293 2008-04-13  Bruno Haible  <bruno@clisp.org>
56294
56295         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56296         expression, so as to avoid HP-UX 11 cc compiler bug.
56297
56298 2008-04-13  Bruno Haible  <bruno@clisp.org>
56299
56300         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56301
56302 2008-04-13  Bruno Haible  <bruno@clisp.org>
56303
56304         * lib/git-merge-changelog.c: Remove empty declaration outside of
56305         functions.
56306
56307 2008-04-13  Bruno Haible  <bruno@clisp.org>
56308
56309         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56310
56311 2008-04-13  Bruno Haible  <bruno@clisp.org>
56312
56313         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56314         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56315         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56316         also if it exists but lacks definitions of the SHUT_* macros.
56317         * modules/sys_socket (Description): Update.
56318         Reported by Elbert Pol <e.pol@chello.nl>.
56319
56320 2008-04-13  Bruno Haible  <bruno@clisp.org>
56321
56322         * lib/localcharset.c (OS2): Don't redefine if already defined.
56323         Reported by Elbert Pol <e.pol@chello.nl>.
56324
56325 2008-04-13  Bruno Haible  <bruno@clisp.org>
56326
56327         * lib/binary-io.h [__EMX__]: Include <io.h>.
56328         Reported by Elbert Pol <e.pol@chello.nl>.
56329
56330 2008-04-12  Bruno Haible  <bruno@clisp.org>
56331
56332         * lib/fpucw.h: Enable the definitions also for x86_64.
56333         Needed for NetBSD/x86_64.
56334         Reported by Thomas Klausner <tk@giga.or.at>.
56335
56336 2008-04-12  Bruno Haible  <bruno@clisp.org>
56337
56338         * tests/test-strtod.c: Include isnand.h.
56339         (main): Use isnand instead of isnan.
56340         Reported by Jim Meyering.
56341
56342 2008-04-12  Bruno Haible  <bruno@clisp.org>
56343
56344         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56345         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56346
56347 2008-04-12  Jim Meyering  <meyering@redhat.com>
56348
56349         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56350
56351 2008-04-12  Bruno Haible  <bruno@clisp.org>
56352
56353         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56354         Reported by Elbert Pol <e.pol@chello.nl>.
56355
56356 2008-04-12  Eric Blake  <ebb9@byu.net>
56357
56358         Work around Solaris 10 math.h bug.
56359         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56360         (gl_MATH_H_DEFAULTS): Set up default.
56361         * modules/math (Makefile.am): Replace new indicators.
56362         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56363         * tests/test-math.c (main): Test this.
56364         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56365         * doc/posix-headers/math.texi (math.h): Mention bug.
56366         Reported by Nelson H. F. Beebe and Jim Meyering.
56367
56368 2008-04-11  Bruno Haible  <bruno@clisp.org>
56369
56370         Adapt to future versions of Apple GCC.
56371         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56372         Reported by Peter O'Gorman <peter@pogma.com>.
56373
56374 2008-04-11  Bruno Haible  <bruno@clisp.org>
56375
56376         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56377
56378 2008-04-11  Bruno Haible  <bruno@clisp.org>
56379
56380         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56381
56382         * modules/getaddrinfo-tests (Makefile.am): Define
56383         test_getaddrinfo_LDADD.
56384
56385 2008-04-11  Bruno Haible  <bruno@clisp.org>
56386
56387         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56388         (init): Fix syntax error.
56389         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56390         is declared.
56391
56392 2008-04-11  Bruno Haible  <bruno@clisp.org>
56393
56394         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56395         * modules/glob (Depends-on): Add stdbool.
56396
56397 2008-04-11  Bruno Haible  <bruno@clisp.org>
56398
56399         * lib/trim.c: Include <string.h>.
56400
56401 2008-04-11  Eric Blake  <ebb9@byu.net>
56402
56403         Avoid compile failure on OS/2.
56404         * lib/regex_internal.h (internal_function): Disable optimization
56405         on OS/2 (__EMX__), where it caused compiler error.
56406         Reported by Elbert Pol.
56407
56408 2008-04-11  Bruno Haible  <bruno@clisp.org>
56409
56410         Flush the standard error stream before aborting. Needed on mingw.
56411         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56412         * tests/test-array_list.c (ASSERT): Likewise.
56413         * tests/test-array_oset.c (ASSERT): Likewise.
56414         * tests/test-avltree_list.c (ASSERT): Likewise.
56415         * tests/test-avltree_oset.c (ASSERT): Likewise.
56416         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56417         * tests/test-binary-io.c (ASSERT): Likewise.
56418         * tests/test-byteswap.c (ASSERT): Likewise.
56419         * tests/test-c-ctype.c (ASSERT): Likewise.
56420         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56421         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56422         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56423         * tests/test-c-strstr.c (ASSERT): Likewise.
56424         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56425         * tests/test-canonicalize.c (ASSERT): Likewise.
56426         * tests/test-carray_list.c (ASSERT): Likewise.
56427         * tests/test-ceilf1.c (ASSERT): Likewise.
56428         * tests/test-ceilf2.c (ASSERT): Likewise.
56429         * tests/test-ceill.c (ASSERT): Likewise.
56430         * tests/test-count-one-bits.c (ASSERT): Likewise.
56431         * tests/test-fbufmode.c (ASSERT): Likewise.
56432         * tests/test-fflush2.c (ASSERT): Likewise.
56433         * tests/test-floorf1.c (ASSERT): Likewise.
56434         * tests/test-floorf2.c (ASSERT): Likewise.
56435         * tests/test-floorl.c (ASSERT): Likewise.
56436         * tests/test-fopen.c (ASSERT): Likewise.
56437         * tests/test-fpending.c (ASSERT): Likewise.
56438         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56439         * tests/test-fpurge.c (ASSERT): Likewise.
56440         * tests/test-freadable.c (ASSERT): Likewise.
56441         * tests/test-freadahead.c (ASSERT): Likewise.
56442         * tests/test-freading.c (ASSERT): Likewise.
56443         * tests/test-freadptr.c (ASSERT): Likewise.
56444         * tests/test-freadptr2.c (ASSERT): Likewise.
56445         * tests/test-freadseek.c (ASSERT): Likewise.
56446         * tests/test-freopen.c (ASSERT): Likewise.
56447         * tests/test-frexp.c (ASSERT): Likewise.
56448         * tests/test-frexpl.c (ASSERT): Likewise.
56449         * tests/test-fseek.c (ASSERT): Likewise.
56450         * tests/test-fseeko.c (ASSERT): Likewise.
56451         * tests/test-fstrcmp.c (ASSERT): Likewise.
56452         * tests/test-ftell.c (ASSERT): Likewise.
56453         * tests/test-ftello.c (ASSERT): Likewise.
56454         * tests/test-func.c (ASSERT): Likewise.
56455         * tests/test-fwritable.c (ASSERT): Likewise.
56456         * tests/test-fwriting.c (ASSERT): Likewise.
56457         * tests/test-getdelim.c (ASSERT): Likewise.
56458         * tests/test-getline.c (ASSERT): Likewise.
56459         * tests/test-i-ring.c (ASSERT): Likewise.
56460         * tests/test-iconv-utf.c (ASSERT): Likewise.
56461         * tests/test-iconv.c (ASSERT): Likewise.
56462         * tests/test-isfinite.c (ASSERT): Likewise.
56463         * tests/test-isnand.c (ASSERT): Likewise.
56464         * tests/test-isnanf.c (ASSERT): Likewise.
56465         * tests/test-isnanl.h (ASSERT): Likewise.
56466         * tests/test-ldexpl.c (ASSERT): Likewise.
56467         * tests/test-linked_list.c (ASSERT): Likewise.
56468         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56469         * tests/test-localename.c (ASSERT): Likewise.
56470         * tests/test-lseek.c (ASSERT): Likewise.
56471         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56472         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56473         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56474         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56475         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56476         * tests/test-mbschr.c (ASSERT): Likewise.
56477         * tests/test-mbscspn.c (ASSERT): Likewise.
56478         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56479         * tests/test-mbspbrk.c (ASSERT): Likewise.
56480         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56481         * tests/test-mbsrchr.c (ASSERT): Likewise.
56482         * tests/test-mbsspn.c (ASSERT): Likewise.
56483         * tests/test-mbsstr1.c (ASSERT): Likewise.
56484         * tests/test-mbsstr2.c (ASSERT): Likewise.
56485         * tests/test-mbsstr3.c (ASSERT): Likewise.
56486         * tests/test-memchr2.c (ASSERT): Likewise.
56487         * tests/test-memmem.c (ASSERT): Likewise.
56488         * tests/test-open.c (ASSERT): Likewise.
56489         * tests/test-printf-frexp.c (ASSERT): Likewise.
56490         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56491         * tests/test-printf-posix.c (ASSERT): Likewise.
56492         * tests/test-quotearg.c (ASSERT): Likewise.
56493         * tests/test-rbtree_list.c (ASSERT): Likewise.
56494         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56495         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56496         * tests/test-round1.c (ASSERT): Likewise.
56497         * tests/test-roundf1.c (ASSERT): Likewise.
56498         * tests/test-roundl.c (ASSERT): Likewise.
56499         * tests/test-signbit.c (ASSERT): Likewise.
56500         * tests/test-sleep.c (ASSERT): Likewise.
56501         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56502         * tests/test-snprintf.c (ASSERT): Likewise.
56503         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56504         * tests/test-stat-time.c (ASSERT): Likewise.
56505         * tests/test-strcasestr.c (ASSERT): Likewise.
56506         * tests/test-strerror.c (ASSERT): Likewise.
56507         * tests/test-striconv.c (ASSERT): Likewise.
56508         * tests/test-striconveh.c (ASSERT): Likewise.
56509         * tests/test-striconveha.c (ASSERT): Likewise.
56510         * tests/test-strsignal.c (ASSERT): Likewise.
56511         * tests/test-strstr.c (ASSERT): Likewise.
56512         * tests/test-strtod.c (ASSERT): Likewise.
56513         * tests/test-trunc1.c (ASSERT): Likewise.
56514         * tests/test-trunc2.c (ASSERT): Likewise.
56515         * tests/test-truncf1.c (ASSERT): Likewise.
56516         * tests/test-truncf2.c (ASSERT): Likewise.
56517         * tests/test-truncl.c (ASSERT): Likewise.
56518         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56519         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56520         * tests/test-vasnprintf.c (ASSERT): Likewise.
56521         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56522         * tests/test-vasprintf.c (ASSERT): Likewise.
56523         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56524         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56525         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56526         * tests/test-vsnprintf.c (ASSERT): Likewise.
56527         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56528         * tests/test-wcwidth.c (ASSERT): Likewise.
56529         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56530         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56531         * tests/test-xvasprintf.c (ASSERT): Likewise.
56532         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56533         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56534         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56535         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56536         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56537         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56538         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56539         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56540         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56541         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56542         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56543         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56544         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56545         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56546         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56547         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56548         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56549         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56550         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56551         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56552         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56553         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56554         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56555         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56556         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56557         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56558         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56559         * tests/unictype/test-combining.c (ASSERT): Likewise.
56560         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56561         * tests/unictype/test-digit.c (ASSERT): Likewise.
56562         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56563         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56564         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56565         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56566         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56567         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56568         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56569         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56570         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56571         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56572         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56573         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56574         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56575         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56576         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56577         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56578         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56579         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56580         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56581         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56582         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56583         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56584         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56585         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56586         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56587         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56588         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56589         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56590         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56591         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56592         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56593         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56594         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56595         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56596         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56597         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56598         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56599         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56600         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56601         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56602         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56603         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56604         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56605         Reported by Eric Blake.
56606
56607 2008-04-11  Bruno Haible  <bruno@clisp.org>
56608
56609         * lib/wchar.in.h: Tweak comment.
56610
56611 2008-04-11  Bruno Haible  <bruno@clisp.org>
56612
56613         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56614         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56615         gl_COMMON.
56616         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56617
56618 2008-04-11  Bruno Haible  <bruno@clisp.org>
56619
56620         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56621
56622 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56623
56624         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56625         of attempting to use non-existing /dev/*random.  Based on patch
56626         from Adam Strzelecki <ono@java.pl> in
56627         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56628
56629 2008-04-08  Bruno Haible  <bruno@clisp.org>
56630
56631         Add tentative support for emx+gcc.
56632         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56633         * lib/fpurge.c (fpurge): Likewise.
56634         * lib/freadable.c (freadable): Likewise.
56635         * lib/freadahead.c (freadahead): Likewise.
56636         * lib/freading.c (freading): Likewise.
56637         * lib/freadptr.c (freadptr): Likewise.
56638         * lib/freadseek.c (freadptrinc): Likewise.
56639         * lib/fseeko.c (rpl_fseeko): Likewise.
56640         * lib/fseterr.c (fseterr): Likewise.
56641         * lib/fwritable.c (fwritable): Likewise.
56642         * lib/fwriting.c (fwriting): Likewise.
56643         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56644
56645 2008-04-09  Eric Blake  <ebb9@byu.net>
56646
56647         Avoid some autoconf warnings.
56648         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56649         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56650         * m4/afs.m4 (gl_AFS): Likewise.
56651         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56652         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56653         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56654         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56655         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56656         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56657         (AC_CHECK_DECLS_ONCE): Likewise.
56658         Rename file...
56659         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56660         gnulib-tool requires autoconf 2.59 or better.
56661         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56662
56663 2008-04-08  Eric Blake  <ebb9@byu.net>
56664
56665         Use 'git describe --match' if present (added in git 1.5.5).
56666         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56667         if possible.
56668
56669 2008-04-08  Bruno Haible  <bruno@clisp.org>
56670
56671         Add tentative support for OpenServer.
56672         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56673         _ptr, _cnt.
56674         * lib/fpurge.c (fpurge): Likewise.
56675         * lib/freadable.c (freadable): Likewise.
56676         * lib/freadahead.c (freadahead): Likewise.
56677         * lib/freading.c (freading): Likewise.
56678         * lib/freadptr.c (freadptr): Likewise.
56679         * lib/freadseek.c (freadptrinc): Likewise.
56680         * lib/fseeko.c (rpl_fseeko): Likewise.
56681         * lib/fseterr.c (fseterr): Likewise.
56682         * lib/fwritable.c (fwritable): Likewise.
56683         * lib/fwriting.c (fwriting): Likewise.
56684         Reported by Roger Cornelius <rac@tenzing.org> and
56685         Brian K. White <brian@aljex.com>.
56686
56687 2008-04-06  Jim Meyering  <meyering@redhat.com>
56688
56689         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56690
56691 2008-04-06  Bruno Haible  <bruno@clisp.org>
56692
56693         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56694         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56695         * tests/test-printf-posix.sh: Likewise.
56696         * tests/test-vfprintf-posix.sh: Likewise.
56697         * tests/test-vprintf-posix.sh: Likewise.
56698         * tests/test-xprintf-posix.sh: Likewise.
56699
56700 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56701
56702         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56703         hide error from 'ls', needed on OS/2.
56704         Report by Elbert Pol <elbert.pol@gmail.com>.
56705
56706 2008-04-04  Eric Blake  <ebb9@byu.net>
56707
56708         Make test-fseeko.c failures meaningful.
56709         * tests/test-fseeko.c: Print line number on failure.
56710         * tests/test-fseek.c: Likewise.
56711         Reported by Nelson H. F. Beebe.
56712
56713         Improve strtod bug detection check.
56714         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56715         required for Solaris 10.
56716         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56717
56718 2008-04-04  Bruno Haible  <bruno@clisp.org>
56719
56720         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56721         by m4/setenv.m4.
56722
56723 2008-04-03  Eric Blake  <ebb9@byu.net>
56724
56725         Ensure sane .version contents.
56726         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56727         version string.
56728         * build-aux/git-version-gen: Improve documentation.
56729
56730         Make GNU make output nicer.
56731         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56732         MAKECMDGOALS to enforce message for all command line targets.  Set
56733         srcdir for use in maint.mk.
56734
56735         Another maintainer tweak.
56736         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56737         a target that regenerates version.
56738
56739 2008-04-03  Jim Meyering  <meyering@redhat.com>
56740
56741         vc-list-files: don't cause coreutils "make po-check" failure
56742         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56743
56744 2008-04-03  Eric Blake  <ebb9@byu.net>
56745
56746         Allow VPATH usage of vc-list-files.
56747         * build-aux/vc-list-files (scriptversion): Add timestamp.
56748         (options): Add --help, --version, -C.
56749         (CVS): Support installed cvsu.
56750
56751 2008-04-02  Bruno Haible  <bruno@clisp.org>
56752
56753         Avoid some "statement with no effect" warnings from gcc.
56754         * tests/test-wctype.c (main): Explicitly ignore unused values.
56755         Reported by Jim Meyering.
56756
56757 2008-04-02  Jim Meyering  <meyering@redhat.com>
56758
56759         Avoid some warnings from "gcc -Wshadow".
56760         * tests/test-frexp.c (exp): Define to a different identifier.
56761         * tests/test-frexpl.c (exp): Likewise.
56762
56763 2008-04-03  Jim Meyering  <meyering@redhat.com>
56764
56765         bootstrap: remove dangling *.[ch] symlinks from lib
56766         * build-aux/bootstrap [dangling symlink removal]: Move find's
56767         -depth option to precede all others, to avoid a warning.
56768         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56769
56770 2008-04-02  Bruno Haible  <bruno@clisp.org>
56771
56772         Avoid some warnings from "gcc -Wshadow".
56773         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56774         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56775         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56776         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56777         Reported by Jim Meyering.
56778
56779 2008-04-01  Bruno Haible  <bruno@clisp.org>
56780
56781         Fix test to work on IRIX 6.5 with cc.
56782         * tests/test-math.c (numeric_equal): New function.
56783         (main): Use it.
56784
56785 2008-04-01  Bruno Haible  <bruno@clisp.org>
56786
56787         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56788
56789 2008-04-01  Bruno Haible  <bruno@clisp.org>
56790
56791         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56792         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56793         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56794         (Depends-on): Remove math.
56795
56796         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56797         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56798         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56799         (Depends-on): Remove math.
56800
56801         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56802         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56803         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56804         (Depends-on): Remove math.
56805         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56806         (Depends-on): Remove math.
56807
56808         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56809         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56810         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56811         (Depends-on): Remove math.
56812         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56813         (Depends-on): Remove math.
56814
56815         * tests/test-round1.c: Include nan.h.
56816         (main): Use NaNd instead of NAN.
56817         * modules/round-tests (Files): Add tests/nan.h.
56818
56819         * tests/test-trunc1.c: Include nan.h.
56820         (main): Use NaNd instead of NAN.
56821         * modules/trunc-tests (Files): Add tests/nan.h.
56822
56823         * tests/test-roundf1.c: Include nan.h.
56824         (main): Use NaNf instead of NAN.
56825         * modules/roundf-tests (Files): Add tests/nan.h.
56826
56827         * tests/test-truncf1.c: Include nan.h.
56828         (main): Use NaNf instead of NAN.
56829         * modules/truncf-tests (Files): Add tests/nan.h.
56830
56831         * tests/test-ceilf1.c: Include nan.h.
56832         (main): Use NaNf instead of NAN.
56833         * modules/ceilf-tests (Files): Add tests/nan.h.
56834
56835         * tests/test-floorf1.c: Include nan.h.
56836         (main): Use NaNf instead of NAN.
56837         * modules/floorf-tests (Files): Add tests/nan.h.
56838
56839         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56840         (main): Use NaNf instead of NAN.
56841         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56842
56843         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56844         (main): Use NaNd instead of NAN.
56845         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56846
56847         * tests/test-frexp.c: Include nan.h.
56848         (main): Use NaNd instead of NAN.
56849         * modules/frexp-tests (Files): Add tests/nan.h.
56850
56851         * lib/isnan.c: Don't include <math.h>.
56852         (FUNC): Don't use NAN macro.
56853         * modules/isnand-nolibm (Depends-on): Remove math.
56854         * modules/isnanf-nolibm (Depends-on): Remove math.
56855         * modules/isnanl (Depends-on): Remove math.
56856         * modules/isnanl-nolibm (Depends-on): Remove math.
56857
56858         * tests/nan.h: New file.
56859
56860 2008-04-01  Eric Blake  <ebb9@byu.net>
56861
56862         Fix typos.
56863         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56864         values to be the right type.
56865
56866         For now, cater to gnulib strtod inaccuracies.
56867         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56868         fractional results.  While not as nice from a QoI perspective, it
56869         is a quicker patch than correctly implementing decimal to binary
56870         rounding.
56871
56872 2008-03-31  Eric Blake  <ebb9@byu.net>
56873
56874         Guarantee a definition of NAN.
56875         * lib/math.in.h (NAN): Define if missing.
56876         * tests/test-math.c (main): Test it.
56877         * doc/posix-headers/math.texi (math.h): Document this.
56878         * lib/isnan.c (rpl_isnand): Use it.
56879         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56880         * tests/test-floorf1.c (NaN): Likewise.
56881         * tests/test-frexp.c (NaN): Likewise.
56882         * tests/test-isnand.c (NaN): Likewise.
56883         * tests/test-isnanf.c (NaN): Likewise.
56884         * tests/test-round1.c (NaN): Likewise.
56885         * tests/test-roundf1.c (NaN): Likewise.
56886         * tests/test-snprintf-posix.h (NaN): Likewise.
56887         * tests/test-sprintf-posix.h (NaN): Likewise.
56888         * tests/test-trunc1.c (NaN): Likewise.
56889         * tests/test-truncf1.c (NaN): Likewise.
56890         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56891         * tests/test-vasprintf-posix.c (NaN): Likewise.
56892         * modules/isnand-nolibm (Depends-on): Add math.
56893         * modules/isnanf-nolibm (Depends-on): Likewise.
56894         * modules/isnanl (Depends-on): Likewise.
56895         * modules/isnanl-nolibm (Depends-on): Likewise.
56896         * modules/snprintf-posix-tests (Depends-on): Likewise.
56897         * modules/sprintf-posix-tests (Depends-on): Likewise.
56898         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56899         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56900         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56901         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56902
56903 2008-03-31  Bruno Haible  <bruno@clisp.org>
56904
56905         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56906         * doc/posix-functions/strtod.texi: Likewise.
56907
56908 2008-03-31  Bruno Haible  <bruno@clisp.org>
56909
56910         * tests/test-strtod.c (main): Don't use C99 syntax.
56911
56912 2008-03-31  Bruno Haible  <bruno@clisp.org>
56913
56914         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56915         Reported by Eric Blake.
56916
56917 2008-03-31  Jim Meyering  <meyering@redhat.com>
56918
56919         Don't compare actual signbit return values.
56920         * tests/test-strtod.c (main): Rather, compare only their
56921         zero/non-zero nature.
56922
56923 2008-03-31  Eric Blake  <ebb9@byu.net>
56924
56925         More strtod documentation.
56926         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56927         failures as distinct bugs.
56928
56929 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56930
56931         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56932         Problem reported by Erik Benada in
56933         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56934
56935 2008-03-30  Bruno Haible  <bruno@clisp.org>
56936
56937         * tests/test-strtod.c: Add comments about which assertion fails on which
56938         platform.
56939         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56940
56941 2008-03-30  Eric Blake  <ebb9@byu.net>
56942
56943         Test signbit behavior on zeros.
56944         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56945         (test_signbitd, test_signbitl): Likewise.
56946
56947         More strtod touchups.
56948         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56949         sign of negative underflow, for now.  Use .5, not .1.
56950         * doc/posix-functions/strtod.texi (strtod): Mention these
56951         limitations.
56952         Reported by Jim Meyering.
56953
56954 2008-03-30  Bruno Haible  <bruno@clisp.org>
56955
56956         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56957         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56958
56959 2008-03-30  Bruno Haible  <bruno@clisp.org>
56960
56961         Avoid failure when attempting to return empty iconv results on some
56962         platforms.
56963         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56964         allocation, don't report ENOMEM when the resulting string is empty.
56965
56966 2008-03-30  Bruno Haible  <bruno@clisp.org>
56967
56968         Fix buffer overrun.
56969         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56970         Don't consider the width for tmp_length. Check count against tmp_length
56971         before doing the padding. Ensure enough allocation during padding.
56972
56973 2008-03-30  Eric Blake  <ebb9@byu.net>
56974
56975         strtod touchups.
56976         * lib/strtod.c (strtod): Avoid compiler warnings.
56977         Reported by Jim Meyering.
56978
56979 2008-03-30  Bruno Haible  <bruno@clisp.org>
56980
56981         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56982         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56983         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56984         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56985         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56986         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56987         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56988         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56989
56990         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56991         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56992         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56993         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56994         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56995         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56996         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56997         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56998
56999         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57000         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57001         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57002         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57003         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57004         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57005         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57006         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57007
57008         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57009         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57010
57011         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57012         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57013
57014         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57015         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57016
57017         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57018         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57019         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57020
57021         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57022         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57023         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57024
57025         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57026         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57027         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57028
57029         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57030         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57031         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57032
57033         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57034         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57035         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57036         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57037         (Depends-on): Add EOVERFLOW.
57038         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57039         (Depends-on): Add EOVERFLOW.
57040         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57041         (Depends-on): Add EOVERFLOW.
57042         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57043         (Depends-on): Add EOVERFLOW.
57044         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57045         (Depends-on): Add EOVERFLOW.
57046         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57047         (Depends-on): Add EOVERFLOW.
57048         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57049         (Depends-on): Add EOVERFLOW.
57050         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57051         (Depends-on): Add EOVERFLOW.
57052
57053         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57054         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57055         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57056
57057         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57058         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57059         * modules/snprintf (Depends-on): Add EOVERFLOW.
57060
57061         * lib/poll.c (EOVERFLOW): Remove fallback.
57062         * modules/poll (Depends-on): Add EOVERFLOW.
57063
57064         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57065         * modules/getugroups (Depends-on): Add EOVERFLOW.
57066
57067         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57068         * modules/getdelim (Depends-on): Add EOVERFLOW.
57069
57070         * lib/ftell.c (EOVERFLOW): Remove fallback.
57071         * modules/ftell (Depends-on): Add EOVERFLOW.
57072
57073         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57074         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57075         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57076
57077         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57078
57079         * modules/EOVERFLOW-tests: New file.
57080         * tests/test-EOVERFLOW.c: New file.
57081
57082         * modules/EOVERFLOW: New file.
57083         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57084
57085 2008-03-30  Bruno Haible  <bruno@clisp.org>
57086
57087         Fix bug introduced on 2007-06-10.
57088         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57089         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57090
57091 2008-03-30  Bruno Haible  <bruno@clisp.org>
57092
57093         Improve freadseek's efficiency after ungetc.
57094         * lib/freadseek.c: Include freadahead.h.
57095         (freadptrinc): New function, extracted from freadseek.
57096         (freadseek): Use it in a loop. Use freadahead to determine the number
57097         of loop iterations.
57098         * modules/freadseek (Depends-on): Add freadahead.
57099         (configure.ac): Require AC_C_INLINE.
57100
57101 2008-03-30  Bruno Haible  <bruno@clisp.org>
57102
57103         * lib/freadseek.c (freadseek): Don't ignore the return value of
57104         freadptr.
57105
57106 2008-03-29  Eric Blake  <ebb9@byu.net>
57107
57108         Add hex float support.
57109         * modules/strtod (Depends-on): Add c-ctype.
57110         (Link): Mention POW_LIB.
57111         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57112         whitespace between 'e' and exponent.
57113         * tests/test-strtod.c (main): Enable hex float tests.
57114         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57115         now provides.
57116
57117         Document various strtod bugs, with some fixes.
57118         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57119         "-0x", "inf", "nan", and hex constants.
57120         * doc/posix-functions/atof.texi (atof): Likewise.
57121         * modules/stdlib (Makefile.am): Support strtod.
57122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57123         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57124         detect additional strtod bugs.
57125         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57126         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57127         bool where appropriate.  Parse 'inf' and 'nan'.
57128         * tests/test-strtod.c: New file.
57129         * modules/strtod (Depends-on): Add stdbool, stdlib.
57130         (configure.ac): Turn on module indicator.
57131         * modules/strtod-tests: New module.
57132
57133 2008-03-29  Eric Blake  <ebb9@byu.net>
57134
57135         Fix ftell on mingw.
57136         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57137         * modules/ftell-tests (Depends-on): Add binary-io.
57138         * modules/ftello-tests (Depends-on): Likewise.
57139         * tests/test-ftell.c (main): Enhance test to cover behavior after
57140         ungetc.  Enforce binary mode.
57141         * tests/test-ftello.c (main): Likewise.
57142
57143         Pass test-freadseek on cygwin.
57144         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57145         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57146         ungetc buffer.
57147
57148         * tests/test-fflush2.c (main): Fix typo.
57149
57150 2008-03-29  Bruno Haible  <bruno@clisp.org>
57151
57152         * tests/test-fflush2.c (main): Temporarily disable the contents of
57153         this test.
57154         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57155         Reported by Eric Blake.
57156
57157 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57158
57159         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57160         (GC_SHA224_DIGEST_SIZE): Add.
57161
57162         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57163         (gc_hash_digest_length): Likewise.
57164         (gc_hash_buffer): Likewise.
57165
57166 2008-03-25  Bruno Haible  <bruno@clisp.org>
57167
57168         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57169         detail which gettext release to use.
57170         Reported by Simon Josefsson.
57171
57172 2008-03-26  Jim Meyering  <meyering@redhat.com>
57173
57174         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57175         * modules/gnumakefile (clean-GNUmakefile): Also, use
57176         test ... && ... || : syntax rather than if-then ... fi.
57177
57178         gnumakefile: Don't double-quote-expand $(VPATH) value.
57179         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57180
57181 2008-03-24  Eric Blake  <ebb9@byu.net>
57182
57183         Alter GNUmakefile to install into top directory.
57184         * modules/maintainer-makefile: Split, and add dependency...
57185         * modules/gnumakefile: to this new module.
57186         * build-aux/GNUmakefile: Move...
57187         * top/GNUmakefile: ...here.
57188         * build-aux/maint.mk: Move...
57189         * top/maint.mk: ...here.
57190         * MODULES.html.sh (Support for maintaining...): Document new
57191         module.
57192
57193 2008-03-23  Bruno Haible  <bruno@clisp.org>
57194
57195         * gnulib-tool: New options --vc-files, --no-vc-files.
57196         (func_usage): Document them.
57197         (vc_files): New variable.
57198         (func_import): Consider vc_files.
57199         (func_create_testdir): Set vc_files to empty.
57200         Suggested by Jim Meyering and Karl Berry.
57201
57202 2008-03-23  Bruno Haible  <bruno@clisp.org>
57203
57204         Fix regex compilation error on HP-UX 11.
57205         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57206         * modules/regex (Files): Add m4/mbstate_t.m4.
57207         Reported by Ton Voon <ton.voon@altinity.com>.
57208
57209 2008-03-23  Bruno Haible  <bruno@clisp.org>
57210
57211         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57212
57213 2008-03-23  Eric Blake  <ebb9@byu.net>
57214             Bruno Haible  <bruno@clisp.org>
57215
57216         Install files from top/ in the destination directory.
57217         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57218         augmentation also for the files from top/.
57219         (func_import, func_create_testdir): Rewrite file names:
57220         top/filename -> filename.
57221
57222 2008-03-23  Bruno Haible  <bruno@clisp.org>
57223
57224         Tweak "gnulib --version" output.
57225         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57226
57227 2008-03-23  Bruno Haible  <bruno@clisp.org>
57228
57229         Tweak "gnulib --version" output.
57230         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57231         rather than contents of ChangeLog, when possible.
57232
57233 2008-03-21  Eric Blake  <ebb9@byu.net>
57234
57235         More --version tweaks.
57236         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57237         date of last ChangeLog entry.
57238
57239 2008-03-21  Jim Meyering  <meyering@redhat.com>
57240
57241         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57242
57243 2008-03-20  Eric Blake  <ebb9@byu.net>
57244
57245         VPATH fix.
57246         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57247
57248 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57249
57250         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57251         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57252
57253 2008-03-20  Eric Blake  <ebb9@byu.net>
57254
57255         Sync GNUmakefile with coreutils.
57256         * build-aux/GNUmakefile (have-Makefile): Rename...
57257         (_have-Makefile): ...to this, for namespace consideration.
57258         (GNUmakefile.cfg): Include, if present.
57259         (_autoreconf): Define a default.
57260         (_is-dist-target): New rule for rebuilds to pick up intra-release
57261         version.
57262         (maint-cfg.mk): Rename...
57263         (cfg.mk): ...to this.
57264
57265 2008-03-18  Jim Meyering  <meyering@redhat.com>
57266
57267         New script and module: mktempd
57268         * MODULES.html.sh (maint+release support): Add mktempd.
57269         * build-aux/mktempd: New file.
57270         * modules/mktempd: New file.
57271
57272 2008-03-15  Jim Meyering  <meyering@redhat.com>
57273
57274         Undo last change.
57275         * lib/sha1.c, lib/md5.c: 63 != ~63.
57276         Reported by Andreas Schwab.
57277
57278         sha1.c, md5.c: Hoist a redundant expression.
57279         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57280         "ctx->buflen" only once, before calling *_process_block.
57281         * lib/md5.c (md5_process_bytes): Likewise.
57282
57283 2008-03-14  Eric Blake  <ebb9@byu.net>
57284
57285         Bump copyright year in files generated by gnulib-tool.
57286         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57287         gnulib-tool, rather than hard-coding it.
57288
57289         Fix 'gnulib-tool --version' output to work with git.
57290         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57291         (startup): ...here.
57292         (func_version): Use it to invoke git-version-gen, rather than
57293         relying on CVS keyword expansion.  Modernize wording.
57294         (cvsdatestamp, last_checkin_date, version): Kill unused
57295         variables.
57296
57297 2008-03-12  Jim Meyering  <meyering@redhat.com>
57298
57299         Recognize optional cast of the argument to free.
57300         * build-aux/useless-if-before-free: Update regexps.
57301
57302         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57303
57304 2008-03-11  Bruno Haible  <bruno@clisp.org>
57305
57306         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57307         by a single package.
57308         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57309         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57310         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57311         Reported by Sam Steingold <sds@gnu.org>.
57312
57313 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57314
57315         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57316         repositories.
57317
57318 2008-03-11  Bruno Haible  <bruno@clisp.org>
57319
57320         Avoid conflicts between local macro definitions.
57321         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57322         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57323
57324 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57325             Bruno Haible  <bruno@clisp.org>
57326
57327         Make va_copy work with some version of xlc on AIX 5.1.
57328         * lib/stdarg.in.h: New file.
57329         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57330         On AIX, use a <stdarg.h> file substitute.
57331         * modules/stdarg (Files): Add lib/stdarg.in.h.
57332         (Depends-on): Add include_next.
57333         (Makefile.am): Build a stdarg.h substitute if requested.
57334         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57335
57336 2008-03-10  Bruno Haible  <bruno@clisp.org>
57337
57338         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57339         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57340         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57341
57342 2008-03-10  Bruno Haible  <bruno@clisp.org>
57343
57344         * modules/stdlib (Depends-on): Add include_next, remove
57345         absolute-header.
57346
57347 2008-03-09  Bruno Haible  <bruno@clisp.org>
57348
57349         * lib/freadahead.h (freadahead): Document more precisely.
57350         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57351         the sum of both buffer sizes.
57352         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57353         * NEWS: Document the change.
57354
57355 2008-03-09  Bruno Haible  <bruno@clisp.org>
57356
57357         Extend freadptr to return also the buffer size.
57358         * lib/freadptr.h (freadptr): Add sizep argument.
57359         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57360         (freadptr): Add sizep argument. Determine buffer size like freadahead
57361         does.
57362         * tests/test-freadptr.c: Don't include freadahead.h.
57363         (main): Adapt for new calling convention of freadptr.
57364         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57365         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57366         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57367         tests/test-freadptr2.sh.
57368         (Depends): Remove freadahead.
57369         (TESTS): Add test-freadptr2.sh.
57370         (check_PROGRAMS): Add test-freadptr2.
57371
57372 2008-03-09  Bruno Haible  <bruno@clisp.org>
57373
57374         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57375         Report and solution by Simon Josefsson.
57376
57377 2008-03-06  Bruno Haible  <bruno@clisp.org>
57378
57379         Make fflush after ungetc work on BSD platforms.
57380         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57381         * tests/test-fflush2.c: New file.
57382         * tests/test-fflush2.sh: New file.
57383         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57384         tests/test-fflush2.c.
57385         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57386         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57387
57388 2008-03-06  Eric Blake  <ebb9@byu.net>
57389
57390         Likewise for ftello.
57391         * modules/ftello (Dependencies): Add extensions.
57392         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57393
57394 2008-03-06  Bruno Haible  <bruno@clisp.org>
57395
57396         * modules/fseeko (Dependencies): Add extensions.
57397         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57398         Needed on glibc systems.
57399
57400 2008-03-06  Bruno Haible  <bruno@clisp.org>
57401
57402         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57403         email address.
57404         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57405
57406 2008-03-06  Bruno Haible  <bruno@clisp.org>
57407
57408         * users.txt: Add libgnupdf.
57409
57410 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57411
57412         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57413         (Header File Substitutes, Function Substitutes,
57414         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57415         (Build robot for gnulib): Fix typo.
57416
57417 2008-03-06  Bruno Haible  <bruno@clisp.org>
57418
57419         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57420         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57421
57422 2008-03-06  Bruno Haible  <bruno@clisp.org>
57423
57424         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57425         * doc/gnulib.texi: Include it.
57426
57427 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57428
57429         * modules/func (License): Change license to unlimited; there was
57430         no LGPL parts in the module anyway.
57431
57432 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57433
57434         * modules/__func__: Renamed to modules/func.
57435         * modules/__func__-tests: Renamed to modules/func-tests.
57436         * tests/test-__func__.c: Renamed to tests/test-func.c.
57437         * m4/__func__.m4: Renamed to m4/func.m4.
57438         * doc/gnulib.texi (__func__): Section renamed to func.
57439         Suggested by Eric Blake <ebb9@byu.net>.
57440
57441 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57442
57443         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57444         about __func__.  Make example self-contained.  Suggested by Eric
57445         Blake <ebb9@byu.net>.
57446
57447         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57448         Suggested by Eric Blake <ebb9@byu.net>.
57449
57450 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57451
57452         * modules/__func__: New file.
57453         * modules/__func__-tests: New file.
57454         * tests/test-__func__.c: New file.
57455         * m4/__func__.m4: New file.
57456         * doc/gnulib.texi (__func__): Document __func__ module.
57457
57458 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57459
57460         * modules/byteswap (License): Re-license as LGPLv2+.
57461
57462 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57463
57464         * doc/Makefile: Add pdf target.
57465
57466 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57467
57468         * modules/inline (License): Use 'unlimited', since there are only
57469         *.m4 files in this module.
57470
57471 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57472             Bruno Haible  <bruno@clisp.org>
57473
57474         Add support for HP C 7.1 on OpenVMS 8.3.
57475         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57476
57477 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57478
57479         Update VMS specifics.
57480         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57481
57482 2008-03-02  Jim Meyering  <meyering@redhat.com>
57483
57484         Remove the last dependency on the "free" module.
57485         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57486         Reported by Bob Proulx.
57487
57488         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57489
57490         Remove useless "if" tests before free.  Deprecate "free" module.
57491         * doc/posix-functions/free.texi: Mention that this
57492         module is no longer useful.
57493         * modules/free (Notice): Say this module is obsolete.
57494         * modules/readutmp (Depends-on): Remove free.
57495         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57496         * lib/putenv.c (putenv): Likewise.
57497         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57498         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57499         * tests/test-c-strcasestr.c (main): Likewise.
57500         * tests/test-c-strstr.c (main): Likewise.
57501         * tests/test-mbscasestr1.c (main): Likewise.
57502         * tests/test-mbscasestr2.c (main): Likewise.
57503         * tests/test-mbsstr1.c (main): Likewise.
57504         * tests/test-mbsstr2.c (main): Likewise.
57505         * tests/test-memmem.c (main): Likewise.
57506         * tests/test-strcasestr.c (main): Likewise.
57507         * tests/test-striconv.c (main): Likewise.
57508         * tests/test-striconveh.c (main): Likewise.
57509         * tests/test-striconveha.c (main): Likewise.
57510         * tests/test-strstr.c (main): Likewise.
57511
57512         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57513
57514         bootstrap: sync from coreutils again
57515         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57516
57517 2008-03-01  Jim Meyering  <meyering@redhat.com>
57518
57519         bootstrap: sync from coreutils
57520         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57521         also when the target doesn't exist.
57522
57523 2008-03-01  Eric Blake  <ebb9@byu.net>
57524
57525         Fix bugs in last patch.
57526         * lib/memchr2.c (memchr2): Fix typo.
57527         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57528         extension.
57529         Reported by Bruce Korb.
57530
57531         New module 'memchr2'.
57532         * modules/memchr2: New file.
57533         * modules/memchr2-tests: Likewise.
57534         * lib/memchr2.h: Likewise.
57535         * lib/memchr2.c: Likewise, based on memchr.c.
57536         * tests/test-memchr2.c: New test.
57537         * MODULES.html.sh (String handling): Add memchr2.
57538
57539 2008-02-29  Bruno Haible  <bruno@clisp.org>
57540
57541         * modules/freadseek-tests: New file.
57542         * tests/test-freadseek.sh: New file.
57543         * tests/test-freadseek.c: New file.
57544
57545         New module 'freadseek'.
57546         * modules/freadseek: New file.
57547         * lib/freadseek.h: New file.
57548         * lib/freadseek.c: New file.
57549         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57550
57551 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57552
57553         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57554         wydawca.
57555
57556         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57557         program_invocation_name and program_invocation_short_name are
57558         present.
57559
57560 2008-02-28  Bruno Haible  <bruno@clisp.org>
57561
57562         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57563         * tests/test-freadptr.sh: Also test non-seekable stdin.
57564
57565 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57566
57567         * build-aux/bootstrap (source_base, m4_base)
57568         (doc_base, tests_base): New variables.
57569         (gnulib_tool_options): Do not hardcode base directories, use
57570         the above variables instead.
57571
57572 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57573
57574         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57575
57576 2008-02-28  Bruno Haible  <bruno@clisp.org>
57577
57578         * modules/freadptr-tests: New file.
57579         * tests/test-freadptr.sh: New file.
57580         * tests/test-freadptr.c: New file.
57581
57582         New module 'freadptr'.
57583         * modules/freadptr: New file.
57584         * lib/freadptr.h: New file.
57585         * lib/freadptr.c: New file.
57586         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57587
57588 2008-02-26  Karl Berry  <karl@freefriends.org>
57589
57590         Sync from Libtool:
57591         * libltdl/argz.c (argz_add, argz_count): New functions.
57592         * libltdl/argz.in.h: Declare them.
57593         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57594
57595 2008-02-22  Bruno Haible  <bruno@clisp.org>
57596
57597         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57598         is a pointer type.  Needed for HP-UX 10.
57599         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57600         * doc/posix-functions/gmtime_r.texi: Likewise.
57601         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57602
57603 2008-02-24  Bruno Haible  <bruno@clisp.org>
57604
57605         * modules/environ-tests: New file.
57606         * tests/test-environ.c: New file.
57607
57608         New module 'environ'.
57609         * modules/environ: New file.
57610         * lib/unistd.in.h (environ): New declaration.
57611         * m4/environ.m4: New file.
57612         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57613         after use.
57614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57615         HAVE_DECL_ENVIRON.
57616         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57617         HAVE_DECL_ENVIRON.
57618         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57619         wrong claim that 'environ' is missing on some systems.
57620         * modules/execute (Depends-on): Add environ.
57621         * lib/execute.c (environ): Remove fallback declaration.
57622         * modules/pipe (Depends-on): Add environ.
57623         * lib/pipe.c (environ): Remove fallback declaration.
57624         * modules/setenv (Depends-on): Add environ.
57625         * lib/setenv.c (environ): Remove fallback declaration.
57626         * modules/unsetenv (Depends-on): Add environ.
57627         * lib/unsetenv.c (environ): Remove fallback declaration.
57628         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57629         m4/environ.m4.
57630         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57631         (gl_PREREQ_UNSETENV): Likewise.
57632
57633 2008-02-24  Bruno Haible  <bruno@clisp.org>
57634
57635         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57636
57637 2008-02-20  Bob Proulx  <bob@proulx.com>
57638
57639         Enable use of older two part flavor 'git describe'.
57640         * build-aux/git-version-gen: If using the older two part flavor of
57641         git version then recreate the third part now present in the
57642         newer three part flavor of git describe.
57643
57644 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57645
57646         * lib/fts.c (fts_build): Typo correction to comment.
57647
57648 2008-02-17  Bruno Haible  <bruno@clisp.org>
57649
57650         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57651         generating no-op conflicts.
57652
57653 2008-02-17  Bruno Haible  <bruno@clisp.org>
57654
57655         Speed up by 10%.
57656         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57657         result_entries, rather than an index-based loop.
57658
57659 2008-02-17  Bruno Haible  <bruno@clisp.org>
57660
57661         Speed up by 25%.
57662         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57663         'hashcode_cached'.
57664         (entry_create): New function.
57665         (entry_hashcode): Use the cached hashcode if possible.
57666         (read_changelog_file, try_split_merged_entry): Use entry_create.
57667
57668 2008-02-17  Bruno Haible  <bruno@clisp.org>
57669
57670         Speed up from O(n^2) to O(n) for long ChangeLog files.
57671         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57672         (read_changelog_file): Change implementation of entries_reversed list
57673         to rbtreehash.
57674         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57675
57676 2008-02-17  Bruno Haible  <bruno@clisp.org>
57677
57678         New option --split-merged-entry.
57679         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57680         (find_paragraph_end, try_split_merged_entry): New functions.
57681         (long_options): Add option --split-merged-entry.
57682         (usage): Document option --split-merged-entry.
57683         (main): Implement option --split-merged-entry.
57684         Reported by Eric Blake.
57685
57686 2008-02-17  Bruno Haible  <bruno@clisp.org>
57687
57688         * lib/git-merge-changelog.c: Include c-strstr.h.
57689         (main): Support the "git pull --rebase" situation.
57690         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57691         Reported by Eric Blake.
57692
57693 2008-02-16  Eric Blake  <ebb9@byu.net>
57694
57695         Avoid doubling \ in common case of "c-maybe" quoting style.
57696         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57697         eliding outer quotes.
57698         * lib/quotearg.h: Document this.
57699         * tests/test-quotearg.c (result_strings, inputs, results_g)
57700         (flag_results, locale_results): Test it by adding a new string to
57701         each test group.
57702         (compare_strings): Test new string.
57703
57704 2008-02-13  Eric Blake  <ebb9@byu.net>
57705
57706         Avoid trigraph quoting in default output.
57707         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57708         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57709         unless explicitly requested.
57710         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57711
57712 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57713
57714         Don't rely on signed integer overflowing to negative value.
57715         * lib/getugroups.c (getugroups): Include <limits.h>.
57716         Instead, compare against INT_MAX, and increment only if the test passes.
57717
57718 2008-02-13  Jim Meyering  <meyering@redhat.com>
57719         and Eric Blake  <ebb9@byu.net>
57720
57721         Avoid shadowing warning and compile errors on Linux.
57722         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57723         forwarding macros on Linux.
57724         (dcgettext): Define a stub, for Linux.
57725         (results_g, main): Avoid warnings.
57726
57727 2008-02-12  Eric Blake  <ebb9@byu.net>
57728
57729         Silence warning in last patch.
57730         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57731
57732         Quotearg part 4: add tests, fix c-maybe colon quoting.
57733         * lib/quotearg.h: Improve documentation.
57734         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57735         escapes when adding outer quotes.  When quoting trigraphs, use
57736         valid C notation.  When quoting NUL, omit extra characters if next
57737         character is not digit.  Alter prototype.
57738         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57739         callers.
57740         * modules/quotearg-tests: New module.
57741         * tests/test-quotearg.c: New test.
57742
57743 2008-02-07  Eric Blake  <ebb9@byu.net>
57744
57745         Quotearg part 3: add flag to control outer quote elision.
57746         * lib/quotearg.h (c_maybe_quoting_style): New style.
57747         (enum quoting_flags): Better documentation of flags.
57748         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57749         c-maybe style.
57750         (quotearg_buffer_restyled): Handle new flag to elide outer
57751         quotes.
57752
57753         Quotearg part 2: add flag that can control NUL elision.
57754         * lib/quotearg.h (set_quoting_flags): New prototype.
57755         * lib/quotearg.c (struct quoting_options): Add flag field.
57756         (set_quoting_flags): New function.
57757         (quotearg_buffer_restyled): Add flags parameter.
57758         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57759         (quotearg_n_options): Set the flag, since length cannot be
57760         returned.
57761         (quoting_options_from_style): Default flags correctly.
57762
57763         Quotearg part 1: more wrappers, restore quotearg_char state.
57764         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57765         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57766         (quotearg_colon_mem): New wrappers.
57767         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57768         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57769         functions.
57770         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57771         (quotearg_colon_mem): New functions.
57772
57773 2008-02-11  Bruno Haible  <bruno@clisp.org>
57774
57775         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57776         library in the current directory: it does not work with parallel make.
57777         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57778
57779 2008-02-11  Bruno Haible  <bruno@clisp.org>
57780
57781         * .gitattributes: New file.
57782
57783 2008-02-11  Jim Meyering  <meyering@redhat.com>
57784
57785         useless-if-before-free: Fix reversed exit values.
57786         * build-aux/useless-if-before-free: Use correct values
57787         for EXIT_MATCH and EXIT_NO_MATCH.
57788
57789         * build-aux/useless-if-before-free: Close stdout carefully.
57790
57791 2008-02-10  Bruno Haible  <bruno@clisp.org>
57792
57793         New module 'git-merge-changelog'.
57794         * modules/git-merge-changelog: New file.
57795         * lib/git-merge-changelog.c: New file.
57796
57797 2008-02-10  Jim Meyering  <meyering@redhat.com>
57798
57799         useless-if-before-free: New option: --list (-l).
57800
57801         useless-if-before-free: Don't exit immediately upon open failure.
57802         * build-aux/useless-if-before-free: Exit 2 for errors.
57803         Upon failure to open a file, don't exit immediately.
57804         Rather, just warn and continue with any remaining files.
57805
57806 2008-02-10  Bruno Haible  <bruno@clisp.org>
57807
57808         New abstract list operation 'node_set_value'.
57809         * lib/gl_list.h (gl_list_node_set_value): New function.
57810         (struct gl_list_implementation): New field node_set_value.
57811         * lib/gl_list.c (gl_list_node_set_value): New function.
57812         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57813         (gl_array_list_implementation): Update.
57814         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57815         (gl_carray_list_implementation): Update.
57816         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57817         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57818         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57819         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57820         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57821         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57822         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57823         Update.
57824         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57825         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57826         (gl_sublist_list_implementation): Update.
57827
57828 2008-02-10  Bruno Haible  <bruno@clisp.org>
57829
57830         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57831         Needed when ELEMENT is #defined to 'some_type *'.
57832
57833 2008-02-10  Jim Meyering  <meyering@redhat.com>
57834
57835         New script and module: useless-if-before-free
57836         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57837         * build-aux/useless-if-before-free: New file.
57838         * modules/useless-if-before-free: New file.
57839
57840         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57841
57842         xstrtol_error: Fix typo.
57843         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57844         s/exit_failure/exit_status/.
57845
57846 2008-02-09  Jim Meyering  <meyering@redhat.com>
57847
57848         New script and module: gitlog-to-changelog
57849         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57850         * modules/gitlog-to-changelog: New file.
57851         * build-aux/gitlog-to-changelog: New file.
57852
57853 2008-02-08  Jim Meyering  <meyering@redhat.com>
57854
57855         Avoid two "parameter unused" warnings.
57856         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57857         Mark "st" as used.
57858
57859         Use "git COMMAND", not "git-COMMAND".
57860         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57861         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57862         * build-aux/git-version-gen: Use "git status", not "git-status".
57863
57864 2008-02-07  Bruno Haible  <bruno@clisp.org>
57865
57866         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57867         Avoids a crash on Windows Vista.
57868         Reported by Adam Strzelecki <ono@java.pl> via
57869         Simon Josefsson <simon@josefsson.org>.
57870
57871 2008-02-06  Bruno Haible  <bruno@clisp.org>
57872
57873         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57874         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57875         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57876         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57877         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57878         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57879         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57880         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57881         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57882         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57883         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57884         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57885         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57886         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57887         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57888         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57889         left-adjust flag.
57890         * tests/test-snprintf-posix.h (test_function): Likewise.
57891         * tests/test-sprintf-posix.h (test_function): Likewise.
57892         * tests/test-vasprintf-posix.c (test_function): Likewise.
57893         * doc/posix-functions/fprintf.texi: Update.
57894         * doc/posix-functions/printf.texi: Update.
57895         * doc/posix-functions/snprintf.texi: Update.
57896         * doc/posix-functions/sprintf.texi: Update.
57897         * doc/posix-functions/vfprintf.texi: Update.
57898         * doc/posix-functions/vprintf.texi: Update.
57899         * doc/posix-functions/vsnprintf.texi: Update.
57900         * doc/posix-functions/vsprintf.texi: Update.
57901         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57902
57903 2008-02-06  Bruno Haible  <bruno@clisp.org>
57904
57905         Fix bug introduced on 2008-01-26.
57906         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57907
57908 2008-02-06  Bruno Haible  <bruno@clisp.org>
57909
57910         Fix bug introduced on 2007-06-10.
57911         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57912         !NEED_PRINTF_FLAG_ZERO.
57913
57914 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57915
57916         getloadavg: use libperfstat on AIX5
57917         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57918
57919 2008-02-03  Bruno Haible  <bruno@clisp.org>
57920
57921         * lib/diffseq.h: Add comments about required #includes.
57922         Reported by Michael Biggs <gnulib@doubleplum.net>.
57923
57924 2008-02-01  Bruno Haible  <bruno@clisp.org>
57925
57926         * users.txt: Add gnuit.
57927
57928 2008-01-31  Bruno Haible  <bruno@clisp.org>
57929
57930         * lib/md4.c (set_uint32): Mark as inline.
57931         * lib/md5.c (set_uint32): Likewise.
57932         * lib/sha1.c (set_uint32): Likewise.
57933         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57934         * m4/md5.m4 (gl_MD5): Likewise.
57935         * m4/sha1.m4 (gl_SHA1): Likewise.
57936
57937 2008-01-31  Jim Meyering  <meyering@redhat.com>
57938
57939         Use "sizeof VAR", rather than a literal "4".
57940         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57941         * lib/md4.c (md4_read_ctx): Likewise.
57942         * lib/sha1.c (sha1_read_ctx): Likewise.
57943
57944 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57945
57946         * tests/test-sha1.c: New file, based on test-md5.c.
57947
57948         * modules/crypto/sha1-tests: New file.
57949
57950 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57951
57952         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57953
57954 2008-01-31  Jim Meyering  <meyering@redhat.com>
57955
57956         Prefer "sizeof v" over the equivalent "4".
57957         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57958         * lib/md5.c (set_uint32): Likewise.
57959         * lib/sha1.c (set_uint32): Likewise.
57960
57961 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57962
57963         * lib/sha1.c (set_uint32): Mark function as static.
57964
57965 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57966
57967         md2: clarify comments to say that alignment is not required.
57968         * lib/md2.h: Remove warning about alignment in comment.
57969         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57970         never been required.
57971
57972 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57973
57974         md4: adapt alignment constraint fix from sha1.
57975         * lib/md4.c (set_uint32): New function, from sha1.c
57976         (md4_read_ctx): Use it.
57977         (md4_finish_ctx): Doc fix.
57978         * lib/md4.h: Doc fix.
57979
57980 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57981
57982         md5: adapt alignment constraint fix from sha1.
57983         * lib/md5.c (set_uint32): New function, from sha1.c
57984         (md5_read_ctx): Use it.
57985         (md5_finish_ctx): Doc fix.
57986         * lib/md5.h: Doc fix.
57987
57988 2008-01-30  Peter Palfrader  <weasel@debian.org>
57989
57990         sha1: remove the result buffer alignment constraint
57991         * lib/sha1.c (set_uint32): New function.
57992         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57993         constraint.
57994         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57995         * lib/sha1.h: Likewise.
57996
57997 2008-01-30  Andreas Schwab  <schwab@suse.de>
57998             Bruno Haible  <bruno@clisp.org>
57999
58000         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58001         correct definition of LDBL_MIN_EXP.
58002
58003 2008-01-30  Karl Berry  <karl@gnu.org>
58004
58005         * config/srclist-update: try to preserve x bit on updates.
58006         * config/srclistvars.sh: update for karl.
58007
58008 2008-01-29  Jim Meyering  <meyering@redhat.com>
58009
58010         vasnprintf.c: Avoid warning about unused label
58011         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58012         "overflow" label definition and associated code with the
58013         same cpp condition that guards the sole use of that label.
58014
58015 2008-01-26  Bruno Haible  <bruno@clisp.org>
58016
58017         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58018         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58019         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58020         * lib/isnanl-nolibm.h (isnanl): Likewise.
58021         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58022
58023 2008-01-26  Bruno Haible  <bruno@clisp.org>
58024
58025         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58026         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58027
58028 2008-01-26  Bruno Haible  <bruno@clisp.org>
58029
58030         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58031         GCC >= 4.0 built-in.
58032         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58033
58034 2008-01-26  Bruno Haible  <bruno@clisp.org>
58035
58036         Rename isnan, applicable to 'double' only, to isnand.
58037         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58038         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58039         (configure.ac): Update.
58040         (Include): Replace "isnan.h" with "isnand.h".
58041         * m4/isnand.m4: Renamed from m4/isnan.m4.
58042         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58043         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58044         instead of isnan.c.
58045         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58046         instead of HAVE_ISNAN_IN_LIBC.
58047         (isnand): Renamed from isnan.
58048         * lib/isnand.c: New file.
58049         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58050         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58051         (Makefile.am): Update.
58052         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58053         Include isnand.h instead of isnan.h.
58054         (main): Test isnand instead of isnan.
58055         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58056         isnan-nolibm.
58057         * modules/frexp (Depends-on): Likewise.
58058         * modules/frexp-tests (Depends-on): Likewise.
58059         * modules/frexp-nolibm (Depends-on): Likewise.
58060         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58061         * modules/isfinite (Depends-on): Likewise.
58062         * modules/round-tests (Depends-on): Likewise.
58063         * modules/signbit (Depends-on): Likewise.
58064         * modules/signbit-tests (Depends-on): Likewise.
58065         * modules/snprintf-posix (Depends-on): Likewise.
58066         * modules/sprintf-posix (Depends-on): Likewise.
58067         * modules/trunc-tests (Depends-on): Likewise.
58068         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58069         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58070         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58071         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58072         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58073         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58074         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58075         * modules/vasnprintf-posix (Depends-on): Likewise.
58076         * modules/vasprintf-posix (Depends-on): Likewise.
58077         * modules/vfprintf-posix (Depends-on): Likewise.
58078         * modules/vsnprintf-posix (Depends-on): Likewise.
58079         * modules/vsprintf-posix (Depends-on): Likewise.
58080         * lib/frexp.c: Include isnand.h instead of isnan.h.
58081         (ISNAN): Set to isnand instead of isnan.
58082         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58083         (gl_isfinited): Use isnand instead of isnan.
58084         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58085         (gl_signbitd): Use isnand instead of isnan.
58086         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58087         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58088         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58089         (main): Use isnand instead of isnan.
58090         * tests/test-round1.c: Include isnand.h.
58091         (main): Use isnand instead of isnan.
58092         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58093         (ISNAN): Set to isnand instead of isnan.
58094         * tests/test-trunc1.c: Include isnand.h.
58095         (main): Use isnand instead of isnan.
58096         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58097         (equal): Use isnand instead of isnan.
58098         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58099         isnand-nolibm.
58100         * NEWS: Mention the change.
58101
58102 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58103             Bruno Haible  <bruno@clisp.org>
58104
58105         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58106         the GCC builtins for signbits are present and set
58107         REPLACE_SIGNBIT_USING_GCC if so.
58108         * lib/math.in.h (signbit): Define using GCC builtins if
58109         REPLACE_SIGNBIT_USING_GCC is set.
58110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58111         REPLACE_SIGNBIT_USING_GCC.
58112         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58113
58114 2008-01-25  Jim Meyering  <meyering@redhat.com>
58115
58116         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58117         * lib/poll.c: Include <config.h>, not "config.h".
58118         * tests/test-getaddrinfo.c: Likewise.
58119
58120 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58121
58122         * modules/sockets-tests: New file.
58123
58124 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58125
58126         * modules/sockets: New module, can be used to call WSA_Startup and
58127         WSA_Cleanup when needed.
58128
58129         * lib/sockets.h, lib/sockets.c: New files.
58130
58131         * m4/sockets.m4: New file.
58132
58133         * tests/test-sockets.c: New file.
58134
58135 2008-01-19  Bruno Haible  <bruno@clisp.org>
58136
58137         * doc/posix-headers: Renamed from doc/headers.
58138         * doc/posix-functions: Renamed from doc/functions.
58139         * doc/gnulib.texi: Update.
58140
58141 2008-01-19  Bruno Haible  <bruno@clisp.org>
58142
58143         * doc/glibc-functions/strcasestr.texi: Include contents of
58144         doc/functions/strcasestr.texi, fixing the list of platforms.
58145         * doc/functions/strcasestr.texi: Remove file.
58146
58147 2008-01-19  Bruno Haible  <bruno@clisp.org>
58148
58149         * doc/glibc-functions/memmem.texi: Include contents of
58150         doc/functions/memmem.texi.
58151         * doc/functions/memmem.texi: Remove file.
58152
58153 2008-01-18  Bruno Haible  <bruno@clisp.org>
58154
58155         * doc/glibc-functions/*.texi: New files.
58156         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58157         to use the new files.
58158
58159 2008-01-17  Bruno Haible  <bruno@clisp.org>
58160
58161         * tests/test-gethostname.c (main): Fix printf statement.
58162
58163 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58164
58165         * modules/gethostname-tests: New file.
58166
58167         * tests/test-gethostname.c: New file.
58168
58169 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58170
58171         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58172         used by the UNAME case.  Reported by Bruno Haible
58173         <bruno@clisp.org>.
58174
58175 2008-01-17  Eric Blake  <ebb9@byu.net>
58176
58177         Convert c-strcasestr to be more efficient.
58178         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58179         (Depends-on): Add c-strcase, remove malloca, strnlen.
58180         * tests/test-c-strcasestr.c (main): Enhance test.
58181         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58182
58183 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58184
58185         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58186         Use it in creating po/Makevars.
58187
58188 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58189
58190         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58191         Applications that requires it should initialize libgcrypt
58192         manually.
58193
58194 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58195
58196         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58197
58198 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58199
58200         Fix problem with getdate on mingw32 reported by Simon Josefsson
58201         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58202         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58203         tzname", when deciding whether to declare tzname.
58204         * lib/strftime.c (tzname): Likewise.
58205
58206 2008-01-15  Bruno Haible  <bruno@clisp.org>
58207
58208         Work around a MacOS X 10.5 bug in frexpl().
58209         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58210         * doc/functions/frexpl.texi: Document the bug.
58211         Reported by Elias Pipping <pipping@gentoo.org>.
58212
58213 2008-01-14  Eric Blake  <ebb9@byu.net>
58214
58215         Touch up previous patch.
58216         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58217         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58218
58219         Convert strcasestr module to use Two-Way algorithm.
58220         * modules/strcasestr-simple: New module, based on the old
58221         strcasestr, but with Two-Way rather than KMP.
58222         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58223         * lib/string.in.h (rpl_strcasestr): Declare.
58224         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58225         performance.
58226         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58227         * modules/string (Makefile.am): Support strcasestr.
58228         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58229         * modules/strcasestr-tests (Depends-on): Check for alarm.
58230         * tests/test-strcasestr.c: Augment test.
58231         * lib/str-two-way.h: Clean up stray macro.
58232         * NEWS: Document new module.
58233         * MODULES.html.sh (string handling): Likewise.
58234         * doc/functions/strcasestr.texi: New file.
58235         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58236         here, since it is not a POSIX function.
58237
58238 2008-01-14  Colin Watson  <cjwatson@debian.org>
58239             Bruno Haible  <bruno@clisp.org>
58240
58241         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58242         works fine; if not, set REPLACE_STRSIGNAL.
58243         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58244         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58245         REPLACE_STRSIGNAL.
58246         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58247         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58248         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58249
58250 2008-01-14  Bruno Haible  <bruno@clisp.org>
58251
58252         * modules/strsignal (Include): Change to <string.h>.
58253
58254 2008-01-14  Colin Watson  <cjwatson@debian.org>
58255
58256         * modules/argp (Notice): Add a notice recommending to change
58257         XGETTEXT_OPTIONS.
58258         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58259
58260 2008-01-13  Colin Watson  <cjwatson@debian.org>
58261
58262         * modules/strsignal-tests: New file.
58263         * tests/test-strsignal.c: New file.
58264
58265         * lib/strsignal.c: New file, from glibc with modifications.
58266         * lib/siglist.h: New file, from glibc with modifications.
58267         * lib/string.in.h (strsignal): New declaration.
58268         * m4/strsignal.m4: New file.
58269         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58270         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58271         * modules/strsignal: New file.
58272         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58273         HAVE_DECL_STRSIGNAL.
58274
58275 2008-01-13  Bruno Haible  <bruno@clisp.org>
58276
58277         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58278         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58279         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58280         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58281
58282 2008-01-13  Bruno Haible  <bruno@clisp.org>
58283
58284         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58285         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58286         * lib/argp.h (__attribute__): Likewise.
58287         * lib/c-stack.c (__attribute__): Likewise.
58288         * lib/error.h (__attribute__): Likewise.
58289         * lib/fts.c (__attribute__): Likewise.
58290         * lib/openat.h (__attribute__): Likewise.
58291         * lib/stdio.in.h (__attribute__): Likewise.
58292         * lib/string.in.h (__attribute__): Likewise.
58293         * lib/utimens.c (__attribute__): Likewise.
58294         * lib/vasnprintf.h (__attribute__): Likewise.
58295         * lib/xalloc.h (__attribute__): Likewise.
58296         * lib/xprintf.h (__attribute__): Likewise.
58297         * lib/xstrtol.h (__attribute__): Likewise.
58298         * lib/xvasprintf.h (__attribute__): Likewise.
58299
58300 2008-01-12  Bruno Haible  <bruno@clisp.org>
58301
58302         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58303         * doc/glibc-headers/a.out.texi: New file.
58304         * doc/glibc-headers/aliases.texi: New file.
58305         * doc/glibc-headers/alloca.texi: New file.
58306         * doc/glibc-headers/ar.texi: New file.
58307         * doc/glibc-headers/argp.texi: New file.
58308         * doc/glibc-headers/argz.texi: New file.
58309         * doc/glibc-headers/byteswap.texi: New file.
58310         * doc/glibc-headers/crypt.texi: New file.
58311         * doc/glibc-headers/endian.texi: New file.
58312         * doc/glibc-headers/envz.texi: New file.
58313         * doc/glibc-headers/err.texi: New file.
58314         * doc/glibc-headers/error.texi: New file.
58315         * doc/glibc-headers/execinfo.texi: New file.
58316         * doc/glibc-headers/fpu_control.texi: New file.
58317         * doc/glibc-headers/fstab.texi: New file.
58318         * doc/glibc-headers/fts.texi: New file.
58319         * doc/glibc-headers/getopt.texi: New file.
58320         * doc/glibc-headers/ieee754.texi: New file.
58321         * doc/glibc-headers/ifaddrs.texi: New file.
58322         * doc/glibc-headers/libintl.texi: New file.
58323         * doc/glibc-headers/mcheck.texi: New file.
58324         * doc/glibc-headers/mntent.texi: New file.
58325         * doc/glibc-headers/obstack.texi: New file.
58326         * doc/glibc-headers/paths.texi: New file.
58327         * doc/glibc-headers/printf.texi: New file.
58328         * doc/glibc-headers/pty.texi: New file.
58329         * doc/glibc-headers/resolv.texi: New file.
58330         * doc/glibc-headers/shadow.texi: New file.
58331         * doc/glibc-headers/sysexits.texi: New file.
58332         * doc/glibc-headers/ttyent.texi: New file.
58333
58334 2008-01-12  Jim Meyering  <meyering@redhat.com>
58335
58336         announce-gen: emit Gnulib's git-based version string.
58337         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58338         New option --gnulib-version=V, where V is expected to be
58339         the output of running git describe in the gnulib directory.
58340         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58341         not useful, and plan to stop publishing an xdelta file with each
58342         coreutils release.
58343
58344         * build-aux/announce-gen: Also check for lzma-compressed files.
58345
58346 2008-01-11  Bruno Haible  <bruno@clisp.org>
58347
58348         * tests/test-memmem.c (main): Increase maximum allowed time.
58349         * tests/test-strstr.c (main): Likewise.
58350
58351 2008-01-11  Bruno Haible  <bruno@clisp.org>
58352
58353         * doc/functions/memmem.texi: Add more precisions about platforms.
58354         * doc/functions/strstr.texi: Likewise.
58355
58356 2008-01-10  Eric Blake  <ebb9@byu.net>
58357
58358         * m4/strstr.m4: Delete cruft from copy-n-paste.
58359         Reported by Bruno Haible.
58360
58361 2008-01-10  Bruno Haible  <bruno@clisp.org>
58362
58363         Make c-strstr rely on strstr.
58364         * lib/c-strstr.c: Don't include str-kmp.h.
58365         (c_strstr): Define in terms of strstr.
58366         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58367         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58368
58369 2008-01-10  Bruno Haible  <bruno@clisp.org>
58370
58371         * doc/gnulib.texi (String Functions in C Locale): New section.
58372         * doc/c-ctype.texi: New file.
58373         * doc/c-strcase.texi: New file.
58374         * doc/c-strcaseeq.texi: New file.
58375         * doc/c-strcasestr.texi: New file.
58376         * doc/c-strstr.texi: New file.
58377         * doc/c-strtod.texi: New file.
58378         * doc/c-strtold.texi: New file.
58379
58380 2008-01-10  Eric Blake  <ebb9@byu.net>
58381
58382         * lib/relocatable.h: Fix a comment.
58383
58384 2008-01-10  Eric Blake  <ebb9@byu.net>
58385
58386         Share two-way algorithm.
58387         * lib/str-two-way.h: New file, merged from...
58388         * lib/memmem.c: ...here...
58389         * lib/strstr.c: ...and here.
58390         * modules/memmem (Files): Use it.
58391         * modules/strstr (Files): Likewise.
58392
58393         Avoid quadratic strstr implementations.
58394         * lib/strstr.c: New file.
58395         * m4/strstr.m4: Likewise.
58396         * modules/strstr: Likewise.
58397         * modules/strstr-tests: Likewise.
58398         * tests/test-strstr.c: Likewise.
58399         * lib/string.in.h (rpl_strstr): Declare.
58400         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58401         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58402         * modules/string (Makefile.am): Likewise.
58403         * MODULES.html.sh (string handling): Mention new module.
58404         * doc/functions/strstr.texi (strstr): Document the bug.
58405
58406 2008-01-10  Bruno Haible  <bruno@clisp.org>
58407
58408         * lib/relocatable.h (relocate): State whether result is freshly
58409         allocated or not.
58410         * lib/relocatable.c (relocate): Return a freshly allocated string
58411         instead of a pointer to a privately held string.
58412         Reported by Sylvain Beucler <beuc@gnu.org>.
58413
58414 2008-01-10  Colin Watson  <cjwatson@debian.org>
58415
58416         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58417         s/S_ISNLK/S_ISLNK/.
58418
58419 2008-01-09  Bruno Haible  <bruno@clisp.org>
58420
58421         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58422         and other files.
58423         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58424         if it's only a guess.
58425         * modules/memmem: Simplify by depending on memmem-simple.
58426
58427 2008-01-09  Bruno Haible  <bruno@clisp.org>
58428
58429         Work around OpenBSD 4.0 tdelete() bug.
58430         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58431         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58432         macros and don't redefine the enum values.
58433         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58434         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58435         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58436
58437 2008-01-09  Bruno Haible  <bruno@clisp.org>
58438
58439         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58440         (main): Don't perform the tests if setlocale did not install a UTF-8
58441         locale. Needed on OpenBSD 4.0.
58442         * modules/wcwidth-tests (Depends-on): Add localcharset.
58443
58444 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58445
58446         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58447         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58448         * NEWS: announce this.
58449         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58450
58451 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58452         and Eric Blake  <ebb9@byu.net>
58453
58454         Add memmem-simple module.
58455         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58456         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58457         * modules/memmem-simple: New file.
58458         * modules/memmem (Description): Tweak.
58459         * MODULES.html.sh (string handling): Mention new module.
58460         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58461         addressed by memmem-simple.
58462         * NEWS: Document the difference.
58463
58464 2008-01-09  Eric Blake  <ebb9@byu.net>
58465
58466         Give gcc some memmem optimization hints.
58467         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58468         (strcasestr): Declare as pure.
58469         * modules/memmem (Maintainer): Claim my implementation.
58470
58471 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58472
58473         Support AIX 6.1 and higher.
58474         * build-aux/config.libpath: Likewise.
58475         * build-aux/config.rpath: Likewise.
58476
58477 2008-01-08  Jim Meyering  <meyering@redhat.com>
58478             Bruno Haible  <bruno@clisp.org>
58479
58480         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58481         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58482         Reported by Peter Fales in
58483         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58484
58485 2008-01-08  Bruno Haible  <bruno@clisp.org>
58486
58487         * modules/unictype/category-of (Depends-on): Add
58488         unictype/category-none.
58489         * modules/unictype/category-and-tests (Depends-on): Add
58490         unictype/category-{L,N,Lu,Nd}.
58491         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58492         * modules/unictype/category-or-tests (Depends-on): Add
58493         unictype/category-{L,N}.
58494         * modules/unictype/category-name-tests (Depends-on): Add
58495         unictype/category-{Z,Nl}.
58496         Reported by Simon Josefsson.
58497
58498 2008-01-08  Bruno Haible  <bruno@clisp.org>
58499
58500         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58501         convention better.
58502         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58503         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58504         Reported by Peter Miller <millerp@canb.auug.org.au>.
58505
58506 2008-01-08  Eric Blake  <ebb9@byu.net>
58507
58508         Rewrite memmem to guarantee linear complexity without malloc.
58509         * lib/memmem.c (memmem): Use Two-Way rather than
58510         Knuth-Morris-Pratt, to allow O(1) space usage.
58511         (critical_factorization, two_way_short_needle)
58512         (two_way_long_needle): New functions.
58513         (knuth_morris_pratt): Delete.
58514         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58515         Add stdint.
58516         * tests/test-memmem.c (main): Add tests for periodic needle and
58517         sublinear performance.
58518         * doc/functions/memmem.texi (memmem): Document other deficiencies
58519         in cygwin and older glibc.
58520
58521 2008-01-08  Bruno Haible  <bruno@clisp.org>
58522
58523         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58524         augmentation.
58525
58526 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58527
58528         Add a configure time option: --disable-acl.
58529         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58530         AC_ARG_ENABLE(acl).
58531
58532 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58533
58534         * tests/test-localename.c: Don't include obsolete "setenv.h".
58535
58536         * modules/localename-tests (Depends-on): Need unsetenv.
58537
58538 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58539
58540         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58541
58542 2008-01-06  Colin Watson  <cjwatson@debian.org>
58543
58544         * users.txt: Add man-db.
58545
58546 2008-01-07  Bruno Haible  <bruno@clisp.org>
58547
58548         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58549         previous section name.
58550
58551 2008-01-07  Bruno Haible  <bruno@clisp.org>
58552
58553         * lib/progname.c (set_program_name): Don't strip off a leading
58554         "lt-" prefix outside a .libs directory.
58555         Suggested by Paul Eggert.
58556
58557 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58558             Bruno Haible  <bruno@clisp.org>
58559
58560         Improve memory cleanup in 'relocatable' module.
58561         * lib/relocatable.h (compute_curr_prefix): Change return type to
58562         'char *'.
58563         * lib/relocatable.c (compute_curr_prefix): Change return type to
58564         'char *'. Free curr_installdir after use.
58565         (relocate): Free curr_prefix_better after use.
58566         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58567
58568 2008-01-01  Bruno Haible  <bruno@clisp.org>
58569
58570         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58571         failure on older glibc systems.
58572         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58573
58574 2008-01-05  Eric Blake  <ebb9@byu.net>
58575
58576         Avoid quadratic system memmem.
58577         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58578         Reported by Ralf Wildenhues.
58579
58580         Fix memmem test for mingw.
58581         * modules/memmem-tests (configure.ac): Check for alarm.
58582         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58583         it.
58584         * doc/functions/memmem.texi: New file.
58585         * doc/gnulib.texi (Function Substitutes): Add memmem.
58586         Reported by Bruno Haible.
58587
58588 2008-01-04  Bruno Haible  <bruno@clisp.org>
58589
58590         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58591         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58592         gl_HEADER_STRING_H_DEFAULTS.
58593
58594 2008-01-04  Eric Blake  <ebb9@byu.net>
58595
58596         Shorten duration of memmem test.
58597         * tests/test-memmem.c (main): Use alarm to declare failure if test
58598         is taking too long.
58599         Reported by Ralf Wildenhues.
58600
58601 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58602
58603         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58604         string, needed by strerror.
58605
58606 2008-01-03  Colin Watson  <cjwatson@debian.org>
58607             Bruno Haible  <bruno@clisp.org>
58608
58609         * doc/gnulib-tool.texi (Localization): New section.
58610
58611 2008-01-02  Bruno Haible  <bruno@clisp.org>
58612
58613         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58614         variables to 'unsigned char *' type.
58615         Reported by Paul Eggert.
58616
58617 2008-01-02  Jim Meyering  <jim@meyering.net>
58618
58619         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58620
58621 2007-12-31  Jim Meyering  <jim@meyering.net>
58622
58623         Avoid use of private FTS type name.
58624         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58625
58626 2007-12-30  Karl Berry  <karl@gnu.org>
58627
58628         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58629         work around defect in Texinfo and/or the standalone Info browser.
58630
58631 2007-12-30  Bruno Haible  <bruno@clisp.org>
58632
58633         Unify 5 copies of the KMP code.
58634         * lib/str-kmp.h: New file.
58635         * lib/c-strcasestr.c: Include str-kmp.h.
58636         (knuth_morris_pratt): Remove function.
58637         (c_strcasestr): Update.
58638         * lib/c-strstr.c: Include str-kmp.h.
58639         (knuth_morris_pratt): Remove function.
58640         (c_strcasestr): Update.
58641         * lib/mbscasestr.c: Include str-kmp.h.
58642         (knuth_morris_pratt_unibyte): Remove function.
58643         * lib/mbsstr.c: Include str-kmp.h.
58644         (knuth_morris_pratt_unibyte): Remove function.
58645         * lib/strcasestr.c: Include str-kmp.h.
58646         (knuth_morris_pratt): Remove function.
58647         (strcasestr): Update.
58648         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58649         * modules/c-strstr (Files): Likewise.
58650         * modules/mbscasestr (Files): Likewise.
58651         * modules/mbsstr (Files): Likewise.
58652         * modules/strcasestr (Files): Likewise.
58653         Suggested by Paul Eggert.
58654
58655 2007-12-30  Bruno Haible  <bruno@clisp.org>
58656
58657         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58658         defined.
58659
58660 2007-12-30  Bruno Haible  <bruno@clisp.org>
58661
58662         * lib/xmalloca.h: Include xalloc.h.
58663         (xnmalloca): New macro.
58664
58665 2007-12-30  Bruno Haible  <bruno@clisp.org>
58666
58667         * lib/malloca.h (nmalloca): New macro.
58668         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58669         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58670         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58671         knuth_morris_pratt_multibyte): Likewise.
58672         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58673         knuth_morris_pratt_multibyte): Likewise.
58674         * lib/memmem.c (knuth_morris_pratt): Likewise.
58675         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58676
58677 2007-12-25  Bruno Haible  <bruno@clisp.org>
58678
58679         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58680         * lib/glob.c: Don't include openat.h.
58681         (link_exists2_p): Add back the code that deals with the
58682         !GLOB_ALTDIRFUNC case.
58683         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58684         let it do the filename concatenation.
58685         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58686         * modules/glob (Depends-on): Remove openat.
58687
58688 2007-12-31  Bruno Haible  <bruno@clisp.org>
58689
58690         * modules/dirfd (License): Change to LGPLv2+.
58691         Approved by Jim Meyering.
58692
58693 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58694
58695         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58696         when multiplying M by sizeof (size_t).
58697
58698 2007-12-10  Martin Lambers  <marlam@marlam.de>
58699
58700         Override getpagesize on mingw.
58701         * lib/getpagesize.c: New file.
58702         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58703         * modules/getpagesize (Files): Add lib/getpagesize.c.
58704         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58706         REPLACE_GETPAGESIZE.
58707         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58708
58709 2007-12-25  Bruno Haible  <bruno@clisp.org>
58710
58711         * modules/localcharset (Notice): New field.
58712         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58713         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58714
58715 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58716             Bruno Haible  <bruno@clisp.org>
58717
58718         Avoid using the syntax symbol() in formatted documentation.
58719         * MODULES.html.sh (func_module): When replacing symbol() with a
58720         hyperlink, remove the parentheses. Show an error if some remain.
58721         Recognize and render the '...' syntax.
58722         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58723         Rework. Add paragraph about GCC's inlining.
58724         * doc/alloca.texi: Likewise.
58725         * doc/error.texi: Remove parentheses from symbol reference.
58726         * doc/gnulib-intro.texi: Likewise.
58727         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58728         * modules/fnmatch (Description): Reword to say "the ... function".
58729         * modules/full-read (Description): Likewise.
58730         * modules/full-write (Description): Likewise.
58731         * modules/safe-read (Description): Likewise.
58732         * modules/safe-write (Description): Likewise.
58733         * modules/strchrnul (Description): Likewise.
58734         * modules/trim (Description): Likewise.
58735         * modules/error (Description): Remove parentheses from symbol
58736         references.
58737         * modules/verror (Description): Likewise.
58738         Reported by Karl Berry.
58739
58740 2007-12-25  Bruno Haible  <bruno@clisp.org>
58741
58742         Fixup after 2007-10-16 commit.
58743         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58744
58745 2007-12-24  Bruno Haible  <bruno@clisp.org>
58746
58747         Make --enable-relocatable work with DESTDIR.
58748         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58749         to compute installdir from destprog.
58750         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58751         also set the RELOC_DESTDIR variable.
58752         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58753
58754 2007-12-24  Bruno Haible  <bruno@clisp.org>
58755
58756         Fix link error due to xalloc_die().
58757         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58758         of xreadlink.
58759         * lib/relocwrapper.c: Update comments.
58760         * build-aux/install-reloc: Remove xreadlink.c from file list.
58761         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58762         xreadlink.c.
58763         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58764
58765 2007-12-24  Bruno Haible  <bruno@clisp.org>
58766
58767         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58768         * lib/setenv.h: Remove file.
58769         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58770         lib/setenv.h.
58771         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58772         (Depends-on): Add stdlib.
58773         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58774         gl_FUNC_UNSETENV.
58775         (Include): Replace setenv.h with <stdlib.h>.
58776         * modules/unsetenv: New file.
58777         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58778         * lib/unsetenv.c: Include <stdlib.h> first.
58779         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58780         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58781         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58782         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58783         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58784         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58786         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58787         * doc/functions/unsetenv.texi: Update.
58788         * modules/xsetenv (Depends-on): Add unsetenv.
58789         * modules/getdate (Depends-on): Likewise.
58790         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58791         * lib/xsetenv.c: Don't include setenv.h.
58792         * lib/getdate.y: Likewise.
58793         * lib/relocwrapper.c: Likewise.
58794         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58795         (Depends-on): Add stdlib.
58796         * NEWS: Mention the changes.
58797         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58798
58799 2007-12-23  Bruno Haible  <bruno@clisp.org>
58800
58801         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58802         indentation.
58803
58804 2007-12-23  Bruno Haible  <bruno@clisp.org>
58805
58806         * lib/c-strcasestr.c: Add more comments.
58807         * lib/c-strstr.c: Likewise.
58808         * lib/mbscasestr.c: Likewise.
58809         * lib/mbsstr.c: Likewise.
58810         * lib/strcasestr.c: Likewise.
58811         * lib/memmem.c: Likewise.
58812
58813 2007-12-23  Bruno Haible  <bruno@clisp.org>
58814
58815         * tests/test-memmem.c: Include <string.h> first.
58816
58817 2007-12-22  Bruno Haible  <bruno@clisp.org>
58818
58819         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58820         the contents of $testsbase.
58821         Reported by Ralf Wildenhues.
58822
58823 2007-12-22  Bruno Haible  <bruno@clisp.org>
58824
58825         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58826         two variables local_ldadd_before, local_ldadd_last.
58827
58828 2007-12-20  Eric Blake  <ebb9@byu.net>
58829
58830         Work around circular library issue when cross-compiling.
58831         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58832         that progname.o does not need to pull in rpl_memcmp.
58833
58834 2007-12-19  Eric Blake  <ebb9@byu.net>
58835
58836         Fix memmem to avoid O(n^2) worst-case complexity.
58837         * lib/memmem.c (knuth_morris_pratt): New function.
58838         (memmem): Use it if first few naive iterations fail.
58839         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58840         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58841         * modules/memchr (License): Likewise.
58842         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58843         malloca.
58844         * tests/test-memmem.c: Rewrite, borrowing ideas from
58845         test-mbsstr1.c; the old version wouldn't even compile!
58846         * modules/memmem-tests: New file.
58847         * lib/string.in.h (rpl_memmem): Add declaration.
58848         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58850         REPLACE_MEMMEM.
58851
58852 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58853
58854         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58855         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58856         before any system include files, and undef after them all.  This
58857         should fix a problem on VMS reported by John E. Malmberg in
58858         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58859
58860 2007-12-17  Eric Blake  <ebb9@byu.net>
58861
58862         Revert addition of verify, for BSD/OS.
58863         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58864         can't handle large files, for the sake of obsolete platforms.
58865         * modules/fseeko (Depends-on): Remove verify.
58866         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58867         * doc/functions/ftello.texi (ftello): Likewise.
58868         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58869         Reported by Larry Jones.
58870
58871 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58872
58873         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58874         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58875
58876 2007-12-17  Jim Meyering  <meyering@redhat.com>
58877
58878         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58879         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58880         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58881         * modules/getcwd (Depends-on): Add openat.
58882         Reported by Petr Salinger.
58883
58884 2007-12-17  Bruno Haible  <bruno@clisp.org>
58885
58886         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58887         avoid a segmentation fault of the configure test on x86_64 systems.
58888
58889 2007-12-15  Jim Meyering  <meyering@redhat.com>
58890
58891         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58892
58893 2007-12-13  Eric Blake  <ebb9@byu.net>
58894
58895         Another fseek test.
58896         * tests/test-fseek.c (main): Also test ungetc handling.
58897         * tests/test-fseeko.c (main): Likewise.
58898         * modules/fseeko (Depends-on): Add verify.
58899         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58900         large.
58901         Reported by Larry Jones.
58902
58903         Fix fseeko on mingw.
58904         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58905         seek.
58906
58907         Beef up fseek tests.
58908         * tests/test-fseek.c (main): Also test eof handling.
58909         * tests/test-fseeko.c (main): Likewise.
58910         Reported by Larry Jones.
58911
58912 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58913
58914         Fix fseeko on BSD-based platforms.
58915         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58916         successful seek.
58917
58918 2007-12-12  Eric Blake  <ebb9@byu.net>
58919
58920         Allow circular dependency of separate libtests.a
58921         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58922         when use_libtests.
58923
58924 2007-12-11  Eric Blake  <ebb9@byu.net>
58925
58926         Fix bug with -0.0L in previous patch.
58927         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58928         * tests/test-isnan.c (main): Also test on zeroes.
58929         * tests/test-isnanf.c (main): Likewise.
58930         * tests/test-isnanl.h (main): Likewise.
58931
58932         Detect pseudo-denormals on x86 even when cross-compiling.
58933         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58934         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58935         invalid bit patterns that happen to satisfy ==.
58936
58937         Avoid link failures with separate libtests.a.
58938         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58939         last, to satisfy circular dependencies.
58940
58941 2007-12-11  Eric Blake  <ebb9@byu.net>
58942         and Bruno Haible  <bruno@clisp.org>
58943
58944         Fix OpenBSD 4.0 <float.h> handling of long double.
58945         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58946         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58947         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58948
58949 2007-12-11  Jim Meyering  <meyering@redhat.com>
58950
58951         * users.txt: Add libvirt.
58952
58953         Support versions of autoconf prior to 2.59c.
58954         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58955         if it is not already defined.
58956
58957 2007-12-09  Bruno Haible  <bruno@clisp.org>
58958
58959         Let 'gnulib-tool --import' collect sources needed for the tests in
58960         tests/ rather than in lib/.
58961         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58962         argument. If true, add rules to generate libtests.a, and put libtests.a
58963         into $(LDADD). Consider source files in subdirectories and set
58964         uses_subdirs.
58965         (func_emit_initmacro_start, func_emit_initmacro_end,
58966         func_emit_initmacro_done): Pass all arguments explicitly.
58967         (func_import): Determine two module lists main_modules,
58968         testsrelated_modules. Determine use_libtests. Determine two variables
58969         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58970         instead of just sed_transform_lib_file. Determine two variables
58971         main_files and testsrelated_files. Compute 'files' as the union of
58972         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58973         func_add_or_update. In the generated gnulib-comp.m4, collect the
58974         object files for tests/ in different variables than those for lib/.
58975         Substitute LIBTESTS_LIBDEPS.
58976         (func_create_testdir): Combine the uses_subdirs results from
58977         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58978
58979 2007-12-09  Bruno Haible  <bruno@clisp.org>
58980
58981         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58982         the build-aux directory.
58983
58984 2007-12-09  Bruno Haible  <bruno@clisp.org>
58985
58986         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58987         introduced on 2006-09-09.
58988
58989 2007-12-07  Jim Meyering  <meyering@redhat.com>
58990
58991         Let these macros work also with autoconf-2.59.
58992         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58993         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58994         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58995
58996 2007-12-06  Jim Meyering  <meyering@redhat.com>
58997
58998         Avoid a configure-time syntax error in gl_FUNC_ACL.
58999         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59000         function in each branch, before testing the cache variable.
59001
59002 2007-12-04  Eric Blake  <ebb9@byu.net>
59003
59004         Make scripts executable.
59005         * build-aux/config.guess: Add execute permissions.
59006         * build-aux/config.sub: Likewise.
59007         * build-aux/gendocs.sh: Likewise.
59008
59009         Fix frexp on mingw.
59010         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59011         cross-compiling.
59012         * doc/functions/frexp.texi (frexp): Document the bug.
59013
59014         Make cygwin fseeko check more reliable.
59015         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59016         version numbers, rather than unrelated feature check.
59017         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59018         * doc/functions/ftello.texi (ftello): Likewise.
59019         Reported by Bruno Haible.
59020
59021         * m4/strerror.m4: Bump version number.
59022
59023 2007-12-03  Bruno Haible  <bruno@clisp.org>
59024
59025         * doc/functions/mprotect.texi: Mention the mingw problem.
59026
59027 2007-12-03  Eric Blake  <ebb9@byu.net>
59028
59029         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59030         REPLACE_STRERROR is initialized before this macro.
59031
59032 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59033
59034         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59035         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59036         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59037         put -lsec in even for programs other than 'ls'.  This fixes a problem
59038         for gettext reported by Bruno Haible in
59039         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59040         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59041         Add support for Solaris 10.  This isn't efficient, but should get the
59042         job done for now.
59043
59044 2007-12-03  James Youngman  <jay@gnu.org>
59045
59046         * doc/regexprops-generic.texi: change "an close-group" to "a
59047         close-group" and "illegal" to "not allowed".
59048
59049 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59050
59051         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59052         pr_byname.h. Needed for the rare case when the maintainer has done
59053         "make maintainer-clean" in the source directory and then attempts a
59054         build outside the source directory.
59055         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59056         scripts_byname.h.
59057
59058 2007-12-02  Martin Lambers <marlam@marlam.de>
59059             Bruno Haible  <bruno@clisp.org>
59060
59061         * lib/getpagesize.h: Remove file.
59062         * lib/unistd.in.h: Include declaration of getpagesize here.
59063         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59064         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59065         HAVE_SYS_PARAM_H.
59066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59067         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59068         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59069         (Depends-on): Add unistd.
59070         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59071         (Include): Use <unistd.h> instead of getpagesize.h.
59072         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59073         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59074         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59075         gl_GETPAGESIZE invocation, already handled by module dependency.
59076         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59077
59078 2007-12-02  Bruno Haible  <bruno@clisp.org>
59079
59080         * modules/strings-tests: New file.
59081         * tests/test-strings.c: New file.
59082
59083         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59084         * lib/strings.in.h: New file.
59085         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59086         * m4/strings_h.m4: New file.
59087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59088         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59089         * modules/strings: New file.
59090         * modules/string (Makefile.am): Update.
59091         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59092         Reported by Karl Berry.
59093
59094 2007-12-01  Eric Blake  <ebb9@byu.net>
59095
59096         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59097         accomodate fix in cygwin 1.5.25.
59098
59099 2007-12-01  Jim Meyering  <meyering@redhat.com>
59100
59101         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59102         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59103         that would inhibit utf8-optimization of a regexp containing line-
59104         or buffer-anchors, e.g., `^', `$'.
59105
59106 2007-11-30  Bruno Haible  <bruno@clisp.org>
59107
59108         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59109         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59110         glthread_recursive_lock_init.
59111         * lib/lock.c (glthread_recursive_lock_init)
59112         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59113         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59114
59115 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59116
59117         New function qset_acl, like set_acl but with syscall semantics.
59118         * lib/acl.h (qset_acl): New decl.
59119         * lib/acl.c (qset_acl): New function.
59120         (set_acl): Use new function.  Use more-consistent diagnostics.
59121
59122 2007-11-28  Jim Meyering  <meyering@redhat.com>
59123
59124         * modules/physmem (License): Change from GPL to LGPLv2+.
59125
59126 2007-11-26  Bruno Haible  <bruno@clisp.org>
59127
59128         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59129         'long double' type has excess precision.
59130         Reported by Jim Meyering in
59131         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59132
59133 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59134
59135         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59136         Sync from <http://gnu.org/licenses>.
59137         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59138         with license text from same location.
59139         * doc/maintain.texi, doc/standards.texi:  Sync from
59140         <http://savannah.gnu.org/projects/gnustandards>.
59141
59142 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59143         and Jim Meyering  <meyering@redhat.com>
59144
59145         Adjust getdate' grammar to accept a slightly more regular language.
59146         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59147         Before, the former was rejected.
59148         * lib/getdate.y (digits_to_date_time): New function, factored
59149         out of ...
59150         (number): ...here.  Just call digits_to_date_time.
59151         (hybrid): New non-terminal to handle an <unsigned number,
59152         signed relative offset> sequence consistently.
59153
59154 2007-11-18  Jim Meyering  <meyering@redhat.com>
59155
59156         Pull my changes from coreutils:
59157         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59158         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59159         use of $gnulib_tool_option_extras, so that it's separated from the
59160         preceding argument.
59161
59162         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59163         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59164         parent destination directories before copying a file into place.
59165
59166 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59167
59168         bootstrap: work also with 4-argument variant of AC_INIT
59169         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59170
59171 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59172
59173         Port test-getaddrinfo to Solaris.
59174         Problem reported by Bruno Haible in
59175         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59176         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59177         explanation of setting 'hints'.
59178         Don't reject an implementation merely because it returns EAI_SERVICE.
59179         (EAI_SERVICE): Define to 0 if not defined.
59180
59181 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59182
59183         The license of gnu-make and posix-shell is now "GPLed build tool".
59184         * modules/gnu-make (License): Likewise.
59185         * modules/posix-shell (License): Likewise.
59186
59187         New module posix-shell, for determining a POSIX shell
59188         or perhaps something that is close enough to a POSIX shell.
59189         * m4/posix-shell.m4: New file.
59190         * modules/posix-shell: New file.
59191
59192         * MODULES.html.sh: Mention new module.
59193
59194         New module gnu-make, for determining whether we're using GNU Make.
59195         * m4/gnu-make.m4: New file.
59196         * modules/gnu-make: New file.
59197         * MODULES.html.sh: Mention new module.
59198
59199 2007-11-14  Jim Meyering  <meyering@redhat.com>
59200
59201         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59202         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59203         use this macro to create a function _definition_.
59204         Remove useless "#undef ARGMATCH_DIE".
59205
59206 2007-11-14  Bruno Haible  <bruno@clisp.org>
59207
59208         * lib/config.charset: Update for OpenBSD 4.1.
59209         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59210
59211 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59212
59213         Document 64-bit #if problems in stdint.texi.
59214         * doc/headers/stdint.texi (stdint.h): Mention problems with
59215         64-bit-#if, and how to work around them.
59216
59217         Don't insist on 'long long int' support in the preprocessor.  It
59218         breaks too many things.  For example, PRIdMAX still uses a 'long
59219         long int' format with the latest Sun compiler, even though
59220         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59221         preprocessor problem.  This causes the latest coreutils to dump
59222         core on Solaris 10 sparc with the Sun C compiler.
59223         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59224         the troublesome expressions at configure-time, not at #if-time.
59225         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59226         preprocessor.
59227         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59228         compile-time C checks, done at 'configure'-time.
59229         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59230         * modules/inttypes (Makefile): Substitute the new symbols that
59231         gl_INTTYPES_H now generates.
59232         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59233
59234 2007-11-12  Bruno Haible  <bruno@clisp.org>
59235
59236         Tests for Unicode character classification functions.
59237
59238         * modules/unictype/bidicategory-byname-tests: New file.
59239         * modules/unictype/bidicategory-name-tests: New file.
59240         * modules/unictype/bidicategory-of-tests: New file.
59241         * modules/unictype/bidicategory-test-tests: New file.
59242         * modules/unictype/block-list-tests: New file.
59243         * modules/unictype/block-of-tests: New file.
59244         * modules/unictype/block-test-tests: New file.
59245         * modules/unictype/category-C-tests: New file.
59246         * modules/unictype/category-Cc-tests: New file.
59247         * modules/unictype/category-Cf-tests: New file.
59248         * modules/unictype/category-Cn-tests: New file.
59249         * modules/unictype/category-Co-tests: New file.
59250         * modules/unictype/category-Cs-tests: New file.
59251         * modules/unictype/category-L-tests: New file.
59252         * modules/unictype/category-Ll-tests: New file.
59253         * modules/unictype/category-Lm-tests: New file.
59254         * modules/unictype/category-Lo-tests: New file.
59255         * modules/unictype/category-Lt-tests: New file.
59256         * modules/unictype/category-Lu-tests: New file.
59257         * modules/unictype/category-M-tests: New file.
59258         * modules/unictype/category-Mc-tests: New file.
59259         * modules/unictype/category-Me-tests: New file.
59260         * modules/unictype/category-Mn-tests: New file.
59261         * modules/unictype/category-N-tests: New file.
59262         * modules/unictype/category-Nd-tests: New file.
59263         * modules/unictype/category-Nl-tests: New file.
59264         * modules/unictype/category-No-tests: New file.
59265         * modules/unictype/category-P-tests: New file.
59266         * modules/unictype/category-Pc-tests: New file.
59267         * modules/unictype/category-Pd-tests: New file.
59268         * modules/unictype/category-Pe-tests: New file.
59269         * modules/unictype/category-Pf-tests: New file.
59270         * modules/unictype/category-Pi-tests: New file.
59271         * modules/unictype/category-Po-tests: New file.
59272         * modules/unictype/category-Ps-tests: New file.
59273         * modules/unictype/category-S-tests: New file.
59274         * modules/unictype/category-Sc-tests: New file.
59275         * modules/unictype/category-Sk-tests: New file.
59276         * modules/unictype/category-Sm-tests: New file.
59277         * modules/unictype/category-So-tests: New file.
59278         * modules/unictype/category-Z-tests: New file.
59279         * modules/unictype/category-Zl-tests: New file.
59280         * modules/unictype/category-Zp-tests: New file.
59281         * modules/unictype/category-Zs-tests: New file.
59282         * modules/unictype/category-and-not-tests: New file.
59283         * modules/unictype/category-and-tests: New file.
59284         * modules/unictype/category-byname-tests: New file.
59285         * modules/unictype/category-name-tests: New file.
59286         * modules/unictype/category-none-tests: New file.
59287         * modules/unictype/category-of-tests: New file.
59288         * modules/unictype/category-or-tests: New file.
59289         * modules/unictype/category-test-withtable-tests: New file.
59290         * modules/unictype/combining-class-tests: New file.
59291         * modules/unictype/ctype-alnum-tests: New file.
59292         * modules/unictype/ctype-alpha-tests: New file.
59293         * modules/unictype/ctype-blank-tests: New file.
59294         * modules/unictype/ctype-cntrl-tests: New file.
59295         * modules/unictype/ctype-digit-tests: New file.
59296         * modules/unictype/ctype-graph-tests: New file.
59297         * modules/unictype/ctype-lower-tests: New file.
59298         * modules/unictype/ctype-print-tests: New file.
59299         * modules/unictype/ctype-punct-tests: New file.
59300         * modules/unictype/ctype-space-tests: New file.
59301         * modules/unictype/ctype-upper-tests: New file.
59302         * modules/unictype/ctype-xdigit-tests: New file.
59303         * modules/unictype/decimal-digit-tests: New file.
59304         * modules/unictype/digit-tests: New file.
59305         * modules/unictype/mirror-tests: New file.
59306         * modules/unictype/numeric-tests: New file.
59307         * modules/unictype/property-alphabetic-tests: New file.
59308         * modules/unictype/property-ascii-hex-digit-tests: New file.
59309         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59310         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59311         * modules/unictype/property-bidi-block-separator-tests: New file.
59312         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59313         * modules/unictype/property-bidi-common-separator-tests: New file.
59314         * modules/unictype/property-bidi-control-tests: New file.
59315         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59316         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59317         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59318         * modules/unictype/property-bidi-european-digit-tests: New file.
59319         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59320         * modules/unictype/property-bidi-left-to-right-tests: New file.
59321         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59322         * modules/unictype/property-bidi-other-neutral-tests: New file.
59323         * modules/unictype/property-bidi-pdf-tests: New file.
59324         * modules/unictype/property-bidi-segment-separator-tests: New file.
59325         * modules/unictype/property-bidi-whitespace-tests: New file.
59326         * modules/unictype/property-byname-tests: New file.
59327         * modules/unictype/property-combining-tests: New file.
59328         * modules/unictype/property-composite-tests: New file.
59329         * modules/unictype/property-currency-symbol-tests: New file.
59330         * modules/unictype/property-dash-tests: New file.
59331         * modules/unictype/property-decimal-digit-tests: New file.
59332         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59333         * modules/unictype/property-deprecated-tests: New file.
59334         * modules/unictype/property-diacritic-tests: New file.
59335         * modules/unictype/property-extender-tests: New file.
59336         * modules/unictype/property-format-control-tests: New file.
59337         * modules/unictype/property-grapheme-base-tests: New file.
59338         * modules/unictype/property-grapheme-extend-tests: New file.
59339         * modules/unictype/property-grapheme-link-tests: New file.
59340         * modules/unictype/property-hex-digit-tests: New file.
59341         * modules/unictype/property-hyphen-tests: New file.
59342         * modules/unictype/property-id-continue-tests: New file.
59343         * modules/unictype/property-id-start-tests: New file.
59344         * modules/unictype/property-ideographic-tests: New file.
59345         * modules/unictype/property-ids-binary-operator-tests: New file.
59346         * modules/unictype/property-ids-trinary-operator-tests: New file.
59347         * modules/unictype/property-ignorable-control-tests: New file.
59348         * modules/unictype/property-iso-control-tests: New file.
59349         * modules/unictype/property-join-control-tests: New file.
59350         * modules/unictype/property-left-of-pair-tests: New file.
59351         * modules/unictype/property-line-separator-tests: New file.
59352         * modules/unictype/property-logical-order-exception-tests: New file.
59353         * modules/unictype/property-lowercase-tests: New file.
59354         * modules/unictype/property-math-tests: New file.
59355         * modules/unictype/property-non-break-tests: New file.
59356         * modules/unictype/property-not-a-character-tests: New file.
59357         * modules/unictype/property-numeric-tests: New file.
59358         * modules/unictype/property-other-alphabetic-tests: New file.
59359         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59360         * modules/unictype/property-other-grapheme-extend-tests: New file.
59361         * modules/unictype/property-other-id-continue-tests: New file.
59362         * modules/unictype/property-other-id-start-tests: New file.
59363         * modules/unictype/property-other-lowercase-tests: New file.
59364         * modules/unictype/property-other-math-tests: New file.
59365         * modules/unictype/property-other-uppercase-tests: New file.
59366         * modules/unictype/property-paired-punctuation-tests: New file.
59367         * modules/unictype/property-paragraph-separator-tests: New file.
59368         * modules/unictype/property-pattern-syntax-tests: New file.
59369         * modules/unictype/property-pattern-white-space-tests: New file.
59370         * modules/unictype/property-private-use-tests: New file.
59371         * modules/unictype/property-punctuation-tests: New file.
59372         * modules/unictype/property-quotation-mark-tests: New file.
59373         * modules/unictype/property-radical-tests: New file.
59374         * modules/unictype/property-sentence-terminal-tests: New file.
59375         * modules/unictype/property-soft-dotted-tests: New file.
59376         * modules/unictype/property-space-tests: New file.
59377         * modules/unictype/property-terminal-punctuation-tests: New file.
59378         * modules/unictype/property-test-tests: New file.
59379         * modules/unictype/property-titlecase-tests: New file.
59380         * modules/unictype/property-unassigned-code-value-tests: New file.
59381         * modules/unictype/property-unified-ideograph-tests: New file.
59382         * modules/unictype/property-uppercase-tests: New file.
59383         * modules/unictype/property-variation-selector-tests: New file.
59384         * modules/unictype/property-white-space-tests: New file.
59385         * modules/unictype/property-xid-continue-tests: New file.
59386         * modules/unictype/property-xid-start-tests: New file.
59387         * modules/unictype/property-zero-width-tests: New file.
59388         * modules/unictype/scripts-tests: New file.
59389         * modules/unictype/syntax-c-ident-tests: New file.
59390         * modules/unictype/syntax-c-whitespace-tests: New file.
59391         * modules/unictype/syntax-java-ident-tests: New file.
59392         * modules/unictype/syntax-java-whitespace-tests: New file.
59393         * tests/unictype/test-bidi_byname.c: New file.
59394         * tests/unictype/test-bidi_name.c: New file.
59395         * tests/unictype/test-bidi_of.c: New file.
59396         * tests/unictype/test-bidi_test.c: New file.
59397         * tests/unictype/test-block_list.c: New file.
59398         * tests/unictype/test-block_of.c: New file.
59399         * tests/unictype/test-block_test.c: New file.
59400         * tests/unictype/test-categ_and.c: New file.
59401         * tests/unictype/test-categ_and_not.c: New file.
59402         * tests/unictype/test-categ_byname.c: New file.
59403         * tests/unictype/test-categ_name.c: New file.
59404         * tests/unictype/test-categ_none.c: New file.
59405         * tests/unictype/test-categ_of.c: New file.
59406         * tests/unictype/test-categ_or.c: New file.
59407         * tests/unictype/test-categ_test_withtable.c: New file.
59408         * tests/unictype/test-combining.c: New file.
59409         * tests/unictype/test-decdigit.c: New file.
59410         * tests/unictype/test-digit.c: New file.
59411         * tests/unictype/test-mirror.c: New file.
59412         * tests/unictype/test-numeric.c: New file.
59413         * tests/unictype/test-pr_byname.c: New file.
59414         * tests/unictype/test-pr_test.c: New file.
59415         * tests/unictype/test-predicate-part1.h: New file.
59416         * tests/unictype/test-predicate-part2.h: New file.
59417         * tests/unictype/test-scripts.c: New file.
59418         * tests/unictype/test-sy_c_ident.c: New file.
59419         * tests/unictype/test-sy_java_ident.c: New file.
59420
59421         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59422         for Unicode 5.0.0.
59423         * tests/unictype/test-categ_Cc.c: Likewise.
59424         * tests/unictype/test-categ_Cf.c: Likewise.
59425         * tests/unictype/test-categ_Cn.c: Likewise.
59426         * tests/unictype/test-categ_Co.c: Likewise.
59427         * tests/unictype/test-categ_Cs.c: Likewise.
59428         * tests/unictype/test-categ_L.c: Likewise.
59429         * tests/unictype/test-categ_Ll.c: Likewise.
59430         * tests/unictype/test-categ_Lm.c: Likewise.
59431         * tests/unictype/test-categ_Lo.c: Likewise.
59432         * tests/unictype/test-categ_Lt.c: Likewise.
59433         * tests/unictype/test-categ_Lu.c: Likewise.
59434         * tests/unictype/test-categ_M.c: Likewise.
59435         * tests/unictype/test-categ_Mc.c: Likewise.
59436         * tests/unictype/test-categ_Me.c: Likewise.
59437         * tests/unictype/test-categ_Mn.c: Likewise.
59438         * tests/unictype/test-categ_N.c: Likewise.
59439         * tests/unictype/test-categ_Nd.c: Likewise.
59440         * tests/unictype/test-categ_Nl.c: Likewise.
59441         * tests/unictype/test-categ_No.c: Likewise.
59442         * tests/unictype/test-categ_P.c: Likewise.
59443         * tests/unictype/test-categ_Pc.c: Likewise.
59444         * tests/unictype/test-categ_Pd.c: Likewise.
59445         * tests/unictype/test-categ_Pe.c: Likewise.
59446         * tests/unictype/test-categ_Pf.c: Likewise.
59447         * tests/unictype/test-categ_Pi.c: Likewise.
59448         * tests/unictype/test-categ_Po.c: Likewise.
59449         * tests/unictype/test-categ_Ps.c: Likewise.
59450         * tests/unictype/test-categ_S.c: Likewise.
59451         * tests/unictype/test-categ_Sc.c: Likewise.
59452         * tests/unictype/test-categ_Sk.c: Likewise.
59453         * tests/unictype/test-categ_Sm.c: Likewise.
59454         * tests/unictype/test-categ_So.c: Likewise.
59455         * tests/unictype/test-categ_Z.c: Likewise.
59456         * tests/unictype/test-categ_Zl.c: Likewise.
59457         * tests/unictype/test-categ_Zp.c: Likewise.
59458         * tests/unictype/test-categ_Zs.c: Likewise.
59459         * tests/unictype/test-ctype_alnum.c: Likewise.
59460         * tests/unictype/test-ctype_alpha.c: Likewise.
59461         * tests/unictype/test-ctype_blank.c: Likewise.
59462         * tests/unictype/test-ctype_cntrl.c: Likewise.
59463         * tests/unictype/test-ctype_digit.c: Likewise.
59464         * tests/unictype/test-ctype_graph.c: Likewise.
59465         * tests/unictype/test-ctype_lower.c: Likewise.
59466         * tests/unictype/test-ctype_print.c: Likewise.
59467         * tests/unictype/test-ctype_punct.c: Likewise.
59468         * tests/unictype/test-ctype_space.c: Likewise.
59469         * tests/unictype/test-ctype_upper.c: Likewise.
59470         * tests/unictype/test-ctype_xdigit.c: Likewise.
59471         * tests/unictype/test-decdigit.h: Likewise.
59472         * tests/unictype/test-digit.h: Likewise.
59473         * tests/unictype/test-numeric.h: Likewise.
59474         * tests/unictype/test-pr_alphabetic.c: Likewise.
59475         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59476         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59477         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59478         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59479         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59480         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59481         * tests/unictype/test-pr_bidi_control.c: Likewise.
59482         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59483         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59484         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59485         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59486         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59487         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59488         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59489         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59490         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59491         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59492         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59493         * tests/unictype/test-pr_combining.c: Likewise.
59494         * tests/unictype/test-pr_composite.c: Likewise.
59495         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59496         * tests/unictype/test-pr_dash.c: Likewise.
59497         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59498         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59499         * tests/unictype/test-pr_deprecated.c: Likewise.
59500         * tests/unictype/test-pr_diacritic.c: Likewise.
59501         * tests/unictype/test-pr_extender.c: Likewise.
59502         * tests/unictype/test-pr_format_control.c: Likewise.
59503         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59504         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59505         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59506         * tests/unictype/test-pr_hex_digit.c: Likewise.
59507         * tests/unictype/test-pr_hyphen.c: Likewise.
59508         * tests/unictype/test-pr_id_continue.c: Likewise.
59509         * tests/unictype/test-pr_id_start.c: Likewise.
59510         * tests/unictype/test-pr_ideographic.c: Likewise.
59511         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59512         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59513         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59514         * tests/unictype/test-pr_iso_control.c: Likewise.
59515         * tests/unictype/test-pr_join_control.c: Likewise.
59516         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59517         * tests/unictype/test-pr_line_separator.c: Likewise.
59518         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59519         * tests/unictype/test-pr_lowercase.c: Likewise.
59520         * tests/unictype/test-pr_math.c: Likewise.
59521         * tests/unictype/test-pr_non_break.c: Likewise.
59522         * tests/unictype/test-pr_not_a_character.c: Likewise.
59523         * tests/unictype/test-pr_numeric.c: Likewise.
59524         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59525         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59526         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59527         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59528         * tests/unictype/test-pr_other_id_start.c: Likewise.
59529         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59530         * tests/unictype/test-pr_other_math.c: Likewise.
59531         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59532         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59533         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59534         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59535         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59536         * tests/unictype/test-pr_private_use.c: Likewise.
59537         * tests/unictype/test-pr_punctuation.c: Likewise.
59538         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59539         * tests/unictype/test-pr_radical.c: Likewise.
59540         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59541         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59542         * tests/unictype/test-pr_space.c: Likewise.
59543         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59544         * tests/unictype/test-pr_titlecase.c: Likewise.
59545         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59546         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59547         * tests/unictype/test-pr_uppercase.c: Likewise.
59548         * tests/unictype/test-pr_variation_selector.c: Likewise.
59549         * tests/unictype/test-pr_white_space.c: Likewise.
59550         * tests/unictype/test-pr_xid_continue.c: Likewise.
59551         * tests/unictype/test-pr_xid_start.c: Likewise.
59552         * tests/unictype/test-pr_zero_width.c: Likewise.
59553         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59554         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59555
59556 2007-11-12  Bruno Haible  <bruno@clisp.org>
59557
59558         Unicode character classification functions.
59559         * lib/unictype.h: New file.
59560         * modules/unictype/base: New file.
59561         * modules/unictype/category-L: New file.
59562         * modules/unictype/category-Lu: New file.
59563         * modules/unictype/category-Ll: New file.
59564         * modules/unictype/category-Lt: New file.
59565         * modules/unictype/category-Lm: New file.
59566         * modules/unictype/category-Lo: New file.
59567         * modules/unictype/category-M: New file.
59568         * modules/unictype/category-Mn: New file.
59569         * modules/unictype/category-Mc: New file.
59570         * modules/unictype/category-Me: New file.
59571         * modules/unictype/category-N: New file.
59572         * modules/unictype/category-Nd: New file.
59573         * modules/unictype/category-Nl: New file.
59574         * modules/unictype/category-No: New file.
59575         * modules/unictype/category-P: New file.
59576         * modules/unictype/category-Pc: New file.
59577         * modules/unictype/category-Pd: New file.
59578         * modules/unictype/category-Ps: New file.
59579         * modules/unictype/category-Pe: New file.
59580         * modules/unictype/category-Pi: New file.
59581         * modules/unictype/category-Pf: New file.
59582         * modules/unictype/category-Po: New file.
59583         * modules/unictype/category-S: New file.
59584         * modules/unictype/category-Sm: New file.
59585         * modules/unictype/category-Sc: New file.
59586         * modules/unictype/category-Sk: New file.
59587         * modules/unictype/category-So: New file.
59588         * modules/unictype/category-Z: New file.
59589         * modules/unictype/category-Zs: New file.
59590         * modules/unictype/category-Zl: New file.
59591         * modules/unictype/category-Zp: New file.
59592         * modules/unictype/category-C: New file.
59593         * modules/unictype/category-Cc: New file.
59594         * modules/unictype/category-Cf: New file.
59595         * modules/unictype/category-Cs: New file.
59596         * modules/unictype/category-Co: New file.
59597         * modules/unictype/category-Cn: New file.
59598         * modules/unictype/category-or: New file.
59599         * modules/unictype/category-of: New file.
59600         * modules/unictype/category-test: New file.
59601         * modules/unictype/category-test-withtable: New file.
59602         * modules/unictype/category-byname: New file.
59603         * modules/unictype/category-none: New file.
59604         * modules/unictype/category-and: New file.
59605         * modules/unictype/category-and-not: New file.
59606         * modules/unictype/category-name: New file.
59607         * modules/unictype/combining-class: New file.
59608         * modules/unictype/category-all: New file.
59609         * modules/unictype/bidicategory-all: New file.
59610         * modules/unictype/bidicategory-byname: New file.
59611         * modules/unictype/bidicategory-name: New file.
59612         * modules/unictype/bidicategory-of: New file.
59613         * modules/unictype/bidicategory-test: New file.
59614         * modules/unictype/decimal-digit: New file.
59615         * modules/unictype/digit: New file.
59616         * modules/unictype/numeric: New file.
59617         * modules/unictype/mirror: New file.
59618         * modules/unictype/property-white-space: New file.
59619         * modules/unictype/property-alphabetic: New file.
59620         * modules/unictype/property-other-alphabetic: New file.
59621         * modules/unictype/property-not-a-character: New file.
59622         * modules/unictype/property-default-ignorable-code-point: New file.
59623         * modules/unictype/property-other-default-ignorable-code-point: New
59624         file.
59625         * modules/unictype/property-deprecated: New file.
59626         * modules/unictype/property-logical-order-exception: New file.
59627         * modules/unictype/property-variation-selector: New file.
59628         * modules/unictype/property-private-use: New file.
59629         * modules/unictype/property-unassigned-code-value: New file.
59630         * modules/unictype/property-uppercase: New file.
59631         * modules/unictype/property-other-uppercase: New file.
59632         * modules/unictype/property-lowercase: New file.
59633         * modules/unictype/property-other-lowercase: New file.
59634         * modules/unictype/property-titlecase: New file.
59635         * modules/unictype/property-soft-dotted: New file.
59636         * modules/unictype/property-id-start: New file.
59637         * modules/unictype/property-other-id-start: New file.
59638         * modules/unictype/property-id-continue: New file.
59639         * modules/unictype/property-other-id-continue: New file.
59640         * modules/unictype/property-xid-start: New file.
59641         * modules/unictype/property-xid-continue: New file.
59642         * modules/unictype/property-pattern-white-space: New file.
59643         * modules/unictype/property-pattern-syntax: New file.
59644         * modules/unictype/property-join-control: New file.
59645         * modules/unictype/property-grapheme-base: New file.
59646         * modules/unictype/property-grapheme-extend: New file.
59647         * modules/unictype/property-other-grapheme-extend: New file.
59648         * modules/unictype/property-grapheme-link: New file.
59649         * modules/unictype/property-bidi-control: New file.
59650         * modules/unictype/property-bidi-left-to-right: New file.
59651         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59652         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59653         * modules/unictype/property-bidi-european-digit: New file.
59654         * modules/unictype/property-bidi-eur-num-separator: New file.
59655         * modules/unictype/property-bidi-eur-num-terminator: New file.
59656         * modules/unictype/property-bidi-arabic-digit: New file.
59657         * modules/unictype/property-bidi-common-separator: New file.
59658         * modules/unictype/property-bidi-block-separator: New file.
59659         * modules/unictype/property-bidi-segment-separator: New file.
59660         * modules/unictype/property-bidi-whitespace: New file.
59661         * modules/unictype/property-bidi-non-spacing-mark: New file.
59662         * modules/unictype/property-bidi-boundary-neutral: New file.
59663         * modules/unictype/property-bidi-pdf: New file.
59664         * modules/unictype/property-bidi-embedding-or-override: New file.
59665         * modules/unictype/property-bidi-other-neutral: New file.
59666         * modules/unictype/property-hex-digit: New file.
59667         * modules/unictype/property-ascii-hex-digit: New file.
59668         * modules/unictype/property-ideographic: New file.
59669         * modules/unictype/property-unified-ideograph: New file.
59670         * modules/unictype/property-radical: New file.
59671         * modules/unictype/property-ids-binary-operator: New file.
59672         * modules/unictype/property-ids-trinary-operator: New file.
59673         * modules/unictype/property-zero-width: New file.
59674         * modules/unictype/property-space: New file.
59675         * modules/unictype/property-non-break: New file.
59676         * modules/unictype/property-iso-control: New file.
59677         * modules/unictype/property-format-control: New file.
59678         * modules/unictype/property-dash: New file.
59679         * modules/unictype/property-hyphen: New file.
59680         * modules/unictype/property-punctuation: New file.
59681         * modules/unictype/property-line-separator: New file.
59682         * modules/unictype/property-paragraph-separator: New file.
59683         * modules/unictype/property-quotation-mark: New file.
59684         * modules/unictype/property-sentence-terminal: New file.
59685         * modules/unictype/property-terminal-punctuation: New file.
59686         * modules/unictype/property-currency-symbol: New file.
59687         * modules/unictype/property-math: New file.
59688         * modules/unictype/property-other-math: New file.
59689         * modules/unictype/property-paired-punctuation: New file.
59690         * modules/unictype/property-left-of-pair: New file.
59691         * modules/unictype/property-combining: New file.
59692         * modules/unictype/property-composite: New file.
59693         * modules/unictype/property-decimal-digit: New file.
59694         * modules/unictype/property-numeric: New file.
59695         * modules/unictype/property-diacritic: New file.
59696         * modules/unictype/property-extender: New file.
59697         * modules/unictype/property-ignorable-control: New file.
59698         * modules/unictype/property-test: New file.
59699         * modules/unictype/property-byname: New file.
59700         * modules/unictype/property-all: New file.
59701         * modules/unictype/scripts: New file.
59702         * modules/unictype/scripts-all: New file.
59703         * modules/unictype/block-of: New file.
59704         * modules/unictype/block-test: New file.
59705         * modules/unictype/block-list: New file.
59706         * modules/unictype/block-all: New file.
59707         * modules/unictype/syntax-c-whitespace: New file.
59708         * modules/unictype/syntax-java-whitespace: New file.
59709         * modules/unictype/syntax-c-ident: New file.
59710         * modules/unictype/syntax-java-ident: New file.
59711         * modules/unictype/ctype-alnum: New file.
59712         * modules/unictype/ctype-alpha: New file.
59713         * modules/unictype/ctype-cntrl: New file.
59714         * modules/unictype/ctype-digit: New file.
59715         * modules/unictype/ctype-graph: New file.
59716         * modules/unictype/ctype-lower: New file.
59717         * modules/unictype/ctype-print: New file.
59718         * modules/unictype/ctype-punct: New file.
59719         * modules/unictype/ctype-space: New file.
59720         * modules/unictype/ctype-upper: New file.
59721         * modules/unictype/ctype-xdigit: New file.
59722         * modules/unictype/ctype-blank: New file.
59723         * lib/unictype/bidi_byname.c: New file.
59724         * lib/unictype/bidi_name.c: New file.
59725         * lib/unictype/bidi_of.c: New file.
59726         * lib/unictype/bidi_test.c: New file.
59727         * lib/unictype/bitmap.h: New file.
59728         * lib/unictype/block_test.c: New file.
59729         * lib/unictype/blocks.c: New file.
59730         * lib/unictype/categ_C.c: New file.
59731         * lib/unictype/categ_Cc.c: New file.
59732         * lib/unictype/categ_Cf.c: New file.
59733         * lib/unictype/categ_Cn.c: New file.
59734         * lib/unictype/categ_Co.c: New file.
59735         * lib/unictype/categ_Cs.c: New file.
59736         * lib/unictype/categ_L.c: New file.
59737         * lib/unictype/categ_Ll.c: New file.
59738         * lib/unictype/categ_Lm.c: New file.
59739         * lib/unictype/categ_Lo.c: New file.
59740         * lib/unictype/categ_Lt.c: New file.
59741         * lib/unictype/categ_Lu.c: New file.
59742         * lib/unictype/categ_M.c: New file.
59743         * lib/unictype/categ_Mc.c: New file.
59744         * lib/unictype/categ_Me.c: New file.
59745         * lib/unictype/categ_Mn.c: New file.
59746         * lib/unictype/categ_N.c: New file.
59747         * lib/unictype/categ_Nd.c: New file.
59748         * lib/unictype/categ_Nl.c: New file.
59749         * lib/unictype/categ_No.c: New file.
59750         * lib/unictype/categ_P.c: New file.
59751         * lib/unictype/categ_Pc.c: New file.
59752         * lib/unictype/categ_Pd.c: New file.
59753         * lib/unictype/categ_Pe.c: New file.
59754         * lib/unictype/categ_Pf.c: New file.
59755         * lib/unictype/categ_Pi.c: New file.
59756         * lib/unictype/categ_Po.c: New file.
59757         * lib/unictype/categ_Ps.c: New file.
59758         * lib/unictype/categ_S.c: New file.
59759         * lib/unictype/categ_Sc.c: New file.
59760         * lib/unictype/categ_Sk.c: New file.
59761         * lib/unictype/categ_Sm.c: New file.
59762         * lib/unictype/categ_So.c: New file.
59763         * lib/unictype/categ_Z.c: New file.
59764         * lib/unictype/categ_Zl.c: New file.
59765         * lib/unictype/categ_Zp.c: New file.
59766         * lib/unictype/categ_Zs.c: New file.
59767         * lib/unictype/categ_and.c: New file.
59768         * lib/unictype/categ_and_not.c: New file.
59769         * lib/unictype/categ_byname.c: New file.
59770         * lib/unictype/categ_name.c: New file.
59771         * lib/unictype/categ_none.c: New file.
59772         * lib/unictype/categ_of.c: New file.
59773         * lib/unictype/categ_or.c: New file.
59774         * lib/unictype/categ_test.c: New file.
59775         * lib/unictype/combining.c: New file.
59776         * lib/unictype/ctype_alnum.c: New file.
59777         * lib/unictype/ctype_alpha.c: New file.
59778         * lib/unictype/ctype_blank.c: New file.
59779         * lib/unictype/ctype_cntrl.c: New file.
59780         * lib/unictype/ctype_digit.c: New file.
59781         * lib/unictype/ctype_graph.c: New file.
59782         * lib/unictype/ctype_lower.c: New file.
59783         * lib/unictype/ctype_print.c: New file.
59784         * lib/unictype/ctype_punct.c: New file.
59785         * lib/unictype/ctype_space.c: New file.
59786         * lib/unictype/ctype_upper.c: New file.
59787         * lib/unictype/ctype_xdigit.c: New file.
59788         * lib/unictype/decdigit.c: New file.
59789         * lib/unictype/digit.c: New file.
59790         * lib/unictype/identsyntaxmap.h: New file.
59791         * lib/unictype/mirror.c: New file.
59792         * lib/unictype/numeric.c: New file.
59793         * lib/unictype/pr_alphabetic.c: New file.
59794         * lib/unictype/pr_ascii_hex_digit.c: New file.
59795         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59796         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59797         * lib/unictype/pr_bidi_block_separator.c: New file.
59798         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59799         * lib/unictype/pr_bidi_common_separator.c: New file.
59800         * lib/unictype/pr_bidi_control.c: New file.
59801         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59802         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59803         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59804         * lib/unictype/pr_bidi_european_digit.c: New file.
59805         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59806         * lib/unictype/pr_bidi_left_to_right.c: New file.
59807         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59808         * lib/unictype/pr_bidi_other_neutral.c: New file.
59809         * lib/unictype/pr_bidi_pdf.c: New file.
59810         * lib/unictype/pr_bidi_segment_separator.c: New file.
59811         * lib/unictype/pr_bidi_whitespace.c: New file.
59812         * lib/unictype/pr_byname.c: New file.
59813         * lib/unictype/pr_byname.gperf: New file.
59814         * lib/unictype/pr_combining.c: New file.
59815         * lib/unictype/pr_composite.c: New file.
59816         * lib/unictype/pr_currency_symbol.c: New file.
59817         * lib/unictype/pr_dash.c: New file.
59818         * lib/unictype/pr_decimal_digit.c: New file.
59819         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59820         * lib/unictype/pr_deprecated.c: New file.
59821         * lib/unictype/pr_diacritic.c: New file.
59822         * lib/unictype/pr_extender.c: New file.
59823         * lib/unictype/pr_format_control.c: New file.
59824         * lib/unictype/pr_grapheme_base.c: New file.
59825         * lib/unictype/pr_grapheme_extend.c: New file.
59826         * lib/unictype/pr_grapheme_link.c: New file.
59827         * lib/unictype/pr_hex_digit.c: New file.
59828         * lib/unictype/pr_hyphen.c: New file.
59829         * lib/unictype/pr_id_continue.c: New file.
59830         * lib/unictype/pr_id_start.c: New file.
59831         * lib/unictype/pr_ideographic.c: New file.
59832         * lib/unictype/pr_ids_binary_operator.c: New file.
59833         * lib/unictype/pr_ids_trinary_operator.c: New file.
59834         * lib/unictype/pr_ignorable_control.c: New file.
59835         * lib/unictype/pr_iso_control.c: New file.
59836         * lib/unictype/pr_join_control.c: New file.
59837         * lib/unictype/pr_left_of_pair.c: New file.
59838         * lib/unictype/pr_line_separator.c: New file.
59839         * lib/unictype/pr_logical_order_exception.c: New file.
59840         * lib/unictype/pr_lowercase.c: New file.
59841         * lib/unictype/pr_math.c: New file.
59842         * lib/unictype/pr_non_break.c: New file.
59843         * lib/unictype/pr_not_a_character.c: New file.
59844         * lib/unictype/pr_numeric.c: New file.
59845         * lib/unictype/pr_other_alphabetic.c: New file.
59846         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59847         * lib/unictype/pr_other_grapheme_extend.c: New file.
59848         * lib/unictype/pr_other_id_continue.c: New file.
59849         * lib/unictype/pr_other_id_start.c: New file.
59850         * lib/unictype/pr_other_lowercase.c: New file.
59851         * lib/unictype/pr_other_math.c: New file.
59852         * lib/unictype/pr_other_uppercase.c: New file.
59853         * lib/unictype/pr_paired_punctuation.c: New file.
59854         * lib/unictype/pr_paragraph_separator.c: New file.
59855         * lib/unictype/pr_pattern_syntax.c: New file.
59856         * lib/unictype/pr_pattern_white_space.c: New file.
59857         * lib/unictype/pr_private_use.c: New file.
59858         * lib/unictype/pr_punctuation.c: New file.
59859         * lib/unictype/pr_quotation_mark.c: New file.
59860         * lib/unictype/pr_radical.c: New file.
59861         * lib/unictype/pr_sentence_terminal.c: New file.
59862         * lib/unictype/pr_soft_dotted.c: New file.
59863         * lib/unictype/pr_space.c: New file.
59864         * lib/unictype/pr_terminal_punctuation.c: New file.
59865         * lib/unictype/pr_test.c: New file.
59866         * lib/unictype/pr_titlecase.c: New file.
59867         * lib/unictype/pr_unassigned_code_value.c: New file.
59868         * lib/unictype/pr_unified_ideograph.c: New file.
59869         * lib/unictype/pr_uppercase.c: New file.
59870         * lib/unictype/pr_variation_selector.c: New file.
59871         * lib/unictype/pr_white_space.c: New file.
59872         * lib/unictype/pr_xid_continue.c: New file.
59873         * lib/unictype/pr_xid_start.c: New file.
59874         * lib/unictype/pr_zero_width.c: New file.
59875         * lib/unictype/scripts.c: New file.
59876         * lib/unictype/sy_c_ident.c: New file.
59877         * lib/unictype/sy_c_whitespace.c: New file.
59878         * lib/unictype/sy_java_ident.c: New file.
59879         * lib/unictype/sy_java_whitespace.c: New file.
59880
59881         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59882         Unicode 5.0.0.
59883         * lib/unictype/blocks.h: Likewise.
59884         * lib/unictype/categ_C.h: Likewise.
59885         * lib/unictype/categ_Cc.h: Likewise.
59886         * lib/unictype/categ_Cf.h: Likewise.
59887         * lib/unictype/categ_Cn.h: Likewise.
59888         * lib/unictype/categ_Co.h: Likewise.
59889         * lib/unictype/categ_Cs.h: Likewise.
59890         * lib/unictype/categ_L.h: Likewise.
59891         * lib/unictype/categ_Ll.h: Likewise.
59892         * lib/unictype/categ_Lm.h: Likewise.
59893         * lib/unictype/categ_Lo.h: Likewise.
59894         * lib/unictype/categ_Lt.h: Likewise.
59895         * lib/unictype/categ_Lu.h: Likewise.
59896         * lib/unictype/categ_M.h: Likewise.
59897         * lib/unictype/categ_Mc.h: Likewise.
59898         * lib/unictype/categ_Me.h: Likewise.
59899         * lib/unictype/categ_Mn.h: Likewise.
59900         * lib/unictype/categ_N.h: Likewise.
59901         * lib/unictype/categ_Nd.h: Likewise.
59902         * lib/unictype/categ_Nl.h: Likewise.
59903         * lib/unictype/categ_No.h: Likewise.
59904         * lib/unictype/categ_P.h: Likewise.
59905         * lib/unictype/categ_Pc.h: Likewise.
59906         * lib/unictype/categ_Pd.h: Likewise.
59907         * lib/unictype/categ_Pe.h: Likewise.
59908         * lib/unictype/categ_Pf.h: Likewise.
59909         * lib/unictype/categ_Pi.h: Likewise.
59910         * lib/unictype/categ_Po.h: Likewise.
59911         * lib/unictype/categ_Ps.h: Likewise.
59912         * lib/unictype/categ_S.h: Likewise.
59913         * lib/unictype/categ_Sc.h: Likewise.
59914         * lib/unictype/categ_Sk.h: Likewise.
59915         * lib/unictype/categ_Sm.h: Likewise.
59916         * lib/unictype/categ_So.h: Likewise.
59917         * lib/unictype/categ_Z.h: Likewise.
59918         * lib/unictype/categ_Zl.h: Likewise.
59919         * lib/unictype/categ_Zp.h: Likewise.
59920         * lib/unictype/categ_Zs.h: Likewise.
59921         * lib/unictype/categ_of.h: Likewise.
59922         * lib/unictype/combining.h: Likewise.
59923         * lib/unictype/ctype_alnum.h: Likewise.
59924         * lib/unictype/ctype_alpha.h: Likewise.
59925         * lib/unictype/ctype_blank.h: Likewise.
59926         * lib/unictype/ctype_cntrl.h: Likewise.
59927         * lib/unictype/ctype_digit.h: Likewise.
59928         * lib/unictype/ctype_graph.h: Likewise.
59929         * lib/unictype/ctype_lower.h: Likewise.
59930         * lib/unictype/ctype_print.h: Likewise.
59931         * lib/unictype/ctype_punct.h: Likewise.
59932         * lib/unictype/ctype_space.h: Likewise.
59933         * lib/unictype/ctype_upper.h: Likewise.
59934         * lib/unictype/ctype_xdigit.h: Likewise.
59935         * lib/unictype/decdigit.h: Likewise.
59936         * lib/unictype/digit.h: Likewise.
59937         * lib/unictype/mirror.h: Likewise.
59938         * lib/unictype/numeric.h: Likewise.
59939         * lib/unictype/pr_alphabetic.h: Likewise.
59940         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59941         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59942         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59943         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59944         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59945         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59946         * lib/unictype/pr_bidi_control.h: Likewise.
59947         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59948         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59949         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59950         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59951         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59952         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59953         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59954         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59955         * lib/unictype/pr_bidi_pdf.h: Likewise.
59956         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59957         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59958         * lib/unictype/pr_combining.h: Likewise.
59959         * lib/unictype/pr_composite.h: Likewise.
59960         * lib/unictype/pr_currency_symbol.h: Likewise.
59961         * lib/unictype/pr_dash.h: Likewise.
59962         * lib/unictype/pr_decimal_digit.h: Likewise.
59963         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59964         * lib/unictype/pr_deprecated.h: Likewise.
59965         * lib/unictype/pr_diacritic.h: Likewise.
59966         * lib/unictype/pr_extender.h: Likewise.
59967         * lib/unictype/pr_format_control.h: Likewise.
59968         * lib/unictype/pr_grapheme_base.h: Likewise.
59969         * lib/unictype/pr_grapheme_extend.h: Likewise.
59970         * lib/unictype/pr_grapheme_link.h: Likewise.
59971         * lib/unictype/pr_hex_digit.h: Likewise.
59972         * lib/unictype/pr_hyphen.h: Likewise.
59973         * lib/unictype/pr_id_continue.h: Likewise.
59974         * lib/unictype/pr_id_start.h: Likewise.
59975         * lib/unictype/pr_ideographic.h: Likewise.
59976         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59977         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59978         * lib/unictype/pr_ignorable_control.h: Likewise.
59979         * lib/unictype/pr_iso_control.h: Likewise.
59980         * lib/unictype/pr_join_control.h: Likewise.
59981         * lib/unictype/pr_left_of_pair.h: Likewise.
59982         * lib/unictype/pr_line_separator.h: Likewise.
59983         * lib/unictype/pr_logical_order_exception.h: Likewise.
59984         * lib/unictype/pr_lowercase.h: Likewise.
59985         * lib/unictype/pr_math.h: Likewise.
59986         * lib/unictype/pr_non_break.h: Likewise.
59987         * lib/unictype/pr_not_a_character.h: Likewise.
59988         * lib/unictype/pr_numeric.h: Likewise.
59989         * lib/unictype/pr_other_alphabetic.h: Likewise.
59990         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59991         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59992         * lib/unictype/pr_other_id_continue.h: Likewise.
59993         * lib/unictype/pr_other_id_start.h: Likewise.
59994         * lib/unictype/pr_other_lowercase.h: Likewise.
59995         * lib/unictype/pr_other_math.h: Likewise.
59996         * lib/unictype/pr_other_uppercase.h: Likewise.
59997         * lib/unictype/pr_paired_punctuation.h: Likewise.
59998         * lib/unictype/pr_paragraph_separator.h: Likewise.
59999         * lib/unictype/pr_pattern_syntax.h: Likewise.
60000         * lib/unictype/pr_pattern_white_space.h: Likewise.
60001         * lib/unictype/pr_private_use.h: Likewise.
60002         * lib/unictype/pr_punctuation.h: Likewise.
60003         * lib/unictype/pr_quotation_mark.h: Likewise.
60004         * lib/unictype/pr_radical.h: Likewise.
60005         * lib/unictype/pr_sentence_terminal.h: Likewise.
60006         * lib/unictype/pr_soft_dotted.h: Likewise.
60007         * lib/unictype/pr_space.h: Likewise.
60008         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60009         * lib/unictype/pr_titlecase.h: Likewise.
60010         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60011         * lib/unictype/pr_unified_ideograph.h: Likewise.
60012         * lib/unictype/pr_uppercase.h: Likewise.
60013         * lib/unictype/pr_variation_selector.h: Likewise.
60014         * lib/unictype/pr_white_space.h: Likewise.
60015         * lib/unictype/pr_xid_continue.h: Likewise.
60016         * lib/unictype/pr_xid_start.h: Likewise.
60017         * lib/unictype/pr_zero_width.h: Likewise.
60018         * lib/unictype/scripts.h: Likewise.
60019         * lib/unictype/scripts_byname.gperf: Likewise.
60020         * lib/unictype/sy_c_ident.h: Likewise.
60021         * lib/unictype/sy_c_whitespace.h: Likewise.
60022         * lib/unictype/sy_java_ident.h: Likewise.
60023         * lib/unictype/sy_java_whitespace.h: Likewise.
60024
60025         * lib/unictype/Makefile: New file.
60026         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60027         glibc.
60028         * lib/unictype/3level.h: New file, copied from glibc.
60029         * lib/unictype/3levelbit.h: New file.
60030
60031 2007-11-11  Bruno Haible  <bruno@clisp.org>
60032
60033         * modules/gperf: New file.
60034         * modules/iconv_open (Depends-on): Add it.
60035         (Makefile.am): Remove the GPERF definition.
60036
60037 2007-11-11  Bruno Haible  <bruno@clisp.org>
60038
60039         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60040         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60041
60042 2007-11-11  Bruno Haible  <bruno@clisp.org>
60043
60044         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60045         (usage): Remove function.
60046
60047 2007-11-11  Bruno Haible  <bruno@clisp.org>
60048
60049         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60050         gl_FUNC_CEILF_LIBS.
60051         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60052         gl_FUNC_CEIL_LIBS.
60053         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60054         gl_FUNC_CEILL_LIBS.
60055         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60056         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60057         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60058
60059 2007-11-11  Bruno Haible  <bruno@clisp.org>
60060
60061         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60062         roundf were declared but do not exist on functions.
60063         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60064         roundl were declared but do not exist on functions.
60065         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60066         HAVE_FLOORL_AND_CEILL, respectively.
60067         Needed for Sun C on Solaris 10.
60068
60069 2007-11-11  Bruno Haible  <bruno@clisp.org>
60070
60071         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60072         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60073         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60074         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60075         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60076         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60077         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60078         HAVE_DECL_ROUNDF.
60079         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60080         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60082         of HAVE_DECL_ROUND*.
60083         * modules/math (Makefile.am): Update.
60084
60085 2007-11-10  Bruno Haible  <bruno@clisp.org>
60086
60087         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60088         ptrdiff_t as m4/intl.m4.
60089
60090 2007-11-10  Jim Meyering  <meyering@redhat.com>
60091
60092         Avoid link failure for the argmatch test.
60093         * tests/test-argmatch.c (usage): Define function to avoid a link
60094         failure: argmatch_die requires a usage function.
60095
60096 2007-11-09  Bruno Haible  <bruno@clisp.org>
60097
60098         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60099         * doc/functions/vsnprintf.texi: Likewise.
60100         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60101         with a size argument < 2.
60102
60103 2007-11-09  Bruno Haible  <bruno@clisp.org>
60104
60105         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60106         buffer. Fixes an inefficiency introduced on 2007-11-03.
60107
60108 2007-11-09  Bruno Haible  <bruno@clisp.org>
60109
60110         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60111         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60112
60113 2007-11-08  Jim Meyering  <meyering@redhat.com>
60114
60115         Change cache variable name prefix "jm_" to "gl_" everywhere.
60116         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60117         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60118         * m4/uptime.m4: s/gl_/jm_/
60119
60120 2007-11-07  Bruno Haible  <bruno@clisp.org>
60121
60122         Update to GNU gettext 0.17.
60123         * m4/intl.m4: Update to GNU gettext 0.17.
60124         * m4/po.m4: Likewise.
60125         * modules/gettext (Files): Remove m4/ulonglong.m4.
60126         (configure.ac): Require gettext infrastructure from version 0.17.
60127
60128 2007-11-06  Bruno Haible  <bruno@clisp.org>
60129
60130         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60131         symbolic values are not defined in a public header.
60132         * lib/freadable.c (freadable) [QNX]: Likewise.
60133         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60134         * lib/freading.c (freading) [QNX]: Likewise.
60135         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60136         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60137         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60138         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60139         Reported by Alain Magloire.
60140
60141         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60142
60143 2007-11-05  Bruno Haible  <bruno@clisp.org>
60144
60145         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60146         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60147         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60148         Reported by Eric Blake.
60149
60150 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60151             Bruno Haible  <bruno@clisp.org>
60152
60153         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60154         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60155         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60156         (malloc): Undefine also before including <stdlib.h>.
60157         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60158         Needed on OSF/1 4.0.
60159
60160 2007-11-05  Jim Meyering  <meyering@redhat.com>
60161
60162         git-version-gen: sync from coreutils.
60163         * build-aux/git-version-gen: Add comments.
60164         Change the first '-' to '.' in the snapshot version string,
60165         e.g., 6.9-377-08144 -> 6.9.377-08144
60166         Remove first parameter.
60167         Don't declare a version "-dirty" merely because a time
60168         stamp has changed.
60169
60170 2007-11-04  Bruno Haible  <bruno@clisp.org>
60171
60172         * lib/lock.h: Protect all macro definitions containing an 'if'
60173         statement through a "do { ... } while (0)".
60174         * lib/tls.h: Likewise.
60175
60176 2007-11-04  Bruno Haible  <bruno@clisp.org>
60177
60178         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60179
60180 2007-11-04  Bruno Haible  <bruno@clisp.org>
60181
60182         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60183         * modules/fprintf-posix (Depends-on): Add nocrash.
60184         * modules/snprintf-posix (Depends-on): Likewise.
60185         * modules/sprintf-posix (Depends-on): Likewise.
60186         * modules/vasnprintf-posix (Depends-on): Likewise.
60187         * modules/vasprintf-posix (Depends-on): Likewise.
60188         * modules/vfprintf-posix (Depends-on): Likewise.
60189         * modules/vsnprintf-posix (Depends-on): Likewise.
60190         * modules/vsprintf-posix (Depends-on): Likewise.
60191         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60192         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60193         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60194         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60195         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60196         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60197         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60198
60199 2007-11-04  Bruno Haible  <bruno@clisp.org>
60200
60201         * modules/nocrash: New file.
60202         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60203         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60204
60205 2007-11-04  Bruno Haible  <bruno@clisp.org>
60206
60207         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60208         precision handling.
60209         * tests/test-vasprintf-posix.c (test_function): Likewise.
60210         * tests/test-snprintf-posix.h (test_function): Likewise.
60211         * tests/test-sprintf-posix.h (test_function): Likewise.
60212
60213         Fix *printf behaviour for large precisions on mingw and BeOS.
60214         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60215         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60216         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60217         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60218         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60219         gl_PRINTF_PRECISION and test its result. Invoke
60220         gl_PREREQ_VASNPRINTF_PRECISION.
60221         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60222         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60223         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60224         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60225         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60226         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60227         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60228         * doc/functions/fprintf.texi: Update.
60229         * doc/functions/printf.texi: Update.
60230         * doc/functions/snprintf.texi: Update.
60231         * doc/functions/sprintf.texi: Update.
60232         * doc/functions/vfprintf.texi: Update.
60233         * doc/functions/vprintf.texi: Update.
60234         * doc/functions/vsnprintf.texi: Update.
60235         * doc/functions/vsprintf.texi: Update.
60236
60237 2007-11-04  Bruno Haible  <bruno@clisp.org>
60238
60239         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60240
60241 2007-11-04  Bruno Haible  <bruno@clisp.org>
60242
60243         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60244         Reported by Sylvain Beucler <beuc@gnu.org>.
60245
60246 2007-11-03  Bruno Haible  <bruno@clisp.org>
60247
60248         * tests/test-fprintf-posix2.sh: New file.
60249         * tests/test-fprintf-posix2.c: New file.
60250         * modules/fprintf-posix-tests (Files): Add them.
60251         (TESTS): Add test-fprintf-posix2.sh.
60252         (configure.ac): Check for getrlimit and setrlimit.
60253         (check_PROGRAMS): Add test-fprintf-posix2.
60254
60255         * tests/test-printf-posix2.sh: New file.
60256         * tests/test-printf-posix2.c: New file.
60257         * modules/printf-posix-tests (Files): Add them.
60258         (TESTS): Add test-printf-posix2.sh.
60259         (configure.ac): Check for getrlimit and setrlimit.
60260         (check_PROGRAMS): Add test-printf-posix2.
60261
60262         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60263         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60264         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60265         (decode_double): New function, copied from decode_long_double.
60266         (scale10_round_decimal_decoded): New function, extracted from
60267         scale10_round_decimal_long_double.
60268         (scale10_round_decimal_long_double): Use it.
60269         (scale10_round_decimal_double): New function.
60270         (floorlog10): New function.
60271         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60272         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60273         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60274         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60275         gl_PRINTF_ENOMEM and test its result. Invoke
60276         gl_PREREQ_VASNPRINTF_ENOMEM.
60277         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60278         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60279         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60280         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60281         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60282         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60283         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60284         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60285         * modules/snprintf-posix (Depends-on): Likewise.
60286         * modules/sprintf-posix (Depends-on): Likewise.
60287         * modules/vasnprintf-posix (Depends-on): Likewise.
60288         * modules/vasprintf-posix (Depends-on): Likewise.
60289         * modules/vfprintf-posix (Depends-on): Likewise.
60290         * modules/vsnprintf-posix (Depends-on): Likewise.
60291         * modules/vsprintf-posix (Depends-on): Likewise.
60292         * doc/functions/fprintf.texi: Update.
60293         * doc/functions/printf.texi: Update.
60294         * doc/functions/snprintf.texi: Update.
60295         * doc/functions/sprintf.texi: Update.
60296         * doc/functions/vfprintf.texi: Update.
60297         * doc/functions/vprintf.texi: Update.
60298         * doc/functions/vsnprintf.texi: Update.
60299         * doc/functions/vsprintf.texi: Update.
60300
60301 2007-11-03  Bruno Haible  <bruno@clisp.org>
60302
60303         * modules/frexp-nolibm-tests: New file.
60304
60305         * modules/frexp-nolibm: New file.
60306         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60307
60308 2007-11-03  Bruno Haible  <bruno@clisp.org>
60309
60310         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60311         value is C99 compliant.
60312         Needed for OSF/1 5.1.
60313
60314 2007-11-03  Bruno Haible  <bruno@clisp.org>
60315
60316         Fix out-of-memory handling of vasnprintf.
60317         * lib/printf-parse.c: Include <errno.h>.
60318         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60319         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60320         is already set.
60321
60322 2007-11-02  Eric Blake  <ebb9@byu.net>
60323
60324         Fix tests on cygwin.
60325         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60326
60327 2007-11-01  Bruno Haible  <bruno@clisp.org>
60328
60329         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60330         warning.
60331         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60332         needed for POSIX compatibility.
60333
60334 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60335
60336         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60337         for compatibility with GNU.
60338
60339 2007-11-01  Bruno Haible  <bruno@clisp.org>
60340
60341         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60342         (putenv): Renamed from rpl_putenv. Change argument type from
60343         'const char *' to 'char *'.
60344         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60345         of defining putenv in config.h, just set REPLACE_PUTENV.
60346         * modules/putenv (Depends-on): Add stdlib.
60347         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60348         (Include): Use <stdlib.h>.
60349         * lib/stdlib.in.h (putenv): New declaration.
60350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60351         REPLACE_PUTENV.
60352         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60353         REPLACE_PUTENV.
60354         Needed for MacOS X 10.5.0.
60355         Reported by Peter O'Gorman <peter@pogma.com>.
60356
60357 2007-11-01  Jim Meyering  <meyering@redhat.com>
60358
60359         Treat an empty date string exactly like "0".
60360         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60361         if the remaining date string (to be parsed) is empty, use "0".
60362         Reported by Mischa Molhoek and discussed in this thread:
60363         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60364
60365 2007-10-31  Bruno Haible  <bruno@clisp.org>
60366
60367         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60368         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60369         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60370         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60371         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60372         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60373
60374 2007-10-31  Bruno Haible  <bruno@clisp.org>
60375
60376         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60377         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60378         (AC_TYPE_LONG_LONG_INT): Use it.
60379         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60380         it as well.
60381         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60382         to m4/longlong.m4.
60383         * modules/stdint (Files): Remove m4/ulonglong.m4.
60384         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60385         m4/ulonglong.m4.
60386         * modules/strtoumax (Files): Likewise.
60387
60388 2007-10-30  Bruno Haible  <bruno@clisp.org>
60389
60390         * modules/xvasprintf-posix: New file.
60391         Suggested by Eric Blake.
60392
60393 2007-10-30  Bruno Haible  <bruno@clisp.org>
60394
60395         * modules/xprintf-posix-tests: New file.
60396         * tests/test-xprintf-posix.sh: New file.
60397         * tests/test-xprintf-posix.c: New file.
60398         * tests/test-xfprintf-posix.c: New file.
60399
60400         * modules/xprintf-posix: New file.
60401
60402 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60403
60404         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60405         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60406         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60407
60408 2007-10-29  Bruno Haible  <bruno@clisp.org>
60409
60410         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60411         contain the special marker '_cv_'.
60412         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60413         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60414         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60415         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60416         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60417         Reported by Ralf Wildenhues.
60418
60419 2007-10-29  Bruno Haible  <bruno@clisp.org>
60420
60421         * gnulib-tool (func_import): When --lgpl is not specified, set
60422         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60423         GPLv3.
60424         Reported by Simon Josefsson.
60425
60426 2007-10-28  Bruno Haible  <bruno@clisp.org>
60427
60428         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60429         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60430         HAVE_DECL_ISFINITE.
60431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60432         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60433         HAVE_DECL_ISFINITE.
60434
60435 2007-10-28  Bruno Haible  <bruno@clisp.org>
60436
60437         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60438         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60439
60440 2007-10-28  Bruno Haible  <bruno@clisp.org>
60441
60442         Fix link errors with Sun C 5.0 on Solaris 10.
60443         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60444         function is declared but not present in the compiler's libm.
60445         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60446         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60447         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60448         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60449         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60450         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60451         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60453         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60454         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60455         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60456         HAVE_DECL_FLOORL.
60457
60458 2007-10-28  Bruno Haible  <bruno@clisp.org>
60459
60460         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60461         gl_FUNC_FLOORL. Cache the result.
60462         (gl_FUNC_FLOORL): Use it.
60463         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60464         gl_FUNC_CEILL. Cache the result.
60465         (gl_FUNC_CEILL): Use it.
60466
60467         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60468         gl_FUNC_FLOOR. Cache the result.
60469         (gl_FUNC_FLOOR): Use it.
60470         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60471         gl_FUNC_CEIL. Cache the result.
60472         (gl_FUNC_CEIL): Use it.
60473
60474         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60475         gl_FUNC_FLOORF. Cache the result.
60476         (gl_FUNC_FLOORF): Use it.
60477         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60478         gl_FUNC_CEILF. Cache the result.
60479         (gl_FUNC_CEILF): Use it.
60480
60481 2007-10-28  Bruno Haible  <bruno@clisp.org>
60482
60483         * gnulib-tool: Allow specifying the LGPL version number through
60484         --lgpl=2 or --lgpl=3.
60485         (func_usage): Document --lgpl with argument.
60486         Handle --lgpl=... arguments.
60487         (func_import): Recognize also gl_LGPL calls with an argument. When
60488         --lgpl=2 is used and the module's license is just LGPL, report an
60489         error. Set sed_transform_lib_file according to the lgpl variable. In
60490         the generated files, use --lgpl or gl_LGPL invocations with argument,
60491         if necessary.
60492         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60493         an LGPv2+ license.
60494         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60495         gl_LGPL macro.
60496
60497 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60498             Bruno Haible  <bruno@clisp.org>
60499
60500         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60501         (u16_uctomb_aux): Likewise.
60502         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60503         !HAVE_INLINE.
60504         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60505
60506 2007-10-28  Bruno Haible  <bruno@clisp.org>
60507
60508         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60509         Invoke AM_GETTEXT_OPTION if it exists.
60510         * modules/vasprintf: Likewise.
60511         * modules/verror: Likewise.
60512         * modules/xprintf: Likewise.
60513         * modules/xvasprintf: Likewise.
60514
60515 2007-10-27  Ben Pfaff  <blp@gnu.org>
60516
60517         * lib/math.in.h: Define isfinite macro and prototypes for
60518         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60519         implementations.
60520         * m4/math_h.m4: New substitutions for isfinite module.
60521         * lib/isfinite.c: New file.
60522         * m4/isfinite.m4: New file.
60523         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60524         * modules/isfinite: New file.
60525         * modules/isfinite-tests: New file.
60526         * tests/tests-isfinite.c: New file.
60527         * doc/functions/isfinite.texi: Mention isfinite module.
60528         * MODULES.html.sh: Mention new module.
60529
60530 2007-10-27  Ben Pfaff  <blp@gnu.org>
60531
60532         Ralf Wildenhues reported that Tru64 4.0D declares the round
60533         functions but does not have definitions.
60534         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60535         cannot be found in any library, set the output variable to
60536         "missing" instead of "".
60537         * m4/round.m4: Also use our substitute if we cannot find round in
60538         any library, even if it is declared.
60539         * m4/roundf.m4: Likewise for roundf.
60540         * m4/roundl.m4: Likewise for roundl.
60541         * lib/math.in.h: Undefine roundf, round, roundl before defining
60542         their replacements, to allow for hypothetical systems where these
60543         may be defined as macros but not available in libraries.
60544
60545 2007-10-27  Bruno Haible  <bruno@clisp.org>
60546
60547         * doc/gnulib.texi: Invoke @firstparagraphindent.
60548         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60549         changes in gnulib.
60550         (Source changes): New section.
60551
60552 2007-10-26  Bruno Haible  <bruno@clisp.org>
60553
60554         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60555         borrowed from autoconf.
60556
60557 2007-10-26  Bruno Haible  <bruno@clisp.org>
60558
60559         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60560         strerror returned the empty string. Needed on HP-UX 11.00.
60561
60562 2007-10-24  Micah Cowan  <micah@cowan.name>
60563
60564         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60565         * build-aux/bootstrap: Remove support for now-unnecessary option,
60566         --cvs-user, and envvars CVS_USER, CVS_RSH.
60567
60568 2007-10-24  Jim Meyering  <meyering@redhat.com>
60569
60570         Avoid diagnostics from sha1sum when there is no cached checksum.
60571         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60572         if the po.s1 file hasn't been created yet.
60573
60574         * build-aux/bootstrap: Sync from coreutils:
60575         2007-10-24  Jim Meyering  <meyering@redhat.com>
60576         Get gnulib from the git repository, not from an obsolete cvs one.
60577         * build-aux/bootstrap: Suggestion from Micah Cowan.
60578         2007-10-04  Jim Meyering  <jim@meyering.net>
60579         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60580         (update_po_files): Work also when there are no .po files in po/.
60581
60582 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60583
60584         * README: Append ".git" to git and cg examples.
60585         Problem reported by Benoit Sigoure.
60586
60587 2007-10-23  Micah Cowan  <micah@cowan.name>
60588
60589         * users.txt: Add wget.
60590
60591 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60592
60593         Fix linking of some unistdio tests on FreeBSD.
60594         * modules/unistdio/u16-vsnprintf-tests
60595         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60596         * modules/unistdio/u16-vsprintf-tests
60597         (test_u16_vsnprintf1_LDADD): Likewise.
60598         * modules/unistdio/u32-vsnprintf-tests
60599         (test_u32_vsnprintf1_LDADD): Likewise.
60600         * modules/unistdio/u32-vsprintf-tests
60601         (test_u32_vsprintf1_LDADD): Likewise.
60602         * modules/unistdio/u8-vsnprintf-tests
60603         (test_u8_vsnprintf1_LDADD): Likewise.
60604         * modules/unistdio/u8-vsprintf-tests
60605         (test_u8_vsprintf1_LDADD): Likewise.
60606         * modules/unistdio/ulc-vsnprintf-tests
60607         (test_ulc_vsnprintf1_LDADD): Likewise.
60608         * modules/unistdio/ulc-vsprintf-tests
60609         (test_ulc_vsprintf1_LDADD): Likewise.
60610
60611         Fix linking of some uniconv tests on FreeBSD.
60612         * modules/uniconv/u16-conv-from-enc-tests
60613         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60614         * modules/uniconv/u16-conv-to-enc-tests
60615         (test_u16_conv_to_enc_LDADD): Likewise.
60616         * modules/uniconv/u16-strconv-from-enc-tests
60617         (test_u16_strconv_from_enc_LDADD): Likewise.
60618         * modules/uniconv/u16-strconv-to-enc-tests
60619         (test_u16_strconv_to_enc_LDADD): Likewise.
60620         * modules/uniconv/u32-conv-from-enc-tests
60621         (test_u32_conv_from_enc_LDADD): Likewise.
60622         * modules/uniconv/u32-conv-to-enc-tests
60623         (test_u32_conv_to_enc_LDADD): Likewise.
60624         * modules/uniconv/u32-strconv-from-enc-tests
60625         (test_u32_strconv_from_enc_LDADD): Likewise.
60626         * modules/uniconv/u32-strconv-to-enc-tests
60627         (test_u32_strconv_to_enc_LDADD): Likewise.
60628         * modules/uniconv/u8-conv-from-enc-tests
60629         (test_u8_conv_from_enc_LDADD): Likewise.
60630         * modules/uniconv/u8-conv-to-enc-tests
60631         (test_u8_conv_to_enc_LDADD): Likewise.
60632         * modules/uniconv/u8-strconv-from-enc-tests
60633         (test_u8_strconv_from_enc_LDADD): Likewise.
60634         * modules/uniconv/u8-strconv-to-enc-tests
60635         (test_u8_strconv_to_enc_LDADD): Likewise.
60636
60637 2007-10-22  Bruno Haible  <bruno@clisp.org>
60638
60639         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60640         size.
60641
60642 2007-10-22  Eric Blake  <ebb9@byu.net>
60643
60644         Tweak x*printf documentation.
60645         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60646         variable name and comments.
60647         Suggested by Bruno Haible.
60648
60649 2007-10-22  Bruno Haible  <bruno@clisp.org>
60650
60651         * lib/acl.c (copy_acl): Fix file name in comment.
60652
60653 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60654
60655         Fix Tru64 problem with stdbool.h.
60656         * lib/stdbool.in.h (false, true):
60657         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60658         Don't declare as an enum in this situation; it runs afoul of Tru64.
60659         Problem reported by Steven M. Schweda in
60660         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60661
60662 2007-10-22  Eric Blake  <ebb9@byu.net>
60663
60664         Also wrap vf?printf.
60665         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60666         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60667         (xvprintf, xvfprintf): New functions.
60668
60669 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60670
60671         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60672         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60673
60674         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60675         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60676
60677 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60678
60679         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60680         by Bruno Haible.
60681
60682 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60683
60684         * lib/getloadavg.c
60685         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60686         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60687
60688         * tests/test-i-ring.c: Work for C89.
60689
60690 2007-10-22  Bruno Haible  <bruno@clisp.org>
60691
60692         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60693         -1u, in preprocessor expression, so that we don't test for the bug
60694         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60695         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60696
60697 2007-10-22  Eric Blake  <ebb9@byu.net>
60698
60699         * tests/test-yesno.sh: Silence stderr during test.
60700
60701 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60702
60703         * modules/crypto/gc-camellia: New file.
60704
60705         * m4/gc-camellia.m4: New file.
60706
60707         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60708
60709         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60710
60711 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60712
60713         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60714         --help to stdout.  Reported by sms@antinode.org (Steven
60715         M. Schweda).
60716
60717 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60718
60719         * users.txt: Fix link to libksba.
60720
60721 2007-10-21  Ben Pfaff  <blp@gnu.org>
60722
60723         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60724         round.c roundf implementation that depends on floorf and ceilf to
60725         be tested unconditionally.
60726
60727 2007-10-21  Ben Pfaff  <blp@gnu.org>
60728
60729         * m4/check-libm-func.m4: Removed.
60730         * m4/check-math-lib.m4: New file.
60731         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60732         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60733         definition and lack of AC_LIBOBJ([roundf]).
60734         * m4/roundl.m4: Ditto, and similarly for roundl.
60735         * modules/round: Reference new m4 file.
60736         * modules/roundf: Ditto.
60737         * modules/roundl: Ditto.
60738         * tests/test-round2.c (main): Use ROUND instead of round.
60739         Bug report from Bruno Haible.
60740
60741 2007-10-21  Bruno Haible  <bruno@clisp.org>
60742
60743         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60744         context.
60745
60746 2007-10-21  Bruno Haible  <bruno@clisp.org>
60747
60748         * tests/test-wcwidth.c (main): Allow negative result for some control
60749         characters.
60750
60751         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60752         Needed on OSF/1 5.1.
60753
60754 2007-10-21  Bruno Haible  <bruno@clisp.org>
60755
60756         * tests/test-floorf1.c: Include isnanf.h.
60757         (main): Use isnanf() instead of isnan().
60758         * tests/test-ceilf1.c: Include isnanf.h.
60759         (main): Use isnanf() instead of isnan().
60760         * tests/test-truncf1.c: Include isnanf.h.
60761         (main): Use isnanf() instead of isnan().
60762         * tests/test-roundf1.c: Include isnanf.h.
60763         (main): Use isnanf() instead of isnan().
60764
60765 2007-10-21  Eric Blake  <ebb9@byu.net>
60766
60767         * users.txt: Update URL for m4.
60768
60769 2007-10-21  Bruno Haible  <bruno@clisp.org>
60770
60771         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60772
60773 2007-10-21  Bruno Haible  <bruno@clisp.org>
60774
60775         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60776         Git's management files if the CVS files are not present.
60777
60778 2007-10-20  Bruno Haible  <bruno@clisp.org>
60779
60780         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60781         gcc-3.4.x.
60782
60783 2007-10-20  Ben Pfaff  <blp@gnu.org>
60784
60785         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60786         implementations.
60787         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60788         * lib/round.c: New file.
60789         * lib/roundf.c: New file.
60790         * lib/roundl.c: New file.
60791         * m4/round.m4: New file.
60792         * m4/roundf.m4: New file.
60793         * m4/roundl.m4: New file.
60794         * m4/check-libm-func-m4: New file.
60795         * modules/math: Replace round, roundf, roundl related @VARS@ in
60796         math.in.h.
60797         * modules/round: New file.
60798         * modules/round-tests: New file.
60799         * modules/roundf: New file.
60800         * modules/roundf-tests: New file.
60801         * modules/roundl: New file.
60802         * modules/roundl-tests: New file.
60803         * tests/test-round1.c: New file.
60804         * tests/test-round2.c: New file.
60805         * tests/test-roundf1.c: New file.
60806         * tests/test-roundf2.c: New file.
60807         * tests/test-roundl.c: New file.
60808         * doc/functions/round.texi: Mention round module.
60809         * doc/functions/roundf.texi: Mention roundf module.
60810         * doc/functions/roundl.texi: Mention roundl module.
60811         * MODULES.html.sh: Mention new modules.
60812         Thanks to Bruno Haible for suggestions.
60813
60814 2007-10-20  Jim Meyering  <meyering@redhat.com>
60815
60816         * lib/xprintf.c: Include <config.h> unconditionally.
60817
60818         Change xprintf's license to GPL.
60819         * modules/xprintf (License): s/LGPL/GPL/, since this module
60820         depends on modules (exit and exitfail) which are GPL.
60821         Suggestion from Bruno Haible.
60822
60823         xprintf fixes.
60824         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60825         Use a clearer diagnostic.
60826         Patch from Bruno Haible.
60827
60828 2007-10-20  Bruno Haible  <bruno@clisp.org>
60829
60830         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60831         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60832         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60833
60834 2007-10-20  Bruno Haible  <bruno@clisp.org>
60835
60836         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60837         precision in the comparison result > x - 1 or similar.
60838         * tests/test-ceilf2.c (correct_result_p): Likewise.
60839         * tests/test-truncf2.c (correct_result_p): Likewise.
60840         * tests/test-trunc2.c (correct_result_p): Likewise.
60841         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60842
60843 2007-10-20  Bruno Haible  <bruno@clisp.org>
60844
60845         * modules/ceil: New file.
60846         * m4/ceil.m4: New file.
60847         * doc/functions/ceil.texi: Mention the 'ceil' module.
60848
60849 2007-10-20  Bruno Haible  <bruno@clisp.org>
60850
60851         * modules/floor: New file.
60852         * m4/floor.m4: New file.
60853         * doc/functions/floor.texi: Mention the 'floor' module.
60854
60855 2007-10-20  Bruno Haible  <bruno@clisp.org>
60856
60857         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60858         of %a.
60859         * modules/floorf-tests (Depends-on): Likewise.
60860         * modules/truncf-tests (Depends-on): Likewise.
60861         * modules/trunc-tests (Depends-on): Likewise.
60862         Reported by Ben Pfaff.
60863
60864 2007-10-19  Jim Meyering  <meyering@redhat.com>
60865
60866         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60867         Don't bother testing specific errno values.  Just test ferror.
60868
60869         New module: xprintf
60870         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60871
60872 2007-10-19  Bruno Haible  <bruno@clisp.org>
60873
60874         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60875         syntax.
60876         * modules/javaexec (Makefile.am): Likewise.
60877         * modules/relocatable-prog (Makefile.am): Likewise.
60878         Suggested by Jim Meyering.
60879
60880 2007-10-18  Bruno Haible  <bruno@clisp.org>
60881
60882         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60883         Reported by Jim Meyering.
60884
60885 2007-10-18  Eric Blake  <ebb9@byu.net>
60886
60887         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60888
60889 2007-10-18  Bruno Haible  <bruno@clisp.org>
60890
60891         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60892         the format string into writable memory. Needed in Fortify conditions.
60893
60894 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60895             Bruno Haible  <bruno@clisp.org>
60896
60897         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60898         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60899         * modules/trim (Depends-on): Add mbchar.
60900         (configure.ac): Add gl_FUNC_MBRTOWC.
60901         (Makefile.am): Augment lib_SOURCES.
60902
60903 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60904
60905         Modify glob.c to use fstatat and dirfd, to simplify it.
60906         Suggested by Eric Blake.
60907         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60908         Don't include <stdbool.h>; not used.
60909         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60910         (link_exists_p): Simplify implementation, since we can now assume
60911         dirfd and fstatat.
60912         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60913
60914 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60915
60916         * gnulib-tool (func_get_dependencies): Fix sed script to
60917         match only tests.
60918
60919 2007-10-17  Bruno Haible  <bruno@clisp.org>
60920
60921         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60922         allow locale names without encoding suffix.
60923         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60924         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60925
60926 2007-10-16  Bruno Haible  <bruno@clisp.org>
60927
60928         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60929         * lib/getgroups.c (getgroups): Likewise.
60930         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60931
60932 2007-10-16  Bruno Haible  <bruno@clisp.org>
60933
60934         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60935         * modules/malloc-posix (License): Likewise.
60936         * modules/realloc-posix (License): Likewise.
60937         * modules/calloc-posix (License): Likewise.
60938         * modules/intprops (License): Change from GPL to LGPL, with
60939         Paul Eggert's approval.
60940
60941 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60942
60943         Merge glibc changes into lib/glob.c.
60944
60945         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60946         2007-10-15 04:59:03 UTC.  Here are the changes:
60947
60948         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60949
60950         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60951
60952         * lib/glob.c: Add some branch prediction throughout.
60953
60954         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60955
60956         [BZ #5103]
60957         * lib/glob.c (glob): Recognize patterns starting \/.
60958
60959         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60960
60961         [BZ #3996]
60962         * lib/glob.c (attribute_hidden): Define if not defined.
60963         (glob): Unescape dirname, filename or username when needed and not
60964         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60965         is NULL.  Handle unescaped [ in pattern without closing ].
60966         Don't pass GLOB_CHECK down to recursive glob for directories.
60967         (__glob_pattern_type): New function.
60968         (__glob_pattern_p): Implement using __glob_pattern_type.
60969         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60970         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60971         Remove unreachable code.
60972
60973         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60974
60975         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60976         explain why there are no leaks.
60977
60978         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60979
60980         [BZ #3253]
60981         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60982         time, rather allocate increasingly bigger arrays of pointers, if
60983         possible with alloca, if too large with malloc.
60984
60985 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60986
60987         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60988         Problem reported by H.Merijn Brand in
60989         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60990         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60991         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60992
60993 2007-10-15  Bruno Haible  <bruno@clisp.org>
60994
60995         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60996         with explicit rpl_ prefix.
60997         * lib/fopen.c (fopen): Likewise.
60998         * lib/freopen.c (freopen): Likewise.
60999         * lib/iconv.c (iconv): Likewise.
61000         * lib/iconv_close.c (iconv_close): Likewise.
61001
61002 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61003
61004         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61005
61006 2007-10-15  Bruno Haible  <bruno@clisp.org>
61007
61008         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61009         <stddef.h> instead of <stdlib.h> since we only need NULL.
61010         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61011
61012 2007-10-15  Bruno Haible  <bruno@clisp.org>
61013
61014         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61015         Replace paragraph talking about LIBOBJS.
61016         Reported by Colin Watson <cjwatson@debian.org>.
61017
61018 2007-10-15  Bruno Haible  <bruno@clisp.org>
61019
61020         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61021         <stdlib.h> before using NULL.
61022
61023 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61024
61025         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61026         Reported by Albert Chin <china@thewrittenword.com>.
61027
61028 2007-10-14  Bruno Haible  <bruno@clisp.org>
61029
61030         * modules/iconv_open-utf-tests: New file.
61031         * tests/test-iconv-utf.c: New file.
61032
61033         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61034         * modules/iconv_open-utf: New file.
61035         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61036         (iconv, iconv_close): New declarations.
61037         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61038         be defined.
61039         (iconv_open): Add special handling of conversion between UTF-8 and
61040         UTF-{16,32}{BE,LE}.
61041         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61042         * lib/iconv_close.c: New file.
61043         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61044         gl_FUNC_ICONV_OPEN.
61045         (gl_FUNC_ICONV_OPEN): Use it.
61046         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61047         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61048         and REPLACE_ICONV_UTF.
61049         * modules/iconv_open (Depends-on): Add c-strcase.
61050         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61051         ICONV_CONST.
61052         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61053
61054 2007-10-13  Albert Chin  <china@thewrittenword.com>
61055             Bruno Haible  <bruno@clisp.org>
61056
61057         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61058         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61059
61060 2007-10-13  Bruno Haible  <bruno@clisp.org>
61061
61062         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61063         defined, use the ISO C99 inline semantics.
61064         * lib/argp.h (ARGP_EI): Likewise.
61065
61066 2007-10-13  Bruno Haible  <bruno@clisp.org>
61067
61068         Handle 'inline' change in gcc 4.3.0.
61069         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61070         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61071         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61072         argp_fmtstream_point): Disable 'extern' declaration if the function
61073         definition is going to be provided inline.
61074         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61075         semantics, not the ISO C99 inline semantics.
61076         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61077         'extern' declaration if the function definition is going to be provided
61078         inline.
61079         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61080         the GNU C inline semantics, not the ISO C99 inline semantics. With
61081         GCC 4.2, avoid a warning.
61082
61083 2007-10-13  Bruno Haible  <bruno@clisp.org>
61084
61085         * lib/freading.h (freading): Enable the use of __freading for
61086         glibc >= 2.7.
61087         * lib/freading.c (freading): Likewise.
61088
61089 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61090
61091         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61092         "warning: C99 inline functions are not supported; using GNU89".
61093
61094 2007-10-12  Bruno Haible  <bruno@clisp.org>
61095
61096         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61097         of 2.
61098         * tests/test-ceilf2.c: New file.
61099         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61100
61101         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61102         * modules/ceilf-tests: Update.
61103
61104 2007-10-12  Bruno Haible  <bruno@clisp.org>
61105
61106         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61107         of 2.
61108         * tests/test-floorf2.c: New file.
61109         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61110
61111         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61112         * modules/floorf-tests: Update.
61113
61114 2007-10-12  Bruno Haible  <bruno@clisp.org>
61115
61116         * tests/test-trunc2.c: New file.
61117         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61118
61119         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61120         * modules/trunc-tests: Update.
61121
61122 2007-10-12  Bruno Haible  <bruno@clisp.org>
61123
61124         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61125         of 2.
61126         * tests/test-truncf2.c: New file.
61127         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61128
61129         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61130         * modules/truncf-tests: Update.
61131
61132 2007-10-11  Eric Blake  <ebb9@byu.net>
61133
61134         Don't claim strerror is broken on Interix.
61135         * doc/functions/strerror.texi (strerror): Known broken systems are
61136         now Solaris 8, and not Interix.
61137         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61138         Interix on cross-compile.
61139         Reported by Martin Koeppe in
61140         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61141
61142 2007-10-11  Bruno Haible  <bruno@clisp.org>
61143
61144         * modules/i-ring-tests: New file.
61145         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61146         instead of assert.
61147
61148 2007-10-11  Bruno Haible  <bruno@clisp.org>
61149
61150         * modules/filenamecat-tests: New file.
61151         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61152         * lib/filenamecat.c: Remove test code.
61153
61154 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61155
61156         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61157
61158         * lib/strerror.c: Include <string.h> always, to test interface,
61159         and to remove the need for the dummy.
61160         Include intprops.h to compute width instead of doing it ourselves
61161         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61162         (strerror): Define it to return NULL if there's no system strerror.
61163         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61164         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61165         ancient pre-strerror Unix systems well any more.  Saying "unknown
61166         system error" is enough.
61167         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61168         simpler strerror.c implementation.
61169         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61170         Simplify the tests to reflect the simpler strerror implementation.
61171         * modules/strerror (Depends-on): Add intprops.
61172
61173 2007-10-09  Eric Blake  <ebb9@byu.net>
61174
61175         Silence test-fpending.
61176         * modules/fpending-tests (Files): Add wrapper script.
61177         * tests/test-fpending.sh: New file.
61178
61179 2007-10-09  Bruno Haible  <bruno@clisp.org>
61180
61181         * MODULES.html.sh (func_module): Don't create a hyperlink for
61182         function names like 'printf_frexp'.
61183         (Misc): Add crc, memxor.
61184         (Characteristics of floating types): New section.
61185         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61186         isnanf-nolibm, signbit, trunc, truncf, truncl.
61187         (Enhancements for ISO C 99 functions): New subsection Input/output.
61188         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61189         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61190         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61191         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61192         (Enhancements for POSIX:2001 functions): Add chdir-long.
61193         (File system functions): Add areadlink, chdir-safer, read-file.
61194         Remove cycle-check.
61195         (File system as inode set): New section.
61196         (Date and time): Add gethrxtime.
61197         (Multithreading): Add openmp.
61198         (Internationalization functions): Add localename.
61199         (Unicode string functions): Add unistr/u*-mbsnlen.
61200         (Support for maintaining and releasing projects): Add git-version-gen.
61201         (Lone files): Remove directories.
61202
61203 2007-10-08  Ben Pfaff  <blp@gnu.org>
61204
61205         * lib/xmalloca.h: Fix typo in comment.
61206
61207 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61208
61209         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61210         when avoiding problems with integer overflow.  Use a portable test
61211         instead.
61212
61213 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61214
61215         * modules/dummy (License): Change to LGPLv2+.
61216         * modules/float (License): Likewise
61217         * modules/realloc (License): Likewise
61218         * modules/stdlib (License): Likewise
61219
61220 2007-10-07  Bruno Haible  <bruno@clisp.org>
61221
61222         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61223         * floor.c (TWO_MANT_DIG): Likewise.
61224         * ceil.c (TWO_MANT_DIG): Likewise.
61225         Reported by Ben Pfaff.
61226
61227 2007-10-07  Bruno Haible  <bruno@clisp.org>
61228
61229         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61230         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61231         * lib/frexp.c (FUNC): Likewise.
61232         * lib/printf-frexp.h (printf_frexp): Likewise.
61233         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61234         * lib/printf-frexp.c (FUNC): Likewise.
61235         Suggested by Jim Meyering.
61236
61237 2007-10-07  Jim Meyering  <meyering@redhat.com>
61238
61239         Make xnanosleep's integer overflow test more robust.
61240         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61241         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61242
61243 2007-10-07  Bruno Haible  <bruno@clisp.org>
61244
61245         * NEWS: Mention the license change.
61246
61247         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61248         abbreviations in the modules files.
61249
61250         Change copyright notice from GPLv2+ to GPLv3+.
61251         * README: Change copyright notice.
61252         * MODULES.html.sh: Likewise.
61253         * build-aux/bootstrap.conf: Likewise.
61254         * build-aux/config.libpath: Likewise.
61255         * build-aux/csharpcomp.sh.in: Likewise.
61256         * build-aux/csharpexec.sh.in: Likewise.
61257         * build-aux/install-reloc: Likewise.
61258         * build-aux/javacomp.sh.in: Likewise.
61259         * build-aux/javaexec.sh.in: Likewise.
61260         * build-aux/ldd.sh.in: Likewise.
61261         * build-aux/reloc-ldflags: Likewise.
61262         * build-aux/relocatable.sh.in: Likewise.
61263         * build-aux/x-to-1.in: Likewise.
61264         * check-module: Likewise.
61265         * config/srclistvars.sh: Likewise.
61266         * gnulib-tool: Likewise.
61267         * lib/acl-internal.h: Likewise.
61268         * lib/acl.c: Likewise.
61269         * lib/acl.h: Likewise.
61270         * lib/acl_entries.c: Likewise.
61271         * lib/areadlink-with-size.c: Likewise.
61272         * lib/areadlink.c: Likewise.
61273         * lib/areadlink.h: Likewise.
61274         * lib/argmatch.c: Likewise.
61275         * lib/argmatch.h: Likewise.
61276         * lib/argp-ba.c: Likewise.
61277         * lib/argp-eexst.c: Likewise.
61278         * lib/argp-fmtstream.c: Likewise.
61279         * lib/argp-fmtstream.h: Likewise.
61280         * lib/argp-fs-xinl.c: Likewise.
61281         * lib/argp-help.c: Likewise.
61282         * lib/argp-namefrob.h: Likewise.
61283         * lib/argp-parse.c: Likewise.
61284         * lib/argp-pin.c: Likewise.
61285         * lib/argp-pv.c: Likewise.
61286         * lib/argp-pvh.c: Likewise.
61287         * lib/argp-xinl.c: Likewise.
61288         * lib/argp.h: Likewise.
61289         * lib/at-func.c: Likewise.
61290         * lib/atanl.c: Likewise.
61291         * lib/backupfile.c: Likewise.
61292         * lib/backupfile.h: Likewise.
61293         * lib/basename.c: Likewise.
61294         * lib/binary-io.h: Likewise.
61295         * lib/byteswap.in.h: Likewise.
61296         * lib/c-stack.c: Likewise.
61297         * lib/c-stack.h: Likewise.
61298         * lib/c-strcasestr.c: Likewise.
61299         * lib/c-strcasestr.h: Likewise.
61300         * lib/c-strstr.c: Likewise.
61301         * lib/c-strstr.h: Likewise.
61302         * lib/c-strtod.c: Likewise.
61303         * lib/calloc.c: Likewise.
61304         * lib/canon-host.c: Likewise.
61305         * lib/canon-host.h: Likewise.
61306         * lib/canonicalize-lgpl.c: Likewise.
61307         * lib/canonicalize.c: Likewise.
61308         * lib/canonicalize.h: Likewise.
61309         * lib/ceil.c: Likewise.
61310         * lib/ceilf.c: Likewise.
61311         * lib/ceill.c: Likewise.
61312         * lib/chdir-long.c: Likewise.
61313         * lib/chdir-long.h: Likewise.
61314         * lib/chdir-safer.c: Likewise.
61315         * lib/chdir-safer.h: Likewise.
61316         * lib/chown.c: Likewise.
61317         * lib/classpath.c: Likewise.
61318         * lib/classpath.h: Likewise.
61319         * lib/clean-temp.c: Likewise.
61320         * lib/clean-temp.h: Likewise.
61321         * lib/cloexec.c: Likewise.
61322         * lib/close-stream.c: Likewise.
61323         * lib/closein.c: Likewise.
61324         * lib/closein.h: Likewise.
61325         * lib/closeout.c: Likewise.
61326         * lib/closeout.h: Likewise.
61327         * lib/concat-filename.c: Likewise.
61328         * lib/copy-file.c: Likewise.
61329         * lib/copy-file.h: Likewise.
61330         * lib/count-one-bits.h: Likewise.
61331         * lib/crc.c: Likewise.
61332         * lib/crc.h: Likewise.
61333         * lib/creat-safer.c: Likewise.
61334         * lib/csharpcomp.c: Likewise.
61335         * lib/csharpcomp.h: Likewise.
61336         * lib/csharpexec.c: Likewise.
61337         * lib/csharpexec.h: Likewise.
61338         * lib/cycle-check.c: Likewise.
61339         * lib/cycle-check.h: Likewise.
61340         * lib/diacrit.c: Likewise.
61341         * lib/diacrit.h: Likewise.
61342         * lib/diffseq.h: Likewise.
61343         * lib/dirchownmod.c: Likewise.
61344         * lib/dirent.in.h: Likewise.
61345         * lib/dirfd.c: Likewise.
61346         * lib/dirfd.h: Likewise.
61347         * lib/dirname.c: Likewise.
61348         * lib/dirname.h: Likewise.
61349         * lib/dummy.c: Likewise.
61350         * lib/dup-safer.c: Likewise.
61351         * lib/dup2.c: Likewise.
61352         * lib/eealloc.h: Likewise.
61353         * lib/error.c: Likewise.
61354         * lib/error.h: Likewise.
61355         * lib/euidaccess.c: Likewise.
61356         * lib/exclude.c: Likewise.
61357         * lib/exclude.h: Likewise.
61358         * lib/execute.c: Likewise.
61359         * lib/execute.h: Likewise.
61360         * lib/exitfail.c: Likewise.
61361         * lib/exitfail.h: Likewise.
61362         * lib/expl.c: Likewise.
61363         * lib/fatal-signal.c: Likewise.
61364         * lib/fatal-signal.h: Likewise.
61365         * lib/fbufmode.c: Likewise.
61366         * lib/fbufmode.h: Likewise.
61367         * lib/fchdir.c: Likewise.
61368         * lib/fchmodat.c: Likewise.
61369         * lib/fchownat.c: Likewise.
61370         * lib/fcntl--.h: Likewise.
61371         * lib/fcntl-safer.h: Likewise.
61372         * lib/fcntl.in.h: Likewise.
61373         * lib/fd-safer.c: Likewise.
61374         * lib/fflush.c: Likewise.
61375         * lib/file-has-acl.c: Likewise.
61376         * lib/file-set.c: Likewise.
61377         * lib/file-type.c: Likewise.
61378         * lib/file-type.h: Likewise.
61379         * lib/fileblocks.c: Likewise.
61380         * lib/filemode.c: Likewise.
61381         * lib/filemode.h: Likewise.
61382         * lib/filename.h: Likewise.
61383         * lib/filenamecat.c: Likewise.
61384         * lib/filenamecat.h: Likewise.
61385         * lib/findprog.c: Likewise.
61386         * lib/findprog.h: Likewise.
61387         * lib/float.in.h: Likewise.
61388         * lib/floor.c: Likewise.
61389         * lib/floorf.c: Likewise.
61390         * lib/floorl.c: Likewise.
61391         * lib/fopen-safer.c: Likewise.
61392         * lib/fopen.c: Likewise.
61393         * lib/fpending.c: Likewise.
61394         * lib/fpending.h: Likewise.
61395         * lib/fprintf.c: Likewise.
61396         * lib/fprintftime.h: Likewise.
61397         * lib/fpucw.h: Likewise.
61398         * lib/fpurge.c: Likewise.
61399         * lib/fpurge.h: Likewise.
61400         * lib/freadable.c: Likewise.
61401         * lib/freadable.h: Likewise.
61402         * lib/freadahead.c: Likewise.
61403         * lib/freadahead.h: Likewise.
61404         * lib/freading.c: Likewise.
61405         * lib/freading.h: Likewise.
61406         * lib/free.c: Likewise.
61407         * lib/freopen.c: Likewise.
61408         * lib/frexp.c: Likewise.
61409         * lib/frexpl.c: Likewise.
61410         * lib/fseek.c: Likewise.
61411         * lib/fseterr.c: Likewise.
61412         * lib/fseterr.h: Likewise.
61413         * lib/fstatat.c: Likewise.
61414         * lib/fstrcmp.c: Likewise.
61415         * lib/fstrcmp.h: Likewise.
61416         * lib/fsusage.c: Likewise.
61417         * lib/fsusage.h: Likewise.
61418         * lib/ftell.c: Likewise.
61419         * lib/ftello.c: Likewise.
61420         * lib/fts-cycle.c: Likewise.
61421         * lib/fts.c: Likewise.
61422         * lib/fts_.h: Likewise.
61423         * lib/full-read.c: Likewise.
61424         * lib/full-read.h: Likewise.
61425         * lib/full-write.c: Likewise.
61426         * lib/full-write.h: Likewise.
61427         * lib/fwritable.c: Likewise.
61428         * lib/fwritable.h: Likewise.
61429         * lib/fwriteerror.c: Likewise.
61430         * lib/fwriteerror.h: Likewise.
61431         * lib/fwriting.c: Likewise.
61432         * lib/fwriting.h: Likewise.
61433         * lib/gcd.c: Likewise.
61434         * lib/gcd.h: Likewise.
61435         * lib/getcwd.c: Likewise.
61436         * lib/getdate.h: Likewise.
61437         * lib/getdate.y: Likewise.
61438         * lib/getdomainname.c: Likewise.
61439         * lib/getdomainname.h: Likewise.
61440         * lib/getgroups.c: Likewise.
61441         * lib/gethostname.c: Likewise.
61442         * lib/gethrxtime.c: Likewise.
61443         * lib/gethrxtime.h: Likewise.
61444         * lib/getloadavg.c: Likewise.
61445         * lib/getndelim2.c: Likewise.
61446         * lib/getndelim2.h: Likewise.
61447         * lib/getnline.c: Likewise.
61448         * lib/getnline.h: Likewise.
61449         * lib/getopt.c: Likewise.
61450         * lib/getopt.in.h: Likewise.
61451         * lib/getopt1.c: Likewise.
61452         * lib/getopt_int.h: Likewise.
61453         * lib/getpagesize.h: Likewise.
61454         * lib/getsubopt.c: Likewise.
61455         * lib/gettime.c: Likewise.
61456         * lib/getugroups.c: Likewise.
61457         * lib/getugroups.h: Likewise.
61458         * lib/getusershell.c: Likewise.
61459         * lib/gl_anyavltree_list1.h: Likewise.
61460         * lib/gl_anyavltree_list2.h: Likewise.
61461         * lib/gl_anyhash_list1.h: Likewise.
61462         * lib/gl_anyhash_list2.h: Likewise.
61463         * lib/gl_anylinked_list1.h: Likewise.
61464         * lib/gl_anylinked_list2.h: Likewise.
61465         * lib/gl_anyrbtree_list1.h: Likewise.
61466         * lib/gl_anyrbtree_list2.h: Likewise.
61467         * lib/gl_anytree_list1.h: Likewise.
61468         * lib/gl_anytree_list2.h: Likewise.
61469         * lib/gl_anytree_oset.h: Likewise.
61470         * lib/gl_anytreehash_list1.h: Likewise.
61471         * lib/gl_anytreehash_list2.h: Likewise.
61472         * lib/gl_array_list.c: Likewise.
61473         * lib/gl_array_list.h: Likewise.
61474         * lib/gl_array_oset.c: Likewise.
61475         * lib/gl_array_oset.h: Likewise.
61476         * lib/gl_avltree_list.c: Likewise.
61477         * lib/gl_avltree_list.h: Likewise.
61478         * lib/gl_avltree_oset.c: Likewise.
61479         * lib/gl_avltree_oset.h: Likewise.
61480         * lib/gl_avltreehash_list.c: Likewise.
61481         * lib/gl_avltreehash_list.h: Likewise.
61482         * lib/gl_carray_list.c: Likewise.
61483         * lib/gl_carray_list.h: Likewise.
61484         * lib/gl_linked_list.c: Likewise.
61485         * lib/gl_linked_list.h: Likewise.
61486         * lib/gl_linkedhash_list.c: Likewise.
61487         * lib/gl_linkedhash_list.h: Likewise.
61488         * lib/gl_list.c: Likewise.
61489         * lib/gl_list.h: Likewise.
61490         * lib/gl_oset.c: Likewise.
61491         * lib/gl_oset.h: Likewise.
61492         * lib/gl_rbtree_list.c: Likewise.
61493         * lib/gl_rbtree_list.h: Likewise.
61494         * lib/gl_rbtree_oset.c: Likewise.
61495         * lib/gl_rbtree_oset.h: Likewise.
61496         * lib/gl_rbtreehash_list.c: Likewise.
61497         * lib/gl_rbtreehash_list.h: Likewise.
61498         * lib/gl_sublist.c: Likewise.
61499         * lib/gl_sublist.h: Likewise.
61500         * lib/group-member.c: Likewise.
61501         * lib/group-member.h: Likewise.
61502         * lib/hard-locale.c: Likewise.
61503         * lib/hard-locale.h: Likewise.
61504         * lib/hash-pjw.c: Likewise.
61505         * lib/hash-pjw.h: Likewise.
61506         * lib/hash-triple.c: Likewise.
61507         * lib/hash.c: Likewise.
61508         * lib/hash.h: Likewise.
61509         * lib/human.c: Likewise.
61510         * lib/human.h: Likewise.
61511         * lib/i-ring.c: Likewise.
61512         * lib/i-ring.h: Likewise.
61513         * lib/idcache.c: Likewise.
61514         * lib/imaxabs.c: Likewise.
61515         * lib/imaxdiv.c: Likewise.
61516         * lib/inet_pton.c: Likewise.
61517         * lib/inet_pton.h: Likewise.
61518         * lib/intprops.h: Likewise.
61519         * lib/inttostr.c: Likewise.
61520         * lib/inttostr.h: Likewise.
61521         * lib/inttypes.in.h: Likewise.
61522         * lib/isapipe.c: Likewise.
61523         * lib/isdir.c: Likewise.
61524         * lib/isnan.c: Likewise.
61525         * lib/isnan.h: Likewise.
61526         * lib/isnanf.c: Likewise.
61527         * lib/isnanf.h: Likewise.
61528         * lib/isnanl-nolibm.h: Likewise.
61529         * lib/isnanl.c: Likewise.
61530         * lib/isnanl.h: Likewise.
61531         * lib/javacomp.c: Likewise.
61532         * lib/javacomp.h: Likewise.
61533         * lib/javaexec.c: Likewise.
61534         * lib/javaexec.h: Likewise.
61535         * lib/javaversion.c: Likewise.
61536         * lib/javaversion.h: Likewise.
61537         * lib/javaversion.java: Likewise.
61538         * lib/lbrkprop.h: Likewise.
61539         * lib/lchmod.h: Likewise.
61540         * lib/lchown.c: Likewise.
61541         * lib/ldexpl.c: Likewise.
61542         * lib/linebreak.c: Likewise.
61543         * lib/linebreak.h: Likewise.
61544         * lib/linebuffer.c: Likewise.
61545         * lib/linebuffer.h: Likewise.
61546         * lib/locale.in.h: Likewise.
61547         * lib/logl.c: Likewise.
61548         * lib/long-options.c: Likewise.
61549         * lib/long-options.h: Likewise.
61550         * lib/lstat.c: Likewise.
61551         * lib/lstat.h: Likewise.
61552         * lib/math.in.h: Likewise.
61553         * lib/mbchar.c: Likewise.
61554         * lib/mbchar.h: Likewise.
61555         * lib/mbfile.h: Likewise.
61556         * lib/mbiter.h: Likewise.
61557         * lib/mbscasecmp.c: Likewise.
61558         * lib/mbscasestr.c: Likewise.
61559         * lib/mbschr.c: Likewise.
61560         * lib/mbscspn.c: Likewise.
61561         * lib/mbslen.c: Likewise.
61562         * lib/mbsncasecmp.c: Likewise.
61563         * lib/mbsnlen.c: Likewise.
61564         * lib/mbspbrk.c: Likewise.
61565         * lib/mbspcasecmp.c: Likewise.
61566         * lib/mbsrchr.c: Likewise.
61567         * lib/mbssep.c: Likewise.
61568         * lib/mbsspn.c: Likewise.
61569         * lib/mbsstr.c: Likewise.
61570         * lib/mbstok_r.c: Likewise.
61571         * lib/mbswidth.c: Likewise.
61572         * lib/mbswidth.h: Likewise.
61573         * lib/mbuiter.h: Likewise.
61574         * lib/memcasecmp.c: Likewise.
61575         * lib/memcasecmp.h: Likewise.
61576         * lib/memchr.c: Likewise.
61577         * lib/memcmp.c: Likewise.
61578         * lib/memcoll.c: Likewise.
61579         * lib/memcoll.h: Likewise.
61580         * lib/memcpy.c: Likewise.
61581         * lib/memrchr.c: Likewise.
61582         * lib/mkancesdirs.c: Likewise.
61583         * lib/mkdir-p.c: Likewise.
61584         * lib/mkdir-p.h: Likewise.
61585         * lib/mkdir.c: Likewise.
61586         * lib/mkdirat.c: Likewise.
61587         * lib/mkdtemp.c: Likewise.
61588         * lib/mkstemp-safer.c: Likewise.
61589         * lib/mkstemp.c: Likewise.
61590         * lib/modechange.c: Likewise.
61591         * lib/modechange.h: Likewise.
61592         * lib/mountlist.c: Likewise.
61593         * lib/mountlist.h: Likewise.
61594         * lib/mpsort.c: Likewise.
61595         * lib/nanosleep.c: Likewise.
61596         * lib/obstack.c: Likewise.
61597         * lib/obstack.h: Likewise.
61598         * lib/open-safer.c: Likewise.
61599         * lib/open.c: Likewise.
61600         * lib/openat-die.c: Likewise.
61601         * lib/openat-priv.h: Likewise.
61602         * lib/openat-proc.c: Likewise.
61603         * lib/openat.c: Likewise.
61604         * lib/openat.h: Likewise.
61605         * lib/pagealign_alloc.c: Likewise.
61606         * lib/pagealign_alloc.h: Likewise.
61607         * lib/physmem.c: Likewise.
61608         * lib/physmem.h: Likewise.
61609         * lib/pipe-safer.c: Likewise.
61610         * lib/pipe.c: Likewise.
61611         * lib/pipe.h: Likewise.
61612         * lib/posixtm.c: Likewise.
61613         * lib/posixtm.h: Likewise.
61614         * lib/posixver.c: Likewise.
61615         * lib/printf-frexp.c: Likewise.
61616         * lib/printf-frexp.h: Likewise.
61617         * lib/printf-frexpl.c: Likewise.
61618         * lib/printf-frexpl.h: Likewise.
61619         * lib/printf.c: Likewise.
61620         * lib/progname.c: Likewise.
61621         * lib/progname.h: Likewise.
61622         * lib/progreloc.c: Likewise.
61623         * lib/putenv.c: Likewise.
61624         * lib/quote.c: Likewise.
61625         * lib/quote.h: Likewise.
61626         * lib/quotearg.c: Likewise.
61627         * lib/quotearg.h: Likewise.
61628         * lib/raise.c: Likewise.
61629         * lib/readline.c: Likewise.
61630         * lib/readline.h: Likewise.
61631         * lib/readlink.c: Likewise.
61632         * lib/readtokens.c: Likewise.
61633         * lib/readtokens.h: Likewise.
61634         * lib/readtokens0.c: Likewise.
61635         * lib/readtokens0.h: Likewise.
61636         * lib/readutmp.c: Likewise.
61637         * lib/readutmp.h: Likewise.
61638         * lib/realloc.c: Likewise.
61639         * lib/relocwrapper.c: Likewise.
61640         * lib/rename-dest-slash.c: Likewise.
61641         * lib/rename.c: Likewise.
61642         * lib/rmdir.c: Likewise.
61643         * lib/rpmatch.c: Likewise.
61644         * lib/safe-read.c: Likewise.
61645         * lib/safe-read.h: Likewise.
61646         * lib/safe-write.c: Likewise.
61647         * lib/safe-write.h: Likewise.
61648         * lib/same-inode.h: Likewise.
61649         * lib/same.c: Likewise.
61650         * lib/same.h: Likewise.
61651         * lib/save-cwd.c: Likewise.
61652         * lib/save-cwd.h: Likewise.
61653         * lib/savedir.c: Likewise.
61654         * lib/savedir.h: Likewise.
61655         * lib/savewd.c: Likewise.
61656         * lib/savewd.h: Likewise.
61657         * lib/search.in.h: Likewise.
61658         * lib/setenv.c: Likewise.
61659         * lib/setenv.h: Likewise.
61660         * lib/settime.c: Likewise.
61661         * lib/sh-quote.c: Likewise.
61662         * lib/sh-quote.h: Likewise.
61663         * lib/sig2str.c: Likewise.
61664         * lib/sig2str.h: Likewise.
61665         * lib/signal.in.h: Likewise.
61666         * lib/signbitd.c: Likewise.
61667         * lib/signbitf.c: Likewise.
61668         * lib/signbitl.c: Likewise.
61669         * lib/sigprocmask.c: Likewise.
61670         * lib/sincosl.c: Likewise.
61671         * lib/sleep.c: Likewise.
61672         * lib/sprintf.c: Likewise.
61673         * lib/sqrtl.c: Likewise.
61674         * lib/stat-time.h: Likewise.
61675         * lib/stdio--.h: Likewise.
61676         * lib/stdio-safer.h: Likewise.
61677         * lib/stdlib--.h: Likewise.
61678         * lib/stdlib-safer.h: Likewise.
61679         * lib/stdlib.in.h: Likewise.
61680         * lib/stpcpy.c: Likewise.
61681         * lib/stpncpy.c: Likewise.
61682         * lib/strchrnul.c: Likewise.
61683         * lib/strcspn.c: Likewise.
61684         * lib/strerror.c: Likewise.
61685         * lib/strftime.c: Likewise.
61686         * lib/strftime.h: Likewise.
61687         * lib/striconveh.c: Likewise.
61688         * lib/striconveh.h: Likewise.
61689         * lib/striconveha.c: Likewise.
61690         * lib/striconveha.h: Likewise.
61691         * lib/stripslash.c: Likewise.
61692         * lib/strnlen1.c: Likewise.
61693         * lib/strnlen1.h: Likewise.
61694         * lib/strtod.c: Likewise.
61695         * lib/strtoimax.c: Likewise.
61696         * lib/strtok_r.c: Likewise.
61697         * lib/strtol.c: Likewise.
61698         * lib/strtoll.c: Likewise.
61699         * lib/strtoul.c: Likewise.
61700         * lib/strtoull.c: Likewise.
61701         * lib/sysexits.in.h: Likewise.
61702         * lib/tempname.c: Likewise.
61703         * lib/tempname.h: Likewise.
61704         * lib/timespec.h: Likewise.
61705         * lib/tls.c: Likewise.
61706         * lib/tls.h: Likewise.
61707         * lib/tmpdir.c: Likewise.
61708         * lib/tmpdir.h: Likewise.
61709         * lib/tmpfile-safer.c: Likewise.
61710         * lib/tmpfile.c: Likewise.
61711         * lib/trigl.c: Likewise.
61712         * lib/trigl.h: Likewise.
61713         * lib/trim.c: Likewise.
61714         * lib/trim.h: Likewise.
61715         * lib/trunc.c: Likewise.
61716         * lib/truncf.c: Likewise.
61717         * lib/truncl.c: Likewise.
61718         * lib/tsearch.c: Likewise.
61719         * lib/unicodeio.c: Likewise.
61720         * lib/unicodeio.h: Likewise.
61721         * lib/unistd--.h: Likewise.
61722         * lib/unistd-safer.h: Likewise.
61723         * lib/unistdio/ulc-fprintf.c: Likewise.
61724         * lib/unistdio/ulc-vfprintf.c: Likewise.
61725         * lib/unlinkdir.c: Likewise.
61726         * lib/unlinkdir.h: Likewise.
61727         * lib/unlocked-io.h: Likewise.
61728         * lib/unsetenv.c: Likewise.
61729         * lib/userspec.c: Likewise.
61730         * lib/utime.c: Likewise.
61731         * lib/utimecmp.c: Likewise.
61732         * lib/utimecmp.h: Likewise.
61733         * lib/utimens.c: Likewise.
61734         * lib/verify.h: Likewise.
61735         * lib/verror.c: Likewise.
61736         * lib/verror.h: Likewise.
61737         * lib/version-etc-fsf.c: Likewise.
61738         * lib/version-etc.c: Likewise.
61739         * lib/version-etc.h: Likewise.
61740         * lib/vfprintf.c: Likewise.
61741         * lib/vprintf.c: Likewise.
61742         * lib/vsprintf.c: Likewise.
61743         * lib/w32spawn.h: Likewise.
61744         * lib/wait-process.c: Likewise.
61745         * lib/wait-process.h: Likewise.
61746         * lib/wcwidth.c: Likewise.
61747         * lib/write-any-file.c: Likewise.
61748         * lib/xalloc-die.c: Likewise.
61749         * lib/xalloc.h: Likewise.
61750         * lib/xasprintf.c: Likewise.
61751         * lib/xgetcwd.c: Likewise.
61752         * lib/xgetcwd.h: Likewise.
61753         * lib/xgetdomainname.c: Likewise.
61754         * lib/xgetdomainname.h: Likewise.
61755         * lib/xgethostname.c: Likewise.
61756         * lib/xmalloc.c: Likewise.
61757         * lib/xmalloca.c: Likewise.
61758         * lib/xmalloca.h: Likewise.
61759         * lib/xmemcoll.c: Likewise.
61760         * lib/xnanosleep.c: Likewise.
61761         * lib/xreadlink.c: Likewise.
61762         * lib/xreadlink.h: Likewise.
61763         * lib/xsetenv.c: Likewise.
61764         * lib/xsetenv.h: Likewise.
61765         * lib/xstriconv.c: Likewise.
61766         * lib/xstriconv.h: Likewise.
61767         * lib/xstrndup.c: Likewise.
61768         * lib/xstrndup.h: Likewise.
61769         * lib/xstrtod.c: Likewise.
61770         * lib/xstrtod.h: Likewise.
61771         * lib/xstrtol-error.c: Likewise.
61772         * lib/xstrtol.c: Likewise.
61773         * lib/xstrtol.h: Likewise.
61774         * lib/xtime.h: Likewise.
61775         * lib/xvasprintf.c: Likewise.
61776         * lib/xvasprintf.h: Likewise.
61777         * lib/yesno.c: Likewise.
61778         * lib/yesno.h: Likewise.
61779         * posix-modules: Likewise.
61780         * tests/test-alloca-opt.c: Likewise.
61781         * tests/test-arcfour.c: Likewise.
61782         * tests/test-arctwo.c: Likewise.
61783         * tests/test-argmatch.c: Likewise.
61784         * tests/test-argp-2.sh: Likewise.
61785         * tests/test-argp.c: Likewise.
61786         * tests/test-arpa_inet.c: Likewise.
61787         * tests/test-array_list.c: Likewise.
61788         * tests/test-array_oset.c: Likewise.
61789         * tests/test-atexit.c: Likewise.
61790         * tests/test-avltree_list.c: Likewise.
61791         * tests/test-avltree_oset.c: Likewise.
61792         * tests/test-avltreehash_list.c: Likewise.
61793         * tests/test-base64.c: Likewise.
61794         * tests/test-binary-io.c: Likewise.
61795         * tests/test-byteswap.c: Likewise.
61796         * tests/test-c-ctype.c: Likewise.
61797         * tests/test-c-strcasecmp.c: Likewise.
61798         * tests/test-c-strcasestr.c: Likewise.
61799         * tests/test-c-strncasecmp.c: Likewise.
61800         * tests/test-c-strstr.c: Likewise.
61801         * tests/test-canonicalize-lgpl.c: Likewise.
61802         * tests/test-canonicalize.c: Likewise.
61803         * tests/test-carray_list.c: Likewise.
61804         * tests/test-ceilf.c: Likewise.
61805         * tests/test-ceill.c: Likewise.
61806         * tests/test-count-one-bits.c: Likewise.
61807         * tests/test-crc.c: Likewise.
61808         * tests/test-dirname.c: Likewise.
61809         * tests/test-fbufmode.c: Likewise.
61810         * tests/test-fcntl.c: Likewise.
61811         * tests/test-fflush.c: Likewise.
61812         * tests/test-floorf.c: Likewise.
61813         * tests/test-floorl.c: Likewise.
61814         * tests/test-fopen.c: Likewise.
61815         * tests/test-fprintf-posix.c: Likewise.
61816         * tests/test-fprintf-posix.h: Likewise.
61817         * tests/test-fpurge.c: Likewise.
61818         * tests/test-freadable.c: Likewise.
61819         * tests/test-freadahead.c: Likewise.
61820         * tests/test-freading.c: Likewise.
61821         * tests/test-freopen.c: Likewise.
61822         * tests/test-frexp.c: Likewise.
61823         * tests/test-frexpl.c: Likewise.
61824         * tests/test-fseek.c: Likewise.
61825         * tests/test-fseeko.c: Likewise.
61826         * tests/test-fseterr.c: Likewise.
61827         * tests/test-fstrcmp.c: Likewise.
61828         * tests/test-ftell.c: Likewise.
61829         * tests/test-ftello.c: Likewise.
61830         * tests/test-fwritable.c: Likewise.
61831         * tests/test-fwriting.c: Likewise.
61832         * tests/test-getaddrinfo.c: Likewise.
61833         * tests/test-getpass.c: Likewise.
61834         * tests/test-gettimeofday.c: Likewise.
61835         * tests/test-hmac-md5.c: Likewise.
61836         * tests/test-hmac-sha1.c: Likewise.
61837         * tests/test-iconv.c: Likewise.
61838         * tests/test-iconvme.c: Likewise.
61839         * tests/test-inttypes.c: Likewise.
61840         * tests/test-isnan.c: Likewise.
61841         * tests/test-isnanf.c: Likewise.
61842         * tests/test-isnanl-nolibm.c: Likewise.
61843         * tests/test-isnanl.c: Likewise.
61844         * tests/test-isnanl.h: Likewise.
61845         * tests/test-ldexpl.c: Likewise.
61846         * tests/test-linked_list.c: Likewise.
61847         * tests/test-linkedhash_list.c: Likewise.
61848         * tests/test-locale.c: Likewise.
61849         * tests/test-localename.c: Likewise.
61850         * tests/test-lock.c: Likewise.
61851         * tests/test-lseek.c: Likewise.
61852         * tests/test-malloca.c: Likewise.
61853         * tests/test-math.c: Likewise.
61854         * tests/test-mbscasecmp.c: Likewise.
61855         * tests/test-mbscasestr1.c: Likewise.
61856         * tests/test-mbscasestr2.c: Likewise.
61857         * tests/test-mbscasestr3.c: Likewise.
61858         * tests/test-mbscasestr4.c: Likewise.
61859         * tests/test-mbschr.c: Likewise.
61860         * tests/test-mbscspn.c: Likewise.
61861         * tests/test-mbsncasecmp.c: Likewise.
61862         * tests/test-mbspbrk.c: Likewise.
61863         * tests/test-mbspcasecmp.c: Likewise.
61864         * tests/test-mbsrchr.c: Likewise.
61865         * tests/test-mbsspn.c: Likewise.
61866         * tests/test-mbsstr1.c: Likewise.
61867         * tests/test-mbsstr2.c: Likewise.
61868         * tests/test-mbsstr3.c: Likewise.
61869         * tests/test-md5.c: Likewise.
61870         * tests/test-memmem.c: Likewise.
61871         * tests/test-netinet_in.c: Likewise.
61872         * tests/test-open.c: Likewise.
61873         * tests/test-printf-frexp.c: Likewise.
61874         * tests/test-printf-frexpl.c: Likewise.
61875         * tests/test-printf-posix.c: Likewise.
61876         * tests/test-printf-posix.h: Likewise.
61877         * tests/test-rbtree_list.c: Likewise.
61878         * tests/test-rbtree_oset.c: Likewise.
61879         * tests/test-rbtreehash_list.c: Likewise.
61880         * tests/test-read-file.c: Likewise.
61881         * tests/test-rijndael.c: Likewise.
61882         * tests/test-search.c: Likewise.
61883         * tests/test-signbit.c: Likewise.
61884         * tests/test-sleep.c: Likewise.
61885         * tests/test-snprintf-posix.c: Likewise.
61886         * tests/test-snprintf-posix.h: Likewise.
61887         * tests/test-snprintf.c: Likewise.
61888         * tests/test-sprintf-posix.c: Likewise.
61889         * tests/test-sprintf-posix.h: Likewise.
61890         * tests/test-stat-time.c: Likewise.
61891         * tests/test-stdbool.c: Likewise.
61892         * tests/test-stdint.c: Likewise.
61893         * tests/test-stdio.c: Likewise.
61894         * tests/test-stdlib.c: Likewise.
61895         * tests/test-stpncpy.c: Likewise.
61896         * tests/test-strcasestr.c: Likewise.
61897         * tests/test-striconv.c: Likewise.
61898         * tests/test-striconveh.c: Likewise.
61899         * tests/test-striconveha.c: Likewise.
61900         * tests/test-string.c: Likewise.
61901         * tests/test-sys_select.c: Likewise.
61902         * tests/test-sys_socket.c: Likewise.
61903         * tests/test-sys_stat.c: Likewise.
61904         * tests/test-sys_time.c: Likewise.
61905         * tests/test-sysexits.c: Likewise.
61906         * tests/test-time.c: Likewise.
61907         * tests/test-tls.c: Likewise.
61908         * tests/test-trunc.c: Likewise.
61909         * tests/test-truncf.c: Likewise.
61910         * tests/test-truncl.c: Likewise.
61911         * tests/test-unistd.c: Likewise.
61912         * tests/test-vasnprintf-posix.c: Likewise.
61913         * tests/test-vasnprintf-posix2.c: Likewise.
61914         * tests/test-vasnprintf.c: Likewise.
61915         * tests/test-vasprintf-posix.c: Likewise.
61916         * tests/test-vasprintf.c: Likewise.
61917         * tests/test-verify.c: Likewise.
61918         * tests/test-vfprintf-posix.c: Likewise.
61919         * tests/test-vprintf-posix.c: Likewise.
61920         * tests/test-vsnprintf-posix.c: Likewise.
61921         * tests/test-vsnprintf.c: Likewise.
61922         * tests/test-vsprintf-posix.c: Likewise.
61923         * tests/test-wchar.c: Likewise.
61924         * tests/test-wctype.c: Likewise.
61925         * tests/test-wcwidth.c: Likewise.
61926         * tests/test-xstrtol.c: Likewise.
61927         * tests/test-xvasprintf.c: Likewise.
61928         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61929         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61930         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61931         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61932         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61933         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61934         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61935         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61936         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61937         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61938         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61939         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61940         * tests/uniname/test-uninames.c: Likewise.
61941         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61942         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61943         * tests/unistdio/test-u16-printf1.h: Likewise.
61944         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61945         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61946         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61947         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61948         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61949         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61950         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61951         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61952         * tests/unistdio/test-u32-printf1.h: Likewise.
61953         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61954         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61955         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61956         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61957         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61958         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61959         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61960         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61961         * tests/unistdio/test-u8-printf1.h: Likewise.
61962         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61963         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61964         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61965         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61966         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61967         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61968         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61969         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61970         * tests/unistdio/test-ulc-printf1.h: Likewise.
61971         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61972         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61973         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61974         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61975         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61976         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61977         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61978         * tests/uniwidth/test-u16-width.c: Likewise.
61979         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61980         * tests/uniwidth/test-u32-width.c: Likewise.
61981         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61982         * tests/uniwidth/test-u8-width.c: Likewise.
61983         * tests/uniwidth/test-uc_width.c: Likewise.
61984         * config/srclist-update: Likewise.
61985         (fixlicense): Update to GPLv3+.
61986
61987         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61988         * tests/test-tsearch.c: Change copyright notice.
61989
61990         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61991         * lib/c-strcaseeq.h: Change copyright notice.
61992         * lib/streq.h: Likewise.
61993         * lib/uniconv.h: Likewise.
61994         * lib/uniconv/u-conv-from-enc.h: Likewise.
61995         * lib/uniconv/u-conv-to-enc.h: Likewise.
61996         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61997         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61998         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61999         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62000         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62001         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62002         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62003         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62004         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62005         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62006         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62007         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62008         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62009         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62010         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62011         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62012         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62013         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62014         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62015         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62016         * lib/uniname.h: Likewise.
62017         * lib/uniname/uniname.c: Likewise.
62018         * lib/unistdio.h: Likewise.
62019         * lib/unistdio/u-asnprintf.h: Likewise.
62020         * lib/unistdio/u-asprintf.h: Likewise.
62021         * lib/unistdio/u-printf-args.c: Likewise.
62022         * lib/unistdio/u-printf-args.h: Likewise.
62023         * lib/unistdio/u-printf-parse.h: Likewise.
62024         * lib/unistdio/u-snprintf.h: Likewise.
62025         * lib/unistdio/u-sprintf.h: Likewise.
62026         * lib/unistdio/u-vasprintf.h: Likewise.
62027         * lib/unistdio/u-vsnprintf.h: Likewise.
62028         * lib/unistdio/u-vsprintf.h: Likewise.
62029         * lib/unistdio/u16-asnprintf.c: Likewise.
62030         * lib/unistdio/u16-asprintf.c: Likewise.
62031         * lib/unistdio/u16-printf-parse.c: Likewise.
62032         * lib/unistdio/u16-snprintf.c: Likewise.
62033         * lib/unistdio/u16-sprintf.c: Likewise.
62034         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62035         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62036         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62037         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62038         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62039         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62040         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62041         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62042         * lib/unistdio/u16-vasnprintf.c: Likewise.
62043         * lib/unistdio/u16-vasprintf.c: Likewise.
62044         * lib/unistdio/u16-vsnprintf.c: Likewise.
62045         * lib/unistdio/u16-vsprintf.c: Likewise.
62046         * lib/unistdio/u32-asnprintf.c: Likewise.
62047         * lib/unistdio/u32-asprintf.c: Likewise.
62048         * lib/unistdio/u32-printf-parse.c: Likewise.
62049         * lib/unistdio/u32-snprintf.c: Likewise.
62050         * lib/unistdio/u32-sprintf.c: Likewise.
62051         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62052         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62053         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62054         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62055         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62056         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62057         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62058         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62059         * lib/unistdio/u32-vasnprintf.c: Likewise.
62060         * lib/unistdio/u32-vasprintf.c: Likewise.
62061         * lib/unistdio/u32-vsnprintf.c: Likewise.
62062         * lib/unistdio/u32-vsprintf.c: Likewise.
62063         * lib/unistdio/u8-asnprintf.c: Likewise.
62064         * lib/unistdio/u8-asprintf.c: Likewise.
62065         * lib/unistdio/u8-printf-parse.c: Likewise.
62066         * lib/unistdio/u8-snprintf.c: Likewise.
62067         * lib/unistdio/u8-sprintf.c: Likewise.
62068         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62069         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62070         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62071         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62072         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62073         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62074         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62075         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62076         * lib/unistdio/u8-vasnprintf.c: Likewise.
62077         * lib/unistdio/u8-vasprintf.c: Likewise.
62078         * lib/unistdio/u8-vsnprintf.c: Likewise.
62079         * lib/unistdio/u8-vsprintf.c: Likewise.
62080         * lib/unistdio/ulc-asnprintf.c: Likewise.
62081         * lib/unistdio/ulc-asprintf.c: Likewise.
62082         * lib/unistdio/ulc-printf-parse.c: Likewise.
62083         * lib/unistdio/ulc-snprintf.c: Likewise.
62084         * lib/unistdio/ulc-sprintf.c: Likewise.
62085         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62086         * lib/unistdio/ulc-vasprintf.c: Likewise.
62087         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62088         * lib/unistdio/ulc-vsprintf.c: Likewise.
62089         * lib/unistr.h: Likewise.
62090         * lib/unistr/u-cpy-alloc.h: Likewise.
62091         * lib/unistr/u-cpy.h: Likewise.
62092         * lib/unistr/u-endswith.h: Likewise.
62093         * lib/unistr/u-move.h: Likewise.
62094         * lib/unistr/u-set.h: Likewise.
62095         * lib/unistr/u-startswith.h: Likewise.
62096         * lib/unistr/u-stpcpy.h: Likewise.
62097         * lib/unistr/u-stpncpy.h: Likewise.
62098         * lib/unistr/u-strcat.h: Likewise.
62099         * lib/unistr/u-strcpy.h: Likewise.
62100         * lib/unistr/u-strcspn.h: Likewise.
62101         * lib/unistr/u-strdup.h: Likewise.
62102         * lib/unistr/u-strlen.h: Likewise.
62103         * lib/unistr/u-strncat.h: Likewise.
62104         * lib/unistr/u-strncpy.h: Likewise.
62105         * lib/unistr/u-strnlen.h: Likewise.
62106         * lib/unistr/u-strpbrk.h: Likewise.
62107         * lib/unistr/u-strspn.h: Likewise.
62108         * lib/unistr/u-strstr.h: Likewise.
62109         * lib/unistr/u-strtok.h: Likewise.
62110         * lib/unistr/u16-check.c: Likewise.
62111         * lib/unistr/u16-chr.c: Likewise.
62112         * lib/unistr/u16-cmp.c: Likewise.
62113         * lib/unistr/u16-cpy-alloc.c: Likewise.
62114         * lib/unistr/u16-cpy.c: Likewise.
62115         * lib/unistr/u16-endswith.c: Likewise.
62116         * lib/unistr/u16-mblen.c: Likewise.
62117         * lib/unistr/u16-mbsnlen.c: Likewise.
62118         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62119         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62120         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62121         * lib/unistr/u16-mbtouc.c: Likewise.
62122         * lib/unistr/u16-mbtoucr.c: Likewise.
62123         * lib/unistr/u16-move.c: Likewise.
62124         * lib/unistr/u16-next.c: Likewise.
62125         * lib/unistr/u16-prev.c: Likewise.
62126         * lib/unistr/u16-set.c: Likewise.
62127         * lib/unistr/u16-startswith.c: Likewise.
62128         * lib/unistr/u16-stpcpy.c: Likewise.
62129         * lib/unistr/u16-stpncpy.c: Likewise.
62130         * lib/unistr/u16-strcat.c: Likewise.
62131         * lib/unistr/u16-strchr.c: Likewise.
62132         * lib/unistr/u16-strcmp.c: Likewise.
62133         * lib/unistr/u16-strcpy.c: Likewise.
62134         * lib/unistr/u16-strcspn.c: Likewise.
62135         * lib/unistr/u16-strdup.c: Likewise.
62136         * lib/unistr/u16-strlen.c: Likewise.
62137         * lib/unistr/u16-strmblen.c: Likewise.
62138         * lib/unistr/u16-strmbtouc.c: Likewise.
62139         * lib/unistr/u16-strncat.c: Likewise.
62140         * lib/unistr/u16-strncmp.c: Likewise.
62141         * lib/unistr/u16-strncpy.c: Likewise.
62142         * lib/unistr/u16-strnlen.c: Likewise.
62143         * lib/unistr/u16-strpbrk.c: Likewise.
62144         * lib/unistr/u16-strrchr.c: Likewise.
62145         * lib/unistr/u16-strspn.c: Likewise.
62146         * lib/unistr/u16-strstr.c: Likewise.
62147         * lib/unistr/u16-strtok.c: Likewise.
62148         * lib/unistr/u16-to-u32.c: Likewise.
62149         * lib/unistr/u16-to-u8.c: Likewise.
62150         * lib/unistr/u16-uctomb-aux.c: Likewise.
62151         * lib/unistr/u16-uctomb.c: Likewise.
62152         * lib/unistr/u32-check.c: Likewise.
62153         * lib/unistr/u32-chr.c: Likewise.
62154         * lib/unistr/u32-cmp.c: Likewise.
62155         * lib/unistr/u32-cpy-alloc.c: Likewise.
62156         * lib/unistr/u32-cpy.c: Likewise.
62157         * lib/unistr/u32-endswith.c: Likewise.
62158         * lib/unistr/u32-mblen.c: Likewise.
62159         * lib/unistr/u32-mbsnlen.c: Likewise.
62160         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62161         * lib/unistr/u32-mbtouc.c: Likewise.
62162         * lib/unistr/u32-mbtoucr.c: Likewise.
62163         * lib/unistr/u32-move.c: Likewise.
62164         * lib/unistr/u32-next.c: Likewise.
62165         * lib/unistr/u32-prev.c: Likewise.
62166         * lib/unistr/u32-set.c: Likewise.
62167         * lib/unistr/u32-startswith.c: Likewise.
62168         * lib/unistr/u32-stpcpy.c: Likewise.
62169         * lib/unistr/u32-stpncpy.c: Likewise.
62170         * lib/unistr/u32-strcat.c: Likewise.
62171         * lib/unistr/u32-strchr.c: Likewise.
62172         * lib/unistr/u32-strcmp.c: Likewise.
62173         * lib/unistr/u32-strcpy.c: Likewise.
62174         * lib/unistr/u32-strcspn.c: Likewise.
62175         * lib/unistr/u32-strdup.c: Likewise.
62176         * lib/unistr/u32-strlen.c: Likewise.
62177         * lib/unistr/u32-strmblen.c: Likewise.
62178         * lib/unistr/u32-strmbtouc.c: Likewise.
62179         * lib/unistr/u32-strncat.c: Likewise.
62180         * lib/unistr/u32-strncmp.c: Likewise.
62181         * lib/unistr/u32-strncpy.c: Likewise.
62182         * lib/unistr/u32-strnlen.c: Likewise.
62183         * lib/unistr/u32-strpbrk.c: Likewise.
62184         * lib/unistr/u32-strrchr.c: Likewise.
62185         * lib/unistr/u32-strspn.c: Likewise.
62186         * lib/unistr/u32-strstr.c: Likewise.
62187         * lib/unistr/u32-strtok.c: Likewise.
62188         * lib/unistr/u32-to-u16.c: Likewise.
62189         * lib/unistr/u32-to-u8.c: Likewise.
62190         * lib/unistr/u32-uctomb.c: Likewise.
62191         * lib/unistr/u8-check.c: Likewise.
62192         * lib/unistr/u8-chr.c: Likewise.
62193         * lib/unistr/u8-cmp.c: Likewise.
62194         * lib/unistr/u8-cpy-alloc.c: Likewise.
62195         * lib/unistr/u8-cpy.c: Likewise.
62196         * lib/unistr/u8-endswith.c: Likewise.
62197         * lib/unistr/u8-mblen.c: Likewise.
62198         * lib/unistr/u8-mbsnlen.c: Likewise.
62199         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62200         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62201         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62202         * lib/unistr/u8-mbtouc.c: Likewise.
62203         * lib/unistr/u8-mbtoucr.c: Likewise.
62204         * lib/unistr/u8-move.c: Likewise.
62205         * lib/unistr/u8-next.c: Likewise.
62206         * lib/unistr/u8-prev.c: Likewise.
62207         * lib/unistr/u8-set.c: Likewise.
62208         * lib/unistr/u8-startswith.c: Likewise.
62209         * lib/unistr/u8-stpcpy.c: Likewise.
62210         * lib/unistr/u8-stpncpy.c: Likewise.
62211         * lib/unistr/u8-strcat.c: Likewise.
62212         * lib/unistr/u8-strchr.c: Likewise.
62213         * lib/unistr/u8-strcmp.c: Likewise.
62214         * lib/unistr/u8-strcpy.c: Likewise.
62215         * lib/unistr/u8-strcspn.c: Likewise.
62216         * lib/unistr/u8-strdup.c: Likewise.
62217         * lib/unistr/u8-strlen.c: Likewise.
62218         * lib/unistr/u8-strmblen.c: Likewise.
62219         * lib/unistr/u8-strmbtouc.c: Likewise.
62220         * lib/unistr/u8-strncat.c: Likewise.
62221         * lib/unistr/u8-strncmp.c: Likewise.
62222         * lib/unistr/u8-strncpy.c: Likewise.
62223         * lib/unistr/u8-strnlen.c: Likewise.
62224         * lib/unistr/u8-strpbrk.c: Likewise.
62225         * lib/unistr/u8-strrchr.c: Likewise.
62226         * lib/unistr/u8-strspn.c: Likewise.
62227         * lib/unistr/u8-strstr.c: Likewise.
62228         * lib/unistr/u8-strtok.c: Likewise.
62229         * lib/unistr/u8-to-u16.c: Likewise.
62230         * lib/unistr/u8-to-u32.c: Likewise.
62231         * lib/unistr/u8-uctomb-aux.c: Likewise.
62232         * lib/unistr/u8-uctomb.c: Likewise.
62233         * lib/unitypes.h: Likewise.
62234         * lib/uniwidth.h: Likewise.
62235         * lib/uniwidth/cjk.h: Likewise.
62236         * lib/uniwidth/u16-strwidth.c: Likewise.
62237         * lib/uniwidth/u16-width.c: Likewise.
62238         * lib/uniwidth/u32-strwidth.c: Likewise.
62239         * lib/uniwidth/u32-width.c: Likewise.
62240         * lib/uniwidth/u8-strwidth.c: Likewise.
62241         * lib/uniwidth/u8-width.c: Likewise.
62242         * lib/uniwidth/width.c: Likewise.
62243
62244 2007-10-07  Bruno Haible  <bruno@clisp.org>
62245
62246         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62247         The file is still under LGPL (see modules/inttypes).
62248
62249 2007-10-06  Bruno Haible  <bruno@clisp.org>
62250
62251         * modules/trunc (Dependencies): Add 'extensions'.
62252         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62253         Reported by Ben Pfaff <blp@gnu.org>.
62254
62255 2007-10-06  Bruno Haible  <bruno@clisp.org>
62256
62257         * modules/freopen-tests: New file.
62258         * tests/test-freopen.c: New file.
62259
62260         * modules/fopen-tests: New file.
62261         * tests/test-fopen.c: New file.
62262
62263         * modules/fopen: New file.
62264         * lib/fopen.c: New file.
62265         * m4/fopen.m4: New file.
62266         * modules/freopen: New file.
62267         * lib/freopen.c: New file.
62268         * m4/freopen.m4: New file.
62269         * lib/stdio.in.h (fopen, freopen): New declarations.
62270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62271         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62272         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62273         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62274         * doc/functions/fopen.texi: Mention the 'fopen' module.
62275         * doc/functions/freopen.texi: Mention the 'freopen' module.
62276
62277 2007-10-06  Bruno Haible  <bruno@clisp.org>
62278
62279         * modules/open-tests: New file.
62280         * tests/test-open.c: New file.
62281
62282         * modules/open: New file.
62283         * lib/open.c: New file.
62284         * m4/open.m4: New file.
62285         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62286         lib/open.c does.
62287         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62288         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62289         macros.
62290         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62291         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62292         REPLACE_OPEN.
62293         * doc/functions/open.texi: Mention the 'open' module.
62294
62295 2007-10-04  Bruno Haible  <bruno@clisp.org>
62296
62297         * modules/ceill-tests: New file.
62298         * tests/test-ceill.c: New file.
62299
62300         * modules/ceill: New file.
62301         * lib/ceill.c: Replace entire file.
62302         * m4/ceill.m4: New file.
62303         * lib/math.in.h (ceill): Replace declaration.
62304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62305         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62306         * doc/functions/ceill.texi: Mention the 'ceill' module.
62307         * modules/mathl (Files): Remove lib/ceill.c.
62308         (Depends-on): Add ceill.
62309
62310 2007-10-04  Bruno Haible  <bruno@clisp.org>
62311
62312         * modules/ceilf-tests: New file.
62313         * tests/test-ceilf.c: New file.
62314
62315         * modules/ceilf: New file.
62316         * lib/ceil.c: New file.
62317         * lib/ceilf.c: New file.
62318         * m4/ceilf.m4: New file.
62319         * lib/math.in.h (ceilf): New declaration.
62320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62321         HAVE_DECL_CEILF.
62322         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62323         HAVE_DECL_CEILF.
62324         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62325
62326 2007-10-04  Bruno Haible  <bruno@clisp.org>
62327
62328         * modules/floorl-tests: New file.
62329         * tests/test-floorl.c: New file.
62330
62331         * modules/floorl: New file.
62332         * lib/floorl.c: Replace entire file.
62333         * m4/floorl.m4: New file.
62334         * lib/math.in.h (floorl): Replace declaration.
62335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62336         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62337         * doc/functions/floorl.texi: Mention the 'floorl' module.
62338         * modules/mathl (Files): Remove lib/floorl.c.
62339         (Depends-on): Add floorl.
62340
62341 2007-10-04  Bruno Haible  <bruno@clisp.org>
62342
62343         * modules/floorf-tests: New file.
62344         * tests/test-floorf.c: New file.
62345
62346         * modules/floorf: New file.
62347         * lib/floor.c: New file.
62348         * lib/floorf.c: New file.
62349         * m4/floorf.m4: New file.
62350         * lib/math.in.h (floorf): New declaration.
62351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62352         HAVE_DECL_FLOORF.
62353         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62354         HAVE_DECL_FLOORF.
62355         * doc/functions/floorf.texi: Mention the 'floorf' module.
62356
62357 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62358             Bruno Haible  <bruno@clisp.org>
62359
62360         Advertise for the Git server instead of the CVS server.
62361         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62362         repository instead of the CVS one.
62363         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62364         about all VCS systems generically.
62365         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62366
62367 2007-10-04  Bruno Haible  <bruno@clisp.org>
62368
62369         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62370         means.
62371         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62372
62373 2007-10-04  Bruno Haible  <bruno@clisp.org>
62374
62375         * modules/truncl-tests: New file.
62376         * tests/test-truncl.c: New file.
62377
62378         * modules/truncl: New file.
62379         * lib/truncl.c: New file.
62380         * m4/truncl.m4: New file.
62381         * lib/math.in.h (truncl): New declaration.
62382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62383         HAVE_DECL_TRUNCL.
62384         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62385         HAVE_DECL_TRUNCL.
62386         * doc/functions/truncl.texi: Mention the 'truncl' module.
62387
62388 2007-10-04  Bruno Haible  <bruno@clisp.org>
62389
62390         * modules/truncf-tests: New file.
62391         * tests/test-truncf.c: New file.
62392
62393         * modules/truncf: New file.
62394         * lib/trunc.c: Make paramerizable through USE_* macros.
62395         * lib/truncf.c: New file.
62396         * m4/truncf.m4: New file.
62397         * lib/math.in.h (truncf): New declaration.
62398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62399         HAVE_DECL_TRUNCF.
62400         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62401         HAVE_DECL_TRUNCF.
62402         * doc/functions/truncf.texi: Mention the 'truncf' module.
62403
62404 2007-10-03  Bruno Haible  <bruno@clisp.org>
62405
62406         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62407         augmentation also for tests modules.
62408         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62409         * modules/atexit-tests (Makefile.am): Likewise.
62410         * modules/binary-io-tests (Makefile.am): Likewise.
62411         * modules/c-strcase-tests (Makefile.am): Likewise.
62412         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62413         * modules/canonicalize-tests (Makefile.am): Likewise.
62414         * modules/closein-tests (Makefile.am): Likewise.
62415         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62416         * modules/freadahead-tests (Makefile.am): Likewise.
62417         * modules/fseek-tests (Makefile.am): Likewise.
62418         * modules/fseeko-tests (Makefile.am): Likewise.
62419         * modules/ftell-tests (Makefile.am): Likewise.
62420         * modules/ftello-tests (Makefile.am): Likewise.
62421         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62422         * modules/isnanl-tests (Makefile.am): Likewise.
62423         * modules/lseek-tests (Makefile.am): Likewise.
62424         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62425         * modules/mbscasestr-tests (Makefile.am): Likewise.
62426         * modules/mbschr-tests (Makefile.am): Likewise.
62427         * modules/mbscspn-tests (Makefile.am): Likewise.
62428         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62429         * modules/mbspbrk-tests (Makefile.am): Likewise.
62430         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62431         * modules/mbsrchr-tests (Makefile.am): Likewise.
62432         * modules/mbsspn-tests (Makefile.am): Likewise.
62433         * modules/mbsstr-tests (Makefile.am): Likewise.
62434         * modules/printf-posix-tests (Makefile.am): Likewise.
62435         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62436         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62437         * modules/tsearch-tests (Makefile.am): Likewise.
62438         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62439         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62440         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62441         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62442         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62443         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62444         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62445         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62446         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62447         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62448         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62449         * modules/xstrtol-tests (Makefile.am): Likewise.
62450         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62451         * modules/yesno-tests (Makefile.am): Likewise.
62452
62453 2007-10-03  Bruno Haible  <bruno@clisp.org>
62454
62455         * modules/trunc-tests: New file.
62456         * tests/test-trunc.c: New file.
62457
62458         * modules/trunc: New file.
62459         * lib/trunc.c: New file.
62460         * m4/trunc.m4: New file.
62461         * lib/math.in.h (trunc): New declaration.
62462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62463         HAVE_DECL_TRUNC.
62464         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62465         HAVE_DECL_TRUNC.
62466         * doc/functions/trunc.texi: Mention the 'trunc' module.
62467
62468 2007-10-03  Bruno Haible  <bruno@clisp.org>
62469
62470         * tests/test-fpending.c: New file, mostly copied
62471         from coreutils/lib/t-fpending.c.
62472         * modules/fpending-tests: New file.
62473
62474 2007-10-03  Bruno Haible  <bruno@clisp.org>
62475
62476         Port the stdio extensions to QNX (untested).
62477         * lib/fseterr.c (fseterr): Add support for QNX.
62478         * lib/fbufmode.c (fbufmode): Likewise.
62479         * lib/freadable.c (freadable): Likewise.
62480         * lib/fwritable.c (fwritable): Likewise.
62481         * lib/freading.c (freading): Likewise.
62482         * lib/fwriting.c (fwriting): Likewise.
62483         * lib/freadahead.c (freadahed): Likewise.
62484         * lib/fpurge.c (fpurge): Likewise.
62485         * lib/fseeko.c (rpl_fseeko): Likewise.
62486
62487 2007-10-03  Bruno Haible  <bruno@clisp.org>
62488             Jim Meyering  <jim@meyering.net>
62489             Eric Blake  <ebb9@byu.net>
62490
62491         * doc/relocatable.texi: Use @command instead of @program.
62492
62493 2007-10-02  Jim Meyering  <jim@meyering.net>
62494
62495         Perform one more "_.h" -> ".in.h" substitution.
62496         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62497         instead of unistd_.h here, too.
62498
62499 2007-10-01  Bruno Haible  <bruno@clisp.org>
62500
62501         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62502         Needed for the alloca-opt module.
62503
62504 2007-09-30  Bruno Haible  <bruno@clisp.org>
62505
62506         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62507         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62508         alloca_.h.
62509         * lib/argz.in.h: Renamed from lib/argz_.h.
62510         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62511         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62512         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62513         byteswap_.h.
62514         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62515         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62516         dirent_.h.
62517         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62518         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62519         fcntl_.h.
62520         * lib/float.in.h: Renamed from lib/float_.h.
62521         * modules/float (Files, Makefile.am): Use float.in.h instead of
62522         float_.h.
62523         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62524         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62525         fnmatch_.h.
62526         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62527         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62528         getopt_.h.
62529         * lib/glob.in.h: Renamed from lib/glob_.h.
62530         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62531         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62532         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62533         iconv_.h.
62534         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62535         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62536         inttypes_.h.
62537         * lib/locale.in.h: Renamed from lib/locale_.h.
62538         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62539         locale_.h.
62540         * lib/math.in.h: Renamed from lib/math_.h.
62541         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62542         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62543         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62544         of netinet_in_.h. Add dependency.
62545         * lib/poll.in.h: Renamed from lib/poll_.h.
62546         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62547         * lib/search.in.h: Renamed from lib/search_.h.
62548         * modules/search (Files, Makefile.am): Use search.in.h instead of
62549         search_.h.
62550         * lib/signal.in.h: Renamed from lib/signal_.h.
62551         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62552         _signal.h.
62553         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62554         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62555         stdbool_.h.
62556         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62557         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62558         stdint_.h.
62559         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62560         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62561         stdio_.h.
62562         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62563         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62564         stdlib_.h.
62565         * lib/string.in.h: Renamed from lib/string_.h.
62566         * modules/string (Files, Makefile.am): Use string.in.h instead of
62567         string_.h.
62568         * doc/gnulib-tool.texi (Initial import): Update.
62569         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62570         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62571         of sys_select_.h. Add dependency.
62572         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62573         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62574         of sys_socket_.h.
62575         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62576         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62577         sys_stat_.h.
62578         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62579         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62580         sys_time_.h.
62581         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62582         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62583         sysexits_.h.
62584         * lib/time.in.h: Renamed from lib/time_.h.
62585         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62586         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62587         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62588         unistd_.h.
62589         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62590         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62591         wchar_.h.
62592         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62593         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62594         wctype_.h.
62595         * build-aux/bootstrap (slurp): Update.
62596         * lib/.cppi-disable: Update.
62597
62598 2007-09-30  Bruno Haible  <bruno@clisp.org>
62599
62600         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62601         Needed on BeOS.
62602
62603 2007-09-30  Bruno Haible  <bruno@clisp.org>
62604
62605         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62606
62607 2007-09-29  Bruno Haible  <bruno@clisp.org>
62608
62609         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62610
62611 2007-09-29  Bruno Haible  <bruno@clisp.org>
62612
62613         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62614         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62615         * build-aux/install-reloc: Compile also areadlink.c.
62616         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62617
62618 2007-09-29  Bruno Haible  <bruno@clisp.org>
62619
62620         * gnulib-tool (func_emit_initmacro_done): Indentation.
62621
62622 2007-09-29  Bruno Haible  <bruno@clisp.org>
62623
62624         * README: Add CVS checkout update instructions.
62625         Info from Bob Proulx <bob@proulx.com>.
62626
62627 2007-09-28  Eric Blake  <ebb9@byu.net>
62628
62629         Provide move-if-change.
62630         * build-aux/move-if-change: New file, based on best practice
62631         rather than any canonical upstream location.
62632
62633 2007-09-28  Jim Meyering  <jim@meyering.net>
62634
62635         Fix canonicalize loop-detection corner case.
62636         Do not attempt to stat the symlink values stored via seen_triple.
62637         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62638         on linux-2.6.18, (but not 2.6.22).
62639         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62640         triple_compare.  The former compares dev,ino,filename, while the latter
62641         would actually stat dirname(filename) when dev and ino were equal.
62642         * lib/hash-triple.c: Install <string.h>.
62643         (STREQ): Define.
62644         (triple_compare_ino_str): New function.
62645         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62646
62647 2007-09-28  Eric Blake  <ebb9@byu.net>
62648
62649         Enforce that AC_REPLACE_FUNCS files exist.
62650         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62651         override check for typos.
62652
62653         Fix test-closein on Solaris 10.
62654         * tests/test-closein.c (main): Don't assume stdin can be inherited
62655         closed on all systems.
62656         * tests/test-closein.sh: Likewise.
62657         Reported by Piotr Tarnowski.
62658
62659 2007-09-28  Jim Meyering  <jim@meyering.net>
62660
62661         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62662
62663 2007-09-27  Jim Meyering  <jim@meyering.net>
62664
62665         canonicalize: Avoid a false-positive cycle failure.
62666         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62667         Sort.  Remove cycle-check.
62668         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62669         not cycle-check.h.
62670         (seen_triple): New function.
62671         (canonicalize_filename_mode): Use it instead of cycle-check.
62672         * tests/test-canonicalize.c: Add a test for this bug.
62673         * tests/test-canonicalize.sh: Set up and run the test.
62674
62675         New module, file-set, from coreutils.
62676         * modules/file-set: Define it.
62677         * lib/file-set.c, lib/file-set.h: Implement.
62678
62679         New module, hash-triple, from coreutils.
62680         * modules/hash-triple: Define it.
62681         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62682
62683 2007-09-25  Eric Blake  <ebb9@byu.net>
62684
62685         Fix strerror on Interix.
62686         * lib/string_.h (strerror): Declare replacement.
62687         * doc/functions/strerror.texi (strerror): Document the Interix
62688         shortcoming.
62689         * modules/string (Makefile.am): Support new hooks.
62690         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62691         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62692         gl_FUNC_STRERROR_SEPARATE.
62693         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62694         * lib/strerror.c (rpl_strerror): Provide replacement.
62695         * modules/strerror (Depends-on): Add string.
62696         (configure.ac): Detect use of module.
62697         * tests/test-strerror.c: New file.
62698         * modules/strerror-tests: New test module.
62699         * modules/argp (Depends-on): Add strerror.
62700         * modules/error (Depends-on): Likewise.
62701         Reported by Martin Koeppe.
62702
62703 2007-09-24  Bruno Haible  <bruno@clisp.org>
62704
62705         * README: Update git instructions.
62706
62707 2007-09-24  Eric Blake  <ebb9@byu.net>
62708
62709         Revert fpending breakage from 2007-09-08.
62710         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62711         __fpending.c.
62712
62713 2007-09-24  Jim Meyering  <jim@meyering.net>
62714
62715         filenamecat.c: Add a test.
62716         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62717         showing how the function works when DIR is the empty string.
62718
62719 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62720
62721         * tests/test-canonicalize.sh: Turn on executable bit.
62722
62723 2007-09-19  Eric Blake  <ebb9@byu.net>
62724
62725         * README: Update CVS instructions.
62726
62727 2007-09-18  Bruno Haible  <bruno@clisp.org>
62728
62729         * modules/areadlink: New file.
62730         * lib/areadlink.h (areadlink): New declaration.
62731         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62732
62733 2007-09-17  Jim Meyering  <jim@meyering.net>
62734
62735         * lib/savewd.c (ESTALE) [!defined]: Define.
62736         Reported to be required on Interix by Martin Koeppe.
62737
62738 2007-09-17  Bruno Haible  <bruno@clisp.org>
62739
62740         * gnulib-tool (func_version): Use $version.
62741
62742 2007-09-16  Bruno Haible  <bruno@clisp.org>
62743
62744         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62745         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62746         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62747         Reported by Greg Schafer <gschafer@zip.com.au>.
62748
62749 2007-09-15  Bruno Haible  <bruno@clisp.org>
62750
62751         * gnulib-tool (sed): Try a little harder to make bash understand the
62752         alias.
62753         Reported by Bruce Korb <bruce.korb@gmail.com>.
62754
62755 2007-09-13  Eric Blake  <ebb9@byu.net>
62756
62757         * ChangeLog: Remove conflict markers.
62758
62759 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62760
62761         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62762         Reported by Bruno Haible <bruno@clisp.org>.
62763
62764 2007-09-12  Bruno Haible  <bruno@clisp.org>
62765
62766         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62767         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62768         is not defined.
62769
62770 2007-09-12  Eric Blake  <ebb9@byu.net>
62771
62772         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62773         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62774         Autoconf definition.
62775         * modules/euidaccess (Depends-on): Add extensions, for
62776         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62777         * modules/fnmatch (Depends-on): Likewise.
62778         * modules/getaddrinfo (Depends-on): Likewise.
62779         * modules/getdelim (Depends-on): Likewise.
62780         * modules/getline (Depends-on): Likewise.
62781         * modules/getsubopt (Depends-on): Likewise.
62782         * modules/gettext (Depends-on): Likewise.
62783         * modules/group-member (Depends-on): Likewise.
62784         * modules/mbchar (Depends-on): Likewise.
62785         * modules/memmem (Depends-on): Likewise.
62786         * modules/mempcpy (Depends-on): Likewise.
62787         * modules/memrchr (Depends-on): Likewise.
62788         * modules/pagealign_alloc (Depends-on): Likewise.
62789         * modules/readutmp (Depends-on): Likewise.
62790         * modules/stpcpy (Depends-on): Likewise.
62791         * modules/stpncpy (Depends-on): Likewise.
62792         * modules/strchrnul (Depends-on): Likewise.
62793         * modules/strndup (Depends-on): Likewise.
62794         * modules/strsep (Depends-on): Likewise.
62795         * modules/strverscmp (Depends-on): Likewise.
62796         * modules/vasprintf (Depends-on): Likewise.
62797         * modules/wcwidth (Depends-on): Likewise.
62798         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62799         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62800         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62801         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62802         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62803         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62804         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62805         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62806         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62807         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62808         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62809         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62810         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62811         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62812         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62813         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62814         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62815         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62816         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62817         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62818         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62819         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62820         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62821         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62822         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62823         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62824         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62825         so that lock.m4 can be used in gettext without extensions module.
62826
62827 2007-09-11  Bruno Haible  <bruno@clisp.org>
62828
62829         * m4/isc-posix.m4: Remove file.
62830         Suggested by Eric Blake.
62831
62832 2007-09-11  Eric Blake  <ebb9@byu.net>
62833
62834         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62835
62836 2007-09-10  Bruno Haible  <bruno@clisp.org>
62837
62838         * posix-modules: Fix typo in error message.
62839         Reported by Matt <mkraai@beckman.com>.
62840
62841 2007-09-09  Bruno Haible  <bruno@clisp.org>
62842
62843         * doc/functions/getdelim.texi: Update list of platforms lacking the
62844         function.
62845         * doc/functions/getline.texi: Likewise.
62846
62847 2007-09-09  Jim Meyering  <jim@meyering.net>
62848
62849         * lib/hash.c (hash_initialize): Detect calloc failure.
62850         Reported by Bruno Haible.
62851
62852 2007-09-09  Bruno Haible  <bruno@clisp.org>
62853
62854         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62855         malloc or realloc fails.
62856
62857 2007-09-09  Bruno Haible  <bruno@clisp.org>
62858
62859         * modules/getcwd (Depends-on): Add malloc-posix.
62860         * modules/glob (Depends-on): Likewise.
62861         * modules/putenv (Depends-on): Likewise.
62862         * modules/strdup (Depends-on): Likewise.
62863         * modules/getdelim (Depends-on): Add realloc-posix.
62864         * modules/read-file (Depends-on): Likewise.
62865
62866 2007-09-09  Bruno Haible  <bruno@clisp.org>
62867
62868         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62869         (gl_FUNC_MALLOC_POSIX): Require it.
62870         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62871         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62872         * modules/realloc (Files): Add m4/malloc.m4.
62873         * modules/calloc (Files): Likewise.
62874
62875 2007-09-09  Bruno Haible  <bruno@clisp.org>
62876
62877         * modules/malloc-posix: New file.
62878         * modules/malloc (Depends-on): Add malloc-posix.
62879         * lib/malloc.c: Include errno.h.
62880         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62881         and a POSIX-compatible malloc into a single function. Set ENOMEM
62882         when returning NULL.
62883         * m4/malloc.m4: New file.
62884         * doc/functions/malloc.texi: Mention the malloc-posix module.
62885         * lib/stdlib_.h (malloc): New declaration.
62886         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62887         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62888         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62889         and HAVE_MALLOC_POSIX.
62890
62891 2007-09-09  Bruno Haible  <bruno@clisp.org>
62892
62893         * modules/realloc-posix: New file.
62894         * modules/realloc (Depends-on): Add realloc-posix.
62895         * lib/realloc.c: Include errno.h.
62896         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62897         and a POSIX-compatible realloc into a single function. Set ENOMEM
62898         when returning NULL.
62899         * m4/realloc.m4: New file.
62900         * doc/functions/realloc.texi: Mention the realloc-posix module.
62901         * lib/stdlib_.h (realloc): New declaration.
62902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62903         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62904         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62905         and HAVE_REALLOC_POSIX.
62906
62907 2007-09-09  Bruno Haible  <bruno@clisp.org>
62908
62909         * modules/calloc-posix: New file.
62910         * modules/calloc (Depends-on): Add calloc-posix.
62911         * lib/calloc.c: Include errno.h.
62912         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62913         and a POSIX-compatible calloc into a single function. Set ENOMEM
62914         when returning NULL.
62915         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62916         * doc/functions/calloc.texi: Mention the calloc-posix module.
62917         * lib/stdlib_.h (calloc): New declaration.
62918         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62919         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62920         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62921         and HAVE_CALLOC_POSIX.
62922
62923 2007-09-09  Bruno Haible  <bruno@clisp.org>
62924
62925         Allow for modules to show an arbitrary notice.
62926         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62927         * gnulib-tool: New option --extract-notice.
62928         (func_usage): Document it.
62929         (sed_extract_prog): Update.
62930         (func_get_notice): New function.
62931         (func_modules_notice): New function.
62932         (func_import, func_create_testdir): Invoke it.
62933         Suggested by Jim Meyering.
62934
62935 2007-09-09  Bruno Haible  <bruno@clisp.org>
62936
62937         * gnulib-tool: New options --verbose, --quiet.
62938         (func_usage): Document them.
62939         (verbose): New variable.
62940         (func_execute_command): New function.
62941         (func_import): Don't show the module list and the file list if
62942         $verbose < 0.
62943         (func_create_testdir): Likewise. Use func_execute_command.
62944         (func_create_megatestdir): Use func_execute_command.
62945
62946 2007-09-08  Bruno Haible  <bruno@clisp.org>
62947
62948         * gnulib-tool (func_import): Prefer rsync over wget when available,
62949         for fetching the PO files.
62950
62951 2007-09-08  Bruno Haible  <bruno@clisp.org>
62952
62953         * posix-modules: New file. Portions copied from gnulib-tool.
62954         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62955
62956 2007-09-08  Jim Meyering  <jim@meyering.net>
62957
62958         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62959         * lib/fpending.h: Rename from __fpending.h.
62960         * lib/fpending.c: Rename from __fpending.c.
62961         Include "fpending.h", not "__fpending.h".
62962         * lib/__fpending.h, lib/__fpending.c: Remove files.
62963         * modules/fpending (Files): Reflect new file names.
62964         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62965
62966 2007-09-08  Bruno Haible  <bruno@clisp.org>
62967
62968         * m4/inttypes-h.m4: Remove stub file.
62969
62970 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62971
62972         * doc/headers/stdint.texi: Discuss #include_next issue.
62973
62974 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62975
62976         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62977
62978 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62979
62980         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62981         in variable name.
62982
62983 2007-09-03  Jim Meyering  <jim@meyering.net>
62984
62985         New module: git-version-gen.
62986         * modules/git-version-gen: New file.
62987
62988         Import changes from coreutils for bootstrap script.
62989
62990         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62991
62992         bootstrap: uses rsync to download the .po files
62993         * build-aux/bootstrap (po_download_command_format): New global.
62994         (download_po_files): Use rsync.
62995         (update_po_files): Don't remove .po files after download,
62996         so future rsync runs can take advantage of the copies.
62997
62998         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62999
63000         Solve the unnecessary-.po-file-regeneration problem once and for all.
63001         * build-aux/bootstrap (download_po_files): New function, renamed from
63002         get_translations.  Now, downloads, but doesn't update LINGUAS.
63003         (update_po_files): New function.
63004
63005         bootstrap: Ignore more.
63006         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63007         uniwidth to e.g., lib/.gitignore.
63008         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63009
63010         * build-aux/bootstrap: New setting: vc_ignore.
63011         (insert_sorted_if_absent): Create $file if absent.
63012         Adapt to new, possibly empty, list: $vc_ignore.
63013
63014         bootstrap: generate more ignorable names
63015         * build-aux/bootstrap (slurp): When generating ignorable names,
63016         also map .sin to .sed, .gperf to .c, and .y to .c.
63017
63018 2007-09-03  Jim Meyering  <jim@meyering.net>
63019
63020         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63021         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63022
63023 2007-09-02  Bruno Haible  <bruno@clisp.org>
63024
63025         Fix mis-recognition of 'mcs' on QNX 6.
63026         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63027         output contains the string "Mono".
63028         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63029         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63030
63031 2007-09-01  Bruno Haible  <bruno@clisp.org>
63032
63033         Fix collision between uniwidth/* and linebreak modules.
63034         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63035         u32_width): Remove declarations.
63036         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63037         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63038         streq3, streq2, streq1, streq0): Remove functions.
63039         (STREQ): Remove macro.
63040         (is_cjk_encoding): Remove function.
63041         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63042         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63043         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63044         * NEWS: Document the change.
63045
63046 2007-09-01  Bruno Haible  <bruno@clisp.org>
63047
63048         * lib/streq.h: Add double-inclusion guard.
63049
63050 2007-09-01  Karl Berry  <karl@gnu.org>
63051
63052         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63053
63054 2007-08-28  Jim Meyering  <jim@meyering.net>
63055
63056         Rename mreadlink_with_size to areadlink_with_size.
63057         * NEWS: Document the change.
63058         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63059         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63060         * lib/mreadlink.h: Rename this to...
63061         * lib/areadlink.h: ...this.
63062         * modules/mreadlink-with-size: Rename this to...
63063         * modules/areadlink-with-size: ...this.
63064         * lib/canonicalize.c: Reflect the renaming.
63065         * modules/canonicalize: Likewise.
63066
63067 2007-08-26  Bruno Haible  <bruno@clisp.org>
63068
63069         * gnulib-tool (func_import): When deciding which files to remove,
63070         consider also dangling symbolic links.
63071         Reported by Eric Blake.
63072
63073 2007-08-26  Bruno Haible  <bruno@clisp.org>
63074
63075         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63076
63077 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63078
63079         * lib/readline.c: Don't include getline.h, the prototype is now
63080         found in stdio.h.
63081
63082 2007-08-23  Jim Meyering  <jim@meyering.net>
63083
63084         Getdelim touchup.
63085         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63086         around the funlockfile call, since funlockfile never sets errno.
63087         Don't set errno upon failed realloc.
63088
63089 2007-08-22  Eric Blake  <ebb9@byu.net>
63090
63091         Getline touchups.
63092         * lib/getdelim.c (getdelim): Revert regression that required *n to
63093         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63094         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63095         getdelim, rather than whether implementation is missing.
63096         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63097         * lib/stdio_.h (getline): Also declare if replacement is
63098         required.
63099         * doc/functions/getdelim.texi: New file.
63100         * doc/functions/getline.texi: Likewise.
63101         * doc/gnulib.texi (Function Substitutes): Add new files.
63102         Reported by Bruno Haible.
63103
63104 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63105
63106         * users.txt: Add Guile.
63107
63108 2007-08-22  Eric Blake  <ebb9@byu.net>
63109
63110         * tests/test-getdelim.c (main): Use remove, not unlink.
63111         * tests/test-getline.c (main): Likewise.
63112
63113         Move getline and getdelim into stdio.h, per POSIX 200x.
63114         * modules/getline (Files): Remove getline.h.
63115         (Depends-on): Add stdio.
63116         (configure.ac): Add module indicator.
63117         * modules/getdelim (Files): Remove getdelim.h.
63118         (Depends-on): Add stdio.
63119         (configure.ac): Add module indicator.
63120         * modules/stdio (Makefile.am): Work with new indicators.
63121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63122         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63123         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63124         * lib/getdelim.h: Delete.
63125         * lib/getline.h: Delete.
63126         * lib/stdio_.h (getdelim, getline): Declare.
63127         * modules/getdelim-tests: New module.
63128         * modules/getline-tests: Likewise.
63129         * tests/test-getdelim.c: New file.
63130         * tests/test-getline.c: Likewise.
63131         * NEWS: Document the change.
63132         * lib/getline.c: Update choice of header.
63133         * lib/csharpcomp.c: Likewise.
63134         * lib/getpass.c: Likewise.
63135         * lib/javacomp.c: Likewise.
63136         * lib/javaversion.c: Likewise.
63137         * lib/yesno.c: Likewise.
63138         * lib/getdelim.c: Likewise.
63139         (getdelim): Set errno on failure, and avoid memory leak.
63140
63141 2007-08-19  Bruno Haible  <bruno@clisp.org>
63142
63143         * modules/closein (Depends-on): Add freadahead.
63144         * lib/closein.c: Include freadahead.h.
63145         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63146         is zero.
63147
63148 2007-08-19  Bruno Haible  <bruno@clisp.org>
63149
63150         * modules/freadahead-tests: New file.
63151         * tests/test-freadahead.sh: New file.
63152         * tests/test-freadahead.c: New file.
63153
63154         * modules/freadahead: New file.
63155         * lib/freadahead.h: New file.
63156         * lib/freadahead.c: New file.
63157         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63158         fbufmode, fpurge, freadable, fwritable.
63159
63160 2007-08-19  Eric Blake  <ebb9@byu.net>
63161
63162         Test yesno in combination with closein.
63163         * lib/yesno.c (yesno): Document use of stdin.
63164         * modules/yesno-tests (Files): New module.
63165         * tests/test-yesno.c (main): New file.
63166         * tests/test-yesno.sh: Likewise.
63167
63168 2007-08-19  Bruno Haible  <bruno@clisp.org>
63169
63170         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63171         * lib/fseeko.c (rpl_fseeko): Likewise.
63172         * lib/fseterr.c (fseterr): Likewise.
63173
63174 2007-08-19  Bruno Haible  <bruno@clisp.org>
63175
63176         * tests/test-lseek.c (main): Disable a test for BeOS.
63177         * doc/functions/lseek.texi: Document the BeOS bug.
63178
63179 2007-08-19  Bruno Haible  <bruno@clisp.org>
63180             Eric Blake  <ebb9@byu.net>
63181
63182         * lib/lseek.c: Include <sys/stat.h>.
63183         (rpl_lseek): Add workaround code also for Unix platforms.
63184         Needed for BeOS.
63185         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63186         * doc/functions/lseek.texi: Document BeOS definiency.
63187
63188 2007-08-18  Bruno Haible  <bruno@clisp.org>
63189
63190         * modules/fstrcmp-tests: New file.
63191         * tests/test-fstrcmp.c: New file.
63192
63193 2007-08-18  Bruno Haible  <bruno@clisp.org>
63194
63195         * modules/fstrcmp: New file, from GNU gettext with modifications.
63196         * lib/fstrcmp.h: New file, from GNU gettext.
63197         * lib/fstrcmp.c: New file, from GNU gettext.
63198         * MODULES.html.sh (String handling): Add fstrcmp.
63199
63200 2007-08-18  Bruno Haible  <bruno@clisp.org>
63201
63202         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63203         'bool'.
63204         (diag, compareseq): Remove const from the ctxt argument.
63205         (USE_HEURISTIC): Undefine at the end.
63206
63207 2007-08-18  Jim Meyering  <jim@meyering.net>
63208
63209         New file: lib/idcache.h
63210         * NEWS: Mention the addition.
63211         * modules/idcache (Files): Add lib/idcache.h
63212         * lib/idcache.c: Include "idcache.h".
63213         Don't include <sys/types.h>.
63214         Add a FIXME comment.
63215         Move file-scoped "static" declarations to the top.
63216         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63217
63218 2007-08-17  Bruno Haible  <bruno@clisp.org>
63219         and Paul Eggert  <eggert@cs.ucla.edu>
63220
63221         * MODULES.html.sh: Add diffseq.
63222         * modules/diffseq: New file.
63223         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63224         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63225
63226 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63227
63228         Import changes from coreutils for bootstrap script.
63229
63230         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63231
63232         * build-aux/bootstrap (slurp): Work even in environments where
63233         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63234         current code does not slurp files whose names start with ".", and
63235         this looks like it might be a troublesome area.
63236
63237         2007-07-11  Jim Meyering  <jim@meyering.net>
63238
63239         If there's a GPL vN copyright comment, require that N == 3.
63240
63241         2007-07-08  Jim Meyering  <jim@meyering.net>
63242
63243         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63244         * build-aux/bootstrap (mam_template): Move definition out of loop.
63245
63246         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63247
63248         * build-aux/bootstrap (symlink_to_dir): Rename function from
63249         symlink_to_gnulib.  Add a directory parameter.  Update all
63250         callers.
63251         (cp_mark_as_generated): Also check for -- and link to -- files in
63252         gl/.
63253
63254         2007-07-08  Jim Meyering  <jim@meyering.net>
63255
63256         Adapt to deeper hierarchy in gnulib.
63257         * build-aux/bootstrap (symlink_to_dir): If the destination
63258         directory doesn't exist, create it. This is required at least for
63259         "lib/uniwidth/cjk.h".
63260
63261         2007-05-15  Jim Meyering  <jim@meyering.net>
63262
63263         * build-aux/bootstrap: Now that generated Makefile.am files
63264         are no longer under version control, they must be created at
63265         bootstrap time.
63266
63267 2007-08-14  Ben Pfaff  <blp@gnu.org>
63268
63269         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63270
63271 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63272
63273         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63274         given the changes below.
63275         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63276         even on hosts that have padding bits beyond the supported 64.
63277
63278 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63279
63280         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63281         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63282         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63283         depends on it.
63284         (xstrtol_error): Remove.
63285         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63286         but with a different signature.
63287         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63288         * lib/xstrtol-error.c: Include exitfail.h.
63289         (xstrtol_fatal): New function, with a different signature from the
63290         old xstrtol_error, so that the caller need not worry about passing
63291         in an exit status, or about storage management of the option argument.
63292         (xstrtol_error): Now a static function.  Redo signature to
63293         implement xstrtol_fatal.  Output the correct number of hyphens in
63294         front of the option so that the caller need not worry about
63295         storage management.
63296         (N_): New macro.
63297         (_): Remove; not used now.
63298         * modules/xstrtol: Depend on getopt.
63299         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63300         of old STRTOL_FATAL_ERROR macro.
63301         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63302         of test program.
63303         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63304         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63305
63306 2007-08-08  Eric Blake  <ebb9@byu.net>
63307
63308         * lib/xstrtol-error.c: Add missing include.
63309
63310         Move xstrtol messages into gnulib domain, when --pobase is used.
63311         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63312         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63313         * modules/xstrtol (Files): Distribute new file.
63314         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63315         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63316         * tests/test-xstrtol.c: ...into new file.
63317         * tests/test-xstrtoul.c: Also test xstrtoul.
63318         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63319         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63320         * tests/test-xstrtol.sh: Drive the tests.
63321         * tests/test-xstrtoimax.sh: Likewise.
63322         * tests/test-xstrtoumax.sh: Likewise.
63323         * modules/xstrtol-tests: New module.
63324         * modules/xstrtoimax-tests: Likewise.
63325         * modules/xstrtoumax-tests: Likewise.
63326
63327 2007-08-08  Jim Meyering  <jim@meyering.net>
63328
63329         New function: mfile_name_concat.
63330         * lib/filenamecat.c (mfile_name_concat): New function, just like
63331         file_name_concat, but return NULL upon failure rather than exiting
63332         with a diagnostic.
63333         * lib/filenamecat.h: Declare it.
63334
63335 2007-08-07  Bruno Haible  <bruno@clisp.org>
63336
63337         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63338         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63339         warning from gcc.
63340         Reported by Eric Blake.
63341
63342 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63343
63344         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63345         * modules/crypto/arcfour (License): Likewise.
63346         * modules/crypto/des-tests (License): Likewise.
63347         * modules/crypto/gc-arctwo-tests (License): Likewise.
63348         * modules/crypto/gc-des-tests (License): Likewise.
63349         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63350         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63351         * modules/crypto/gc-md2-tests (License): Likewise.
63352         * modules/crypto/gc-md4-tests (License): Likewise.
63353         * modules/crypto/gc-md5-tests (License): Likewise.
63354         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63355         * modules/crypto/gc-rijndael-tests (License): Likewise.
63356         * modules/crypto/gc-sha1-tests (License): Likewise.
63357         * modules/crypto/gc-tests (License): Likewise.
63358         * modules/crypto/hmac-md5 (License): Likewise.
63359         * modules/crypto/hmac-sha1 (License): Likewise.
63360         * modules/crypto/md2-tests (License): Likewise.
63361         * modules/crypto/md4-tests (License): Likewise.
63362         * modules/crypto/md5 (License): Likewise.
63363         * modules/crypto/rijndael (License): Likewise.
63364         * modules/crypto/sha1 (License): Likewise.
63365         * modules/memxor (License): Likewise.
63366
63367 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63368         and Bruno Haible  <bruno@clisp.org>
63369
63370         * NEWS: Describe interface changes to human, xstrtol.
63371         * lib/human.h: Include <xstrtol.h>.
63372         (human_options): Return enum strtol_error, not int.  Remove
63373         bool arg; take int * instead.
63374         * lib/human.c: Don't include "gettext.h".
63375         (_): Remove; no longer used.
63376         Don't include <xstrtol.h>, since human.h does it.
63377         (human_options): Adjust to abovementioned interface changes.
63378         Do not report error to stderr; that's now the caller's
63379         responsibility.
63380         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63381         interface change.
63382         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63383         Str, Argument_type_string.  All uses changed.  Put " argument"
63384         in diagnostics to make them clearer.  Change wording of suffix
63385         message for clarity.
63386         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63387         Argument_type_string.
63388         (STRTOL_FATAL_WARN): Remove; no longer used.
63389         * modules/human (Depends-on): Remove gettext-h.
63390
63391 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63392
63393         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63394
63395 2007-07-31  Bruno Haible  <bruno@clisp.org>
63396
63397         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63398         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63399         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63400
63401 2007-07-31  Bruno Haible  <bruno@clisp.org>
63402
63403         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63404         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63405
63406 2007-07-30  Bruno Haible  <bruno@clisp.org>
63407
63408         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63409         * modules/c-ctype (License): Likewise.
63410         * modules/c-strcase (License): Likewise.
63411         * modules/check-version (License): Likewise.
63412         * modules/iconv (License): Likewise.
63413         * modules/iconv_open (License): Likewise.
63414         * modules/read-file (License): Likewise.
63415         * modules/striconv (License): Likewise.
63416         * modules/strverscmp (License): Likewise.
63417         * modules/vasprintf (License): Likewise.
63418         * modules/crypto/des (License): Likewise.
63419         * modules/crypto/gc (License): Likewise.
63420         * modules/crypto/gc-arcfour (License): Likewise.
63421         * modules/crypto/gc-arctwo (License): Likewise.
63422         * modules/crypto/gc-des (License): Likewise.
63423         * modules/crypto/gc-hmac-md5 (License): Likewise.
63424         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63425         * modules/crypto/gc-md2 (License): Likewise.
63426         * modules/crypto/gc-md4 (License): Likewise.
63427         * modules/crypto/gc-md5 (License): Likewise.
63428         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63429         * modules/crypto/gc-random (License): Likewise.
63430         * modules/crypto/gc-rijndael (License): Likewise.
63431         * modules/crypto/gc-sha1 (License): Likewise.
63432         * modules/crypto/md2 (License): Likewise.
63433         * modules/crypto/md4 (License): Likewise.
63434
63435 2007-07-30  Jim Meyering  <jim@meyering.net>
63436
63437         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63438         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63439         it has valid stat data.  This bug would cause du not to count the
63440         sizes of inaccessible directories.
63441         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63442         in <http://bugzilla.redhat.com/250077>.
63443
63444 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63445             Bruno Haible  <bruno@clisp.org>
63446
63447         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63448         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63449         #include_next, gives a diagnostic about it, but reports no error in
63450         the exit code.
63451         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63452
63453 2007-07-24  Ben Pfaff  <blp@gnu.org>
63454
63455         Improve name: "count-one-bits" is better than "popcount".
63456         * MODULES.html.sh: Update name.
63457         * lib/popcount.h: Renamed lib/count-one-bits.h.
63458         (popcount): Renamed count_one_bits.
63459         (popcountl): Renamed count_one_bits_l.
63460         (popcountll): Renamed count_one_bits_ll.
63461         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63462         * modules/popcount: Renamed module/count-one-bits.
63463         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63464         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63465
63466 2007-07-23  Ben Pfaff  <blp@gnu.org>
63467
63468         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63469         better code generation, and add U to large constants to avoid
63470         warnings, in non-GCC case.
63471         Suggested by Bruno Haible.
63472
63473 2007-07-23  Ben Pfaff  <blp@gnu.org>
63474
63475         * lib/popcount.h: Use verify_true instead of if...abort.
63476         * modules/popcount: Depend on verify module.
63477         Suggested by Jim Meyering.
63478
63479 2007-07-23  Bruno Haible  <bruno@clisp.org>
63480
63481         * gnulib-tool (func_import): Create a .cvsignore file also when the
63482         directory is not yet in CVS but the toplevel directory is. When
63483         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63484         Reported by Karl Berry.
63485
63486 2007-07-22  Ben Pfaff  <blp@gnu.org>
63487
63488         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63489         case.
63490         Suggested by Eric Blake.
63491
63492 2007-07-22  Ben Pfaff  <blp@gnu.org>
63493
63494         New module: popcount.
63495         * MODULES.html.sh: Add popcount.
63496         * modules/popcount: New file.
63497         * modules/popcount-tests: New file.
63498         * tests/test-popcount.c: New file.
63499         * lib/popcount.h: New file.
63500         * m4/popcount.m4: New file.
63501
63502 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63503
63504         * build-aux/announce-gen: Update to GPLv3.
63505
63506         * build-aux/config.guess: Update from config.
63507
63508 2007-07-21  Bruno Haible  <bruno@clisp.org>
63509
63510         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63511         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63512
63513 2007-07-20  Jim Meyering  <jim@meyering.net>
63514
63515         * check-module: Diagnose a self-dependency.
63516
63517 2007-07-19  Bruno Haible  <bruno@clisp.org>
63518
63519         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63520         empty.
63521         Reported by Eric Blake.
63522
63523 2007-07-18  Bruno Haible  <bruno@clisp.org>
63524
63525         * gnulib-tool: New options --po-base, --po-domain.
63526         (func_usage): Document them.
63527         (pobase, po_domain): New variables.
63528         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63529         DEFAULT_TEXT_DOMAIN.
63530         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63531         (func_import): Consider pobase and po_domain. Create a po/ directory.
63532         (func_create_testdir): Set pobase and po_domain to empty.
63533         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63534         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63535
63536 2007-07-18  Bruno Haible  <bruno@clisp.org>
63537
63538         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63539         EXTRA_DIST augmentation for files in build-aux/.
63540
63541 2007-07-16  Bruno Haible  <bruno@clisp.org>
63542
63543         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63544         * modules/getdelim (License): Likewise.
63545
63546 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63547
63548         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63549         * modules/d-type (License): Likewise.
63550         * modules/extensions (License): Likewise.
63551         * modules/fnmatch (License): Likewise.
63552         * modules/fseeko (License): Likewise.
63553         * modules/getaddrinfo (License): Likewise.
63554         * modules/getline (License): Likewise.
63555         * modules/getlogin_r (License): Likewise.
63556         * modules/getpass (License): Likewise.
63557         * modules/gettimeofday (License): Likewise.
63558         * modules/glob (License): Likewise.
63559         * modules/inet_ntop (License): Likewise.
63560         * modules/malloc (License): Likewise.
63561         * modules/malloca (License): Likewise.
63562         * modules/memmem (License): Likewise.
63563         * modules/mempcpy (License): Likewise.
63564         * modules/memset (License): Likewise.
63565         * modules/minmax (License): Likewise.
63566         * modules/mktime (License): Likewise.
63567         * modules/netinet_in (License): Likewise.
63568         * modules/pathmax (License): Likewise.
63569         * modules/poll (License): Likewise.
63570         * modules/regex (License): Likewise.
63571         * modules/snprintf (License): Likewise.
63572         * modules/stdbool (License): Likewise.
63573         * modules/stdint (License): Likewise.
63574         * modules/stdio (License): Likewise.
63575         * modules/strcase (License): Likewise.
63576         * modules/strcasestr (License): Likewise.
63577         * modules/strdup (License): Likewise.
63578         * modules/string (License): Likewise.
63579         * modules/strndup (License): Likewise.
63580         * modules/strnlen (License): Likewise.
63581         * modules/strpbrk (License): Likewise.
63582         * modules/strptime (License): Likewise.
63583         * modules/strsep (License): Likewise.
63584         * modules/sys_select (License): Likewise.
63585         * modules/sys_socket (License): Likewise.
63586         * modules/sys_stat (License): Likewise.
63587         * modules/sys_time (License): Likewise.
63588         * modules/time (License): Likewise.
63589         * modules/time_r (License): Likewise.
63590         * modules/timegm (License): Likewise.
63591         * modules/unistd (License): Likewise.
63592         * modules/vsnprintf (License): Likewise.
63593         * modules/wctype (License): Likewise.
63594
63595 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63596
63597         * modules/argz (License): LGPLv2+.
63598
63599 2007-07-15  Karl Berry  <karl@gnu.org>
63600
63601         * doc/gnulib.texi: revise node structure per new fdl.texi.
63602
63603 2007-07-14  Bruno Haible  <bruno@clisp.org>
63604
63605         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63606         the output file.
63607         * lib/uniname/uninames.h: Regenerated.
63608
63609 2007-07-14  Karl Berry  <karl@gnu.org>
63610
63611         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63612         omitting sectioning and index commands.
63613
63614 2007-07-13  Bruno Haible  <bruno@clisp.org>
63615
63616         New gnulib-tool option --more-symlinks.
63617         * gnulib-tool (func_usage): Document --more-symlinks.
63618         (do_copyrights): New variable.
63619         Recognize option --more-symlinks.
63620         (func_import): Don't add a copyright notice transform to
63621         sed_transform_lib_file if do_copyrights is empty.
63622
63623 2007-07-13  Bruno Haible  <bruno@clisp.org>
63624
63625         * lib/vasnprintf.c (decimal_point_char): Define also if
63626         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63627         && !NEED_PRINTF_DIRECTIVE_A.
63628         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63629         Gary V. Vaughan <gary@gnu.org>.
63630
63631 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63632
63633         * lib/inttypes_.h: Undo previous change, since it was fixed
63634         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63635
63636 2007-07-13  Bruno Haible  <bruno@clisp.org>
63637
63638         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63639         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63640
63641 2007-07-13  Jim Meyering  <jim@meyering.net>
63642
63643         df: Don't fail for Tru64's "file-on-file mount".
63644         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63645         so we fall through and use statfs instead.  Details here:
63646         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63647         Reported by Albert Chin.
63648
63649 2007-07-13  Bruno Haible  <bruno@clisp.org>
63650
63651         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63652         * modules/configmake (License): Likewise.
63653         * modules/gettext (License): Likewise.
63654         * modules/gettext-h (License): Likewise.
63655         * modules/include_next (License): Likewise.
63656         * modules/link-warning (License): Likewise.
63657         * modules/localcharset (License): Likewise.
63658         * modules/localename (License): Likewise.
63659         * modules/lock (License): Likewise.
63660         * modules/relocatable-lib-lgpl (License): Likewise.
63661         * modules/size_max (License): Likewise.
63662         * modules/vasnprintf (License): Likewise.
63663         * modules/wchar (License): Likewise.
63664         * modules/xsize (License): Likewise.
63665
63666 2007-07-13  Bruno Haible  <bruno@clisp.org>
63667
63668         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63669         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63670
63671 2007-07-12  Bruno Haible  <bruno@clisp.org>
63672
63673         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63674         in the modules files.
63675
63676 2007-07-11  Karl Berry  <karl@gnu.org>
63677
63678         * MODULES.html.sh (func_module): use
63679          sed -e '\|^'"${includefile}"'$|d'
63680          instead of /.../d, to avoid errors on $includefile's containing /.
63681
63682 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63683
63684         * gnulib-tool (func_import): Avoid duplication of --avoid
63685         statements
63686         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63687         names to `_' in variable names.
63688
63689 2007-07-10  Eric Blake  <ebb9@byu.net>
63690
63691         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63692         * NEWS: Document this change.
63693
63694 2007-07-08  Bruno Haible  <bruno@clisp.org>
63695
63696         Update to Unicode 5.0.
63697         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63698         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63699         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63700         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63701         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63702         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63703         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63704         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63705         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63706         U+10A3F, U+1D242..U+1D244.
63707         (nonspacing_table_ind): Update.
63708         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63709         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63710
63711 2007-07-08  Bruno Haible  <bruno@clisp.org>
63712
63713         Update to Unicode 5.0.
63714         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63715         code transform. Extend the name index field of unicode_name_to_code and
63716         unicode_code_to_name from 16 to 24 bits.
63717         * lib/uniname/uniname.c (unicode_character_name,
63718         unicode_name_character): Add the range 0x12xxx to the code transform.
63719         * lib/uniname/uninames.h: Regenerated.
63720         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63721
63722 2007-07-07  Bruno Haible  <bruno@clisp.org>
63723
63724         * modules/wcwidth-tests: New file.
63725         * tests/test-wcwidth.c: New file.
63726
63727         Work around MacOS X wcwidth() bug.
63728         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63729         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63730         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63731         original wcwidth in non-UTF-8 locales.
63732         * modules/wcwidth (Depends-on): Add localcharset, streq,
63733         uniwidth/width.
63734         * doc/functions/wcwidth.texi: Update.
63735
63736 2007-07-07  Bruno Haible  <bruno@clisp.org>
63737
63738         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63739         (wcwidth): New declaration.
63740         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63741         macros.
63742         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63743         here. Prepare for creating <wchar.h> unconditionally.
63744         * modules/wchar (Depends-on): Add link-warning.
63745         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63746         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63747         * lib/wcwidth.h: Remove file.
63748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63749         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63750         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63751         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63752         (Include): Replace wcwidth.h with <wchar.h>.
63753         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63754         * lib/mbchar.h: Don't include wcwidth.h.
63755         * lib/mbswidth.c: Likewise.
63756         * NEWS: Mention the change.
63757
63758 2007-07-07  Bruno Haible  <bruno@clisp.org>
63759
63760         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63761         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63762         definition with an external declaration.
63763         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63764         defined as a function. Remove AC_C_INLINE requirement.
63765         * modules/wcwidth (Files): Add lib/wcwidth.c.
63766         (Makefile.am): Remove redundant statement.
63767
63768 2007-07-07  Bruno Haible  <bruno@clisp.org>
63769
63770         * MODULES.html.sh (Unicode string functions): Add the new modules.
63771
63772         * tests/uniwidth/test-u32-strwidth.c: New file.
63773         * modules/uniwidth/u32-strwidth-tests: New file.
63774
63775         * lib/uniwidth/u32-strwidth.c: New file.
63776         * modules/uniwidth/u32-strwidth: New file.
63777
63778         * tests/uniwidth/test-u16-strwidth.c: New file.
63779         * modules/uniwidth/u16-strwidth-tests: New file.
63780
63781         * lib/uniwidth/u16-strwidth.c: New file.
63782         * modules/uniwidth/u16-strwidth: New file.
63783
63784         * tests/uniwidth/test-u8-strwidth.c: New file.
63785         * modules/uniwidth/u8-strwidth-tests: New file.
63786
63787         * lib/uniwidth/u8-strwidth.c: New file.
63788         * modules/uniwidth/u8-strwidth: New file.
63789
63790         * tests/uniwidth/test-u32-width.c: New file.
63791         * modules/uniwidth/u32-width-tests: New file.
63792
63793         * lib/uniwidth/u32-width.c: New file.
63794         * modules/uniwidth/u32-width: New file.
63795
63796         * tests/uniwidth/test-u16-width.c: New file.
63797         * modules/uniwidth/u16-width-tests: New file.
63798
63799         * lib/uniwidth/u16-width.c: New file.
63800         * modules/uniwidth/u16-width: New file.
63801
63802         * tests/uniwidth/test-u8-width.c: New file.
63803         * modules/uniwidth/u8-width-tests: New file.
63804
63805         * lib/uniwidth/u8-width.c: New file.
63806         * modules/uniwidth/u8-width: New file.
63807
63808         * tests/uniwidth/test-uc_width.c: New file.
63809         * modules/uniwidth/width-tests: New file.
63810
63811         * lib/uniwidth/width.c: New file, from GNU libiconv.
63812         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63813         * modules/uniwidth/width: New file.
63814
63815         * lib/uniwidth.h: New file, from GNU libiconv.
63816         * modules/uniwidth/base: New file.
63817
63818 2007-07-07  Bruno Haible  <bruno@clisp.org>
63819
63820         * lib/uniname.h: New file, from GNU gettext.
63821         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63822         * lib/uniname/uninames.h: New file, from GNU gettext.
63823         * lib/uniname/uniname.c: New file, from GNU gettext.
63824         * tests/uniname/test-uninames.sh: New file.
63825         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63826         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63827         * modules/uniname/base: New file.
63828         * modules/uniname/uniname: New file.
63829         * modules/uniname/uniname-tests: New file.
63830         * MODULES.html.sh (Unicode string functions): Add the new modules.
63831
63832 2007-07-06  Bruno Haible  <bruno@clisp.org>
63833
63834         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63835
63836 2007-07-06  Bruno Haible  <bruno@clisp.org>
63837
63838         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63839         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63840         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63841         include <sys/time.h>.
63842         Reported by Eric Blake.
63843
63844 2007-07-06  Eric Blake  <ebb9@byu.net>
63845
63846         Fix testing canonicalize on cygwin.
63847         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63848         Revert patch from 2007-06-19.
63849         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63850         canonicalize module is also in use.
63851         * tests/test-canonicalize.c: New file.
63852         * tests/test-canonicalize.sh: Likewise.
63853         * modules/canonicalize-tests: Likewise.
63854
63855 2007-07-06  Jim Meyering  <jim@meyering.net>
63856
63857         * lib/getugroups.c (getugroups): Detect getgrent failure.
63858         Adjust comment to reflect reality: this function may return -1.
63859
63860 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63861
63862         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63863         the new TP address.
63864         (usage): Fix typo
63865         (gnulib_mk): New variable.
63866
63867 2007-07-05  Jim Meyering  <jim@meyering.net>
63868
63869         Don't let endgrent clobber errno, no matter how improbable.
63870         * lib/getugroups.c (getugroups): Save and restore errno around
63871         endgrent call.
63872
63873         Close the group DB even when failing with 2^31 or more members.
63874         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63875
63876 2007-07-04  Jim Meyering  <jim@meyering.net>
63877
63878         * lib/getugroups.h: New file.
63879         * lib/getugroups.c: Include "getugroups.h".
63880         Remove uses of "register" keyword.
63881         Move local variable, "cp", down into scope where used.
63882         Give "username" parameter the "const" attribute.
63883         * modules/getugroups (Files): Add lib/getugroups.h
63884
63885 2007-07-04  Karl Berry  <karl@gnu.org>
63886
63887         * MODULES.html.sh (func_all_modules): Complete rename of
63888         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63889
63890 2007-07-02  Bruno Haible  <bruno@clisp.org>
63891
63892         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63893         mode, when inttypes.h comes from gnulib.
63894         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63895
63896 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63897
63898         * NEWS: Mention lgpl module name change.
63899
63900         * modules/lgpl-2.1: Renamed from lgpl.
63901
63902         * NEWS: Mention gpl module name change.
63903
63904         * modules/gpl-3.0: New file, based on gpl-2.0.
63905
63906         * modules/gpl-2.0: Renamed from gpl.
63907
63908         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63909         doc/gpl-2.0.texi.
63910
63911 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63912
63913         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63914         #define __STDC_LIMIT_MACROS temporarily while including
63915         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63916         Problem reported by Joel E. Denny in
63917         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63918
63919 2007-07-01  Bruno Haible  <bruno@clisp.org>
63920
63921         * lib/unistdio.h: New file.
63922         * lib/unistdio/u-asnprintf.h: New file.
63923         * lib/unistdio/u-asprintf.h: New file.
63924         * lib/unistdio/u-printf-args.c: New file.
63925         * lib/unistdio/u-printf-args.h: New file.
63926         * lib/unistdio/u-printf-parse.h: New file.
63927         * lib/unistdio/u-snprintf.h: New file.
63928         * lib/unistdio/u-sprintf.h: New file.
63929         * lib/unistdio/u-vasprintf.h: New file.
63930         * lib/unistdio/u-vsnprintf.h: New file.
63931         * lib/unistdio/u-vsprintf.h: New file.
63932         * lib/unistdio/ulc-asnprintf.c: New file.
63933         * lib/unistdio/ulc-asprintf.c: New file.
63934         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63935         * lib/unistdio/ulc-printf-parse.c: New file.
63936         * lib/unistdio/ulc-snprintf.c: New file.
63937         * lib/unistdio/ulc-sprintf.c: New file.
63938         * lib/unistdio/ulc-vasnprintf.c: New file.
63939         * lib/unistdio/ulc-vasprintf.c: New file.
63940         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63941         * lib/unistdio/ulc-vsnprintf.c: New file.
63942         * lib/unistdio/ulc-vsprintf.c: New file.
63943         * lib/unistdio/u8-asnprintf.c: New file.
63944         * lib/unistdio/u8-asprintf.c: New file.
63945         * lib/unistdio/u8-printf-parse.c: New file.
63946         * lib/unistdio/u8-snprintf.c: New file.
63947         * lib/unistdio/u8-sprintf.c: New file.
63948         * lib/unistdio/u8-vasnprintf.c: New file.
63949         * lib/unistdio/u8-vasprintf.c: New file.
63950         * lib/unistdio/u8-vsnprintf.c: New file.
63951         * lib/unistdio/u8-vsprintf.c: New file.
63952         * lib/unistdio/u8-u8-asnprintf.c: New file.
63953         * lib/unistdio/u8-u8-asprintf.c: New file.
63954         * lib/unistdio/u8-u8-snprintf.c: New file.
63955         * lib/unistdio/u8-u8-sprintf.c: New file.
63956         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63957         * lib/unistdio/u8-u8-vasprintf.c: New file.
63958         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63959         * lib/unistdio/u8-u8-vsprintf.c: New file.
63960         * lib/unistdio/u16-asnprintf.c: New file.
63961         * lib/unistdio/u16-asprintf.c: New file.
63962         * lib/unistdio/u16-printf-parse.c: New file.
63963         * lib/unistdio/u16-snprintf.c: New file.
63964         * lib/unistdio/u16-sprintf.c: New file.
63965         * lib/unistdio/u16-vasnprintf.c: New file.
63966         * lib/unistdio/u16-vasprintf.c: New file.
63967         * lib/unistdio/u16-vsnprintf.c: New file.
63968         * lib/unistdio/u16-vsprintf.c: New file.
63969         * lib/unistdio/u16-u16-asnprintf.c: New file.
63970         * lib/unistdio/u16-u16-asprintf.c: New file.
63971         * lib/unistdio/u16-u16-snprintf.c: New file.
63972         * lib/unistdio/u16-u16-sprintf.c: New file.
63973         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63974         * lib/unistdio/u16-u16-vasprintf.c: New file.
63975         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63976         * lib/unistdio/u16-u16-vsprintf.c: New file.
63977         * lib/unistdio/u32-asnprintf.c: New file.
63978         * lib/unistdio/u32-asprintf.c: New file.
63979         * lib/unistdio/u32-printf-parse.c: New file.
63980         * lib/unistdio/u32-snprintf.c: New file.
63981         * lib/unistdio/u32-sprintf.c: New file.
63982         * lib/unistdio/u32-vasnprintf.c: New file.
63983         * lib/unistdio/u32-vasprintf.c: New file.
63984         * lib/unistdio/u32-vsnprintf.c: New file.
63985         * lib/unistdio/u32-vsprintf.c: New file.
63986         * lib/unistdio/u32-u32-asnprintf.c: New file.
63987         * lib/unistdio/u32-u32-asprintf.c: New file.
63988         * lib/unistdio/u32-u32-snprintf.c: New file.
63989         * lib/unistdio/u32-u32-sprintf.c: New file.
63990         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63991         * lib/unistdio/u32-u32-vasprintf.c: New file.
63992         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63993         * lib/unistdio/u32-u32-vsprintf.c: New file.
63994         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63995         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63996         * tests/unistdio/test-ulc-printf1.h: New file.
63997         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63998         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63999         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64000         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64001         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64002         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64003         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64004         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64005         * tests/unistdio/test-u8-asnprintf1.c: New file.
64006         * tests/unistdio/test-u8-asnprintf1.h: New file.
64007         * tests/unistdio/test-u8-printf1.h: New file.
64008         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64009         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64010         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64011         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64012         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64013         * tests/unistdio/test-u8-vasprintf1.c: New file.
64014         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64015         * tests/unistdio/test-u8-vsprintf1.c: New file.
64016         * tests/unistdio/test-u16-asnprintf1.c: New file.
64017         * tests/unistdio/test-u16-asnprintf1.h: New file.
64018         * tests/unistdio/test-u16-printf1.h: New file.
64019         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64020         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64021         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64022         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64023         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64024         * tests/unistdio/test-u16-vasprintf1.c: New file.
64025         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64026         * tests/unistdio/test-u16-vsprintf1.c: New file.
64027         * tests/unistdio/test-u32-asnprintf1.c: New file.
64028         * tests/unistdio/test-u32-asnprintf1.h: New file.
64029         * tests/unistdio/test-u32-printf1.h: New file.
64030         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64031         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64032         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64033         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64034         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64035         * tests/unistdio/test-u32-vasprintf1.c: New file.
64036         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64037         * tests/unistdio/test-u32-vsprintf1.c: New file.
64038         * modules/unistdio/base: New file.
64039         * modules/unistdio/u-printf-args: New file.
64040         * modules/unistdio/ulc-asnprintf: New file.
64041         * modules/unistdio/ulc-asprintf: New file.
64042         * modules/unistdio/ulc-fprintf: New file.
64043         * modules/unistdio/ulc-printf-parse: New file.
64044         * modules/unistdio/ulc-snprintf: New file.
64045         * modules/unistdio/ulc-sprintf: New file.
64046         * modules/unistdio/ulc-vasnprintf: New file.
64047         * modules/unistdio/ulc-vasprintf: New file.
64048         * modules/unistdio/ulc-vfprintf: New file.
64049         * modules/unistdio/ulc-vsnprintf: New file.
64050         * modules/unistdio/ulc-vsprintf: New file.
64051         * modules/unistdio/u8-asnprintf: New file.
64052         * modules/unistdio/u8-asprintf: New file.
64053         * modules/unistdio/u8-printf-parse: New file.
64054         * modules/unistdio/u8-snprintf: New file.
64055         * modules/unistdio/u8-sprintf: New file.
64056         * modules/unistdio/u8-vasnprintf: New file.
64057         * modules/unistdio/u8-vasprintf: New file.
64058         * modules/unistdio/u8-vsnprintf: New file.
64059         * modules/unistdio/u8-vsprintf: New file.
64060         * modules/unistdio/u8-u8-asnprintf: New file.
64061         * modules/unistdio/u8-u8-asprintf: New file.
64062         * modules/unistdio/u8-u8-snprintf: New file.
64063         * modules/unistdio/u8-u8-sprintf: New file.
64064         * modules/unistdio/u8-u8-vasnprintf: New file.
64065         * modules/unistdio/u8-u8-vasprintf: New file.
64066         * modules/unistdio/u8-u8-vsnprintf: New file.
64067         * modules/unistdio/u8-u8-vsprintf: New file.
64068         * modules/unistdio/u16-asnprintf: New file.
64069         * modules/unistdio/u16-asprintf: New file.
64070         * modules/unistdio/u16-printf-parse: New file.
64071         * modules/unistdio/u16-snprintf: New file.
64072         * modules/unistdio/u16-sprintf: New file.
64073         * modules/unistdio/u16-vasnprintf: New file.
64074         * modules/unistdio/u16-vasprintf: New file.
64075         * modules/unistdio/u16-vsnprintf: New file.
64076         * modules/unistdio/u16-vsprintf: New file.
64077         * modules/unistdio/u16-u16-asnprintf: New file.
64078         * modules/unistdio/u16-u16-asprintf: New file.
64079         * modules/unistdio/u16-u16-snprintf: New file.
64080         * modules/unistdio/u16-u16-sprintf: New file.
64081         * modules/unistdio/u16-u16-vasnprintf: New file.
64082         * modules/unistdio/u16-u16-vasprintf: New file.
64083         * modules/unistdio/u16-u16-vsnprintf: New file.
64084         * modules/unistdio/u16-u16-vsprintf: New file.
64085         * modules/unistdio/u32-asnprintf: New file.
64086         * modules/unistdio/u32-asprintf: New file.
64087         * modules/unistdio/u32-printf-parse: New file.
64088         * modules/unistdio/u32-snprintf: New file.
64089         * modules/unistdio/u32-sprintf: New file.
64090         * modules/unistdio/u32-vasnprintf: New file.
64091         * modules/unistdio/u32-vasprintf: New file.
64092         * modules/unistdio/u32-vsnprintf: New file.
64093         * modules/unistdio/u32-vsprintf: New file.
64094         * modules/unistdio/u32-u32-asnprintf: New file.
64095         * modules/unistdio/u32-u32-asprintf: New file.
64096         * modules/unistdio/u32-u32-snprintf: New file.
64097         * modules/unistdio/u32-u32-sprintf: New file.
64098         * modules/unistdio/u32-u32-vasnprintf: New file.
64099         * modules/unistdio/u32-u32-vasprintf: New file.
64100         * modules/unistdio/u32-u32-vsnprintf: New file.
64101         * modules/unistdio/u32-u32-vsprintf: New file.
64102         * modules/unistdio/ulc-asnprintf-tests: New file.
64103         * modules/unistdio/ulc-vasnprintf-tests: New file.
64104         * modules/unistdio/ulc-vasprintf-tests: New file.
64105         * modules/unistdio/ulc-vsnprintf-tests: New file.
64106         * modules/unistdio/ulc-vsprintf-tests: New file.
64107         * modules/unistdio/u8-asnprintf-tests: New file.
64108         * modules/unistdio/u8-vasnprintf-tests: New file.
64109         * modules/unistdio/u8-vasprintf-tests: New file.
64110         * modules/unistdio/u8-vsnprintf-tests: New file.
64111         * modules/unistdio/u8-vsprintf-tests: New file.
64112         * modules/unistdio/u16-asnprintf-tests: New file.
64113         * modules/unistdio/u16-vasnprintf-tests: New file.
64114         * modules/unistdio/u16-vasprintf-tests: New file.
64115         * modules/unistdio/u16-vsnprintf-tests: New file.
64116         * modules/unistdio/u16-vsprintf-tests: New file.
64117         * modules/unistdio/u32-asnprintf-tests: New file.
64118         * modules/unistdio/u32-vasnprintf-tests: New file.
64119         * modules/unistdio/u32-vasprintf-tests: New file.
64120         * modules/unistdio/u32-vsnprintf-tests: New file.
64121         * modules/unistdio/u32-vsprintf-tests: New file.
64122         * MODULES.html.sh (Unicode string functions): Add the new modules.
64123
64124 2007-07-01  Bruno Haible  <bruno@clisp.org>
64125
64126         * lib/sprintf.c (sprintf): Limit the available length estimation,
64127         to avoid address wraparound.
64128         * lib/vsprintf.c (vsprintf): Likewise.
64129         * modules/sprintf-posix (Dependencies): Add stdint.
64130         * modules/vsprintf-posix (Dependencies): Likewise.
64131
64132 2007-07-01  Bruno Haible  <bruno@clisp.org>
64133
64134         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64135         Windows PATH as well. Conservative double-quoting. Comments.
64136
64137 2007-07-01  Bruno Haible  <bruno@clisp.org>
64138             Eric Blake  <ebb9@byu.net>
64139             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64140
64141         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64142         empty components in $PATH, denoting '.'.
64143
64144 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64145
64146         * gnulib-tool: Fix indentation.
64147         (func_create_megatestdir): Likewise.
64148         Report by Bruno Haible.
64149
64150 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64151
64152         Sync from Automake.
64153         * build-aux/gnupload: Fix shell portability issues with for loops.
64154         Report by Karl Berry.
64155
64156 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64157
64158         * build-aux/maint.mk (POURL): Use translationproject.org.
64159
64160 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64161             Bruno Haible  <bruno@clisp.org>
64162
64163         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64164         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64165         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64166         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64167         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64168
64169 2007-06-27  Bruno Haible  <bruno@clisp.org>
64170
64171         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64172         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64173
64174 2007-06-26  Karl Berry  <karl@gnu.org>
64175
64176         * MODULES.html.sh: remove xreadlink-with-size.
64177
64178 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64179
64180         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64181         method that I hope also handles the double-include problem noted
64182         by Bruno Haible in
64183         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64184
64185 2007-06-23  Bruno Haible  <bruno@clisp.org>
64186
64187         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64188         Don't let the 'mostlyclean' target fail if the last subdirectory could
64189         not be removed.
64190         Reported by Karl Berry.
64191
64192 2007-06-23  Bruno Haible  <bruno@clisp.org>
64193
64194         * gnulib-tool (echo): Add a speedier workaround for ksh.
64195         * tests/test-echo.sh: Likewise.
64196
64197 2007-06-23  Bruno Haible  <bruno@clisp.org>
64198
64199         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64200         * tests/test-echo.sh: Likewise.
64201
64202 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64203
64204         * gnulib-tool (IFS): Initialize early, so we don't set it to
64205         empty later.
64206         (self_abspathname): Rewrite algorithm to set it, reindent.
64207         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64208         (func_create_megatestdir): Merge some sed scripts.
64209
64210 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64211
64212         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64213         exposed by Sun Studio 11 cc on Solaris 8.
64214
64215 2007-06-22  Bruno Haible  <bruno@clisp.org>
64216
64217         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64218         backslashes.
64219         * tests/test-echo.sh: New file.
64220
64221 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64222
64223         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64224         simplify `sed_replace_build_aux' scripts, they are portable but
64225         echoing them with `echo' is not.
64226         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64227
64228 2007-06-21  Karl Berry  <karl@gnu.org>
64229
64230         * config/srclist.txt: guess we can't handle the licenses via
64231         srclist at the moment.
64232
64233 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64234
64235         * MODULES.html.sh: Add include_next.
64236         * modules/include_next: New file.
64237
64238 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64239
64240         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64241         INCLUDE_NEXT.
64242         (gl_CHECK_NEXT_HEADERS): New macro.
64243         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64244         the obsolescent gl_ABSOLUTE_HEADER.
64245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64246         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64247         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64248         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64249         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64250         * m4/math_h.m4 (gl_MATH_H): Likewise.
64251         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64252         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64253         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64254         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64255         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64256         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64257         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64258         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64259         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64260         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64261         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64262         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64263         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64264         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64265         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64266         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64267         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64268         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64269         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64270         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64271         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64272         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64273         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64274         * lib/float_.h: Likewise.
64275         * lib/inttypes_.h: Likewise.
64276         * lib/math_.h: Likewise.
64277         * lib/search_.h: Likewise.
64278         * lib/signal_.h: Likewise.
64279         * lib/stdint_.h: Likewise.
64280         * lib/stdio_.h: Likewise.
64281         * lib/stdlib_.h: Likewise.
64282         * lib/string_.h: Likewise.
64283         * lib/sys_stat_.h: Likewise.
64284         * lib/sys_time_.h: Likewise.
64285         * lib/time_.h: Likewise.
64286         * lib/unistd_.h: Likewise.
64287         * lib/wchar_.h: Likewise.
64288         * lib/wctype_.h: Likewise.
64289         * lib/dirent_.h: Likewise.
64290         * lib/iconv_.h: Likewise.
64291         * lib/locale_.h: Likewise.
64292         * lib/netinet_in_.h: Likewise.
64293         * lib/sys_select_.h: Likewise.
64294         * lib/sys_socket_.h: Likewise.
64295         * lib/sysexits_.h: Likewise.
64296         * modules/fcntl (Depends-on): Depend on include_next, not
64297         absolute_header.
64298         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64299         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64300         * modules/fchdir: Likewise.
64301         * modules/float: Likewise.
64302         * modules/iconv_open: Likewise.
64303         * modules/inttypes: Likewise.
64304         * modules/locale: Likewise.
64305         * modules/math: Likewise.
64306         * modules/netinet_in: Likewise.
64307         * modules/search: Likewise.
64308         * modules/signal: Likewise.
64309         * modules/stdint: Likewise.
64310         * modules/stdio: Likewise.
64311         * modules/stdlib: Likewise.
64312         * modules/string: Likewise.
64313         * modules/sys_select: Likewise.
64314         * modules/sys_socket: Likewise.
64315         * modules/sys_stat: Likewise.
64316         * modules/sys_time: Likewise.
64317         * modules/sysexits: Likewise.
64318         * modules/time: Likewise.
64319         * modules/unistd: Likewise.
64320         * modules/wchar: Likewise.
64321         * modules/wctype: Likewise.
64322         * modules/sys_stat: Change maintainer to "all".
64323         * modules/unistd: Likewise.
64324
64325 2007-06-20  Karl Berry  <karl@gnu.org>
64326
64327         * config/srclist.txt: track www changes in license files.
64328
64329 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64330
64331         * build-aux/bootstrap: Remove stray dot.
64332         Make sure build_aux settings are honored when linking
64333         gnulib_extra_files.
64334
64335 2007-06-19  Eric Blake  <ebb9@byu.net>
64336
64337         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64338         Allow compilation on cygwin.
64339
64340 2007-06-19  Jim Meyering  <jim@meyering.net>
64341
64342         xreadlink-with-size: Remove module.  No longer used.
64343         Ex-callers now use xreadlink or mreadlink-with-size.
64344         * modules/xreadlink-with-size: Remove module.
64345         * lib/xreadlink-with-size.c: Remove file.
64346         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64347         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64348         just before the function definition *is* accurate.
64349
64350         Eliminate one way canonicalize_filename_mode could exit.
64351         * lib/canonicalize.c (canonicalize_filename_mode):
64352         Use mreadlink_with_size, not xreadlink_with_size.
64353
64354 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64355
64356         Detect porting problems to FreeBSD/arm, which has time_t wider than
64357         long int.  Original problem reported for GNU diff by Xin Li in
64358         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64359         * modules/getdate (Depends-on): Add intprops, verify.
64360         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64361         is an integer type no wider than long int.
64362
64363 2007-06-18  Jim Meyering  <jim@meyering.net>
64364
64365         New module: mreadlink-with-size.
64366         * MODULES.html.sh: Add mreadlink-with-size.
64367         * modules/mreadlink-with-size: New module
64368         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64369         not xreadlink-with-size.
64370         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64371
64372 2007-06-16  Bruno Haible  <bruno@clisp.org>
64373
64374         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64375         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64376         Reported by Gary V. Vaughan <gary@gnu.org>.
64377
64378 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64379
64380         Revamp lchown so that it lives in unistd.h where it belongs.
64381         * lib/lchown.h: Remove.
64382         * lib/dirchownmod.c: Don't include lib/lchown.h.
64383         * lib/fchownat.c: Likewise.
64384         * lib/openat.c: Likewise.
64385         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64386         does not follow symlinks.
64387         (EOPNOTSUPP): Define if not defined.
64388         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64389         is defined to 0.
64390         (lchown): New decl.
64391         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64392         Do not check for lchown decl.
64393         Set REPLACE_LCHOWN.
64394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64395         REPLACE_LCHOWN.
64396         * modules/chown: Make it clear it follows symlinks.
64397         * modules/lchown: Make it clear it doesn't follow symlinks.
64398         (Files): Remove lib/lchown.h
64399         (Depends-on): Add unistd.
64400         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64401         (Include): Include <unistd.h>, not "lchown.h".
64402         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64403         REPLACE_LCHOWN.
64404
64405 2007-06-15  Jim Meyering  <jim@meyering.net>
64406
64407         Change license (GPL to LGPL) of fsusage and dependents.
64408         * modules/fsusage (License): Change to LGPL.
64409         * modules/full-read (License): Likewise.
64410         * modules/full-write (License): Likewise.
64411         * modules/safe-read (License): Likewise.
64412         * modules/safe-write (License): Likewise.
64413
64414 2007-06-14  Ben Pfaff  <blp@gnu.org>
64415
64416         Missing part of allocsa -> malloca transition.
64417         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64418         gl_MALLOCA.
64419
64420 2007-06-12  Bruno Haible  <bruno@clisp.org>
64421
64422         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64423         to ia64, x86_64, i386.
64424         Reported by Eric Blake.
64425
64426 2007-06-12  Bruno Haible  <bruno@clisp.org>
64427
64428         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64429         cross-compiling to x86_64.
64430
64431 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64432
64433         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64434         glitch reported by Ralf Wildenhues in
64435         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64436
64437         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64438         Vin Shelton.
64439
64440 2007-06-11  Bruno Haible  <bruno@clisp.org>
64441
64442         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64443         replacement string.
64444         Reported by Eric Blake.
64445
64446 2007-06-10  Bruno Haible  <bruno@clisp.org>
64447
64448         Prepare vasnprintf code for use with Unicode strings.
64449         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64450         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64451         TYPE_U32_STRING.
64452         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64453         a_u32_string variants.
64454         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64455         * lib/printf-args.c: Don't include config.h and the specification
64456         header if PRINTF_FETCHARGS is already defined.
64457         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64458         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64459         TYPE_U16_STRING, TYPE_U32_STRING.
64460         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64461         u16_directive, u16_directives, u32_directive, u32_directives): New
64462         types.
64463         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64464         New declarations.
64465         * lib/printf-parse.c: Don't include config.h and the specification
64466         header if PRINTF_PARSE is already defined. Eliminate the set of
64467         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64468         them now. Include c-ctype.h.
64469         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64470         directive and CHAR_T_ONLY_ASCII.
64471         * lib/vasnprintf.c: Don't include config.h and the specification header
64472         if VASNPRINTF is already defined.
64473         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64474         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64475         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64476         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64477         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64478         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64479         code accordingly.
64480         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64481         pad_ourselves also in this case, with the 'c' and 's' directives, and
64482         with a different notion of "width".
64483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64484
64485 2007-06-10  Bruno Haible  <bruno@clisp.org>
64486
64487         * modules/unistr/u32-mbsnlen: New file.
64488         * lib/unistr/u32-mbsnlen.c: New file.
64489
64490         * modules/unistr/u16-mbsnlen: New file.
64491         * lib/unistr/u16-mbsnlen.c: New file.
64492
64493         * modules/unistr/u8-mbsnlen: New file.
64494         * lib/unistr/u8-mbsnlen.c: New file.
64495
64496         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64497         declarations.
64498
64499 2007-06-10  Bruno Haible  <bruno@clisp.org>
64500
64501         * lib/string_.h (mbsnlen): New declaration.
64502         * lib/mbsnlen.c: New file.
64503         * m4/mbsnlen.m4: New file.
64504         * modules/mbsnlen: New file.
64505         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64506         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64507         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64508
64509 2007-06-10  Bruno Haible  <bruno@clisp.org>
64510
64511         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64512
64513 2007-06-10  Bruno Haible  <bruno@clisp.org>
64514
64515         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64516         * lib/mbuiter.h: Likewise.
64517
64518 2007-06-10  Bruno Haible  <bruno@clisp.org>
64519
64520         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64521         declaration.
64522
64523 2007-06-10  Karl Berry  <karl@gnu.org>
64524
64525         * config/srclist.txt: remove gettext entries, Bruno prefers
64526         to update individually.
64527
64528 2007-06-10  Bruno Haible  <bruno@clisp.org>
64529
64530         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64531         'maxlen'. Ensure only length + width bytes are allocated, not
64532         length + 1 + width.
64533
64534 2007-06-09  Bruno Haible  <bruno@clisp.org>
64535
64536         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64537         (CHAR_T): Remove macro.
64538         (VASNPRINTF): Update.
64539
64540 2007-06-09  Bruno Haible  <bruno@clisp.org>
64541
64542         * MODULES.html.sh (Unicode string functions): Add the new modules.
64543
64544         * modules/uniconv/u32-conv-to-enc: New file.
64545         * lib/uniconv/u32-conv-to-enc.c: New file.
64546         * modules/uniconv/u32-conv-to-enc-tests: New file.
64547         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64548
64549         * modules/uniconv/u16-conv-to-enc: New file.
64550         * lib/uniconv/u16-conv-to-enc.c: New file.
64551         * lib/uniconv/u-conv-to-enc.h: New file.
64552         * modules/uniconv/u16-conv-to-enc-tests: New file.
64553         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64554
64555         * modules/uniconv/u8-conv-to-enc: New file.
64556         * lib/uniconv/u8-conv-to-enc.c: New file.
64557         * modules/uniconv/u8-conv-to-enc-tests: New file.
64558         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64559
64560         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64561         u32_conv_to_encoding): New declarations.
64562
64563 2007-06-09  Bruno Haible  <bruno@clisp.org>
64564
64565         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64566
64567 2007-06-09  Bruno Haible  <bruno@clisp.org>
64568
64569         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64570         * modules/malloca: Renamed from modules/allocsa, updated.
64571         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64572         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64573         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64574         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64575         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64576         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64577         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64578         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64579         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64580         * modules/c-strcasestr (Depends-on): Update.
64581         * lib/c-strcasestr.c: Update.
64582         * modules/c-strstr (Depends-on): Update.
64583         * lib/c-strstr.c: Update.
64584         * modules/canonicalize-lgpl (Depends-on): Update.
64585         * lib/canonicalize-lgpl.c: Update.
64586         * modules/clean-temp (Depends-on): Update.
64587         * lib/clean-temp.c: Update.
64588         * modules/csharpcomp (Depends-on): Update.
64589         * lib/csharpcomp.c: Update.
64590         * modules/csharpexec (Depends-on): Update.
64591         * lib/csharpexec.c: Update.
64592         * modules/javacomp (Depends-on): Update.
64593         * lib/javacomp.c: Update.
64594         * modules/javaexec (Depends-on): Update.
64595         * lib/javaexec.c: Update.
64596         * modules/mbscasestr (Depends-on): Update.
64597         * lib/mbscasestr.c: Update.
64598         * modules/mbsstr (Depends-on): Update.
64599         * lib/mbsstr.c: Update.
64600         * modules/setenv (Depends-on): Update.
64601         * lib/setenv.c: Update.
64602         * modules/strcasestr (Depends-on): Update.
64603         * lib/strcasestr.c: Update.
64604         * modules/striconveha (Depends-on): Update.
64605         * lib/striconveha.c: Update.
64606         * modules/relocatable-prog-wrapper (Files): Update.
64607         * lib/relocwrapper.c: Update.
64608         * build-aux/install-reloc: Update.
64609         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64610
64611 2007-06-08  Bruno Haible  <bruno@clisp.org>
64612
64613         Port to uClibc.
64614         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64615         * lib/fpurge.c (fpurge): Likewise.
64616         * lib/freading.c (freading): Likewise.
64617         * lib/fseeko.c (rpl_fseeko): Likewise.
64618         * lib/fseterr.c (fseterr): Likewise.
64619         * lib/fwriting.c (fwriting): Likewise.
64620         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64621
64622 2007-06-08  Bruno Haible  <bruno@clisp.org>
64623
64624         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64625         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64626         * modules/gettext (Files): Add m4/intlmacosx.m4.
64627
64628 2007-06-07  Bruno Haible  <bruno@clisp.org>
64629
64630         * modules/localename-tests: New file.
64631         * tests/test-localename.c: New file.
64632
64633         New module 'localename'.
64634         * lib/localename.h: New file.
64635         * lib/localename.c: New file, from GNU gettext.
64636         * m4/localename.m4: New file.
64637         * modules/localename: New file.
64638
64639 2007-06-07  Bruno Haible  <bruno@clisp.org>
64640
64641         Work around the lack of <wchar.h> on some builds of uClibc.
64642         * doc/headers/wchar.texi: Update.
64643         * lib/wchar_.h: Include <wchar.h> only if it exists.
64644         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64645         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64646         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64647         doesn't exist.
64648         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64649         * modules/mbfile (Depends-on): Add wchar.
64650         * modules/mbiter (Depends-on): Likewise.
64651         * modules/mbuiter (Depends-on): Likewise.
64652         Reported by Simon Josefsson.
64653
64654 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64655
64656         Work around problem reported by Steven M. Schweda in
64657         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64658         Tru64 5.1B with the Compaq compiler environment installed declares
64659         an 'isblank' function but does not define it in the C library.
64660         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64661         * lib/regex_internal.h (isblank): Likewise.
64662         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64663         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64664
64665 2007-06-05  Bruno Haible  <bruno@clisp.org>
64666
64667         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64668         ia64.
64669         * modules/printf-safe: New file.
64670         * modules/fprintf-posix (Depends-on): Add printf-safe.
64671         * modules/printf-posix (Depends-on): Likewise.
64672         * modules/snprintf-posix (Depends-on): Likewise.
64673         * modules/sprintf-posix (Depends-on): Likewise.
64674         * modules/vasnprintf-posix (Depends-on): Likewise.
64675         * modules/vasprintf-posix (Depends-on): Likewise.
64676         * modules/vfprintf-posix (Depends-on): Likewise.
64677         * modules/vprintf-posix (Depends-on): Likewise.
64678         * modules/vsnprintf-posix (Depends-on): Likewise.
64679         * modules/vsprintf-posix (Depends-on): Likewise.
64680         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64681         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64682         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64683         "no" on i386, x86_64, ia64.
64684         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64685         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64686         on i386, x86_64, ia64.
64687         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64688         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64689         on i386, x86_64, ia64.
64690         * tests/test-vasnprintf-posix.c: Include float.h.
64691         (LDBL80_WORDS): New macro.
64692         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64693         on i386, x86_64, ia64.
64694         * tests/test-vasprintf-posix.c: Include float.h.
64695         (LDBL80_WORDS): New macro.
64696         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64697         on i386, x86_64, ia64.
64698         * tests/test-snprintf-posix.c: Include float.h.
64699         * tests/test-sprintf-posix.c: Likewise.
64700         * tests/test-vsnprintf-posix.c: Likewise.
64701         * tests/test-vsprintf-posix.c: Likewise.
64702
64703 2007-06-05  Bruno Haible  <bruno@clisp.org>
64704
64705         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64706         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64707         non-IEEE numbers on i386, x86_64, ia64.
64708         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64709         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64710         * tests/test-isnanl.h: Include float.h.
64711         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64712
64713 2007-06-05  Bruno Haible  <bruno@clisp.org>
64714
64715         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64716         also the %a / %A. Handle the %a / %A code before this extra handling.
64717
64718 2007-06-05  Bruno Haible  <bruno@clisp.org>
64719
64720         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64721         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64722
64723 2007-06-05  Bruno Haible  <bruno@clisp.org>
64724
64725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64726         typo in variable name.
64727
64728 2007-06-05  Eric Blake  <ebb9@byu.net>
64729
64730         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64731         Reported by Simon Josefsson.
64732
64733 2007-06-04  Bruno Haible  <bruno@clisp.org>
64734
64735         Avoid test failures on some PowerPC platforms.
64736         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64737         Define differently for PowerPC.
64738         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64739         Reported by Gary V. Vaughan <gary@gnu.org>.
64740
64741 2007-06-02  Bruno Haible  <bruno@clisp.org>
64742
64743         Fix test-stdint failure on FreeBSD/ia64.
64744         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64745         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64746         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64747         * doc/headers/stdint.texi: Update.
64748
64749 2007-06-01  Bruno Haible  <bruno@clisp.org>
64750
64751         * tests/test-binary-io.c (main): Pass a third argument to open().
64752         Reported by Gary V. Vaughan <gary@gnu.org>.
64753
64754 2007-06-01  Bruno Haible  <bruno@clisp.org>
64755
64756         * doc/functions/frexpl.texi: Update for mingw.
64757
64758 2007-06-01  Bruno Haible  <bruno@clisp.org>
64759
64760         * tests/test-lseek.c (main): Disable test of errno for invalid third
64761         argument.
64762         * doc/functions/lseek.texi: Update.
64763         Reported by Gary V. Vaughan <gary@gnu.org>.
64764
64765 2007-05-28  Bruno Haible  <bruno@clisp.org>
64766
64767         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64768
64769 2007-05-31  Eric Blake  <ebb9@byu.net>
64770
64771         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64772         cross compiling.
64773
64774 2007-05-30  Eric Blake  <ebb9@byu.net>
64775         and Bruno Haible  <bruno@clisp.org>
64776
64777         Work around mingw test failures exposed by m4-1.4.9b.
64778         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64779         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64780         moment.
64781
64782 2007-05-30  Bruno Haible  <bruno@clisp.org>
64783
64784         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64785         assuming that they are closed. Needed on HP-UX 11.
64786
64787 2007-05-29  Bruno Haible  <bruno@clisp.org>
64788
64789         Fix a problem with #include_next.
64790         * lib/dirent_.h: Split the double-inclusion guard.
64791         * lib/fcntl_.h: Likewise.
64792         * lib/float_.h: Likewise.
64793         * lib/iconv_.h: Likewise.
64794         * lib/inttypes_.h: Likewise.
64795         * lib/locale_.h: Likewise.
64796         * lib/math_.h: Likewise.
64797         * lib/netinet_in_.h: Likewise.
64798         * lib/search_.h: Likewise.
64799         * lib/signal_.h: Likewise.
64800         * lib/stdint_.h: Likewise.
64801         * lib/stdio_.h: Likewise.
64802         * lib/stdlib_.h: Likewise.
64803         * lib/string_.h: Likewise.
64804         * lib/sys_select_.h: Likewise.
64805         * lib/sys_socket_.h: Likewise.
64806         * lib/sys_stat_.h: Likewise.
64807         * lib/sys_time_.h: Likewise.
64808         * lib/sysexits_.h: Likewise.
64809         * lib/time_.h: Likewise.
64810         * lib/unistd_.h: Likewise.
64811         * lib/wchar_.h: Likewise.
64812         * lib/wctype_.h: Likewise.
64813
64814 2007-05-29  Bruno Haible  <bruno@clisp.org>
64815
64816         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64817         for the moment.
64818
64819 2007-05-29  Bruno Haible  <bruno@clisp.org>
64820
64821         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64822         invocation.
64823         Reported by Eric Blake.
64824
64825 2007-05-29  Bruno Haible  <bruno@clisp.org>
64826
64827         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64828         compiling case.
64829
64830 2007-05-29  Eric Blake  <ebb9@byu.net>
64831             Bruno Haible  <bruno@clisp.org>
64832
64833         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64834         cross compiles.
64835
64836 2007-05-28  Eric Blake  <ebb9@byu.net>
64837
64838         * modules/closein-tests (test_closein_LDADD): Support test on
64839         cygwin with libtool.
64840
64841 2007-05-28  Bruno Haible  <bruno@clisp.org>
64842
64843         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64844         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64845         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64846         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64847         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64848         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64849         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64850         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64851         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64852
64853 2007-05-28  Eric Blake  <ebb9@byu.net>
64854
64855         Unconditionally include <config.h> in unit tests.
64856         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64857         * tests/test-allocsa.c, tests/test-arcfour.c,
64858         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64859         tests/test-array_list.c, tests/test-array_oset.c,
64860         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64861         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64862         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64863         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64864         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64865         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64866         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64867         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64868         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64869         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64870         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64871         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64872         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64873         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64874         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64875         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64876         test-md5.c, test-memmem.c, test-printf-posix.c,
64877         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64878         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64879         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64880         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64881         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64882         test-vasnprintf-posix2.c, test-vasnprintf.c,
64883         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64884         test-vfprintf-posix.c, test-vprintf-posix.c,
64885         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64886         test-xvasprintf.c: Likewise.
64887
64888 2007-05-28  Bruno Haible  <bruno@clisp.org>
64889
64890         * gnulib-tool (func_import): Remember the --with-tests command-line
64891         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64892         Reported by Eric Blake.
64893
64894 2007-05-28  Bruno Haible  <bruno@clisp.org>
64895
64896         * modules/ftell-tests: New file.
64897         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64898         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64899
64900         * lib/ftell.c: New file.
64901         * modules/ftell: New file.
64902         * m4/ftell.m4: New file.
64903         * doc/functions/ftell.texi: Update.
64904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64905         REPLACE_FTELL.
64906         * lib/stdio_.h (rpl_ftell): New declaration.
64907         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64908         REPLACE_FTELL.
64909
64910 2007-05-28  Eric Blake  <ebb9@byu.net>
64911
64912         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64913
64914 2007-05-28  Bruno Haible  <bruno@clisp.org>
64915
64916         * modules/fseek-tests: New file.
64917         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64918         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64919
64920         * lib/fseek.c: New file.
64921         * modules/fseek: New file.
64922         * m4/fseek.m4: New file.
64923         * doc/functions/fseek.texi: Update.
64924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64925         REPLACE_FSEEK.
64926         * lib/stdio_.h (rpl_fseek): New declaration.
64927         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64928         REPLACE_FSEEK.
64929
64930 2007-05-28  Bruno Haible  <bruno@clisp.org>
64931
64932         * lib/stdio_.h (fflush): More comments.
64933
64934 2007-05-28  Bruno Haible  <bruno@clisp.org>
64935
64936         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64937         runtime test.
64938
64939 2007-05-28  Eric Blake  <ebb9@byu.net>
64940
64941         Improve lseek module.
64942         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64943         * lib/unistd_.h (lseek): Scale back link warning message.
64944         * tests/test-lseek.c: Beef up test.
64945         * tests/test-lseek.sh: Exercise more facets of lseek.
64946         Reported by Bruno Haible.
64947
64948 2007-05-28  Bruno Haible  <bruno@clisp.org>
64949
64950         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64951         to define.
64952
64953 2007-05-27  Bruno Haible  <bruno@clisp.org>
64954
64955         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64956
64957 2007-05-27  Bruno Haible  <bruno@clisp.org>
64958
64959         * modules/openmp: New file.
64960         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64961         Noah Misch.
64962
64963 2007-05-26  Bruno Haible  <bruno@clisp.org>
64964
64965         * modules/chdir-long (Depends-on): Add fchdir.
64966         * modules/chdir-safer (Depends-on): Likewise.
64967         * modules/fts (Depends-on): Likewise.
64968         * modules/fts-lgpl (Depends-on): Likewise.
64969         * modules/openat (Depends-on): Likewise.
64970         * modules/savewd (Depends-on): Likewise.
64971
64972 2007-05-24  Eric Blake  <ebb9@byu.net>
64973
64974         Fix lseek on mingw.
64975         * modules/lseek: New module.
64976         * m4/lseek.m4: New file.
64977         * lib/lseek.c: New file.
64978         * modules/lseek-tests: New file.
64979         * tests/test-lseek.c: New file.
64980         * tests/test-lseek.sh: New file.
64981         * MODULES.html.sh: Document lseek module.
64982         * modules/fflush (Depends-on): Add lseek, fseeko.
64983         * modules/fseeko (Depends-on): Likewise.
64984         * modules/ftello (Depends-on): Likewise.
64985         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64986         broken.
64987         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64988         broken.
64989         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64990         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64991         * lib/ftello.c (rpl_ftello): Likewise.
64992         * tests/test-fseeko.c (main): Test this.
64993         * tests/test-fseeko.sh: Likewise.
64994         * tests/test-ftello.c (main): Likewise.
64995         * tests/test-ftello.sh: Likewise.
64996         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64997         implies replacing fseek.
64998         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64999         HAVE_FTELLO.
65000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65001         * modules/unistd (Makefile.am): Likewise.
65002         * lib/unistd_.h (lseek): Declare a replacement.
65003         * doc/functions/lseek.texi (lseek): Document this fix.
65004         * doc/functions/fseek.texi (fseek): Likewise.
65005         * doc/functions/ftell.texi (ftell): Likewise.
65006
65007 2007-05-24  Bruno Haible  <bruno@clisp.org>
65008
65009         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65010         in the printed representation of a NaN.
65011         * tests/test-vasprintf-posix.c (test_function): Likewise.
65012         * tests/test-snprintf-posix.h (test_function): Likewise.
65013         * tests/test-sprintf-posix.h (test_function): Likewise.
65014         Reported by Eric Blake.
65015
65016 2007-05-23  Eric Blake  <ebb9@byu.net>
65017
65018         Fix fseeko/ftello on cygwin 1.5.24.
65019         * doc/functions/fseeko.texi (fseeko): Document the fix.
65020         * doc/functions/ftello.texi (ftello): Document the fix.
65021         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65022         * doc/functions/stdout.text (stdout): New file.
65023         * doc/functions/stderr.text (stderr): New file.
65024         * doc/gnulib.texi (Function Substitutes): Use new files.
65025         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65026         prior to 1.7.0.
65027         * tests/test-ftello.c (main): Likewise for ftello.
65028         * tests/test-fseeko.sh: New file.
65029         * tests/test-ftello.sh: New file.
65030         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65031         with seekable stdin.
65032         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65033         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65034         (gl_REPLACE_FSEEKO): New macro.
65035         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65036         * modules/fseeko (Files): Distribute fseeko.c.
65037         * modules/ftello (Files): Distribute ftello.c.
65038         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65039         mode.
65040         * lib/ftello.c (rpl_ftello): New file.
65041         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65042         fseeko, ftello.
65043         (gl_STDIN_LARGE_OFFSET): New macro.
65044         * modules/stdio (Makefile.am): Perform the replacement.
65045         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65046
65047 2007-05-23  Bruno Haible  <bruno@clisp.org>
65048
65049         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65050         GNULIB_POSIXCHECK is defined.
65051
65052 2007-05-21  Bruno Haible  <bruno@clisp.org>
65053
65054         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65055         Check also the output for NaN arguments. When cross-compiling, guess
65056         no on IRIX.
65057         * lib/vasnprintf.c: Update comments.
65058         * tests/test-vasnprintf-posix.c (strisnan): New function.
65059         (test_function): Use it.
65060         * tests/test-vasprintf-posix.c (strisnan): New function.
65061         (test_function): Use it.
65062         * tests/test-snprintf-posix.h (strisnan): New function.
65063         (test_function): Use it.
65064         * tests/test-sprintf-posix.h (strisnan): New function.
65065         (test_function): Use it.
65066         Reported by Eric Blake.
65067
65068 2007-05-20  Bruno Haible  <bruno@clisp.org>
65069
65070         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65071         numbers that fails on BeOS.
65072         * doc/functions/frexpl.texi: Update.
65073
65074 2007-05-20  Jim Meyering  <jim@meyering.net>
65075
65076         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65077         forced upon us by glibc-2.6.
65078
65079 2007-05-20  Bruno Haible  <bruno@clisp.org>
65080
65081         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65082         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65083         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65084         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65085         NEED_PRINTF_INFINITE.
65086         (is_infinitel): New function.
65087         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65088         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65089         gl_PREREQ_VASNPRINTF_INFINITE.
65090         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65091         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65092         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65093         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65094         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65095         gl_PREREQ_VASNPRINTF_INFINITE.
65096         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65097         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65098         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65099         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65100         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65101         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65102         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65103         * doc/functions/fprintf.texi: Update.
65104         * doc/functions/printf.texi: Update.
65105         * doc/functions/snprintf.texi: Update.
65106         * doc/functions/sprintf.texi: Update.
65107         * doc/functions/vfprintf.texi: Update.
65108         * doc/functions/vprintf.texi: Update.
65109         * doc/functions/vsnprintf.texi: Update.
65110         * doc/functions/vsprintf.texi: Update.
65111
65112 2007-05-20  Bruno Haible  <bruno@clisp.org>
65113
65114         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65115         was not found in libc.
65116         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65117
65118 2007-05-20  Bruno Haible  <bruno@clisp.org>
65119
65120         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65121         printed as "-nan" instead of "nan".
65122         * tests/test-vasprintf-posix.c (test_function): Likewise.
65123         * tests/test-snprintf-posix.h (test_function): Likewise.
65124         * tests/test-sprintf-posix.h (test_function): Likewise.
65125         Needed for HP-UX 11.
65126
65127 2007-05-20  Jim Meyering  <jim@meyering.net>
65128
65129         Fix buggy test for the fchownat-deref bug.
65130         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65131         symlink required for the run-test.  Without it, this test would
65132         always declare that fchownat doesn't work, and client code would
65133         unnecessarily use the replacement function with fixed libc.
65134         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65135         Reported by Greg Schafer.
65136
65137 2007-05-19  Bruno Haible  <bruno@clisp.org>
65138
65139         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65140         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65141         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65142         Needed for IRIX 6.5 and Solaris 2.5.1.
65143
65144 2007-05-19  Bruno Haible  <bruno@clisp.org>
65145
65146         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65147         (test_function): Skip tests involving -0.0 on platforms where
65148         -0.0 = 0.0.
65149         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65150         (test_function): Skip tests involving -0.0 on platforms where
65151         -0.0 = 0.0.
65152         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65153         (test_function): Skip tests involving -0.0 on platforms where
65154         -0.0 = 0.0.
65155         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65156         (test_function): Skip tests involving -0.0 on platforms where
65157         -0.0 = 0.0.
65158         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65159         tests.
65160         * tests/test-printf-posix.h (test_function): Likewise.
65161         * tests/test-printf-posix.output: Remove all -0.0 related results.
65162         Needed for IRIX 6.5.
65163
65164 2007-05-19  Bruno Haible  <bruno@clisp.org>
65165
65166         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65167         printed as "nan0x7fffffff" instead of "nan".
65168         * tests/test-vasprintf-posix.c (test_function): Likewise.
65169         * tests/test-snprintf-posix.h (test_function): Likewise.
65170         * tests/test-sprintf-posix.h (test_function): Likewise.
65171         * tests/test-fprintf-posix.h (NaN): Remove macro.
65172         (test_function): Remove all NaN related tests.
65173         * tests/test-printf-posix.h (NaN): Remove macro.
65174         (test_function): Remove all NaN related tests.
65175         * tests/test-printf-posix.output: Remove all NaN related results.
65176         Needed for IRIX 6.5.
65177
65178 2007-05-19  Bruno Haible  <bruno@clisp.org>
65179
65180         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65181         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65182
65183 2007-05-19  Bruno Haible  <bruno@clisp.org>
65184
65185         * lib/float_.h: New file.
65186         * m4/float_h.m4: New file.
65187         * modules/float: New file.
65188         * modules/isnanl (Dependencies): Add float.
65189         * modules/isnanl-nolibm (Dependencies): Likewise.
65190         * modules/mathl (Dependencies): Likewise.
65191         * modules/printf-frexpl (Dependencies): Likewise.
65192         * modules/signbit (Dependencies): Likewise.
65193         * modules/vasnprintf (Dependencies): Likewise.
65194         * doc/headers/float.texi: Update.
65195
65196 2007-05-19  Jim Meyering  <jim@meyering.net>
65197
65198         * lib/utimens.c (gl_futimens): Rename from futimens,
65199         now that glibc-2.6 declares futimens.
65200         * lib/utimens.h: Likewise.
65201
65202 2007-05-19  Bruno Haible  <bruno@clisp.org>
65203
65204         Avoid test failures on mingw.
65205         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65206         * tests/test-printf-posix.sh: Likewise.
65207         * tests/test-vfprintf-posix.sh: Likewise.
65208         * tests/test-vprintf-posix.sh: Likewise.
65209
65210 2007-05-19  Bruno Haible  <bruno@clisp.org>
65211
65212         Fix *printf result for NaN, Inf, -0.0 on mingw.
65213         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65214         * lib/vasnprintf.c: Include math.h and isnan.h.
65215         (is_infinite_or_zero): New function.
65216         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65217         values in the %f, %F, %e, %E, %g, %G directives.
65218         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65219         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65220         gl_PRINTF_INFINITE and test its result. Invoke
65221         gl_PREREQ_VASNPRINTF_INFINITE.
65222         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65223         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65224         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65225         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65226         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65227         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65228         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65229         * doc/functions/fprintf.texi: Update.
65230         * doc/functions/printf.texi: Update.
65231         * doc/functions/snprintf.texi: Update.
65232         * doc/functions/sprintf.texi: Update.
65233         * doc/functions/vfprintf.texi: Update.
65234         * doc/functions/vprintf.texi: Update.
65235         * doc/functions/vsnprintf.texi: Update.
65236         * doc/functions/vsprintf.texi: Update.
65237
65238 2007-05-19  Bruno Haible  <bruno@clisp.org>
65239
65240         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65241         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65242         Instead of multiplying with 10^k, set extra_zeroes to k.
65243         (scale10_round_long_double): Remove function.
65244
65245 2007-05-18  Bruno Haible  <bruno@clisp.org>
65246
65247         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65248         introduced on 2007-05-06.
65249
65250 2007-05-18  Bruno Haible  <bruno@clisp.org>
65251
65252         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65253         %g directives.
65254         * tests/test-vasprintf-posix.c (test_function): Likewise.
65255         * tests/test-snprintf-posix.h (test_function): Likewise.
65256         * tests/test-sprintf-posix.h (test_function): Likewise.
65257
65258 2007-05-18  Bruno Haible  <bruno@clisp.org>
65259
65260         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65261         (strmatch): New function.
65262         (test_function): Test the %f directive on numbers of various exponents.
65263         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65264         (strmatch): New function.
65265         (test_function): Test the %f directive on numbers of various exponents.
65266         * tests/test-snprintf-posix.h (strmatch): New function.
65267         (test_function): Test the %f directive on numbers of various exponents.
65268         * tests/test-sprintf-posix.h (strmatch): New function.
65269         (test_function): Test the %f directive on numbers of various exponents.
65270         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65271         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65272         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65273         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65274
65275 2007-05-18  Bruno Haible  <bruno@clisp.org>
65276
65277         Add support for 'long double' number output.
65278         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65279         * lib/vasnprintf.c: Include math.h and float+.h.
65280         (mp_limb_t): New type.
65281         (GMP_LIMB_BITS): New macro.
65282         (mp_twolimb_t): New type.
65283         (GMP_TWOLIMB_BITS): New macro.
65284         (mpn_t): New type.
65285         (multiply, divide, convert_to_decimal, decode_long_double,
65286         scale10_round_long_double, scale10_round_decimal_long_double,
65287         floorlog10l): New functions.
65288         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65289         for the %f, %F, %e, %E, %g, %G directives.
65290         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65291         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65292         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65293         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65294         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65295         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65296         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65297         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65298         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65299         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65300         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65301         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65302         * modules/snprintf-posix (Depends-on): Likewise.
65303         * modules/sprintf-posix (Depends-on): Likewise.
65304         * modules/vasnprintf-posix (Depends-on): Likewise.
65305         * modules/vasprintf-posix (Depends-on): Likewise.
65306         * modules/vfprintf-posix (Depends-on): Likewise.
65307         * modules/vsnprintf-posix (Depends-on): Likewise.
65308         * modules/vsprintf-posix (Depends-on): Likewise.
65309         * modules/vasnprintf (Files): Add lib/float+.h.
65310         * doc/functions/fprintf.texi: Update.
65311         * doc/functions/printf.texi: Update.
65312         * doc/functions/snprintf.texi: Update.
65313         * doc/functions/sprintf.texi: Update.
65314         * doc/functions/vfprintf.texi: Update.
65315         * doc/functions/vprintf.texi: Update.
65316         * doc/functions/vsnprintf.texi: Update.
65317         * doc/functions/vsprintf.texi: Update.
65318
65319 2007-05-18  Bruno Haible  <bruno@clisp.org>
65320
65321         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65322
65323 2007-05-18  Bruno Haible  <bruno@clisp.org>
65324
65325         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65326         for printing 64-bit integers. Needed for mingw.
65327
65328 2007-05-18  Bruno Haible  <bruno@clisp.org>
65329
65330         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65331         gl_FUNC_FREXPL_WORKS.
65332         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65333
65334 2007-05-18  Bruno Haible  <bruno@clisp.org>
65335
65336         * modules/frexpl-nolibm-tests: New file.
65337
65338         * modules/frexpl-nolibm: New file.
65339         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65340
65341 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65342
65343         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65344         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65345         GCC 4.2, which otherwise issues a lot of warnings.
65346         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65347         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65348         Likewise.
65349         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65350         * modules/iconv_open (iconv.h): Likewise.
65351         * modules/locale (locale.h): Likewise.
65352         * modules/netinet_in (netinet/in.h): Likewise.
65353         * modules/sys_select (sys_select.h): Likewise.
65354         * modules/sys_socket (sys/socket.h): Likewise.
65355         * modules/sys_stat (sys/stat.h): Likewise.
65356         * modules/sysexits (sysexits.h): Likewise.
65357         * modules/unistd (unistd.h): Likewise.
65358
65359 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65360
65361         * modules/closein-tests (Makefile.am): Distribute
65362         `test-closein.sh'.
65363
65364 2007-05-17  Bruno Haible  <bruno@clisp.org>
65365
65366         * tests/test-printf-posix.output: Renamed from
65367         tests/test-fprintf-posix.out.
65368         * modules/fprintf-posix-tests: Update.
65369         * modules/printf-posix-tests: Update.
65370         * modules/vfprintf-posix-tests: Update.
65371         * modules/vprintf-posix-tests: Update.
65372         * tests/test-fprintf-posix.sh: Update.
65373         * tests/test-printf-posix.sh: Update.
65374         * tests/test-vfprintf-posix.sh: Update.
65375         * tests/test-vprintf-posix.sh: Update.
65376         Reported by Ralf Wildenhues.
65377
65378 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65379
65380         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65381         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65382         GCC 4.2, which otherwise issues a lot of warnings.
65383         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65384         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65385         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65386         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65387         it should no longer be needed.
65388         * lib/string_.h: Likewise.
65389         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65390         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65391         * modules/inttypes (inttypes.h): Likewise.
65392         * modules/math (math.h): Likewise.
65393         * modules/search (search.h): Likewise.
65394         * modules/signal (signal.h): Likewise.
65395         * modules/stdint (stdint.h): Likewise.
65396         * modules/stdio (stdio.h): Likewise.
65397         * modules/stdlib (stdlib.h): Likewise.
65398         * modules/string (string.h): Likewise.
65399         * modules/sys_time (sys/time.h): Likewise.
65400         * modules/time (time.h): Likewise.
65401         * modules/wchar (wchar.h): Likewise.
65402         * modules/wctype (wtype.h): Likewise.
65403
65404 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65405
65406         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65407
65408 2007-05-13  Bruno Haible  <bruno@clisp.org>
65409
65410         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65411         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65412         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65413         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65414         (gl_PREREQ_STRTOK_R): Don't require it here.
65415
65416 2007-05-13  Bruno Haible  <bruno@clisp.org>
65417
65418         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65419         when used in C++ mode.
65420
65421 2007-05-12  Bruno Haible  <bruno@clisp.org>
65422
65423         * lib/linebuffer.h: Tweak doc.
65424         * lib/linebuffer.c: Likewise.
65425
65426 2007-05-12  James Youngman  <jay@gnu.org>
65427
65428         * lib/linebuffer.c (readlinebuffer_delim): New function,
65429         like readlinebuffer, but use a caller-specified delimiter.
65430         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65431         as the delimiter.
65432         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65433
65434 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65435
65436         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65437         * modules/openat (Files): Remove openat-die.c.
65438         (Depends-on): Add openat-die.
65439         * modules/openat-die: New module.
65440
65441 2007-05-06  Bruno Haible  <bruno@clisp.org>
65442
65443         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65444         Update with info about Cygwin.
65445         * doc/functions/fprintf.texi: Update.
65446         * doc/functions/printf.texi: Update.
65447         * doc/functions/snprintf.texi: Update.
65448         * doc/functions/sprintf.texi: Update.
65449         * doc/functions/vfprintf.texi: Update.
65450         * doc/functions/vprintf.texi: Update.
65451         * doc/functions/vsnprintf.texi: Update.
65452         * doc/functions/vsprintf.texi: Update.
65453         Reported by Eric Blake.
65454
65455 2007-05-06  Bruno Haible  <bruno@clisp.org>
65456
65457         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65458         padding ourselves for the floating-point directives.
65459         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65460         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65461         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65462         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65463         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65464         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65465         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65466         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65467         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65468         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65469         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65470         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65471         * tests/test-snprintf-posix.h (test_function): Also check the width
65472         and some flags in the %f directive.
65473         * tests/test-sprintf-posix.h (test_function): Likewise.
65474         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65475         * tests/test-vasprintf-posix.c (test_function): Likewise.
65476         * doc/functions/fprintf.texi: Update.
65477         * doc/functions/printf.texi: Update.
65478         * doc/functions/snprintf.texi: Update.
65479         * doc/functions/sprintf.texi: Update.
65480         * doc/functions/vfprintf.texi: Update.
65481         * doc/functions/vprintf.texi: Update.
65482         * doc/functions/vsnprintf.texi: Update.
65483         * doc/functions/vsprintf.texi: Update.
65484
65485 2007-05-06  Bruno Haible  <bruno@clisp.org>
65486
65487         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65488         pass the ' flag character to sprintf or snprintf.
65489         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65490         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65491         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65492         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65493         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65494         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65495         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65496         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65497         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65498         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65499         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65500         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65501         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65502         flag.
65503         * tests/test-sprintf-posix.h (test_function): Likewise.
65504         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65505         * tests/test-vasprintf-posix.c (test_function): Likewise.
65506         * doc/functions/fprintf.texi: Update.
65507         * doc/functions/printf.texi: Update.
65508         * doc/functions/snprintf.texi: Update.
65509         * doc/functions/sprintf.texi: Update.
65510         * doc/functions/vfprintf.texi: Update.
65511         * doc/functions/vprintf.texi: Update.
65512         * doc/functions/vsnprintf.texi: Update.
65513         * doc/functions/vsprintf.texi: Update.
65514
65515 2007-05-01  Bruno Haible  <bruno@clisp.org>
65516
65517         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65518
65519 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65520
65521         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65522         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65523
65524 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65525
65526         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65527         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65528         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65529
65530 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65531
65532         * lib/argp-help.c (struct hol_entry): New member `ord'.
65533         (HOL_ENTRY_PTRCMP): Use ord for comparison
65534         (hol_sort): Initialize ord.
65535
65536 2007-05-01  Bruno Haible  <bruno@clisp.org>
65537
65538         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65539         Reported by Eric Blake.
65540         * doc/gnulib.texi (Function Substitutes): Update.
65541
65542 2007-05-01  Bruno Haible  <bruno@clisp.org>
65543
65544         * doc/functions.texi: Remove file, now redundant through
65545         doc/functions/*.texi.
65546
65547 2007-05-01  Bruno Haible  <bruno@clisp.org>
65548
65549         * modules/argp (Depends-on): Add sleep.
65550
65551 2007-05-01  Bruno Haible  <bruno@clisp.org>
65552
65553         * modules/sleep-tests: New file.
65554         * tests/test-sleep.c: New file.
65555
65556         * modules/sleep: New file.
65557         * lib/sleep.c: New file.
65558         * m4/sleep.m4: New file.
65559         * lib/unistd_.h (sleep): New declaration.
65560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65561         HAVE_SLEEP.
65562         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65563         * doc/functions/sleep.texi: Document the sleep module.
65564
65565 2007-05-01  Bruno Haible  <bruno@clisp.org>
65566
65567         * lib/sigprocmask.h: Remove file.
65568         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65569         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65570         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65571         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65572         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65573         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65574         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65575         HAVE_SIGSET_T as a shell variable.
65576         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65577         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65578         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65579         (Depends-on): Add signal. Remove verify.
65580         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65581         (Include): Mention <signal.h> instead of sigprocmask.h.
65582         * NEWS: Mention the change.
65583         * lib/fatal-signal.c: Don't include sigprocmask.h.
65584
65585 2007-05-01  Bruno Haible  <bruno@clisp.org>
65586
65587         * modules/signal: New file.
65588         * lib/signal_.h: New file.
65589         * m4/signal_h.m4: New file.
65590
65591 2007-05-01  Bruno Haible  <bruno@clisp.org>
65592
65593         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65594         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65595         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65596         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65597
65598 2007-05-01  Bruno Haible  <bruno@clisp.org>
65599
65600         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65601         configure time.
65602         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65603         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65604         * modules/sys_stat (Makefile.am): Substitute their values into
65605         sys/stat.h.
65606
65607 2007-05-01  Bruno Haible  <bruno@clisp.org>
65608
65609         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65610         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65611         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65612
65613 2007-05-01  Bruno Haible  <bruno@clisp.org>
65614
65615         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65616         'assert' module here.
65617
65618 2007-05-01  Bruno Haible  <bruno@clisp.org>
65619
65620         * doc/functions/*.texi: New files.
65621         * doc/functions/google-ranking.txt: New file.
65622         * doc/gnulib.texi (Function Substitutes): New chapter.
65623         (ctime, inet_ntoa): Remove sections.
65624         * doc/ctime.texi: Remove file.
65625         * doc/inet_ntoa.texi: Remove file.
65626         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65627         dependencies.
65628         (%.info): New rule, specifying a --reference-limit.
65629
65630 2007-05-01  Bruno Haible  <bruno@clisp.org>
65631
65632         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65633
65634 2007-05-01  Bruno Haible  <bruno@clisp.org>
65635
65636         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65637         the portability of 'mkdir' to mingw systems.
65638
65639 2007-05-01  Bruno Haible  <bruno@clisp.org>
65640
65641         * doc/headers/google-ranking.txt: New file.
65642
65643 2007-04-30  Eric Blake  <ebb9@byu.net>
65644
65645         Prefer fseeko to fseek.
65646         * modules/getpass (Depends-on): Add fseeko.
65647         * lib/getpass.c (getpass): Use fseeko, not fseek.
65648
65649 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65650
65651         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65652         assumes the sorting is stable, while most qsort implementations
65653         are not.  Use argument addresses to ensure they never compare as
65654         equal.
65655
65656         * tests/test-argp-2.sh (usage-indent test): Fix output
65657         (func_compare): Restore diff options
65658         * tests/test-argp.c: Restore #include "progname.h"
65659
65660 2007-04-29  Bruno Haible  <bruno@clisp.org>
65661
65662         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65663         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65664         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65665         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65666         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65667         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65668         (TESTS, check_PROGRAMS): Add test-snprintf.
65669         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65670         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65671         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65672         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65673         assertions that fail on HP-UX, OSF/1, or IRIX.
65674         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65675
65676 2007-04-29  Bruno Haible  <bruno@clisp.org>
65677
65678         * MODULES.html.sh (posix_functions): Remove 'contents'.
65679
65680 2007-04-29  Karl Berry  <karl@gnu.org>
65681
65682         * config/srclist.txt (gendocs_template_min): new entry.
65683
65684 2007-04-29  Bruno Haible  <bruno@clisp.org>
65685
65686         Work around fpurge bug on BSD systems.
65687         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65688         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65689         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65690         fpurge to rpl_fpurge if the system already has this function.
65691         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65692         the case where the system already has this function. Correct invariants
65693         on BSD systems.
65694         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65695         BSD systems.
65696
65697 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65698
65699         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65700         proposed by Sven Verdoolaege.
65701
65702         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65703         options.
65704         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65705         (usage and help tests): Update
65706
65707 2007-04-29  Bruno Haible  <bruno@clisp.org>
65708
65709         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65710         Print more information in case of failure. Disable a test on BeOS.
65711
65712 2007-04-29  Bruno Haible  <bruno@clisp.org>
65713
65714         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65715         This helps debugging on systems on which no gdb is available.
65716
65717 2007-04-29  Bruno Haible  <bruno@clisp.org>
65718
65719         * lib/freading.h: Improve comments.
65720         * lib/fwriting.h: Likewise.
65721         * tests/test-freading.c (main): Don't check freading immediately after
65722         repositioning. Needed for glibc.
65723
65724 2007-04-29  Bruno Haible  <bruno@clisp.org>
65725
65726         * lib/freading.c (freading): Trivial simplification.
65727
65728 2007-04-28  Bruno Haible  <bruno@clisp.org>
65729
65730         * tests/test-fwriting.c (main): Also test the interaction between
65731         fflush and fwriting.
65732         * modules/fwriting-tests (Depends-on): Add fflush.
65733
65734         * tests/test-freading.c (main): Also test the interaction between
65735         fflush and freading.
65736         * modules/freading-tests (Depends-on): Add fflush.
65737
65738 2007-04-28  Bruno Haible  <bruno@clisp.org>
65739
65740         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65741         fseeko and ftello.
65742         Suggested by Eric Blake.
65743
65744 2007-04-28  Jim Meyering  <jim@meyering.net>
65745
65746         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65747         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65748         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65749
65750 2007-04-27  Eric Blake  <ebb9@byu.net>
65751
65752         * doc/headers/assert.texi (assert.h): Document assert module use.
65753
65754 2007-04-27  Bruno Haible  <bruno@clisp.org>
65755
65756         * doc/headers/*.texi: New files.
65757         * doc/gnulib.texi (Header File Substitutes): New chapter.
65758         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65759         dependencies.
65760         (standards.info ,standards.html, standards.dvi): Update dependencies.
65761         (mostlyclean, clean): New targets.
65762
65763 2007-04-27  Bruno Haible  <bruno@clisp.org>
65764
65765         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65766         * modules/sysexits (Files, Makefile.am): Update.
65767
65768         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65769         * modules/sys_socket (Files, Makefile.am): Update.
65770
65771         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65772         * modules/sys_stat (Files, Makefile.am): Update.
65773
65774 2007-04-27  Eric Blake  <ebb9@byu.net>
65775
65776         * lib/freading.h: Improve comments.
65777         * lib/fwriting.h: Likewise.
65778         * lib/fflush.c: Likewise.
65779
65780         Fix closein for mingw.
65781         * modules/closein-tests: Add tests for closein.
65782         * tests/test-closein.c: New file.
65783         * tests/test-closein.sh: Likewise.
65784         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65785         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65786
65787 2007-04-27  Bruno Haible  <bruno@clisp.org>
65788
65789         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65790         version is < 6.
65791         * lib/math_.h [__DECC]: Likewise.
65792         * lib/stdio_.h [__DECC]: Likewise.
65793         * lib/stdlib_.h [__DECC]: Likewise.
65794         * lib/string_.h [__DECC]: Likewise.
65795         * lib/time_.h [__DECC]: Likewise.
65796         * lib/wchar_.h [__DECC]: Likewise.
65797         * lib/wctype_.h [__DECC]: Likewise.
65798
65799 2007-04-27  Bruno Haible  <bruno@clisp.org>
65800
65801         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65802
65803 2007-04-27  Bruno Haible  <bruno@clisp.org>
65804
65805         * lib/fflush.c: Add comments.
65806         * modules/fpurge-tests (Depends-on): Add fflush.
65807         * modules/freadable-tests (Depends-on): Likewise.
65808         * modules/fwritable-tests (Depends-on): Likewise.
65809
65810 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65811
65812         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65813         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65814         Report by Bruno Haible <bruno@clisp.org>.
65815
65816 2007-04-26  Eric Blake  <ebb9@byu.net>
65817
65818         Fix fflush on mingw.
65819         * modules/fflush (Depends-on): Add freading.
65820         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65821         but unread data.
65822
65823 2007-04-26  Eric Blake  <ebb9@byu.net>
65824         and Bruno Haible  <bruno@clisp.org>
65825
65826         Implement freading and fwriting.
65827         * lib/freading.c: New file.
65828         * lib/freading.h: Likewise.
65829         * m4/freading.m4: Likewise.
65830         * modules/freading: Likewise.
65831         * modules/freading-tests: Likewise.
65832         * tests/test-freading.c: Likewise.
65833         * lib/fwriting.c: New file.
65834         * lib/fwriting.h: Likewise.
65835         * m4/fwriting.m4: Likewise.
65836         * modules/fwriting: Likewise.
65837         * modules/fwriting-tests: Likewise.
65838         * tests/test-fwriting.c: Likewise.
65839         * MODULES.html.sh (File stream based Input/Output): Mention them.
65840
65841 2007-04-26  Bruno Haible  <bruno@clisp.org>
65842
65843         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65844         'long' when we assume it.
65845         Suggested by Eric Blake.
65846
65847 2007-04-26  Bruno Haible  <bruno@clisp.org>
65848
65849         Ensure fseeko, ftello are declared on glibc systems.
65850         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65851         * modules/fseeko (configure.ac-early): Likewise.
65852         * modules/ftello (configure.ac-early): Likewise.
65853         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65854         AC_FUNC_FSEEKO for this.
65855         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65856         (gl_CHECK_FSEEKO): Remove macro.
65857
65858 2007-04-26  Bruno Haible  <bruno@clisp.org>
65859
65860         * tests/test-fflush.c (main): Also check the ftell result after
65861         fflush and fseek/fseeko.
65862         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65863         file descriptor position cache in the stream.
65864         * lib/fseeko.c (rpl_fseeko): Likewise.
65865
65866 2007-04-26  Bruno Haible  <bruno@clisp.org>
65867
65868         * modules/fflush-tests (Depends-on): Add fseeko.
65869
65870 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65871             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65872
65873         * lib/argz_.h: ensure error_t definition is obtained in same
65874         mechanism system argz.h would have.
65875         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65876         argz facilities are known bad.  Err on the side of caution if
65877         cross-compiling.
65878
65879 2007-04-25  Eric Blake  <ebb9@byu.net>
65880
65881         * lib/fpurge.c (includes): Use stdlib.h for free.
65882         * tests/test-fflush.c (main): Also test fflush-fseeko.
65883
65884 2007-04-25  Bruno Haible  <bruno@clisp.org>
65885
65886         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65887         * lib/fseeko.c: New file.
65888         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65889         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65890         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65891         gl_FUNC_FSEEKO.
65892         (gl_FUNC_FSEEKO): Invoke it.
65893         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65894         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65895         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65896
65897 2007-04-25  Bruno Haible  <bruno@clisp.org>
65898
65899         * modules/fflush (Depends-on): Add ftello.
65900
65901 2007-04-25  Bruno Haible  <bruno@clisp.org>
65902
65903         * modules/ftello-tests: New file.
65904         * tests/test-ftello.c: New file.
65905
65906         * modules/ftello: New file.
65907         * m4/ftello.m4: New file.
65908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65909         HAVE_FTELLO.
65910         * lib/stdio_.h (ftello): New declaration.
65911         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65912         HAVE_FTELLO.
65913
65914 2007-04-25  Bruno Haible  <bruno@clisp.org>
65915
65916         * modules/fseeko-tests: New file.
65917         * tests/test-fseeko.c: New file.
65918
65919         * modules/fseeko: New file.
65920         * m4/fseeko.m4: New file.
65921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65922         HAVE_FSEEKO.
65923         * lib/stdio_.h (fseeko): New declaration.
65924         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65925         HAVE_FSEEKO.
65926
65927 2007-04-25  Bruno Haible  <bruno@clisp.org>
65928
65929         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65930
65931 2007-04-25  Bruno Haible  <bruno@clisp.org>
65932
65933         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65934         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65935         * tests/test-unistd.c: Likewise.
65936         * tests/test-fcntl.c: Likewise.
65937
65938 2007-04-23  Eric Blake  <ebb9@byu.net>
65939
65940         * lib/fflush.c: Fix missing include.
65941         Reported by Bruno Haible.
65942
65943 2007-04-23  Bruno Haible  <bruno@clisp.org>
65944
65945         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65946         Reported by Eric Blake.
65947
65948 2007-04-23  Bruno Haible  <bruno@clisp.org>
65949
65950         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65951
65952 2007-04-23  Bruno Haible  <bruno@clisp.org>
65953
65954         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65955
65956 2007-04-23  Bruno Haible  <bruno@clisp.org>
65957
65958         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65959         Needed on HP-UX 11.
65960
65961 2007-04-16  Eric Blake  <ebb9@byu.net>
65962
65963         Make fflush rely on fpurge.
65964         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65965         open coding all variants.
65966         * modules/fflush (Depends-on): Add fpurge and unistd.
65967         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65968         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65969
65970         Fix --with-tests compilation on cygwin.
65971         * modules/argmatch-tests (Makefile.am): List gnulib library first
65972         in LDADD.
65973         * modules/argp-tests (Makefile.am): Likewise.
65974         * modules/array-list-tests (Makefile.am): Likewise.
65975         * modules/array-oset-tests (Makefile.am): Likewise.
65976         * modules/avltree-list-tests (Makefile.am): Likewise.
65977         * modules/avltree-oset-tests (Makefile.am): Likewise.
65978         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65979         * modules/carray-list-tests (Makefile.am): Likewise.
65980         * modules/dirname-tests (Makefile.am): Likewise.
65981         * modules/frexp-tests (Makefile.am): Likewise.
65982         * modules/isnanl-tests (Makefile.am): Likewise.
65983         * modules/linked-list-tests (Makefile.am): Likewise.
65984         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65985         * modules/lock-tests (Makefile.am): Likewise.
65986         * modules/rbtree-list-tests (Makefile.am): Likewise.
65987         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65988         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65989         * modules/tls-tests (Makefile.am): Likewise.
65990         * modules/tsearch-tests (Makefile.am): Likewise.
65991         * modules/xvasprintf-tests (Makefile.am): Likewise.
65992
65993         Fix fpurge for cygwin.
65994         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65995         value.
65996         * modules/fpurge-tests (Depends-on): Clean up trash.
65997
65998 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65999
66000         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66001
66002         * m4/autobuild.m4: Re-indent.
66003
66004 2007-04-13  Bruno Haible  <bruno@clisp.org>
66005
66006         * modules/fpurge-tests: New file.
66007         * tests/test-fpurge.c: New file.
66008
66009         * modules/fpurge: New file.
66010         * lib/fpurge.h: New file.
66011         * lib/fpurge.c: New file.
66012         * m4/fpurge.m4: New file.
66013
66014 2007-04-13  Bruno Haible  <bruno@clisp.org>
66015
66016         * modules/fbufmode-tests: New file.
66017         * tests/test-fbufmode.c: New file.
66018
66019         * modules/fbufmode: New file.
66020         * lib/fbufmode.h: New file.
66021         * lib/fbufmode.c: New file.
66022         * m4/fbufmode.m4: New file.
66023
66024 2007-04-13  Bruno Haible  <bruno@clisp.org>
66025
66026         * modules/fwritable-tests: New file.
66027         * tests/test-fwritable.c: New file.
66028
66029         * modules/fwritable: New file.
66030         * lib/fwritable.h: New file.
66031         * lib/fwritable.c: New file.
66032         * m4/fwritable.m4: New file.
66033
66034 2007-04-13  Bruno Haible  <bruno@clisp.org>
66035
66036         * modules/freadable-tests: New file.
66037         * tests/test-freadable.c: New file.
66038
66039         * modules/freadable: New file.
66040         * lib/freadable.h: New file.
66041         * lib/freadable.c: New file.
66042         * m4/freadable.m4: New file.
66043
66044 2007-04-13  Bruno Haible  <bruno@clisp.org>
66045
66046         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66047         MOSTLYCLEANFILES.
66048
66049 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66050
66051         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66052         gzip bootstrap.conf to avoid dragging in i18n machinery.
66053         (gnulib_tool_option): Use it.
66054
66055 2007-04-13  Bruno Haible  <bruno@clisp.org>
66056
66057         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66058         %F directives.
66059         * tests/test-vasprintf-posix.c (test_function): Likewise.
66060         * tests/test-snprintf-posix.h (test_function): Likewise.
66061         * tests/test-sprintf-posix.h (test_function): Likewise.
66062         * tests/test-fprintf-posix.h (test_function): Likewise.
66063         * tests/test-printf-posix.h (test_function): Likewise.
66064         * tests/test-fprintf-posix.out: Likewise.
66065
66066 2007-04-13  Bruno Haible  <bruno@clisp.org>
66067
66068         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66069         * modules/tls-tests (configure.ac): Likewise.
66070         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66071
66072 2007-04-13  Bruno Haible  <bruno@clisp.org>
66073
66074         * lib/tls.c (glthread_tls_get): Fix return type.
66075         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66076
66077 2007-04-12  Eric Blake  <ebb9@byu.net>
66078
66079         * modules/gettime (Depends-on): Remove gettime.
66080         Reported by Dmitry V. Levin.
66081
66082 2007-04-12  Bruno Haible  <bruno@clisp.org>
66083
66084         * modules/fflush (Include): Mention <stdio.h>.
66085         * modules/strtoimax (Include): Mention <inttypes.h>.
66086         * modules/strtoumax (Include): Likewise.
66087
66088 2007-04-12  Eric Blake  <ebb9@byu.net>
66089
66090         * .cvsignore: New file.
66091         * .gitignore: Likewise.
66092
66093 2007-04-12  Bruno Haible  <bruno@clisp.org>
66094
66095         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66096         not before, since $(LDADD) often contains libgnu.a.
66097         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66098         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66099         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66100         Needed on Cygwin.
66101
66102 2007-04-12  Eric Blake  <ebb9@byu.net>
66103
66104         Work around glibc's failure to flush stdin on fclose.
66105         * lib/closein.c (close_stdin): Flush stdin before closing.
66106
66107         Work around glibc's failure to reset seekable stdin on exit.
66108         * modules/closein: New module.
66109         * lib/closein.c: New file.
66110         * lib/closein.h: Likewise.
66111         * m4/closein.m4: Likewise.
66112         * MODULES.html.sh (File stream based Input/Output): Document it.
66113
66114 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66115
66116         * gnulib-tool: Rename generated 'autobuild' script to
66117         'do-autobuild' in --create-megatestdir output.
66118
66119         * doc/gnulib.texi (Build robot for gnulib): Fix.
66120
66121 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66122
66123         * modules/sysexits (Depends-on): Add absolute-header.
66124
66125 2007-04-12  Eric Blake  <ebb9@byu.net>
66126
66127         No need to preserve errno on success.
66128         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66129         Reported by Bruno Haible.
66130
66131 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66132
66133         * MODULES.html.sh (Support for maintaining and releasing
66134         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66135
66136 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66137
66138         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66139
66140 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66141
66142         * modules/autobuild: New module.
66143
66144         * m4/autobuild.m4: New file.
66145
66146 2007-04-11  Bruno Haible  <bruno@clisp.org>
66147
66148         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66149         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66150         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66151         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66152         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66153         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66154         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66155         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66156         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66157         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66158         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66159         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66160         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66161         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66162         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66163         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66164         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66165         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66166         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66167         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66168         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66169         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66170         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66171         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66172         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66173         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66174         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66175         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66176         Reported by Eric Blake.
66177
66178 2007-04-11  Bruno Haible  <bruno@clisp.org>
66179
66180         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66181
66182 2007-04-10  Bruno Haible  <bruno@clisp.org>
66183
66184         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66185         for NaN and Infinity. Needed on FreeBSD 6.1.
66186         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66187         regarding results for "%010a" of Infinity and NaN.
66188         * tests/test-vasprintf-posix.c (test_function): Likewise.
66189         * tests/test-snprintf-posix.h (test_function): Likewise.
66190         * tests/test-sprintf-posix.h (test_function): Likewise.
66191         * tests/test-fprintf-posix.h (test_function): Likewise.
66192         * tests/test-printf-posix.h (test_function): Likewise.
66193         * tests/test-fprintf-posix.out: Likewise.
66194
66195 2007-04-10  Bruno Haible  <bruno@clisp.org>
66196
66197         * modules/locale-tests: New file.
66198         * tests/test-locale.c: New file.
66199
66200         * modules/locale: New file.
66201         * lib/locale_.h: New file.
66202         * m4/locale_h.m4: New file.
66203
66204 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66205             Bruno Haible  <bruno@clisp.org>
66206
66207         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66208         be determined, test for availability of the copysignf, copysign,
66209         copysignl functions.
66210         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66211         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66212         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66213
66214 2007-04-09  Eric Blake  <ebb9@byu.net>
66215
66216         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66217         * modules/stdio (Makefile.am): Support fflush.
66218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66219         * modules/fflush: New file.
66220         * lib/fflush.c: Likewise.
66221         * m4/fflush.m4: Likewise.
66222         * modules/fflush-tests: New test.
66223         * tests/test-fflush.c: Likewise.
66224         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66225
66226 2007-04-06  Bruno Haible  <bruno@clisp.org>
66227
66228         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66229         (VASNPRINTF): Use signbit for faster determination whether to print a
66230         minus sign.
66231         * modules/vasnprintf (Files): Remove lib/float+.h.
66232         * modules/fprintf-posix (Depends-on): Add signbit.
66233         * modules/snprintf-posix (Depends-on): Likewise.
66234         * modules/sprintf-posix (Depends-on): Likewise.
66235         * modules/vasnprintf-posix (Depends-on): Likewise.
66236         * modules/vasprintf-posix (Depends-on): Likewise.
66237         * modules/vfprintf-posix (Depends-on): Likewise.
66238         * modules/vsnprintf-posix (Depends-on): Likewise.
66239         * modules/vsprintf-posix (Depends-on): Likewise.
66240
66241 2007-04-06  Bruno Haible  <bruno@clisp.org>
66242
66243         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66244         * tests/test-frexpl.c (main): Likewise.
66245         * tests/test-ldexpl.c (main): Likewise.
66246         * modules/frexp-tests (Depends-on): Add signbit.
66247         * modules/frexpl-tests (Depdends-on): Likewise.
66248         * modules/ldexpl-tests (Depdends-on): Likewise.
66249
66250 2007-04-06  Bruno Haible  <bruno@clisp.org>
66251
66252         * modules/signbit-tests: New file.
66253         * tests/test-signbit.c: New file.
66254
66255         * modules/signbit: New file.
66256         * lib/signbitf.c: New file.
66257         * lib/signbitd.c: New file.
66258         * lib/signbitl.c: New file.
66259         * m4/signbit.m4: New file.
66260         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66261         (signbit): New macro.
66262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66263         REPLACE_SIGNBIT.
66264         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66265         REPLACE_FREXPL into math.h.
66266
66267 2007-04-06  Bruno Haible  <bruno@clisp.org>
66268
66269         * modules/isnanf-nolibm-tests: New file.
66270         * tests/test-isnanf.c: New file.
66271
66272         * modules/isnanf-nolibm: New file.
66273         * lib/isnanf.h: New file.
66274         * lib/isnanf.c: New file.
66275         * lib/isnan.c: Consider the USE_FLOAT macro.
66276         * m4/isnanf.m4: New file.
66277
66278 2007-04-06  Bruno Haible  <bruno@clisp.org>
66279
66280         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66281         (Link): New section.
66282
66283         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66284
66285 2007-04-06  Bruno Haible  <bruno@clisp.org>
66286
66287         Assume the 'long double' type.
66288         * m4/longdouble.m4: Remove file.
66289         * config/srclist.txt: Don't mention longdouble.m4.
66290         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66291         * lib/float+.h: Likewise.
66292         * lib/frexp.c: Likewise.
66293         * lib/printf-args.h: Likewise.
66294         * lib/printf-args.c: Likewise.
66295         * lib/printf-frexp.c: Likewise.
66296         * lib/printf-parse.c: Likewise.
66297         * lib/vasnprintf.c: Likewise.
66298         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66299         * m4/intl.m4: Likewise.
66300         * m4/isnanl.m4: Likewise.
66301         * m4/printf.m4: Likewise.
66302         * m4/printf-frexpl.m4: Likewise.
66303         * m4/vasnprintf.m4: Likewise.
66304         * modules/allocsa (Files): Remove m4/longdouble.m4.
66305         * modules/gettext (Files): Likewise.
66306         * modules/relocatable-prog-wrapper (Files): Likewise.
66307         * modules/vasnprintf (Files): Likewise.
66308         * modules/isnanl (Files): Likewise.
66309         (Include): Simplify.
66310         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66311         (Include): Simplify.
66312         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66313         (Include): Simplify.
66314         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66315         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66316         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66317         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66318         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66319         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66320         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66321         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66322         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66323         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66324         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66325         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66326         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66327         * tests/test-isnanl.c: Likewise.
66328         * tests/test-snprintf-posix.h: Likewise.
66329         * tests/test-sprintf-posix.h: Likewise.
66330         * tests/test-vasnprintf-posix.c: Likewise.
66331         * tests/test-vasnprintf-posix2.c: Likewise.
66332         * tests/test-vasprintf-posix.c: Likewise.
66333
66334 2007-04-06  Bruno Haible  <bruno@clisp.org>
66335
66336         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66337         * lib/math_.h [__DECC]: Include the overridden include file through
66338         #include_next, outside the double-inclusion guard.
66339         * lib/stdio_.h [__DECC]: Likewise.
66340         * lib/stdlib_.h [__DECC]: Likewise.
66341         * lib/string_.h [__DECC]: Likewise.
66342         * lib/time_.h [__DECC]: Likewise.
66343         * lib/wchar_.h [__DECC]: Likewise.
66344         * lib/wctype_.h [__DECC]: Likewise.
66345         * lib/inttypes_.h [__DECC]: Likewise.
66346         Reported by Albert Chin <china@thewrittenword.com> in
66347         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66348
66349 2007-04-04  Eric Blake  <ebb9@byu.net>
66350
66351         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66352         1.5.x.
66353
66354 2007-04-04  Bruno Haible  <bruno@clisp.org>
66355
66356         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66357         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66358
66359 2007-04-04  Bruno Haible  <bruno@clisp.org>
66360
66361         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66362         results for "%010a" of Infinity and NaN.
66363         * tests/test-vasprintf-posix.c (test_function): Likewise.
66364         * tests/test-snprintf-posix.h (test_function): Likewise.
66365         * tests/test-sprintf-posix.h (test_function): Likewise.
66366         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66367         * tests/test-printf-posix.h (test_function): Likewise.
66368         * tests/test-fprintf-posix.out: Update.
66369         Needed for FreeBSD 6.1.
66370
66371 2007-04-04  Bruno Haible  <bruno@clisp.org>
66372
66373         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66374         directly used by the gnulib modules nor by gnulib-tool.
66375
66376 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66377
66378         * DEPENDENCIES: Give overall description of version dependency
66379         desirability.  Use more-typical names for apps.
66380         Add shell, coreutils, diffutils, grep, tar, gzip.
66381
66382 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66383
66384         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66385
66386 2007-04-04  Karl Berry  <karl@gnu.org>
66387
66388         * MODULES.html.sh (func_module): missing '.
66389
66390 2007-04-03  Bruno Haible  <bruno@clisp.org>
66391
66392         * modules/argmatch-tests (Makefile.am): New variable
66393         test_argmatch_LDADD.
66394         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66395         * modules/array-list-tests (Makefile.am): New variable
66396         test_array_list_LDADD.
66397         * modules/array-oset-tests (Makefile.am): New variable
66398         test_array_oset_LDADD.
66399         * modules/avltree-list-tests (Makefile.am): New variable
66400         test_avltree_list_LDADD.
66401         * modules/avltree-oset-tests (Makefile.am): New variable
66402         test_avltree_oset_LDADD.
66403         * modules/avltreehash-list-tests (Makefile.am): New variable
66404         test_avltreehash_list_LDADD.
66405         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66406         test_canonicalize_lgpl_LDADD.
66407         * modules/carray-list-tests (Makefile.am): New variable
66408         test_carray_list_LDADD.
66409         * modules/dirname-tests (Makefile.am): New variable
66410         test_dirname_LDADD.
66411         * modules/linked-list-tests (Makefile.am): New variable
66412         test_linked_list_LDADD.
66413         * modules/linkedhash-list-tests (Makefile.am): New variable
66414         test_linkedhash_list_LDADD.
66415         * modules/rbtree-list-tests (Makefile.am): New variable
66416         test_rbtree_list_LDADD.
66417         * modules/rbtree-oset-tests (Makefile.am): New variable
66418         test_rbtree_oset_LDADD.
66419         * modules/rbtreehash-list-tests (Makefile.am): New variable
66420         test_rbtreehash_list_LDADD.
66421         * modules/xvasprintf-tests (Makefile.am): New variable
66422         test_xvasprintf_LDADD.
66423         Reported by Eric Blake.
66424
66425 2007-04-03  Eric Blake  <ebb9@byu.net>
66426
66427         * DEPENDENCIES: Weaken m4 requirements.
66428
66429 2007-04-03  Bruno Haible  <bruno@clisp.org>
66430
66431         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66432         * modules/isnanl-tests (configure.ac): Likewise.
66433
66434 2007-04-03  Ben Pfaff  <blp@gnu.org>
66435
66436         * modules/iconv_open: Add $(srcdir)/ to source directory
66437         references in Makefile fragments that call gperf, to fix VPATH
66438         builds.
66439
66440 2007-04-03  Bruno Haible  <bruno@clisp.org>
66441
66442         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66443         * lib/ldexpl.c: Undo last change.
66444
66445 2007-04-03  Bruno Haible  <bruno@clisp.org>
66446
66447         * modules/printf-frexpl (Depends-on): Undo last change.
66448         (Files): Add m4/ldexpl.m4.
66449
66450 2007-04-03  Bruno Haible  <bruno@clisp.org>
66451
66452         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66453         * modules/isnanl (Link): New section.
66454
66455         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66456         * modules/frexp (Link): New section.
66457
66458         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66459         * modules/frexpl (Link): New section.
66460
66461         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66462         * modules/ldexpl (Link): New section.
66463
66464 2007-04-03  Bruno Haible  <bruno@clisp.org>
66465
66466         * modules/TEMPLATE-EXTENDED: New file.
66467         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66468
66469 2007-04-03  Bruno Haible  <bruno@clisp.org>
66470
66471         * DEPENDENCIES: New file.
66472         Suggested by Simon Josefsson.
66473
66474 2007-04-03  Bruno Haible  <bruno@clisp.org>
66475
66476         * doc/gnulib.texi: Escape @.
66477
66478 2007-04-03  James Youngman  <jay@gnu.org>
66479         and Paul Eggert  <eggert@cs.ucla.edu>
66480
66481         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66482         birthtime on all systems that have birthtime, not just those which
66483         use st_birthtimensec rather than st_birthtim.  Putting zero in
66484         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66485         that the birth time is not available for files on an NFS mount.
66486
66487 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66488
66489         * modules/memxor: Move back from crypto/, suggested by Bruno.
66490         * modules/crypto/hmac-sha1: Fix memxor dependency.
66491
66492         * modules/crypto/gc: Moved from ../.
66493
66494 2007-04-02  Eric Blake  <ebb9@byu.net>
66495
66496         * lib/ldexpl.c (includes): Avoid libm.
66497
66498         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66499
66500 2007-04-02  Bruno Haible  <bruno@clisp.org>
66501
66502         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66503         on IRIX.
66504
66505 2007-04-02  Bruno Haible  <bruno@clisp.org>
66506
66507         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66508         x86 or x86_64 platforms running MacOS X.
66509         Reported by Ryan Schmidt <@ryandesign.com>.
66510
66511 2007-04-02  Bruno Haible  <bruno@clisp.org>
66512
66513         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66514         i386.
66515
66516 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66517
66518         * modules/crypto/arcfour: Moved from ../.
66519         * modules/crypto/arcfour-tests: Moved from ../.
66520         * modules/crypto/arctwo: Moved from ../.
66521         * modules/crypto/arctwo-tests: Moved from ../.
66522         * modules/crypto/des: Moved from ../.
66523         * modules/crypto/des-tests: Moved from ../.
66524         * modules/crypto/gc-arcfour: Moved from ../.
66525         * modules/crypto/gc-arcfour-tests: Moved from ../.
66526         * modules/crypto/gc-arctwo: Moved from ../.
66527         * modules/crypto/gc-arctwo-tests: Moved from ../.
66528         * modules/crypto/gc-des: Moved from ../.
66529         * modules/crypto/gc-des-tests: Moved from ../.
66530         * modules/crypto/gc-hmac-md5: Moved from ../.
66531         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66532         * modules/crypto/gc-hmac-sha1: Moved from ../.
66533         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66534         * modules/crypto/gc-md2: Moved from ../.
66535         * modules/crypto/gc-md2-tests: Moved from ../.
66536         * modules/crypto/gc-md4: Moved from ../.
66537         * modules/crypto/gc-md4-tests: Moved from ../.
66538         * modules/crypto/gc-md5: Moved from ../.
66539         * modules/crypto/gc-md5-tests: Moved from ../.
66540         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66541         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66542         * modules/crypto/gc-random: Moved from ../.
66543         * modules/crypto/gc-rijndael: Moved from ../.
66544         * modules/crypto/gc-rijndael-tests: Moved from ../.
66545         * modules/crypto/gc-sha1: Moved from ../.
66546         * modules/crypto/gc-sha1-tests: Moved from ../.
66547         * modules/crypto/gc-tests: Moved from ../.
66548         * modules/crypto/hmac-md5: Moved from ../.
66549         * modules/crypto/hmac-md5-tests: Moved from ../.
66550         * modules/crypto/hmac-sha1: Moved from ../.
66551         * modules/crypto/hmac-sha1-tests: Moved from ../.
66552         * modules/crypto/md2: Moved from ../.
66553         * modules/crypto/md2-tests: Moved from ../.
66554         * modules/crypto/md4: Moved from ../.
66555         * modules/crypto/md4-tests: Moved from ../.
66556         * modules/crypto/md5: Moved from ../.
66557         * modules/crypto/md5-tests: Moved from ../.
66558         * modules/crypto/memxor: Moved from ../.
66559         * modules/crypto/rijndael: Moved from ../.
66560         * modules/crypto/rijndael-tests: Moved from ../.
66561         * modules/crypto/sha1: Moved from ../.
66562
66563 2007-03-30  James Youngman  <jay@gnu.org>
66564
66565         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66566         rename() to change the ctime of a file (because ctime is unaffected
66567         by rename on jfs2 on AIX 5.1).
66568         (main): Start by doing cleanup, in case a previous run failed leaving
66569         test files behind.
66570
66571 2007-03-31  Bruno Haible  <bruno@clisp.org>
66572
66573         Support old proprietary implementations of iconv.
66574         * modules/iconv_open: New file.
66575         * lib/iconv_.h: New file.
66576         * m4/iconv_h.m4: New file.
66577         * lib/iconv_open.c: New file.
66578         * lib/iconv_open-aix.gperf: New file.
66579         * lib/iconv_open-hpux.gperf: New file.
66580         * lib/iconv_open-irix.gperf: New file.
66581         * lib/iconv_open-osf.gperf: New file.
66582         * m4/iconv_open.m4: New file.
66583         * modules/linebreak (Depends-on): Add iconv_open.
66584         * modules/striconv (Depends-on): Likewise.
66585         * modules/striconveh (Depends-on): Likewise.
66586         * modules/unicodeio (Depends-on): Likewise.
66587         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66588         (iconv_t)(-1).
66589         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66590         conversion if cd is (iconv_t)(-1).
66591         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66592         is not possible.
66593
66594 2007-03-31  Bruno Haible  <bruno@clisp.org>
66595
66596         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66597         work on Solaris either. Protect also second use of "autodetect_jp".
66598
66599 2007-03-31  Bruno Haible  <bruno@clisp.org>
66600
66601         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66602         the function is not present.
66603
66604 2007-03-31  Bruno Haible  <bruno@clisp.org>
66605
66606         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66607         the function is not present.
66608
66609 2007-03-31  Bruno Haible  <bruno@clisp.org>
66610
66611         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66612         a bug in HP-UX iconv_open().
66613
66614 2007-03-31  Bruno Haible  <bruno@clisp.org>
66615
66616         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66617         (Mathematics <math.h>): New section, add fpieee.
66618         (Input/output <stdio.h>): Add fseterr.
66619         (Mathematics <math.h>): New section, add printf-frexp.
66620         (Container data structures): Add sublist.
66621         (Core language properties): Add fpucw, inline.
66622         (Functions for greatest-width integer types <inttypes.h>): Add
66623         imaxabs, imaxdiv, inttypes.
66624         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66625         isnanl-nolibm, ldexp.
66626         (Mathematics <math.h>): New section, add printf-frexpl.
66627         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66628         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66629         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66630         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66631         (Unicode string functions): Add unistr/u*-mbtoucr.
66632         (Java): Add javacomp-script, javaexec-script.
66633         (C#): Add csharpcomp-script, csharpexec-script.
66634         (Support for building libraries and executables): Add havelib,
66635         relocatable-*.
66636         (Support for maintaining and releasing projects): Renamed from
66637         'Support for maintaining and release projects'. Add announce-gen.
66638
66639 2007-03-31  Bruno Haible  <bruno@clisp.org>
66640
66641         * README: Talk primarily about git.
66642         (git and CVS): Renamed from CVS.
66643         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66644         gnulib is available through git.
66645         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66646
66647 2007-03-30  Bruno Haible  <bruno@clisp.org>
66648
66649         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66650         * lib/poll_.h: Likewise.
66651         * lib/stat_.h: Likewise.
66652         * lib/sys_time_.h: Likewise.
66653         * lib/sysexit_.h: Likewise.
66654         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66655         * lib/stdbool_.h: Likewise.
66656         * lib/byteswap_.h: Add double-inclusion guard.
66657
66658 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66659
66660         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66661
66662 2007-03-30  Karl Berry  <karl@gnu.org>
66663
66664         * config/srclist-update: double space after USA in the license
66665         substitution, since that's how it's usually (?) written.
66666
66667 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66668
66669         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66670         reported by Bruno Haible.
66671
66672 2007-03-29  Bruno Haible  <bruno@clisp.org>
66673
66674         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66675         a bug in AIX iconv().
66676
66677 2007-03-29  Bruno Haible  <bruno@clisp.org>
66678
66679         * modules/ldexpl-tests: New file.
66680         * tests/test-ldexpl.c: New file.
66681
66682 2007-03-29  Bruno Haible  <bruno@clisp.org>
66683
66684         * lib/ldexpl.c: Include fpucw.h.
66685         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66686         multiplication.
66687         * modules/ldexpl (Depends-on): Add fpucw.
66688
66689 2007-03-29  Bruno Haible  <bruno@clisp.org>
66690
66691         * modules/ldexpl: New file.
66692         * m4/ldexpl.m4: New file.
66693         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66694         set.
66695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66696         REPLACE_LDEXPL.
66697         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66698         REPLACE_LDEXPL.
66699         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66700         gl_FUNC_LDEXPL_WORKS.
66701         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66702         * modules/mathl (Files): Remove lib/ldexpl.c.
66703         (Depends-on): Add ldexpl.
66704
66705 2007-03-29  Bruno Haible  <bruno@clisp.org>
66706
66707         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66708
66709 2007-03-29  Bruno Haible  <bruno@clisp.org>
66710
66711         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66712         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66713         and possibly also HP-UX.
66714         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66715         work on AIX, IRIX, HP-UX, OSF/1.
66716         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66717         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66718         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66719         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66720         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66721         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66722
66723 2007-03-29  Bruno Haible  <bruno@clisp.org>
66724
66725         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66726
66727 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66728
66729         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66730         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66731
66732 2007-03-29  Eric Blake  <ebb9@byu.net>
66733
66734         * lib/acl-internal.h: Remove redundant include.
66735         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66736         Cygwin when a file is locked.
66737
66738 2007-03-29  Bruno Haible  <bruno@clisp.org>
66739
66740         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66741         file.
66742         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66743
66744 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66745
66746         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66747         try to remove a parent directory if the child couldn't be removed
66748         (except for the first rmdir, which could fail because the child
66749         doesn't exist).  Problem reported by Jeff Blaine in
66750         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66751
66752 2007-03-28  Bruno Haible  <bruno@clisp.org>
66753
66754         * lib/striconveh.c (utf8conv_carefully): New function.
66755         (mem_cd_iconveh_internal): Invoke it.
66756
66757 2007-03-28  Bruno Haible  <bruno@clisp.org>
66758
66759         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66760         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66761         input.
66762         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66763         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66764         unistr/u8-uctomb.
66765
66766 2007-03-28  Bruno Haible  <bruno@clisp.org>
66767
66768         * modules/unistr/u8-mbtoucr: New file.
66769         * lib/unistr/u8-mbtoucr.c: New file.
66770         * modules/unistr/u16-mbtoucr: New file.
66771         * lib/unistr/u16-mbtoucr.c: New file.
66772         * modules/unistr/u16-mbtoucr: New file.
66773         * lib/unistr/u16-mbtoucr.c: New file.
66774         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66775
66776 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66777             Bruno Haible  <bruno@clisp.org>
66778
66779         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66780         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66781         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66782
66783         * m4/stdio_h.m4: Add stubs for vasprintf too.
66784
66785         * modules/stdio: Support vasprintf in sed command.
66786
66787         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66788         vasprintf.h.  Add stdio module indicator.
66789
66790         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66791         vasprintf.h.
66792
66793         * lib/vasprintf.h: File removed.
66794
66795         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66796         * lib/vasprintf.c: Ditto.
66797         * lib/xvasprintf.c: Ditto.
66798         * tests/test-vasprintf-posix.c: Ditto.
66799         * tests/test-vasprintf.c: Ditto.
66800
66801 2007-03-27  Bruno Haible  <bruno@clisp.org>
66802
66803         Make vasnprintf multithread-safe.
66804         * lib/vasnprintf.c (decimal_point_char): New function.
66805         (VASNPRINTF): Use it.
66806         Suggested by Simon Josefsson.
66807
66808 2007-03-27  Eric Blake  <ebb9@byu.net>
66809
66810         Support sub-second birthtime on cygwin.
66811         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66812         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66813         (get_stat_birthtime): Also work with st_birthtim.
66814
66815 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66816
66817         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66818         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66819         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66820         (get_stat_birthtime_ns): Simplify compile-time tests.
66821         (get_stat_birthtime): Change the API to look like
66822         get_stat_mtime etc., except return a negative tv_nsec on error.
66823         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66824         Don't check for "spare" fields.
66825         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66826         or for struct stat.st_birthtime, as these tests aren't used.
66827         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66828
66829 2007-03-27  Bruno Haible  <bruno@clisp.org>
66830
66831         * lib/stat-time.h: Include <sys/stat.h>.
66832
66833 2007-03-27  James Youngman  <jay@gnu.org>
66834
66835         * lib/stat-time.h (get_stat_birthtime): New function for
66836           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66837         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66838           and its variants.
66839         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66840         * modules/stat-time-test: New file.
66841         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66842
66843 2007-03-26  Bruno Haible  <bruno@clisp.org>
66844
66845         Better support of signalling NaNs.
66846         * lib/atanl.c: Include isnanl.h.
66847         (atanl): Perform test for NaN at the beginning of the function and
66848         through a call to isnanl.
66849         * lib/cosl.c: Include isnanl.h.
66850         (cosl): Perform test for NaN at the beginning of the function and
66851         through a call to isnanl.
66852         * lib/ldexpl.c: Include isnanl.h.
66853         (ldexpl): Perform test for NaN through a call to isnanl.
66854         * lib/logl.c: Include isnanl.h.
66855         (logl): Perform test for NaN at the beginning of the function and
66856         through a call to isnanl.
66857         * lib/sinl.c: Include isnanl.h.
66858         (sinl): Perform test for NaN at the beginning of the function and
66859         through a call to isnanl.
66860         * lib/sqrtl.c: Include isnanl.h.
66861         (sqrtl): Perform test for NaN at the beginning of the function and
66862         through a call to isnanl.
66863         * lib/tanl.c: Include isnanl.h.
66864         (tanl): Perform test for NaN at the beginning of the function and
66865         through a call to isnanl.
66866         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66867         * modules/mathl (Depends-on): Add isnanl.
66868
66869 2007-03-26  Eric Blake  <ebb9@byu.net>
66870
66871         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66872         regression in logic sense of previous patch.
66873
66874 2007-03-26  Bruno Haible  <bruno@clisp.org>
66875
66876         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66877         unportable shell command "if ! ...".
66878         Reported by Ralf Wildenhues.
66879
66880 2007-03-25  Bruno Haible  <bruno@clisp.org>
66881
66882         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66883         <sysexits.h> file, and only add EX_CONFIG.
66884         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66885         absolute file name and whether it is sufficient. Substitute also
66886         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66887         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66888         ABSOLUTE_SYSEXITS_H into sysexits.h.
66889
66890 2007-03-25  Bruno Haible  <bruno@clisp.org>
66891
66892         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66893         hints is NULL.
66894
66895 2007-03-25  Bruno Haible  <bruno@clisp.org>
66896
66897         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66898         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66899
66900 2007-03-25  Bruno Haible  <bruno@clisp.org>
66901
66902         * lib/vasnprintf.c: Include langinfo.h.
66903         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66904         multithread-safe.
66905         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66906         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66907         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66908         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66909         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66910         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66911         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66912         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66913         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66914         Reported by Simon Josefsson.
66915
66916 2007-03-25  Bruno Haible  <bruno@clisp.org>
66917
66918         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66919         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66920         * modules/vasnprintf (Depends-on): Add stdint.
66921
66922 2007-03-25  Bruno Haible  <bruno@clisp.org>
66923
66924         * modules/fpieee: New file.
66925         * m4/fpieee.m4: New file.
66926         * modules/isnan-nolibm (Depends-on): Add fpieee.
66927         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66928         * modules/isnanl (Depends-on): Add fpieee.
66929
66930 2007-03-25  Bruno Haible  <bruno@clisp.org>
66931
66932         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66933
66934 2007-03-25  Bruno Haible  <bruno@clisp.org>
66935
66936         Avoid test failures on IRIX 6.5.
66937         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66938         (main): Use it.
66939         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66940         macros.
66941         (main): Use them.
66942
66943 2007-03-25  Bruno Haible  <bruno@clisp.org>
66944
66945         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66946         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66947         exists but doesn't work.
66948         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66949         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66951         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66952         math.h.
66953
66954 2007-03-25  Bruno Haible  <bruno@clisp.org>
66955
66956         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66957         returns inf. Needed on IRIX 6.5.
66958
66959 2007-03-25  Bruno Haible  <bruno@clisp.org>
66960
66961         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66962         (main): Use isnanl instead of x != x idiom.
66963         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66964
66965         * tests/test-frexp.c: Include isnan.h.
66966         (main): Use isnan instead of x != x idiom.
66967         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66968
66969 2007-03-25  Bruno Haible  <bruno@clisp.org>
66970
66971         * tests/test-frexp.c (NaN): New function/macro.
66972         (main): Use it instead of 0.0 / 0.0.
66973         * tests/test-isnan.c (NaN): New function/macro.
66974         (main): Use it instead of 0.0 / 0.0.
66975         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66976         (test_function): Use it instead of 0.0 / 0.0.
66977         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66978         (test_function): Use it instead of 0.0 / 0.0.
66979         * tests/test-snprintf-posix.h (NaN): New function/macro.
66980         (test_function): Use it instead of 0.0 / 0.0.
66981         * tests/test-sprintf-posix.h (NaN): New function/macro.
66982         (test_function): Use it instead of 0.0 / 0.0.
66983         * tests/test-fprintf-posix.h (NaN): New function/macro.
66984         (test_function): Use it instead of 0.0 / 0.0.
66985         * tests/test-printf-posix.h (NaN): New function/macro.
66986         (test_function): Use it instead of 0.0 / 0.0.
66987
66988         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66989
66990 2007-03-25  Bruno Haible  <bruno@clisp.org>
66991
66992         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66993
66994 2007-03-25  Bruno Haible  <bruno@clisp.org>
66995
66996         * lib/regexec.c (merge_state_with_log): Make static.
66997
66998 2007-03-25  Bruno Haible  <bruno@clisp.org>
66999
67000         * lib/trigl.c (kernel_rem_pio2): Make static.
67001
67002 2007-03-25  Bruno Haible  <bruno@clisp.org>
67003
67004         * lib/sincosl.c (sincosl_table): Make static.
67005
67006 2007-03-25  Bruno Haible  <bruno@clisp.org>
67007
67008         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67009         if the compiler does not support C99.
67010
67011 2007-03-25  Bruno Haible  <bruno@clisp.org>
67012
67013         * modules/time (Makefile.am): Ensure all rule action lines start with a
67014         tab.
67015
67016 2007-03-24  Bruno Haible  <bruno@clisp.org>
67017
67018         * modules/tsearch-tests: New file.
67019         * tests/test-tsearch.sh: New file.
67020         * tests/test-tsearch.c: New file, mostly copied from glibc.
67021
67022         * modules/search-tests: New file.
67023         * tests/test-search.c: New file.
67024
67025         * modules/search: New file.
67026         * lib/search_.h: New file, incorporating lib/tsearch.h.
67027         * m4/search_h.m4: New file.
67028         * lib/tsearch.h: Remove file.
67029         * lib/tsearch.c: Include search.h instead of tsearch.h.
67030         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67031         HAVE_TSEARCH.
67032         * modules/tsearch (Files): Remove lib/tsearch.h.
67033         (Depends-on): Add search.
67034         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67035         (Include): Change tsearch.h into search.h.
67036
67037 2007-03-24  Bruno Haible  <bruno@clisp.org>
67038
67039         * modules/fpucw: New file.
67040         * lib/fpucw.h: New file.
67041         * lib/frexp.c: Include fpucw.h.
67042         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67043         (FUNC): Use them.
67044         * lib/printf-frexp.c: Include fpucw.h.
67045         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67046         (FUNC): Use them.
67047         * lib/vasnprintf.c: Include fpucw.h.
67048         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67049         'long double' calculations.
67050         * tests/test-frexpl.c: Include fpucw.h.
67051         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67052         * tests/test-printf-frexpl.c: Include fpucw.h.
67053         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67054         * modules/frexpl (Depends-on): Add fpucw.
67055         * modules/printf-frexpl (Depends-on): Likewise.
67056         * modules/fprintf-posix (Depends-on): Likewise.
67057         * modules/snprintf-posix (Depends-on): Likewise.
67058         * modules/sprintf-posix (Depends-on): Likewise.
67059         * modules/vasnprintf-posix (Depends-on): Likewise.
67060         * modules/vasprintf-posix (Depends-on): Likewise.
67061         * modules/vfprintf-posix (Depends-on): Likewise.
67062         * modules/vsnprintf-posix (Depends-on): Likewise.
67063         * modules/vsprintf-posix (Depends-on): Likewise.
67064         * modules/frexpl-tests (Depends-on): Likewise.
67065         * modules/printf-frexpl-tests (Depends-on): Likewise.
67066
67067 2007-03-24  Bruno Haible  <bruno@clisp.org>
67068
67069         * lib/float+.h: New file.
67070         * lib/isnan.c: Include float+.h.
67071         (SIZE): New macro.
67072         (FUNC): Compare only SIZE bytes of the value.
67073         * lib/vasnprintf.c: Include float+.h.
67074         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
67075         SIZEOF_LDBL or SIZEOF_DBL bytes.
67076         * modules/isnan-nolibm (Files): Add lib/float+.h.
67077         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67078         * modules/isnanl (Files): Add lib/float+.h.
67079         * modules/vasnprintf (Files): Add lib/float+.h.
67080
67081 2007-03-24  Bruno Haible  <bruno@clisp.org>
67082
67083         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67084         include isnanl-nolibm.h.
67085
67086 2007-03-24  Bruno Haible  <bruno@clisp.org>
67087
67088         * tests/test-read-file.c (main): Don't produce spurious output for
67089         expected situations. Make the test fail if it encountered unexpected
67090         results.
67091
67092 2007-03-24  Bruno Haible  <bruno@clisp.org>
67093
67094         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67095         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67096
67097 2007-03-24  Bruno Haible  <bruno@clisp.org>
67098
67099         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67100
67101 2007-03-24  Bruno Haible  <bruno@clisp.org>
67102
67103         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67104         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67105
67106         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67107         * modules/utf8-ucs4: Turn into a symbolic link to module
67108         unistr/u8-mbtouc.
67109
67110         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67111         utf8-ucs4-unsafe.
67112         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67113         unistr/u8-mbtouc-unsafe.
67114
67115         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67116         * modules/utf16-ucs4: Turn into a symbolic link to module
67117         unistr/u16-mbtouc.
67118
67119         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67120         utf16-ucs4-unsafe.
67121         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67122         unistr/u16-mbtouc-unsafe.
67123
67124         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67125         * modules/ucs4-utf8: Turn into a symbolic link to module
67126         unistr/u8-ubtomb.
67127
67128         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67129         * modules/ucs4-utf16: Turn into a symbolic link to module
67130         unistr/u16-ubtomb.
67131
67132 2007-03-24  Bruno Haible  <bruno@clisp.org>
67133
67134         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67135         Enable the function only if HAVE_INLINE.
67136         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67137         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67138         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67139         Enable the function only if HAVE_INLINE.
67140         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67141         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67142         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67143         Enable the function only if HAVE_INLINE.
67144         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67145         Enable the function only if HAVE_INLINE.
67146         * modules/utf8-ucs4: Update.
67147         * modules/utf8-ucs4-unsafe: Update.
67148         * modules/utf16-ucs4: Update.
67149         * modules/utf16-ucs4-unsafe: Update.
67150         * modules/ucs4-utf8: Update.
67151         * modules/ucs4-utf16: Update.
67152
67153 2007-03-24  Bruno Haible  <bruno@clisp.org>
67154
67155         * lib/utf8-ucs4.h: Remove file.
67156         * lib/utf8-ucs4-unsafe.h: Remove file.
67157         * lib/utf16-ucs4.h: Remove file.
67158         * lib/utf16-ucs4-unsafe.h: Remove file.
67159         * lib/ucs4-utf8.h: Remove file.
67160         * lib/ucs4-utf16.h: Remove file.
67161         * lib/unistr.h: Include their previous contents.
67162         * m4/utf-ucs4.m4: Remove file.
67163         * m4/ucs4-utf.m4: Remove file.
67164         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67165         (Depends-on): Add unistr/base.
67166         (configure.ac): Remove gl_UTF_UCS4.
67167         (Makefile.am): Update.
67168         (Include): Change to unistr.h.
67169         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67170         (Depends-on): Add unistr/base.
67171         (configure.ac): Remove gl_UTF_UCS4.
67172         (Makefile.am): Update.
67173         (Include): Change to unistr.h.
67174         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67175         (Depends-on): Add unistr/base.
67176         (configure.ac): Remove gl_UTF_UCS4.
67177         (Makefile.am): Update.
67178         (Include): Change to unistr.h.
67179         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67180         (Depends-on): Add unistr/base.
67181         (configure.ac): Remove gl_UTF_UCS4.
67182         (Makefile.am): Update.
67183         (Include): Change to unistr.h.
67184         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67185         (Depends-on): Add unistr/base.
67186         (configure.ac): Remove gl_UCS4_UTF.
67187         (Makefile.am): Update.
67188         (Include): Change to unistr.h.
67189         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67190         (Depends-on): Add unistr/base.
67191         (configure.ac): Remove gl_UCS4_UTF.
67192         (Makefile.am): Update.
67193         (Include): Change to unistr.h.
67194         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67195         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67196         utf8-ucs4-unsafe.h.
67197         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67198         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67199         utf16-ucs4-unsafe.h.
67200         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67201         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67202         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67203         * lib/unistr/u8-strchr.c: Likewise.
67204         * lib/unistr/u8-strrchr.c: Likewise.
67205         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67206         * lib/unistr/u16-strchr.c: Likewise.
67207         * lib/unistr/u16-strrchr.c: Likewise.
67208         * lib/striconveh.c: Update.
67209         * lib/linebreak.c: Update.
67210
67211 2007-03-24  Bruno Haible  <bruno@clisp.org>
67212
67213         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67214         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67215
67216 2007-03-22  Bruno Haible  <bruno@clisp.org>
67217
67218         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67219
67220 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67221
67222         * MODULES.html.sh (File system functions): New module write-any-file.
67223         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67224         * m4/write-any-file.m4: New files.
67225
67226 2007-03-23  Eric Blake  <ebb9@byu.net>
67227
67228         * gnulib-tool: Rearrange space-tab sequences, since some editors
67229         like to eat them.
67230
67231 2007-03-23  Eric Blake  <ebb9@byu.net>
67232
67233         * lib/version-etc.c (version_etc_va): Update license wording to
67234         be more concise.  Recommended by Richard Stallman.
67235
67236 2007-03-22  Bruno Haible  <bruno@clisp.org>
67237
67238         * lib/poll.c (MSG_PEEK): New fallback definition.
67239
67240 2007-03-22  Bruno Haible  <bruno@clisp.org>
67241
67242         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67243         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67244         (main): Update.
67245         Fixes a compilation error on BeOS.
67246
67247 2007-03-22  Bruno Haible  <bruno@clisp.org>
67248
67249         * modules/frexpl-tests: New file.
67250         * tests/test-frexpl.c: New file.
67251
67252         * modules/frexpl: New file.
67253         * m4/frexpl.m4: New file.
67254         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67255         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67257         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67258         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67259         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67260
67261 2007-03-22  Bruno Haible  <bruno@clisp.org>
67262
67263         * lib/frexpl.c: Share code with lib/frexp.c.
67264         * modules/mathl (Files): Add lib/frexp.c.
67265         (Depends-on): Add isnanl-nolibm.
67266
67267 2007-03-22  Bruno Haible  <bruno@clisp.org>
67268
67269         * modules/printf-frexp (Files): Add m4/frexp.m4.
67270         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67271         only if the found frexp function actually works.
67272
67273 2007-03-22  Bruno Haible  <bruno@clisp.org>
67274
67275         * lib/frexp.c: Remove older implementation that uses divisions.
67276
67277 2007-03-21  Bruno Haible  <bruno@clisp.org>
67278
67279         * modules/frexp-tests: New file.
67280         * tests/test-frexp.c: New file.
67281
67282         * modules/frexp: New file.
67283         * lib/frexp.c: New file.
67284         * m4/frexp.m4: New file.
67285         * lib/math_.h (frexp): New declaration.
67286         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67287         REPLACE_FREXP.
67288         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67289
67290 2007-03-21  Bruno Haible  <bruno@clisp.org>
67291
67292         * modules/isnanl-tests: New file.
67293         * tests/test-isnanl.c: New file.
67294
67295         * modules/isnanl: New file.
67296         * lib/isnanl.h: New file.
67297         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67298         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67299         gl_FUNC_ISNANL_WORKS.
67300         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67301         New macros.
67302
67303 2007-03-21  Bruno Haible  <bruno@clisp.org>
67304
67305         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67306         lib/isnanl.h.
67307         (Include): Update.
67308         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67309         * lib/vasnprintf.c: Update.
67310         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67311         tests/test-isnanl.h, remove tests/test-isnanl.c.
67312         (Makefile.am): Update.
67313         * tests/test-isnanl-nolibm.c: New file.
67314         * tests/test-isnanl.h: New file.
67315         * tests/test-isnanl.c: Remove file.
67316
67317 2007-03-21  Jim Meyering  <jim@meyering.net>
67318
67319         When trying to open ".", treat ESTALE like EACCES.
67320         * lib/savewd.c (savewd_save): Resort to forking not just upon
67321         failure with EACCES, but also when errno is ESTALE.
67322
67323 2007-03-20  Bruno Haible  <bruno@clisp.org>
67324
67325         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67326         Needed on AIX 5.1. Reported by Matthew Woehlke.
67327
67328 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67329
67330         Suggestions by Bruno Haible:
67331         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67332         our own.
67333         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67334         * modules/acl (Depends-on): Add gettext.
67335
67336 2007-03-19  Bruno Haible  <bruno@clisp.org>
67337
67338         * modules/iconvme: Remove file.
67339         * lib/iconvme.h: Remove file.
67340         * lib/iconvme.c: Remove file.
67341         * m4/iconvme.m4: Remove file.
67342
67343 2007-03-19  Bruno Haible  <bruno@clisp.org>
67344
67345         * doc/relocatable-maint.texi: Break long shell script line.
67346         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67347
67348 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67349
67350         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67351         handle file_has_acl.
67352         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67353         * lib/acl.c: Move header inclusions and related macro defns into
67354         lib/acl-internal.h.
67355         (S_ISLNK): Remove defn, since that's now done for us.
67356         (file_has_acl): Move to lib/file-has-acl.c.
67357         Call acl_trivial if available.  This is the crucial part of the fix.
67358         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67359         shared within the library.  Rewrite a bit, partly to make it compatible
67360         with the GNU coding style.
67361         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67362         Remove unnecessary double-quotes.
67363         Don't test for acl_to_text; the build will catch that.
67364         Replace acl_entries if it doesn't exist and it is needed.
67365         Check for -lsec and acl_trivial (as used on Solaris 10).
67366         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67367         lib/file-has-acl.c.
67368         (Depends-on): Add sys_stat, for S_ISLNK.
67369
67370 2007-03-19  Ben Pfaff  <blp@gnu.org>
67371
67372         * doc/gnulib.texi: Fix typos.
67373         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67374
67375 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67376
67377         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67378         If size is zero here, buf must be zero.
67379
67380 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67381
67382         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67383         <bruno@clisp.org>.
67384
67385 2007-03-18  Bruno Haible  <bruno@clisp.org>
67386
67387         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67388         Suggested by Eric Blake.
67389
67390 2007-03-18  Ben Pfaff  <blp@gnu.org>
67391
67392         * doc/relocatable.texi: Recommend using as prefix a directory
67393         that does not exist and will never be created.  Based on
67394         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67395         and others.
67396
67397 2007-03-17  Bruno Haible  <bruno@clisp.org>
67398
67399         * lib/fchownat.c: Include lchown.h.
67400
67401 2007-03-17  Bruno Haible  <bruno@clisp.org>
67402
67403         Fix endless loop when the given allocated size was > INT_MAX.
67404         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67405         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67406         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67407         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67408         * lib/sprintf.c (sprintf): Likewise.
67409
67410 2007-03-17  Bruno Haible  <bruno@clisp.org>
67411
67412         * tests/test-argp-2.sh (func_compare): Output a context diff.
67413
67414 2007-03-17  Bruno Haible  <bruno@clisp.org>
67415
67416         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67417         locale's decimal-point character.
67418
67419 2007-03-17  Bruno Haible  <bruno@clisp.org>
67420
67421         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67422         before comparing it. Needed because on some platforms (e.g. x86) a
67423         'long double' occupies less bytes than sizeof (long double).
67424
67425 2007-03-17  Bruno Haible  <bruno@clisp.org>
67426
67427         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67428         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67429         * tests/test-getaddrinfo.c (simple): Likewise.
67430         * tests/test-read-file.c (main): Likewise.
67431
67432 2007-03-17  Bruno Haible  <bruno@clisp.org>
67433
67434         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67435
67436 2007-03-17  Bruno Haible  <bruno@clisp.org>
67437
67438         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67439         unused variable.
67440
67441 2007-03-17  Bruno Haible  <bruno@clisp.org>
67442
67443         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67444         * tests/test-c-strncasecmp.c: Likewise.
67445
67446 2007-03-17  Bruno Haible  <bruno@clisp.org>
67447
67448         * modules/stdlib (Depends-on): Add unistd.
67449         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67450         Needed for MacOS X 10.3.
67451
67452 2007-03-17  Bruno Haible  <bruno@clisp.org>
67453
67454         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67455
67456 2007-03-17  Bruno Haible  <bruno@clisp.org>
67457
67458         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67459
67460 2007-03-17  Bruno Haible  <bruno@clisp.org>
67461
67462         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67463         to reflect files copied from gnulib (with or without modifications).
67464         Suggested by Jim Meyering.
67465
67466 2007-03-17  Eric Blake  <ebb9@byu.net>
67467
67468         * NEWS: Document stdlib change from 2007-02-18.
67469
67470 2007-03-17  Jim Meyering  <jim@meyering.net>
67471
67472         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67473         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67474         someone uses a name containing shell meta-characters.
67475         Reported by Alfred M. Szmidt.
67476
67477         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67478
67479 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67480
67481         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67482         and copy gettext configuration files only if configure.ac contains
67483         a use of AM_GNU_GETTEXT_VERSION.
67484
67485 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67486
67487         * build-aux/bootstrap (gnulib_name): New variable.
67488         (gnulib_tool_options): Use it.
67489
67490 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67491
67492         * tests/test-des.c: Use new namespace.
67493
67494 2007-03-15  Bruno Haible  <bruno@clisp.org>
67495
67496         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67497         Reported by James Youngman <jay@gnu.org>.
67498
67499 2007-03-15  Bruno Haible  <bruno@clisp.org>
67500
67501         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67502         declared prototype. Needed with cc on OSF/1 5.1.
67503
67504 2007-03-15  Bruno Haible  <bruno@clisp.org>
67505
67506         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67507         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67508         (struct gl_list_implementation): Add dispose_fn argument to the
67509         'create_empty', 'create' methods.
67510         (struct gl_list_impl_base): Add field 'dispose_fn'.
67511         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67512         argument.
67513         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67514         dispose_fn argument.
67515         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67516         dispose_fn on the dropped values.
67517         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67518         dispose_fn argument.
67519         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67520         dropped values.
67521         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67522         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67523         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67524         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67525         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67526         argument.
67527         (gl_tree_list_free): Call dispose_fn on the dropped values.
67528         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67529         the dropped values.
67530         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67531         Add dispose_fn argument.
67532         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67533         Call dispose_fn on the dropped values.
67534         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67535         Add dispose_fn argument.
67536         (gl_sublist_create): Initialize the 'dispose_fn' field.
67537         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67538         * tests/test-array_list.c (main): Update.
67539         * tests/test-carray_list.c (main): Update.
67540         * tests/test-avltree_list.c (main): Update.
67541         * tests/test-rbtree_list.c (main): Update.
67542         * tests/test-avltreehash_list.c (main): Update.
67543         * tests/test-rbtreehash_list.c (main): Update.
67544         * tests/test-linked_list.c (main): Update.
67545         * tests/test-linkedhash_list.c (main): Update.
67546         * tests/test-array_oset.c (main): Update.
67547
67548 2007-03-15  Bruno Haible  <bruno@clisp.org>
67549
67550         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67551         (gl_oset_create_empty): Add dispose_fn argument.
67552         (struct gl_oset_implementation): Add dispose_fn argument to
67553         'create_empty' method.
67554         (struct gl_oset_impl_base): Add dispose_fn field.
67555         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67556         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67557         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67558         values.
67559         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67560         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67561         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67562         dropped value.
67563         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67564         dropped value.
67565         * tests/test-array_oset.c (main): Update.
67566         * tests/test-avltree_oset.c (main): Update.
67567         * tests/test-rbtree_oset.c (main): Update.
67568         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67569
67570 2007-03-13  Bruno Haible  <bruno@clisp.org>
67571
67572         * tests/test-stdbool.c (i): Update after last patch.
67573
67574 2007-03-12  Bruno Haible  <bruno@clisp.org>
67575
67576         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67577         the iswprint macro. Needed on Solaris 2.5.1.
67578
67579 2007-03-12  Bruno Haible  <bruno@clisp.org>
67580
67581         * tests/test-printf-frexp.c (main): Declare x as volatile.
67582
67583 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67584
67585         * doc/gnulib.texi (Build robot for gnulib): New section.
67586
67587 2007-03-12  Jim Meyering  <jim@meyering.net>
67588
67589         * build-aux/bootstrap: New file.
67590         * build-aux/bootstrap.conf: New file, from coreutils.
67591
67592 2007-03-11  Bruno Haible  <bruno@clisp.org>
67593
67594         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67595
67596 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67597
67598         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67599         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67600         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67601
67602 2007-03-11  Bruno Haible  <bruno@clisp.org>
67603
67604         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67605         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67606
67607 2007-03-11  Bruno Haible  <bruno@clisp.org>
67608
67609         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67610         formula. Needed for SunPRO C 5.0.
67611
67612 2007-03-11  Bruno Haible  <bruno@clisp.org>
67613
67614         * modules/long-options (Depends-on): Add getopt.
67615
67616 2007-03-11  Bruno Haible  <bruno@clisp.org>
67617
67618         * modules/modechange (Depends-on): Add stdbool.
67619
67620 2007-03-11  Bruno Haible  <bruno@clisp.org>
67621
67622         * modules/i-ring (Depends-on): Add stdbool.
67623
67624 2007-03-11  Bruno Haible  <bruno@clisp.org>
67625
67626         * modules/gc-des (Depends-on): Add stdbool.
67627
67628 2007-03-11  Bruno Haible  <bruno@clisp.org>
67629
67630         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67631
67632 2007-03-11  Bruno Haible  <bruno@clisp.org>
67633
67634         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67635
67636 2007-03-11  Bruno Haible  <bruno@clisp.org>
67637
67638         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67639
67640 2007-03-11  Bruno Haible  <bruno@clisp.org>
67641
67642         * lib/vasnprintf.c (sprintf): Undefine.
67643
67644 2007-03-11  Bruno Haible  <bruno@clisp.org>
67645
67646         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67647         initializers in SunPRO C and Compaq C compilers.
67648
67649 2007-03-11  Bruno Haible  <bruno@clisp.org>
67650
67651         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67652         decrementing code ANSI C compliant.
67653
67654 2007-03-11  Bruno Haible  <bruno@clisp.org>
67655
67656         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67657         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67658
67659 2007-03-11  Bruno Haible  <bruno@clisp.org>
67660
67661         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67662         <stdbool.h> substitute doesn't pass.
67663
67664 2007-03-11  Bruno Haible  <bruno@clisp.org>
67665
67666         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67667
67668 2007-03-11  Bruno Haible  <bruno@clisp.org>
67669
67670         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67671         script, for submission to autobuild.josefsson.org.
67672
67673 2007-03-10  Bruno Haible  <bruno@clisp.org>
67674
67675         * modules/canonicalize-lgpl-tests: New file.
67676         * tests/test-canonicalize-lgpl.sh: New file.
67677         * tests/test-canonicalize-lgpl.c: New file.
67678
67679         * modules/c-strcase-tests: New file.
67680         * tests/test-c-strcase.sh: New file.
67681         * tests/test-c-strcasecmp.c: New file.
67682         * tests/test-c-strncasecmp.c: New file.
67683
67684         * modules/atexit-tests: New file.
67685         * tests/test-atexit.sh: New file.
67686         * tests/test-atexit.c: New file.
67687
67688 2007-03-10  Bruno Haible  <bruno@clisp.org>
67689
67690         * tests/test-binary-io.sh: Use temporary filenames that are not so
67691         likely to clash with those of other tests (in a parallel make).
67692         * tests/test-binary-io.c: Likewise.
67693
67694 2007-03-10  Bruno Haible  <bruno@clisp.org>
67695
67696         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67697         fallback; use #error instead.
67698         Suggested by Simon Josefsson.
67699
67700 2007-03-10  Bruno Haible  <bruno@clisp.org>
67701
67702         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67703         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67704         first and the last.
67705
67706 2007-03-10  Bruno Haible  <bruno@clisp.org>
67707
67708         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67709
67710 2007-03-10  Bruno Haible  <bruno@clisp.org>
67711
67712         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67713         "make distcheck".
67714         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67715         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67716         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67717
67718 2007-03-10  Bruno Haible  <bruno@clisp.org>
67719
67720         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67721         variable.
67722         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67723         variable.
67724
67725 2007-03-09  Eric Blake  <ebb9@byu.net>
67726         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67727
67728         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67729         types are not being provided by gnulib.
67730         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67731         types are supported.
67732
67733 2007-03-10  Bruno Haible  <bruno@clisp.org>
67734
67735         * lib/stdio_.h (__attribute__): New macro.
67736         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67737         vsprintf): Specify __attribute__ __format__ for GCC.
67738         Suggested by Eric Blake.
67739
67740 2007-03-09  Bruno Haible  <bruno@clisp.org>
67741
67742         * modules/printf-posix-tests: New file.
67743         * tests/test-printf-posix.sh: New file.
67744         * tests/test-printf-posix.c: New file.
67745
67746         * modules/printf-posix: New file.
67747         * lib/printf.c: New file.
67748         * m4/printf-posix-rpl.m4: New file.
67749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67750         REPLACE_PRINTF.
67751         * lib/stdio_.h (printf): New declaration.
67752         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67753         ____strfmon____): New macros.
67754         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67755         REPLACE_PRINTF.
67756
67757 2007-03-09  Bruno Haible  <bruno@clisp.org>
67758
67759         * tests/test-vasnprintf-posix2.sh: New file.
67760         * tests/test-vasnprintf-posix2.c: New file.
67761         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67762         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67763         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67764
67765         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67766         a locale dependent decimal point, rather than always '.'.
67767
67768 2007-03-09  Eric Blake  <ebb9@byu.net>
67769
67770         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67771         spite of platforms like Tandem/NSK that define it to -1.
67772
67773 2007-03-08  Bruno Haible  <bruno@clisp.org>
67774
67775         * modules/vprintf-posix-tests: New file.
67776         * tests/test-vprintf-posix.sh: New file.
67777         * tests/test-vprintf-posix.c: New file.
67778         * tests/test-printf-posix.h: New file.
67779
67780         * modules/vprintf-posix: New file.
67781         * lib/vprintf.c: New file.
67782         * m4/vprintf-posix.m4: New file.
67783         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67784         REPLACE_VPRINTF.
67785         * lib/stdio_.h (vprintf): New declaration.
67786         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67787         REPLACE_VPRINTF.
67788
67789 2007-03-08  Bruno Haible  <bruno@clisp.org>
67790
67791         * modules/fprintf-posix-tests: New file.
67792         * tests/test-fprintf-posix.sh: New file.
67793         * tests/test-fprintf-posix.c: New file.
67794
67795         * modules/fprintf-posix: New file.
67796         * lib/fprintf.c: New file.
67797         * m4/fprintf-posix.m4: New file.
67798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67799         REPLACE_FPRINTF.
67800         * lib/stdio_.h (fprintf): New declaration.
67801         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67802         REPLACE_FPRINTF.
67803
67804 2007-03-08  Bruno Haible  <bruno@clisp.org>
67805
67806         * modules/vfprintf-posix-tests: New file.
67807         * tests/test-vfprintf-posix.sh: New file.
67808         * tests/test-vfprintf-posix.c: New file.
67809         * tests/test-fprintf-posix.h: New file.
67810         * tests/test-fprintf-posix.out: New file.
67811
67812         * modules/vfprintf-posix: New file.
67813         * lib/vfprintf.c: New file.
67814         * m4/vfprintf-posix.m4: New file.
67815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67816         REPLACE_VFPRINTF.
67817         * lib/stdio_.h (vfprintf): New declaration.
67818         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67819         REPLACE_VFPRINTF.
67820
67821 2007-03-08  Bruno Haible  <bruno@clisp.org>
67822
67823         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67824
67825 2007-03-08  Bruno Haible  <bruno@clisp.org>
67826
67827         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67828         instead of 'expr' invocations.
67829         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67830         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67831         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67832         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67833         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67834         Suggested by Paul Eggert.
67835
67836 2007-03-08  Bruno Haible  <bruno@clisp.org>
67837
67838         * modules/fseterr-tests: New file.
67839         * tests/test-fseterr.c: New file.
67840
67841         * modules/fseterr: New file.
67842         * lib/fseterr.h: New file.
67843         * lib/fseterr.c: New file.
67844
67845 2007-03-08  Bruno Haible  <bruno@clisp.org>
67846
67847         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67848         * lib/getopt_.h: Likewise.
67849         * lib/mbswidth.h: Likewise.
67850         * lib/setenv.h: Likewise.
67851         * lib/vasnprintf.h: Likewise.
67852         * lib/vasprintf.h: Likewise.
67853         * lib/verror.h: Likewise.
67854         * lib/xsetenv.h: Likewise.
67855         * lib/xvasprintf.h: Likewise.
67856
67857 2007-03-08  Jim Meyering  <jim@meyering.net>
67858
67859         * users.txt: Add parted.
67860
67861         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67862
67863 2007-03-07  Bruno Haible  <bruno@clisp.org>
67864
67865         * m4/printf.m4: Make the shell script snippets copy&pastable.
67866
67867 2007-03-02  Bruno Haible  <bruno@clisp.org>
67868
67869         * lib/netinet_in_.h: New file.
67870         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67871         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67872         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67873         (Depends-on): Add absolute-header.
67874         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67875         into netinet/in.h.
67876
67877 2007-03-03  Bruno Haible  <bruno@clisp.org>
67878
67879         * lib/sys_select_.h: New file.
67880         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67881         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67882         * modules/sys_select (Files): Add lib/sys_select_.h.
67883         (Depends-on): Add absolute-header.
67884         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67885         into sys/select.h.
67886
67887 2007-03-02  Bruno Haible  <bruno@clisp.org>
67888
67889         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67890         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67891         values.
67892         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67893         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67894         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67895         * modules/sys_socket (Depends-on): Add absolute-header.
67896         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67897         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67898         (Include): Remove requirement of inclusion of <sys/types.h>.
67899
67900 2007-03-02  Bruno Haible  <bruno@clisp.org>
67901
67902         * lib/byteswap_.h (bswap_32): Fix formula.
67903
67904 2007-03-06  Bruno Haible  <bruno@clisp.org>
67905
67906         * modules/sprintf-posix-tests: New file.
67907         * tests/test-sprintf-posix.c: New file.
67908
67909         * modules/sprintf-posix: New file.
67910         * lib/sprintf.c: New file.
67911         * m4/sprintf-posix.m4: New file.
67912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67913         REPLACE_SPRINTF.
67914         * lib/stdio_.h (sprintf): New declaration.
67915         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67916         REPLACE_SPRINTF.
67917
67918 2007-03-06  Bruno Haible  <bruno@clisp.org>
67919
67920         * modules/vsprintf-posix-tests: New file.
67921         * tests/test-vsprintf-posix.c: New file.
67922         * tests/test-sprintf-posix.h: New file.
67923
67924         * modules/vsprintf-posix: New file.
67925         * lib/vsprintf.c: New file.
67926         * m4/vsprintf-posix.m4: New file.
67927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67928         REPLACE_VSPRINTF.
67929         * lib/stdio_.h (vsprintf): New declaration.
67930         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67931         REPLACE_VSPRINTF.
67932
67933 2007-03-06  Bruno Haible  <bruno@clisp.org>
67934
67935         * modules/vsnprintf (Depend-on): Remove minmax.
67936
67937 2007-03-06  Bruno Haible  <bruno@clisp.org>
67938
67939         * modules/snprintf-posix-tests: New file.
67940         * tests/test-snprintf-posix.c: New file.
67941
67942         * modules/snprintf-posix: New file.
67943         * m4/snprintf-posix.m4: New file.
67944         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67945         gl_FUNC_SNPRINTF.
67946         (gl_FUNC_SNPRINTF): Invoke it.
67947         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67948         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67949         is set.
67950         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67951
67952 2007-03-06  Bruno Haible  <bruno@clisp.org>
67953
67954         * modules/vsnprintf-posix-tests: New file.
67955         * tests/test-vsnprintf-posix.c: New file.
67956         * tests/test-snprintf-posix.h: New file.
67957
67958         * modules/vsnprintf-posix: New file.
67959         * m4/vsnprintf-posix.m4: New file.
67960         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67961         gl_FUNC_VSNPRINTF.
67962         (gl_FUNC_VSNPRINTF): Invoke it.
67963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67964         * lib/stdio_.h (vsnprintf): Define as a replacement if
67965         REPLACE_VSNPRINTF is set.
67966         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67967
67968 2007-03-06  Bruno Haible  <bruno@clisp.org>
67969
67970         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67971         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67972
67973 2007-03-06  Bruno Haible  <bruno@clisp.org>
67974
67975         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67976         (asinl): Declare also if HAVE_DECL_ASINL is set.
67977         (atanl): Declare also if HAVE_DECL_ATANL is set.
67978         (ceill): Declare also if HAVE_DECL_CEILL is set.
67979         (cosl): Declare also if HAVE_DECL_COSL is set.
67980         (expl): Declare also if HAVE_DECL_EXPL is set.
67981         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67982         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67983         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67984         (logl): Declare also if HAVE_DECL_LOGL is set.
67985         (sinl): Declare also if HAVE_DECL_SINL is set.
67986         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67987         (tanl): Declare also if HAVE_DECL_TANL is set.
67988         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67990         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67991         declaration of frexpl, ldexpl.
67992         * modules/printf-frexpl (Depends-on): Add math.
67993         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67994
67995 2007-03-05  Bruno Haible  <bruno@clisp.org>
67996
67997         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67998         frexpl and ldexpl are declared.
67999         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68000
68001 2007-03-05  Bruno Haible  <bruno@clisp.org>
68002
68003         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68004         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68005
68006 2007-03-05  Bruno Haible  <bruno@clisp.org>
68007
68008         * lib/stdio_.h: Include <stddef.h>.
68009
68010 2007-03-05  Bruno Haible  <bruno@clisp.org>
68011
68012         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68013
68014 2007-03-05  Bruno Haible  <bruno@clisp.org>
68015
68016         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68017         NetBSD 4, from Ralf Wildenhues.
68018
68019 2007-03-04  Bruno Haible  <bruno@clisp.org>
68020
68021         * lib/vasprintf.h: Update #if logic for the case when the functions
68022         exist but are overridden.
68023
68024 2007-03-04  Bruno Haible  <bruno@clisp.org>
68025
68026         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68027         implementations: glibc-2.4 and MacOS X 10.3.
68028         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68029         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68030         * tests/test-vasprintf-posix.c (test_function): Likewise.
68031
68032 2007-03-04  Bruno Haible  <bruno@clisp.org>
68033
68034         * modules/vasprintf-posix-tests: New file.
68035         * tests/test-vasprintf-posix.c: New file.
68036
68037         * modules/vasprintf-posix: New file.
68038         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68039         defined.
68040         * m4/vasprintf-posix.m4: New file.
68041         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68042         gl_FUNC_VASPRINTF.
68043         (gl_FUNC_VASPRINTF): Invoke it.
68044         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68045         here.
68046         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68047
68048 2007-03-04  Bruno Haible  <bruno@clisp.org>
68049
68050         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68051         REPLACE_GETTIMEOFDAY.
68052         * modules/sys_time (Makefile.am): Likewise.
68053         * m4/sys_time_h.m4: Likewise.
68054         * m4/gettimeofday.m4: Likewise.
68055
68056 2007-03-04  Bruno Haible  <bruno@clisp.org>
68057
68058         * modules/vasnprintf-posix-tests: New file.
68059         * tests/test-vasnprintf-posix.c: New file.
68060
68061         * modules/vasnprintf-posix: New file.
68062         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68063         printf-frexpl.h.
68064         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68065         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68066         REPLACE_VASNPRINTF is defined.
68067         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68068         gl_FUNC_VASNPRINTF.
68069         (gl_FUNC_VASNPRINTF): Invoke it.
68070         * m4/vasnprintf-posix.m4: New file.
68071         * m4/printf.m4: New file.
68072
68073 2007-03-04  Bruno Haible  <bruno@clisp.org>
68074
68075         Compile progreloc.c only if --enable-relocatable is specified.
68076         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68077         if --enable-relocatable was specified.
68078         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68079         lib_SOURCES.
68080
68081 2007-03-04  Jim Meyering  <jim@meyering.net>
68082
68083         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68084         Use it consistently, rather than enumerating errno constants.
68085
68086 2007-03-04  Bruno Haible  <bruno@clisp.org>
68087
68088         * modules/xvasprintf-tests: New file.
68089         * tests/test-xvasprintf.c: New file.
68090
68091         * modules/vasprintf-tests: New file.
68092         * tests/test-vasprintf.c: New file.
68093
68094         * modules/vasnprintf-tests: New file.
68095         * tests/test-vasnprintf.c: New file.
68096
68097         * modules/vsnprintf-tests: New file.
68098         * tests/test-vsnprintf.c: New file.
68099
68100         * modules/snprintf-tests: New file.
68101         * tests/test-snprintf.c: New file.
68102
68103 2007-03-04  Bruno Haible  <bruno@clisp.org>
68104
68105         Compile relocatable.c only if --enable-relocatable is specified.
68106         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68107         gl_RELOCATABLE_LIBRARY.
68108         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68109         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68110         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68111         gl_RELOCATABLE_LIBRARY.
68112         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68113         (Makefile.am): Remove lib_SOURCES.
68114         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68115         gl_RELOCATABLE_LIBRARY.
68116         (Makefile.am): Remove lib_SOURCES.
68117         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68118         always.
68119         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68120         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68121
68122 2007-03-04  Bruno Haible  <bruno@clisp.org>
68123
68124         * modules/argmatch-tests: New file.
68125         * tests/test-argmatch.c: New file.
68126
68127         * tests/test-allocsa.c (main): Halve the number of loop runs.
68128
68129         * modules/alloca-opt-tests: New file.
68130         * tests/test-alloca-opt.c: New file.
68131
68132 2007-03-04  Jim Meyering  <jim@meyering.net>
68133
68134         Work around difference between Linux ACLs and Solaris 10 ZFS.
68135         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68136         for EINVAL.
68137
68138 2007-03-03  Bruno Haible  <bruno@clisp.org>
68139
68140         * modules/relocatable-prog (Depends-on): Add back progreloc's
68141         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68142
68143 2007-03-03  Bruno Haible  <bruno@clisp.org>
68144
68145         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68146         * modules/relocatable-lib: New file.
68147
68148 2007-03-03  Bruno Haible  <bruno@clisp.org>
68149
68150         * modules/relocatable-prog: Renamed from modules/relocatable.
68151         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68152
68153 2007-03-03  Bruno Haible  <bruno@clisp.org>
68154
68155         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68156         m4/relocatable-lib.m4.
68157         (Depends-on): Remove 'relocatable'.
68158         (configure.ac): Add gl_RELOCATABLE_NOP.
68159
68160 2007-03-03  Bruno Haible  <bruno@clisp.org>
68161
68162         * modules/relocatable-prog-wrapper: New file.
68163         * modules/relocatable (Depends-on): Add it. Remove all other
68164         dependencies except progname.
68165         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68166
68167         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68168         (gl_FUNC_STRERROR): Nop.
68169         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68170
68171         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68172         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68173
68174         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68175         (gl_FUNC_READLINK): Update.
68176
68177         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68178
68179 2007-03-03  Bruno Haible  <bruno@clisp.org>
68180
68181         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68182         * modules/xreadlink (Depends-on): Add unistd.
68183         * modules/xreadlink-with-size (Depends-on): Likewise.
68184
68185 2007-03-03  Bruno Haible  <bruno@clisp.org>
68186
68187         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68188         extracted from gt_FUNC_SETENV.
68189         (gt_FUNC_SETENV): Remove macro.
68190         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68191         remove gt_FUNC_SETENV.
68192
68193 2007-03-03  Bruno Haible  <bruno@clisp.org>
68194
68195         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68196         ENABLE_RELOCATABLE here.
68197         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68198
68199 2007-03-03  Bruno Haible  <bruno@clisp.org>
68200
68201         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68202         * tests/test-rbtreehash_list.c: Include progname.h.
68203         (main): Call set_program_name.
68204
68205         * modules/rbtree-oset-tests (Depends-on): Add progname.
68206         * tests/test-rbtree_oset.c: Include progname.h.
68207         (main): Call set_program_name.
68208
68209         * modules/rbtree-list-tests (Depends-on): Add progname.
68210         * tests/test-rbtree_list.c: Include progname.h.
68211         (main): Call set_program_name.
68212
68213         * modules/linked-list-tests (Depends-on): Add progname.
68214         * tests/test-linked_list.c: Include progname.h.
68215         (main): Call set_program_name.
68216
68217 2007-03-03  Bruno Haible  <bruno@clisp.org>
68218
68219         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68220         All uses of __restrict changed to _Restrict_.
68221         * lib/glob_.h (__restrict): Remove macro.
68222
68223 2007-03-02  Bruno Haible  <bruno@clisp.org>
68224
68225         * modules/gettext (configure.ac): Require gettext infrastructure
68226         from version 0.16.1.
68227
68228 2007-03-02  Bruno Haible  <bruno@clisp.org>
68229
68230         * modules/linkedhash-list-tests (Depends-on): Add progname.
68231         * tests/test-linkedhash_list.c: Include progname.h.
68232         (main): Call set_program_name.
68233
68234         * modules/carray-list-tests (Depends-on): Add progname.
68235         * tests/test-carray_list.c: Include progname.h.
68236         (main): Call set_program_name.
68237
68238         * modules/avltreehash-list-tests (Depends-on): Add progname.
68239         * tests/test-avltreehash_list.c: Include progname.h.
68240         (main): Call set_program_name.
68241
68242         * modules/avltree-oset-tests (Depends-on): Add progname.
68243         * tests/test-avltree_oset.c: Include progname.h.
68244         (main): Call set_program_name.
68245
68246         * modules/avltree-list-tests (Depends-on): Add progname.
68247         * tests/test-avltree_list.c: Include progname.h.
68248         (main): Call set_program_name.
68249
68250         * modules/array-oset-tests (Depends-on): Add progname.
68251         * tests/test-array_oset.c: Include progname.h.
68252         (main): Call set_program_name.
68253
68254         * modules/array-list-tests (Depends-on): Add progname.
68255         * tests/test-array_list.c: Include progname.h.
68256         (main): Call set_program_name.
68257
68258         * modules/argp-tests (Depends-on): Add progname.
68259         * tests/test-argp.c: Include argp.h first. Include progname.h.
68260         (main): Call set_program_name.
68261
68262 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68263
68264         * doc/gnulib-tool.texi (Initial import): Reword description of
68265         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68266         limited effect even if defined after the first system include.
68267
68268 2007-03-01  Bruno Haible  <bruno@clisp.org>
68269
68270         * build-aux/config.libpath: Update to libtool-1.5.22.
68271         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68272
68273 2007-03-01  Bruno Haible  <bruno@clisp.org>
68274
68275         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68276         foo_CFLAGS.
68277         Reported by Ralf Wildenhues.
68278
68279 2007-03-01  Bruno Haible  <bruno@clisp.org>
68280
68281         * build-aux/install-reloc: Remove object files left over by some
68282         compilers.
68283         Reported by Ralf Wildenhues.
68284
68285 2007-03-01  Bruno Haible  <bruno@clisp.org>
68286
68287         * build-aux/install-reloc: Break long lines.
68288
68289 2007-03-01  Bruno Haible  <bruno@clisp.org>
68290
68291         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68292         Reported by Ralf Wildenhues.
68293
68294 2007-03-01  Bruno Haible  <bruno@clisp.org>
68295
68296         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68297         include ordering constraints.
68298
68299 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68300
68301         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68302         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68303         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68304         as another example.
68305         * lib/time_.h: Fix misspelling.
68306         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68307         Require gl_HEADER_TIME_H_DEFAULTS.
68308         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68309         * m4/time_r.m4 (gl_TIME_R): Likewise.
68310         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68311
68312 2007-03-01  Bruno Haible  <bruno@clisp.org>
68313
68314         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68315         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68316
68317 2007-03-01  Jim Meyering  <jim@meyering.net>
68318
68319         * modules/xreadlink (Maintainer): Add my name.
68320         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68321
68322 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68323             Bruno Haible  <bruno@clisp.org>
68324
68325         * build-aux/install-reloc: Compile also c-ctype.c.
68326         * build-aux/relocatable.sh.in: New file.
68327         * doc/relocatable.texi: New file.
68328         * doc/relocatable-maint.texi: New file.
68329         * doc/gnulib.texi: Include relocatable-maint.texi.
68330         * lib/progreloc.c: Include unistd.h unconditionally.
68331         * lib/relocwrapper.c: Include unistd.h unconditionally.
68332         Include c-ctype.h.
68333         (add_dotbin): Use c_tolower.
68334         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68335         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68336         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68337         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68338         to m4/relocatable-lib.m4.
68339         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68340         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68341         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68342         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68343         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68344         * modules/relocatable: New file.
68345         * modules/relocatable-lib: New file.
68346         * modules/relocatable-script: New file.
68347
68348 2007-02-28  Bruno Haible  <bruno@clisp.org>
68349
68350         Import --enable-relocatable infrastructure.
68351         * build-aux/config.libpath: New file, from GNU gettext.
68352         * build-aux/install-reloc: New file, from GNU gettext.
68353         * build-aux/reloc-ldflags: New file, from GNU gettext.
68354         * lib/relocatable.h: New file, from GNU gettext.
68355         * lib/relocatable.c: New file, from GNU gettext.
68356         * lib/relocwrapper.c: New file, from GNU gettext.
68357         * m4/relocatable.m4: New file, from GNU gettext.
68358
68359 2007-02-28  Bruno Haible  <bruno@clisp.org>
68360
68361         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68362
68363         * modules/xreadlink: New file, from GNU gettext with modifications.
68364         * lib/xreadlink.c: New file, from GNU gettext.
68365         * lib/xreadlink.h: Add comments.
68366         (xreadlink): New declaration.
68367
68368         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68369         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68370         lib/xreadlink-with-size.c.
68371         (configure.ac): Remove gl_XREADLINK invocation.
68372         (Makefile.am): Augment lib_SOURCES.
68373         * m4/xreadlink.m4: Remove file.
68374         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68375         (xreadlink_with_size): Renamed from xreadink.
68376         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68377         * modules/canonicalize (Depends-on): Replace xreadlink with
68378         xreadlink-with-size.
68379         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68380
68381 2007-02-25  Jim Meyering  <jim@meyering.net>
68382
68383         * build-aux/announce-gen: When complaining about excess arguments,
68384         list them.
68385
68386 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68387
68388         * README: Document signed integer overflow situation more
68389         accurately.
68390
68391 2007-02-25  Bruno Haible  <bruno@clisp.org>
68392
68393         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68394         'a' or 'A' conversion.
68395
68396 2007-02-25  Bruno Haible  <bruno@clisp.org>
68397
68398         * modules/filename: Renamed from modules/pathname.
68399         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68400         lib/concatpath.c with lib/concat-filename.c.
68401         (Makefile.am): Update.
68402         (Include): Replace pathname.h with filename.h.
68403         * lib/filename.h: Renamed from lib/pathname.h.
68404         (concatenated_filename): Renamed from concatenated_pathname.
68405         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68406         (concatenated_filename): Renamed from concatenated_pathname.
68407         * lib/findprog.c: Include filename.h instead of pathname.h.
68408         (find_in_path): Update.
68409         * lib/javacomp.c: Include filename.h instead of pathname.h.
68410         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68411         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68412         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68413         is_oldgcj_14_13_usable, is_javac_usable): Update.
68414         * lib/javaexec.c: Include filename.h instead of pathname.h.
68415         (execute_java_class): Update.
68416         * modules/findprog: Update.
68417         * modules/javacomp: Update.
68418         * modules/javaexec: Update.
68419         * MODULES.html.sh (File system functions): Add 'filename', remove
68420         'pathname'.
68421
68422 2007-02-25  Bruno Haible  <bruno@clisp.org>
68423
68424         * modules/printf-frexpl-tests: New file.
68425         * tests/test-printf-frexpl.c: New file.
68426
68427         * modules/printf-frexpl: New file.
68428         * lib/printf-frexpl.h: New file.
68429         * lib/printf-frexpl.c: New file.
68430         * m4/printf-frexpl.m4: New file.
68431
68432 2007-02-25  Bruno Haible  <bruno@clisp.org>
68433
68434         * modules/printf-frexp-tests: New file.
68435         * tests/test-printf-frexp.c: New file.
68436
68437         * modules/printf-frexp: New file.
68438         * lib/printf-frexp.h: New file.
68439         * lib/printf-frexp.c: New file.
68440         * m4/printf-frexp.m4: New file.
68441
68442 2007-02-25  Bruno Haible  <bruno@clisp.org>
68443
68444         Assume automake >= 1.10 for the tests.
68445         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68446         * modules/arctwo-tests: Likewise.
68447         * modules/argp-tests: Likewise.
68448         * modules/avltree-list-tests: Likewise.
68449         * modules/avltree-oset-tests: Likewise.
68450         * modules/avltreehash-list-tests: Likewise.
68451         * modules/carray-list-tests: Likewise.
68452         * modules/crc-tests: Likewise.
68453         * modules/des-tests: Likewise.
68454         * modules/gc-arcfour-tests: Likewise.
68455         * modules/gc-arctwo-tests: Likewise.
68456         * modules/gc-des-tests: Likewise.
68457         * modules/gc-hmac-md5-tests: Likewise.
68458         * modules/gc-hmac-sha1-tests: Likewise.
68459         * modules/gc-md2-tests: Likewise.
68460         * modules/gc-md4-tests: Likewise.
68461         * modules/gc-md5-tests: Likewise.
68462         * modules/gc-pbkdf2-sha1-tests: Likewise.
68463         * modules/gc-rijndael-tests: Likewise.
68464         * modules/gc-sha1-tests: Likewise.
68465         * modules/gc-tests: Likewise.
68466         * modules/getaddrinfo-tests: Likewise.
68467         * modules/hmac-md5-tests: Likewise.
68468         * modules/hmac-sha1-tests: Likewise.
68469         * modules/linked-list-tests: Likewise.
68470         * modules/linkedhash-list-tests: Likewise.
68471         * modules/lock-tests: Likewise.
68472         * modules/md2-tests: Likewise.
68473         * modules/md4-tests: Likewise.
68474         * modules/md5-tests: Likewise.
68475         * modules/rbtree-list-tests: Likewise.
68476         * modules/rbtree-oset-tests: Likewise.
68477         * modules/rbtreehash-list-tests: Likewise.
68478         * modules/read-file-tests: Likewise.
68479         * modules/rijndael-tests: Likewise.
68480         * modules/stdint-tests: Likewise.
68481         * modules/tls-tests: Likewise.
68482
68483 2007-02-24  Bruno Haible  <bruno@clisp.org>
68484
68485         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68486         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68487         function; instead check whether isnan with a double argument links.
68488         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68489         function; instead check whether isnan with a 'long double' argument
68490         links.
68491         Reported by Eric Blake <ebb9@byu.net>.
68492
68493 2007-02-24  Bruno Haible  <bruno@clisp.org>
68494
68495         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68496         defined.
68497         * lib/isnanl.c: Remove all code. Just include isnan.c.
68498         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68499
68500 2007-02-25  Jim Meyering  <jim@meyering.net>
68501
68502         Avoid conflicting types for 'unsetenv' on FreeBSD.
68503         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68504         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68505         in stdlib.h.
68506
68507 2007-02-24  Bruno Haible  <bruno@clisp.org>
68508
68509         * modules/isnanl-nolibm-tests: New file.
68510         * tests/test-isnanl.c: New file.
68511
68512         * modules/isnanl-nolibm: New file.
68513         * lib/isnanl.h: New file.
68514         * lib/isnanl.c: New file.
68515         * m4/isnanl.m4: New file.
68516
68517 2007-02-24  Bruno Haible  <bruno@clisp.org>
68518
68519         * modules/isnan-nolibm-tests: New file.
68520         * tests/test-isnan.c: New file.
68521
68522         * modules/isnan-nolibm: New file.
68523         * lib/isnan.h: New file.
68524         * lib/isnan.c: New file.
68525         * m4/isnan.m4: New file.
68526
68527 2007-02-24  Bruno Haible  <bruno@clisp.org>
68528
68529         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68530         assume that an exponent fits in 20 bits.
68531
68532 2007-02-24  Jim Meyering  <jim@meyering.net>
68533
68534         * m4/regex.m4: Update the description of the configure-time option,
68535         --without-included-regex, to state accurately what the defaults are,
68536         and perhaps to give people an idea why using this option is risky.
68537
68538 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68539
68540         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68541         loops on small arguments.  This attempts to avoid the problem
68542         Bruno Haible reported for AIX 4.3.2 in
68543         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68544
68545 2007-02-23  Bruno Haible  <bruno@clisp.org>
68546
68547         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68548         Needed for help2man.
68549
68550 2007-02-23  Karl Berry  <karl@gnu.org>
68551
68552         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68553         exists, foo.h should be cvs-ignored, not committed.
68554
68555 2007-02-23  Eric Blake  <ebb9@byu.net>
68556
68557         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68558         * lib/stat-time.h (includes): Likewise.
68559         * lib/utimecmp.c (includes): Likewise.
68560         * lib/utimens.h (includes): Likewise.
68561         * lib/getdate.y (includes): Also include "timespec.h" for use
68562         internal to the module.
68563         * modules/utimens (Depends-on): Revert yesterday's patch.
68564         * modules/nanosleep (Depends-on): Add missing dependency.
68565
68566 2007-02-22  Bruno Haible  <bruno@clisp.org>
68567
68568         * lib/glob.c: Don't include getlogin_r.h.
68569
68570 2007-02-22  Jim Meyering  <jim@meyering.net>
68571
68572         * modules/utimens (Depends-on): Add timespec, required for
68573         utimens.h's inclusion of timespec.h.
68574
68575 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68576
68577         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68578         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68579         Schwab in
68580         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68581         I'll try to think of a better way to fix the Solaris problem.
68582
68583         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68584         like glibc; on Solaris 10, it fails with errno == EINVAL.
68585         POSIX says the behavior is unspecified if the first argument is NULL,
68586         so play it safe and never pass NULL to the system getcwd.
68587
68588 2007-02-21  Jim Meyering  <jim@meyering.net>
68589
68590         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68591         of gettimeofday.  It would conflict with the one now always
68592         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68593         an IRIX 6.5 build failure.
68594
68595 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68596
68597         Minor fixups to port to Solaris 10 with Sun C 5.8.
68598         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68599         * modules/getcwd (Depends-on): Add dirfd.
68600         * lib/putenv.c (putenv): #undef it.
68601         (rpl_putenv): New decl.
68602         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68603
68604 2007-02-20  Bruno Haible  <bruno@clisp.org>
68605
68606         * modules/stdio-tests: New file.
68607         * tests/test-stdio.c: New file.
68608
68609         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68610         (Depends-on): Add stdio.
68611         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68612         (Include): Use <stdio.h> instead of vsnprintf.h.
68613         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68614         HAVE_DECL_VSNPRINTF.
68615         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68616
68617         * modules/snprintf (Files): Remove lib/snprintf.h.
68618         (Depends-on): Add stdio.
68619         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68620         (Include): Use <stdio.h> instead of snprintf.h.
68621         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68622         HAVE_DECL_SNPRINTF.
68623         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68624         * lib/getaddrinfo.c: Likewise.
68625
68626         * modules/stdio: New file.
68627         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68628         * lib/snprintf.h: Remove file.
68629         * lib/vsnprintf.h: Remove file.
68630         * lib/.cppi-disable: Remove snprintf.h.
68631         * m4/stdio_h.m4: New file.
68632         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68633
68634 2007-02-20  Jim Meyering  <jim@meyering.net>
68635
68636         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68637         used by e.g., mingw.  From Bruno Haible.
68638
68639 2007-02-19  Bruno Haible  <bruno@clisp.org>
68640
68641         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68642         warnings.
68643         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68644
68645 2007-02-19  Bruno Haible  <bruno@clisp.org>
68646
68647         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68648         from mingw users.
68649
68650 2007-02-19  Bruno Haible  <bruno@clisp.org>
68651
68652         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68653         warnings.
68654         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68655
68656 2007-02-19  Jim Meyering  <jim@meyering.net>
68657
68658         Don't use FD after a successful "fdopendir (fd)".
68659         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68660         Reset it by calling dirfd on the just-obtained DIR*.
68661
68662         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68663         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68664
68665 2007-02-18  Bruno Haible  <bruno@clisp.org>
68666
68667         * lib/readlink.c: Include <unistd.h>.
68668         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68669         HAVE_READLINK.
68670         * modules/readlink (Depends-on): Add unistd.
68671         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68672         (Include): Add <unistd.h>.
68673
68674         * lib/getlogin_r.h: Remove file.
68675         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68676         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68677         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68678         HAVE_DECL_GETLOGIN_R.
68679         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68680         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68681         (Include): Use <unistd.h> instead of getlogin_r.h.
68682
68683         * lib/getcwd.h: Remove file.
68684         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68685         * lib/xgetcwd.c: Likewise.
68686         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68687         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68688         * modules/getcwd (Files): Remove lib/getcwd.h.
68689         (Depends-on): Add unistd.
68690         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68691         (Include): Use <unistd.h> instad of getcwd.h.
68692
68693         * lib/ftruncate.c: Include <unistd.h> first.
68694         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68695         Set HAVE_FTRUNCATE.
68696         * modules/ftruncate (Depends-on): Add unistd.
68697         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68698
68699         * lib/fchdir.c: Include <unistd.h> first.
68700         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68701         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68702         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68703         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68704         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68705
68706         * lib/dup2.c: Include <unistd.h> first.
68707         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68708         HAVE_DUP2.
68709         * modules/dup2 (Depends-on): Add unistd.
68710         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68711
68712         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68713         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68714         REPLACE_CHOWN. Don't define chown as a macro here.
68715         * modules/chown (Depends-on): Add unistd.
68716         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68717
68718         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68719         Add definition for GL_LINK_WARNING.
68720         (chown, dup2): New declarations.
68721         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68722         link warning.
68723         (ftruncate): New declaration.
68724         (getcwd): New declaration, taken from old getcwd.h.
68725         (getlogin_r): New declaration, taken from old getlogin_r.h.
68726         (readlink): New declaration.
68727         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68728         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68729         (gl_PREREQ_UNISTD): Remove macro.
68730         (gl_UNISTD_MODULE_INDICATOR): New macro.
68731         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68732         many new variables. Don't set UNISTD_H.
68733         * modules/unistd (Description): Change.
68734         (Depends-on): Add link-warning.
68735         (configure.ac): Update.
68736         (Makefile.am): Create unistd.h always. Substitute many new variables
68737         into it.
68738
68739 2007-02-18  Bruno Haible  <bruno@clisp.org>
68740
68741         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68742         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68743         HAVE_GETSUBOPT.
68744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68745         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68746         * lib/getsubopt.h: Remove file.
68747         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68748         (Depends-on): Add stdlib.
68749         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68750         (Includes): Use <stdlib.h> instead of getsubopt.h.
68751         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68752         Set HAVE_GETSUBOPT.
68753         * lib/getsubopt.c: Don't include getsubopt.h.
68754
68755 2007-02-18  Bruno Haible  <bruno@clisp.org>
68756
68757         * modules/fchdir (Depends-on): Add dup2.
68758
68759 2007-02-18  Bruno Haible  <bruno@clisp.org>
68760
68761         * lib/stdlib_.h: Handle glibc's special invocation convention
68762         specially.
68763
68764 2007-02-18  Bruno Haible  <bruno@clisp.org>
68765
68766         * modules/stdlib-tests: New file.
68767         * tests/test-stdlib.c: New file.
68768
68769         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68770         (Depends-on): Add stdlib.
68771         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68772         (Includes): Use <stdlib.h> instead of mkstemp.h.
68773         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68774         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68775         * lib/mkstemp.c: Don't include mkstemp.h.
68776         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68777         * lib/stdlib--.h: Don't include mkstemp.h.
68778
68779         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68780         (Depends-on): Add stdlib.
68781         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68782         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68783         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68784         HAVE_MKDTEMP.
68785         * lib/mkdtemp.c: Don't include mkdtemp.h.
68786         * lib/clean-temp.c: Don't include mkdtemp.h.
68787
68788         * modules/exit (Files): Remove lib/exit.h.
68789         (Depends-on): Add stdlib.
68790         (Makefile.am): Remove lib_SOURCES.
68791         (Include): Use <stdlib.h> instead of exit.h.
68792         * lib/argmatch.c: Don't include exit.h.
68793         * lib/execute.c: Likewise.
68794         * lib/pagealign_alloc.c: Likewise.
68795         * lib/pipe.c: Likewise.
68796         * lib/wait-process.c: Likewise.
68797         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68798         * lib/exitfail.c: Likewise.
68799         * lib/savewd.c: Likewise.
68800         * lib/xsetenv.c: Likewise.
68801
68802         * modules/stdlib: New file.
68803         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68804         and extra comments about mkstemp().
68805         * lib/exit.h: Remove file.
68806         * lib/mkdtemp.h: Remove file.
68807         * lib/mkstemp.h: Remove file.
68808         * m4/stdlib_h.m4: New file.
68809         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68810
68811 2007-02-18  Bruno Haible  <bruno@clisp.org>
68812
68813         * modules/math-tests: New file.
68814         * tests/test-math.c: New file.
68815
68816         * modules/math: New file.
68817         * modules/mathl (Files): Remove lib/mathl.h.
68818         (Depends-on): Add math.
68819         (Makefile.am): Don't mention mathl.h.
68820         (Include): Use <math.h> instead of mathl.h.
68821         * lib/math_.h: New file.
68822         * lib/mathl.h: Remove file.
68823         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68824         mathl.h.
68825         * lib/asinl.c: Likewise.
68826         * lib/atanl.c: Likewise.
68827         * lib/ceill.c: Likewise.
68828         * lib/cosl.c: Likewise.
68829         * lib/expl.c: Likewise.
68830         * lib/floorl.c: Likewise.
68831         * lib/frexpl.c: Likewise.
68832         * lib/ldexpl.c: Likewise.
68833         * lib/logl.c: Likewise.
68834         * lib/sincosl.c: Likewise.
68835         * lib/sinl.c: Likewise.
68836         * lib/sqrtl.c: Likewise.
68837         * lib/tanl.c: Likewise.
68838         * lib/trigl.c: Likewise.
68839         * m4/math_h.m4: New file.
68840         * MODULES.html.sh (Mathematics): Add math.
68841
68842 2007-02-17  Bruno Haible  <bruno@clisp.org>
68843
68844         * modules/wctype-tests: New file.
68845         * tests/test-wctype.c: New file.
68846
68847         * modules/wchar-tests: New file.
68848         * tests/test-wchar.c: New file.
68849
68850         * modules/unistd-tests: New file.
68851         * tests/test-unistd.c: New file.
68852
68853         * modules/time-tests: New file.
68854         * tests/test-time.c: New file.
68855
68856         * modules/sysexits-tests: New file.
68857         * tests/test-sysexits.c: New file.
68858
68859         * modules/sys_time-tests: New file.
68860         * tests/test-sys_time.c: New file.
68861
68862         * modules/sys_stat-tests: New file.
68863         * tests/test-sys_stat.c: New file.
68864
68865         * modules/sys_socket-tests: New file.
68866         * tests/test-sys_socket.c: New file.
68867
68868         * modules/sys_select-tests: New file.
68869         * tests/test-sys_select.c: New file.
68870
68871         * modules/string-tests: New file.
68872         * tests/test-string.c: New file.
68873
68874         * modules/stdbool-tests: New file.
68875         * tests/test-stdbool.c: New file.
68876
68877         * modules/netinet_in-tests: New file.
68878         * tests/test-netinet_in.c: New file.
68879
68880         * modules/inttypes-tests: New file.
68881         * tests/test-inttypes.c: New file.
68882
68883         * modules/fcntl-tests: New file.
68884         * tests/test-fcntl.c: New file.
68885
68886         * modules/byteswap-tests: New file.
68887         * tests/test-byteswap.c: New file.
68888
68889         * modules/arpa_inet-tests: New file.
68890         * tests/test-arpa_inet.c: New file.
68891
68892 2007-02-17  Bruno Haible  <bruno@clisp.org>
68893
68894         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68895         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68896         if the corresponding module is not enabled. Emit link warnings if
68897         the function is used nevertheless.
68898         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68899         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68900         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68901         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68902         * modules/inttypes (Depends-on): Add link-warning.
68903         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68904         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68905         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68906         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68907         * modules/imaxdiv (configure.ac): Likewise.
68908         * modules/strtoimax (configure.ac): Likewise.
68909         * modules/strtoumax (configure.ac): Likewise.
68910
68911 2007-02-17  Bruno Haible  <bruno@clisp.org>
68912
68913         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68914         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68915         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68916         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68917
68918 2007-02-17  Bruno Haible  <bruno@clisp.org>
68919
68920         * modules/link-warning: New file.
68921         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68922         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68923         * modules/string (Depends-on): Add link-warning.
68924         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68925         string.h.
68926         * MODULES.html.sh (Support for building libraries and executables): Add
68927         link-warning.
68928
68929 2007-02-17  Bruno Haible  <bruno@clisp.org>
68930
68931         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68932         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68933         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68934         long lines.
68935
68936 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68937             Bruno Haible  <bruno@clisp.org>
68938
68939         * modules/tmpfile: New file.
68940         * lib/tmpfile.c: New file.
68941         * m4/tmpfile.m4: New file.
68942         * MODULES.html.sh (func_all_modules): New section "Input/output".
68943
68944 2007-02-15  Bruno Haible  <bruno@clisp.org>
68945
68946         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68947         (supports_delete_on_close): New function.
68948         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68949
68950 2007-02-14  Bruno Haible  <bruno@clisp.org>
68951
68952         * modules/mbspcasecmp-tests: New file.
68953         * tests/test-mbspcasecmp.sh: New file.
68954         * tests/test-mbspcasecmp.c: New file.
68955
68956         New module mbspcasecmp.
68957         * modules/mbspcasecmp: New file.
68958         * lib/mbspcasecmp.c: New file.
68959         * lib/string_.h (strncasecmp): Change warning message.
68960         (mbspcasecmp): New declaration.
68961         * m4/mbspcasecmp.m4: New file.
68962         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68963         GNULIB_MBSPCASECMP.
68964         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68965         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68966
68967 2007-02-14  Bruno Haible  <bruno@clisp.org>
68968
68969         * modules/mbsncasecmp-tests: New file.
68970         * tests/test-mbsncasecmp.sh: New file.
68971         * tests/test-mbsncasecmp.c: New file.
68972
68973         New module mbsncasecmp.
68974         * modules/mbsncasecmp: New file.
68975         * lib/mbsncasecmp.c: New file.
68976         * lib/string_.h (mbsncasecmp): New declaration.
68977         * m4/mbsncasecmp.m4: New file.
68978         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68979         GNULIB_MBSNCASECMP.
68980         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68981         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68982
68983 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68984
68985         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68986         Verify that it doesn't overlap with our flags.
68987         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68988         do not have the desired effect in multibyte locales; instead, use
68989         mbscasecmp.
68990         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68991         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68992         we don't require GNU fnmatch ourselves (if our users require it, they
68993         should do so explicitly).
68994
68995         Fix regex code so it doesn't rely on strcasecmp.
68996         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68997         Otherwise, include gnulib's langinfo.h.
68998         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68999         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69000         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69001         * modules/regex (FILES): Remove m4/codeset.m4.
69002         (Depends-on): Add localcharset.  Remove strcase.
69003
69004 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69005
69006         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69007         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69008
69009 2007-02-13  Bruno Haible  <bruno@clisp.org>
69010
69011         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69012         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69013
69014 2007-02-12  Bruno Haible  <bruno@clisp.org>
69015
69016         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69017         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69018         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69019         time warning rather than a link error.
69020
69021 2007-02-12  Bruno Haible  <bruno@clisp.org>
69022
69023         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69024         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69025         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69026
69027 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69028
69029         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69030         args, not 2.
69031
69032 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69033
69034         New module 'time', so that apps can include <time.h> as per
69035         POSIX and GNU instead of separate include files like time_r.h
69036         and timegm.h.  This implementation tries out a simpler approach
69037         for replacing decls in standard include files (as compared to
69038         the string module), somewhat as an experiment.
69039
69040         * config/srclist.txt: Comment out mktime.c for now.
69041         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69042         since it doesn't apply any more.  Use generic wording instead.
69043         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69044         'time'.
69045         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69046         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69047         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69048         Don't include <sys/types.h>; no longer needed since we assume C89.
69049         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69050         * lib/strftime.c: Likewise.
69051         * lib/time_r.c: Likewise.
69052         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69053         * lib/nanosleep.c: Include <time.h> first, to check interface.
69054         * lib/strptime.c: Likewise.
69055         * lib/time_r.c: Likewise.
69056         * lib/timegm.c: Likewise.
69057         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69058         needed.
69059         * lib/timegm.c: Don't include timegm.h; no longer needed.
69060         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69061         time.h now handles any problems in that area.
69062         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69063         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69064         that time.h defines struct timespec.
69065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69066         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69067         handles that.
69068         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69069         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69070         needed.  Set REPLACE_LOCALTIME.
69071         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69072         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69073         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69074         nanosleep; time_h.m4 now does that.  Don't require
69075         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69076         module handles this now.
69077         * modules/getdate (Depends-on): Remove timespec.  Add time.
69078         * modules/nanosleep (Depends-on): Likewise.
69079         * modules/stat-time (Depends-on): Likewise.
69080         * modules/nanosleep (Include): Include time.h, not timespec.h.
69081         * modules/strptime (Files): Remove lib/strptime.h.
69082         (Depends-on): Add extensions, time.
69083         (Include): Include time.h, not strptime.h.
69084         * modules/time_r (Files): Remove lib/time_r.h.
69085         (Depends-on): Add time.
69086         (Include): Include time.h, not time_r.h.
69087         * modules/timegm: Likewise.
69088         * modules/timespec (Description): Now does timespec-related decls
69089         of our own, instead of struct timespec itself.
69090         (Depends-on): Add time; remove extensions.
69091         (Maintainer): Add self.
69092         * modules/utimecmp (Depends-on): Add time; remove timespec.
69093         * modules/utimens (Depends-on): Likewise.
69094         * modules/xnanosleep (Depends-on): Likewise.
69095
69096 2007-02-11  Bruno Haible  <bruno@clisp.org>
69097
69098         * lib/c-strstr.c: Include allocsa.h.
69099         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69100         * lib/c-strcasestr.c: Include allocsa.h.
69101         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69102         * lib/strcasestr.c: Include allocsa.h.
69103         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69104         * lib/mbsstr.c: Include allocsa.h.
69105         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69106         allocsa/freesa instead of malloc/free.
69107         * lib/mbscasestr.c: Include allocsa.h.
69108         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69109         allocsa/freesa instead of malloc/free.
69110         * modules/c-strstr (Depends-on): Add allocsa.
69111         * modules/c-strcasestr (Depends-on): Likewise.
69112         * modules/strcasestr (Depends-on): Likewise.
69113         * modules/mbsstr (Depends-on): Likewise.
69114         * modules/mbscasestr (Depends-on): Likewise.
69115
69116 2007-02-11  Bruno Haible  <bruno@clisp.org>
69117
69118         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69119
69120         * modules/mbsspn-tests: New file.
69121         * tests/test-mbsspn.sh: New file.
69122         * tests/test-mbsspn.c: New file.
69123
69124 2007-02-11  Bruno Haible  <bruno@clisp.org>
69125
69126         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69127
69128         * modules/mbspbrk-tests: New file.
69129         * tests/test-mbspbrk.sh: New file.
69130         * tests/test-mbspbrk.c: New file.
69131
69132 2007-02-11  Bruno Haible  <bruno@clisp.org>
69133
69134         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69135         unneeded cast.
69136
69137         * modules/mbscspn-tests: New file.
69138         * tests/test-mbscspn.sh: New file.
69139         * tests/test-mbscspn.c: New file.
69140
69141 2007-02-11  Bruno Haible  <bruno@clisp.org>
69142
69143         * modules/mbscasecmp-tests: New file.
69144         * tests/test-mbscasecmp.sh: New file.
69145         * tests/test-mbscasecmp.c: New file.
69146
69147 2007-02-11  Bruno Haible  <bruno@clisp.org>
69148
69149         Ensure O(n) worst-case complexity of mbscasestr.
69150         * lib/mbscasestr.c: Include stdbool.h.
69151         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69152         functions.
69153         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69154         the bookkeeping indicates that it's worth it.
69155         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69156
69157         * modules/mbscasestr-tests: New file.
69158         * tests/test-mbscasestr1.c: New file.
69159         * tests/test-mbscasestr2.sh: New file.
69160         * tests/test-mbscasestr2.c: New file.
69161         * tests/test-mbscasestr3.sh: New file.
69162         * tests/test-mbscasestr3.c: New file.
69163         * tests/test-mbscasestr4.sh: New file.
69164         * tests/test-mbscasestr4.c: New file.
69165         * m4/locale-tr.m4: New file.
69166
69167 2007-02-11  Bruno Haible  <bruno@clisp.org>
69168
69169         Ensure O(n) worst-case complexity of mbsstr.
69170         * lib/mbsstr.c: Include stdbool.h.
69171         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69172         functions.
69173         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69174         bookkeeping indicates that it's worth it.
69175         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69176
69177         * modules/mbsstr-tests: New file.
69178         * tests/test-mbsstr1.c: New file.
69179         * tests/test-mbsstr2.sh: New file.
69180         * tests/test-mbsstr2.c: New file.
69181         * tests/test-mbsstr3.sh: New file.
69182         * tests/test-mbsstr3.c: New file.
69183         * m4/locale-fr.m4: New file.
69184
69185 2007-02-11  Bruno Haible  <bruno@clisp.org>
69186
69187         * lib/mbsrchr.c (mbsrchr): Fix bug.
69188
69189         * modules/mbsrchr-tests: New file.
69190         * tests/test-mbsrchr.sh: New file.
69191         * tests/test-mbsrchr.c: New file.
69192
69193 2007-02-11  Bruno Haible  <bruno@clisp.org>
69194
69195         * lib/mbschr.c (mbschr): Fix bug.
69196
69197         * modules/mbschr-tests: New file.
69198         * tests/test-mbschr.sh: New file.
69199         * tests/test-mbschr.c: New file.
69200         * m4/locale-zh.m4: New file.
69201
69202 2007-02-11  Bruno Haible  <bruno@clisp.org>
69203
69204         Support for copying multibyte string iterators.
69205         * lib/mbiter.h: Include <string.h>.
69206         (mbiter_multi_copy): New function.
69207         (mbi_copy): New macro.
69208         * lib/mbuiter.h: Include <string.h>.
69209         (mbuiter_multi_copy): New function.
69210         (mbui_copy): New macro.
69211
69212 2007-02-11  Bruno Haible  <bruno@clisp.org>
69213
69214         New module mbslen.
69215         * modules/mbslen: New file.
69216         * lib/mbslen.c: New file.
69217         * lib/string_.h (mbslen): New declaration.
69218         * m4/mbslen.m4: New file.
69219         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69220         GNULIB_MBSLEN.
69221         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69222         * MODULES.html.sh (Internationalization functions): Add mbslen.
69223
69224 2007-02-11  Bruno Haible  <bruno@clisp.org>
69225
69226         Ensure O(n) worst-case complexity of strcasestr substitute.
69227         * lib/strcasestr.c: Include stdbool.h.
69228         (knuth_morris_pratt): New function.
69229         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69230         bookkeeping indicates that it's worth it.
69231         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69232
69233         * modules/strcasestr-tests: New file.
69234         * tests/test-strcasestr.c: New file.
69235
69236 2007-02-11  Bruno Haible  <bruno@clisp.org>
69237
69238         Ensure O(n) worst-case complexity of c_strcasestr.
69239         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69240         (knuth_morris_pratt): New function.
69241         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69242         the bookkeeping indicates that it's worth it.
69243         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69244
69245         * modules/c-strcasestr-tests: New file.
69246         * tests/test-c-strcasestr.c: New file.
69247
69248 2007-02-11  Bruno Haible  <bruno@clisp.org>
69249
69250         Ensure O(n) worst-case complexity of c_strstr.
69251         * lib/c-strstr.c: Include stdbool.h, string.h.
69252         (knuth_morris_pratt): New function.
69253         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69254         bookkeeping indicates that it's worth it.
69255         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69256
69257         * lib/c-strstr.c: Complete rewrite for maintainability.
69258
69259         * modules/c-strstr-tests: New file.
69260         * tests/test-c-strstr.c: New file.
69261
69262 2007-02-11  Bruno Haible  <bruno@clisp.org>
69263
69264         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69265         5.2.1 and earlier, whereby \055 was treated just like the range
69266         delimiter '-'.
69267         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69268
69269 2007-02-08  Bruno Haible  <bruno@clisp.org>
69270
69271         * modules/regex (Depends-on): Add stdbool.
69272         Reported by Dalibor Topic <robilad@kaffe.org>.
69273
69274 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69275
69276         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69277         Prefer returning from main to exiting from it.
69278         Remove unnecessary parens after sizeof.
69279
69280 2007-02-05  Bruno Haible  <bruno@clisp.org>
69281
69282         New module mbssep.
69283         * modules/mbssep: New file.
69284         * lib/mbssep.c: New file.
69285         * lib/string_.h (strsep): Add a conditional link warning.
69286         (mbssep): New declaration.
69287         * m4/mbssep.m4: New file.
69288         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69289         GNULIB_MBSSEP.
69290         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69291         * MODULES.html.sh (Internationalization functions): Add mbssep.
69292
69293 2007-02-05  Bruno Haible  <bruno@clisp.org>
69294
69295         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69296         Optimize search in case of 1 delimiter.
69297
69298 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69299
69300         * lib/acl.h: Include sys/types.h before sys/acl.h.
69301
69302 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69303
69304         Merge upstream fix for glibc bugzilla #3957:
69305
69306         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69307
69308         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69309         bit for RE_HAT_LISTS_NOT_NEWLINE.
69310         (build_charclass_op): Remove bogus comment.
69311
69312 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69313
69314         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69315
69316 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69317
69318         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69319         * lib/memmem.c [!defined _LIBC]: Include config.h.
69320
69321 2007-02-04  Bruno Haible  <bruno@clisp.org>
69322
69323         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69324         warning message.
69325
69326 2007-02-04  Bruno Haible  <bruno@clisp.org>
69327
69328         New module mbstok_r.
69329         * modules/mbstok_r: New file.
69330         * lib/mbstok_r.c: New file.
69331         * lib/string_.h (strtok_r): Change argument names to match the
69332         comments. Add a conditional link warning.
69333         (mbstok_r): New declaration.
69334         * m4/mbstok_r.m4: New file.
69335         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69336         GNULIB_MBSTOK_R.
69337         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69338         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69339
69340 2007-02-04  Bruno Haible  <bruno@clisp.org>
69341
69342         New module mbsspn.
69343         * modules/mbsspn: New file.
69344         * lib/mbsspn.c: New file.
69345         * lib/string_.h (strspn): Add a conditional link warning.
69346         (mbsspn): New declaration.
69347         * m4/mbsspn.m4: New file.
69348         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69349         GNULIB_MBSSPN.
69350         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69351         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69352
69353 2007-02-04  Bruno Haible  <bruno@clisp.org>
69354
69355         New module mbspbrk.
69356         * modules/mbspbrk: New file.
69357         * lib/mbspbrk.c: New file.
69358         * lib/string_.h (strpbrk): Add a conditional link warning.
69359         (mbspbrk): New declaration.
69360         * m4/mbspbrk.m4: New file.
69361         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69362         GNULIB_MBSPBRK.
69363         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69364         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69365
69366 2007-02-04  Bruno Haible  <bruno@clisp.org>
69367
69368         New module mbscspn.
69369         * modules/mbscspn: New file.
69370         * lib/mbscspn.c: New file.
69371         * lib/string_.h (strcspn): Add a conditional link warning.
69372         (mbscspn): New declaration.
69373         * m4/mbscspn.m4: New file.
69374         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69375         GNULIB_MBSCSPN.
69376         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69377         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69378
69379 2007-02-04  Bruno Haible  <bruno@clisp.org>
69380
69381         New module mbscasestr, reduced goal of strcasestr.
69382         * modules/mbscasestr: New file.
69383         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69384         (mbscasestr): Renamed from strcasestr.
69385         * lib/strcasestr.c: Don't include mbuiter.h.
69386         (strcasestr): Remove support for multibyte locales.
69387         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69388         Change the conditional link warning.
69389         (mbscasestr): New declaration.
69390         * m4/mbscasestr.m4: New file.
69391         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69392         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69393         REPLACE_STRCASESTR.
69394         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69396         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69397         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69398         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69399         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69400         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69401         (Depends-on): Remove mbuiter.
69402         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69403
69404 2007-02-04  Bruno Haible  <bruno@clisp.org>
69405
69406         Simplify handling of strncasecmp.
69407         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69408         the conditional link warning.
69409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69410         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69411         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69412         * modules/strcase (configure.ac): Don't invoke
69413         gl_STRING_MODULE_INDICATOR.
69414         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69415
69416 2007-02-04  Bruno Haible  <bruno@clisp.org>
69417
69418         New module mbscasecmp, reduced goal of strcasecmp.
69419         * modules/mbscasecmp: New file.
69420         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69421         (mbscasecmp): Renamed from strcasecmp.
69422         * lib/strcasecmp.c: Don't include mbuiter.h.
69423         (strcasecmp): Remove support for multibyte locales.
69424         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69425         Change the conditional link warning.
69426         (mbscasecmp): New declaration.
69427         * m4/mbscasecmp.m4: New file.
69428         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69429         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69430         REPLACE_STRCASECMP.
69431         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69432         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69433         GNULIB_MBSCASECMP.
69434         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69435         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69436         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69437         (Depends-on): Remove mbuiter.
69438         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69439
69440 2007-02-04  Bruno Haible  <bruno@clisp.org>
69441
69442         New module mbsstr. Remove module strstr.
69443         * modules/mbsstr: New file.
69444         * modules/strstr: Remove file.
69445         * lib/mbsstr.c: Renamed from lib/strstr.c.
69446         (mbsstr): Renamed from strstr.
69447         * lib/string_.h (strstr): Remove declaration. Change the conditional
69448         link warning.
69449         (mbsstr): New declaration.
69450         * m4/mbsstr.m4: New file.
69451         * m4/strstr.m4: Remove file.
69452         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69453         REPLACE_STRSTR.
69454         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69455         Don't initialize GNULIB_STRSTR.
69456         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69457         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69458         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69459         (Support for systems lacking ANSI C 89): Remove strstr.
69460
69461 2007-02-04  Bruno Haible  <bruno@clisp.org>
69462
69463         New module mbsrchr.
69464         * modules/mbsrchr: New file.
69465         * lib/mbsrchr.c: New file.
69466         * lib/string_.h (strrchr): Add a conditional link warning.
69467         (mbsrchr): New declaration.
69468         * m4/mbsrchr.m4: New file.
69469         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69470         GNULIB_MBSRCHR.
69471         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69472         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69473
69474 2007-02-04  Bruno Haible  <bruno@clisp.org>
69475
69476         New module mbschr.
69477         * modules/mbschr: New file.
69478         * lib/mbschr.c: New file.
69479         * lib/string_.h (strchr): Add a conditional link warning.
69480         (mbschr): New declaration.
69481         * m4/mbschr.m4: New file.
69482         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69483         GNULIB_MBSCHR.
69484         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69485         * MODULES.html.sh (Internationalization functions): Add mbschr.
69486
69487 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69488
69489         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69490
69491         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69492
69493 2007-02-04  Bruno Haible  <bruno@clisp.org>
69494
69495         New module description section 'configure.ac-early'.
69496         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69497         (func_get_autoconf_early_snippet): New function.
69498         (func_import, func_create_testdir): Use it. Remove special cases for
69499         modules 'extensions' and 'lock'.
69500         * modules/extensions (configure.ac-early): Require
69501         gl_USE_SYSTEM_EXTENSIONS.
69502         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69503
69504 2007-02-04  Bruno Haible  <bruno@clisp.org>
69505
69506         Make use of gcj-4.3's -fsource and -ftarget option.
69507         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69508         and if so try the options -fsource and -ftarget.
69509         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69510         source_version, ftarget_option, target_version arguments.
69511         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69512         (is_envjavac_oldgcj_14_14_usable): Renamed from
69513         is_envjavac_gcj_14_14_usable.
69514         (is_envjavac_oldgcj_14_13_usable): Renamed from
69515         is_envjavac_gcj_14_13_usable.
69516         (is_gcj_present): Update.
69517         (is_gcj_43, is_gcj43_usable): New functions.
69518         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69519         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69520         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69521         try the options -fsource and -ftarget.
69522
69523 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69524
69525         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69526         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69527         larger value.
69528
69529 2007-02-03  Jim Meyering  <jim@meyering.net>
69530
69531         Give tools a better chance to allocate space for very large buffers.
69532         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69533
69534         Make pwd and readlink work also when run with an unreadable parent dir
69535         on systems with openat support.
69536         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69537         provided getcwd function, even when we have openat support.
69538         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69539
69540 2007-02-02  Bruno Haible  <bruno@clisp.org>
69541
69542         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69543         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69544         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69545         portability problems if one of these functions is only used on specific
69546         platforms.
69547         Reported by Paul Eggert.
69548
69549 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69550
69551         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69552         is causing more trouble than it's curing.
69553         * lib/regex_internal.h (__mempcpy): Remove.
69554         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69555         (and make the code a tad smaller to boot).
69556         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69557
69558 2007-02-02  Jim Meyering  <jim@meyering.net>
69559
69560         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69561         section, not in the Makefile.am: one.
69562
69563 2007-02-02  Eric Blake  <ebb9@byu.net>
69564
69565         * lib/strchrnul.c: Always include config.h first.
69566
69567         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69568         gnulib strstr is not necessary here.
69569
69570 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69571
69572         * m4/socklen.m4: Fix typo.
69573
69574 2007-02-02  Eric Blake  <ebb9@byu.net>
69575
69576         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69577         * modules/netinet_in (Makefile.am): Likewise.
69578
69579 2007-02-01  Bruno Haible  <bruno@clisp.org>
69580
69581         * lib/string_.h (GL_LINK_WARNING): New macro.
69582         (strcasecmp, strstr, strcasestr): If provided by the system,
69583         conditionally define as a macro that leads to a warning instead of to
69584         an error.
69585         (strncasecmp): Conditionally define as a macro that leads to a warning.
69586
69587 2007-02-01  Karl Berry  <karl@gnu.org>
69588
69589         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69590
69591 2007-02-01  Bruno Haible  <bruno@clisp.org>
69592
69593         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69594         renamings.
69595
69596 2007-02-01  Eric Blake  <ebb9@byu.net>
69597
69598         * modules/regex (Depends-on): Revert dependence on mempcpy.
69599         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69600         module's definition of mempcpy.
69601         Reported by Paul Eggert.
69602
69603 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69604
69605         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69606         the symbol XYZ before redefining it.  This fixes a problem with
69607         programs that don't use XYZ, when compiled on systems that define
69608         XYZ to something else.
69609
69610 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69611
69612         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69613         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69614         writeable to group or other and (2) is intended to have a special
69615         mode bit that is set or cleared.  In such a case, the directory
69616         should be neither group- nor other-writeable until the special
69617         mode bits are right.
69618
69619 2007-01-31  Eric Blake  <ebb9@byu.net>
69620
69621         * modules/mountlist (Depends-on): Add strstr.
69622
69623         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69624         bug.
69625         * modules/string (Makefile.am): Remove redundant replacement.
69626         * modules/regex (Depends-on): Add mempcpy.
69627
69628 2007-01-31  Bruno Haible  <bruno@clisp.org>
69629
69630         New module description field 'Link'.
69631         * gnulib-tool (func_usage): Document --extract-link-directive.
69632         (sed_extract_prog): Recognize 'Link' directive.
69633         (func_get_link_directive): New function.
69634         (func_import): Show summary of link directives.
69635         Handle --extract-link-directive option.
69636         * modules/acl (Link): New section.
69637         * modules/clock-time (Link): New section.
69638         * modules/euidaccess (Link): New section.
69639         * modules/gettext (Link): New section.
69640         * modules/iconv (Link): New section.
69641         * modules/lock (Link): New section.
69642         * modules/nanosleep (Link): New section.
69643         * modules/readline (Link): New section.
69644
69645 2007-01-27  Bruno Haible  <bruno@clisp.org>
69646
69647         Enforce the use of gnulib modules for unportable <string.h> functions.
69648         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69649         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69650         (gl_HEADER_STRING_H_BODY): Require it.
69651         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69652         the symbol XYZ to one that gives a link error.
69653         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69654         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69655         * modules/mempcpy (configure.ac): Likewise.
69656         * modules/memrchr (configure.ac): Likewise.
69657         * modules/stpcpy (configure.ac): Likewise.
69658         * modules/stpncpy (configure.ac): Likewise.
69659         * modules/strcase (configure.ac): Likewise.
69660         * modules/strcasestr (configure.ac): Likewise.
69661         * modules/strchrnul (configure.ac): Likewise.
69662         * modules/strdup (configure.ac): Likewise.
69663         * modules/strndup (configure.ac): Likewise.
69664         * modules/strnlen (configure.ac): Likewise.
69665         * modules/strpbrk (configure.ac): Likewise.
69666         * modules/strsep (configure.ac): Likewise.
69667         * modules/strstr (configure.ac): Likewise.
69668         * modules/strtok_r (configure.ac): Likewise.
69669
69670 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69671
69672         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69673
69674 2007-01-30  Jim Meyering  <jim@meyering.net>
69675
69676         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69677
69678 2007-01-29  Bruno Haible  <bruno@clisp.org>
69679
69680         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69681         * lib/execute.c: Likewise.
69682         * lib/pipe.c: Likewise.
69683         * lib/printf-args.h: Likewise.
69684         * lib/printf-args.c: Likewise.
69685         * lib/printf-parse.c: Likewise.
69686         * lib/vasnprintf.c: Likewise.
69687
69688 2007-01-29  Eric Blake  <ebb9@byu.net>
69689
69690         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69691         declaration.
69692
69693 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69694
69695         * lib/strptime.h (strptime): Use 'restrict' for args where
69696         POSIX requires this.
69697         * lib/strptime.c (strptime): Likewise.
69698         Change license notice from LGPL to GPL, since gnulib-tool will
69699         change this as needed.
69700         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69701         defined.
69702         Include "strptime.h" first, to check interface.
69703         Do not #undef _LIBC and _NL_CURRENT.
69704         Do not include <stdlib.h>; no longer needed.
69705         Include "time_r.h" and declare ptime_locale_status
69706         only if _LIBC is not defined.
69707         (__P): Remove unused macro.
69708         (match_string): Bring back glibc version, but use it only if _LIBC
69709         is defined.
69710         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69711         Remove unnecessary assertion and abort() call.
69712         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69713         * m4/strptime.m4: Fix serial number comment.
69714         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69715         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69716         (Depends-on): Add time_r.
69717
69718 2007-01-29  Bruno Haible  <bruno@clisp.org>
69719
69720         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69721         strptime.
69722         * modules/strptime (Depends-on): Add stdbool.
69723         * lib/strptime.h: Include <time.h> always. Add comments.
69724
69725 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69726
69727         * modules/strptime: New file.
69728         * lib/strptime.h: New file.
69729         * lib/strptime.c: New file.
69730         * m4/strptime.m4: New file.
69731
69732 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69733
69734         * MODULES.html.sh: New module mpsort.
69735         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69736
69737         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69738         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69739         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69740         All uses changed.
69741         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69742         All uses changed.
69743         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69744         to _Restrict_.
69745         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69746         the parameter matches the prototype.
69747
69748 2007-01-28  Jim Meyering  <jim@meyering.net>
69749
69750         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69751         sys/time.h here, reverting that part of the previous patch:
69752         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69753
69754 2007-01-28  Bruno Haible  <bruno@clisp.org>
69755
69756         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69757         value of $(SYS_TIME_H).
69758         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69759         remove it conditionally, too. [added by Jim Meyering]
69760         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69761         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69762         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69763         GETTIMEOFDAY_REPLACEMENT to 1.
69764
69765 2007-01-28  Bruno Haible  <bruno@clisp.org>
69766
69767         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69768         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69769         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69770         Set UNISTD_H instead of UNISTD_H2.
69771         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69772
69773 2007-01-28  Bruno Haible  <bruno@clisp.org>
69774
69775         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69776         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69777
69778 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69779
69780         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69781         (func_create_testdir): Ensure C locale for `grep' and `tr'
69782         character ranges.
69783         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69784         ACLOCAL_AMFLAGS parsing state machine.
69785
69786 2007-01-27  Bruno Haible  <bruno@clisp.org>
69787
69788         * modules/unistr/base: Update.
69789
69790 2007-01-27  Bruno Haible  <bruno@clisp.org>
69791
69792         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69793         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69794         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69795         modules/unistr/u32-mbtouc.
69796         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69797         * lib/unistr.h: Update.
69798         * lib/linebreak.c: Update.
69799         * modules/unistr/u32-mbtouc: Renamed from
69800         modules/unistr/u32-mbtouc-safe.
69801         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69802         * lib/unistr.h: Update.
69803         * lib/unistr/u32-to-u8.c: Update.
69804         * lib/unistr/u32-to-u16.c: Update.
69805
69806 2007-01-27  Bruno Haible  <bruno@clisp.org>
69807
69808         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69809         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69810         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69811         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69812         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69813         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69814         modules/unistr/u16-mbtouc.
69815         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69816         * lib/unistr.h: Update.
69817         * lib/linebreak.c: Update.
69818         * modules/linebreak: Update.
69819         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69820         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69821         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69822         * modules/unistr/u16-mbtouc: Renamed from
69823         modules/unistr/u16-mbtouc-safe.
69824         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69825         * lib/unistr.h: Update.
69826         * lib/unistr/u16-to-u8.c: Update.
69827         * modules/unistr/u16-to-u8: Update.
69828         * lib/unistr/u16-to-u32.c: Update.
69829         * modules/unistr/u16-to-u32: Update.
69830
69831 2007-01-27  Bruno Haible  <bruno@clisp.org>
69832
69833         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69834         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69835         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69836         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69837         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69838         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69839         modules/unistr/u8-mbtouc.
69840         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69841         * lib/unistr.h: Update.
69842         * lib/striconveh.c: Update.
69843         * modules/striconveh: Update.
69844         * lib/linebreak.c: Update.
69845         * modules/linebreak: Update.
69846         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69847         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69848         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69849         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69850         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69851         * lib/unistr.h: Update.
69852         * lib/striconveh.c: Update.
69853         * modules/striconveh: Update.
69854         * lib/unistr/u8-to-u16.c: Update.
69855         * modules/unistr/u8-to-u16: Update.
69856         * lib/unistr/u8-to-u32.c: Update.
69857         * modules/unistr/u8-to-u32: Update.
69858
69859 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69860
69861         Sync from Libtool.
69862         * lib/argz.c: Do not include strings.h nor memory.h, include
69863         string.h unconditionally.  Patch by Simon Josefsson.
69864
69865 2007-01-27  Bruno Haible  <bruno@clisp.org>
69866
69867         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69868         from gl_HEADER_STRING_H_BODY.
69869         (gl_HEADER_STRING_H_BODY): Require it.
69870         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69871         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69872         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69873         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69874         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69875         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69876         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69877         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69878         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69879         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69880         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69881         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69882         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69883         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69884         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69885
69886 2007-01-27  Bruno Haible  <bruno@clisp.org>
69887
69888         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69889         check_PROGRAMS into noinst_PROGRAMS.
69890         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69891         check_PROGRAMS in this case.
69892         (func_import): Set for_test to false.
69893         (func_create_testdir): Set for_test to true.
69894
69895 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69896             Bruno Haible  <bruno@clisp.org>
69897
69898         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69899         (Depends-on): Add string.
69900         (Includes): Use <string.h> instead of strcasestr.h.
69901         * modules/string (Makefile.am): Also substitute the value of
69902         REPLACE_STRCASESTR.
69903         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69904         assume strcasestr is declared in <string.h> not <strings.h>. Also
69905         set REPLACE_STRCASESTR.
69906         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69907         REPLACE_STRCASESTR.
69908         * lib/strcasestr.h: Remove file.
69909         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69910         * lib/string_.h (strcasestr): New declaration.
69911
69912 2007-01-27  Bruno Haible  <bruno@clisp.org>
69913
69914         * lib/string_.h: Use 'extern'.
69915
69916 2007-01-27  Jim Meyering  <jim@meyering.net>
69917
69918         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69919         of set-but-not-used local, "q".
69920
69921         * lib/mempcpy.c: Include <config.h> before <string.h>.
69922         This fixes a compilation error on HP-UX, due to the system's
69923         "restrict"-using mempcpy prototype.
69924
69925 2007-01-26  Bruno Haible  <bruno@clisp.org>
69926
69927         Small optimization.
69928         * lib/javacomp.c: Include c-strstr.h.
69929          (is_envjavac_gcj): Use c_strstr instead of strstr.
69930         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69931
69932 2007-01-26  Bruno Haible  <bruno@clisp.org>
69933
69934         * MODULES.html.sh (Unicode string functions): Add the new modules.
69935
69936         * modules/uniconv/u32-strconv-to-locale: New file.
69937         * lib/uniconv/u32-strconv-to-locale.c: New file.
69938
69939         * modules/uniconv/u16-strconv-to-locale: New file.
69940         * lib/uniconv/u16-strconv-to-locale.c: New file.
69941
69942         * modules/uniconv/u8-strconv-to-locale: New file.
69943         * lib/uniconv/u8-strconv-to-locale.c: New file.
69944
69945         * modules/uniconv/u32-strconv-from-locale: New file.
69946         * lib/uniconv/u32-strconv-from-locale.c: New file.
69947
69948         * modules/uniconv/u16-strconv-from-locale: New file.
69949         * lib/uniconv/u16-strconv-from-locale.c: New file.
69950
69951         * modules/uniconv/u8-strconv-from-locale: New file.
69952         * lib/uniconv/u8-strconv-from-locale.c: New file.
69953
69954         * modules/uniconv/u32-strconv-to-enc: New file.
69955         * lib/uniconv/u32-strconv-to-enc.c: New file.
69956         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69957         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69958
69959         * modules/uniconv/u16-strconv-to-enc: New file.
69960         * lib/uniconv/u16-strconv-to-enc.c: New file.
69961         * lib/uniconv/u-strconv-to-enc.h: New file.
69962         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69963         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69964
69965         * modules/uniconv/u8-strconv-to-enc: New file.
69966         * lib/uniconv/u8-strconv-to-enc.c: New file.
69967         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69968         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69969
69970         * modules/uniconv/u32-strconv-from-enc: New file.
69971         * lib/uniconv/u32-strconv-from-enc.c: New file.
69972         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69973         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69974
69975         * modules/uniconv/u16-strconv-from-enc: New file.
69976         * lib/uniconv/u16-strconv-from-enc.c: New file.
69977         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69978         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69979
69980         * modules/uniconv/u8-strconv-from-enc: New file.
69981         * lib/uniconv/u8-strconv-from-enc.c: New file.
69982         * lib/uniconv/u-strconv-from-enc.h: New file.
69983         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69984         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69985
69986         * modules/uniconv/u32-conv-from-enc: New file.
69987         * lib/uniconv/u32-conv-from-enc.c: New file.
69988         * modules/uniconv/u32-conv-from-enc-tests: New file.
69989         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69990
69991         * modules/uniconv/u16-conv-from-enc: New file.
69992         * lib/uniconv/u16-conv-from-enc.c: New file.
69993         * lib/uniconv/u-conv-from-enc.h: New file.
69994         * modules/uniconv/u16-conv-from-enc-tests: New file.
69995         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69996
69997         * modules/uniconv/u8-conv-from-enc: New file.
69998         * lib/uniconv/u8-conv-from-enc.c: New file.
69999         * modules/uniconv/u8-conv-from-enc-tests: New file.
70000         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70001
70002         * modules/uniconv/base: New file.
70003         * lib/uniconv.h: New file.
70004
70005 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70006
70007         * doc/gnulib-tool.texi (Initial import): Update to match current
70008         behavior with strdup module.
70009         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70010         * lib/memmem.h: Remove; all uses removed.  This is now done
70011         by <string.h>.
70012         * lib/mempcpy.h: Likewise.
70013         * lib/memrchr.h: Likewise.
70014         * lib/stpcpy.h: Likewise.
70015         * lib/stpncpy.h: Likewise.
70016         * lib/strcase.h: Likewise.
70017         * lib/strchrnul.h: Likewise.
70018         * lib/strdup.h: Likewise.
70019         * lib/strndup.h: Likewise.
70020         * lib/strnlen.h: Likewise.
70021         * lib/strpbrk.h: Likewise.
70022         * lib/strsep.h: Likewise.
70023         * lib/strstr.h: Likewise.
70024         * lib/strtok_r.h: Likewise.
70025         * lib/string_.h: New file.
70026         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70027         Rely on <string.h> instead.
70028         * lib/canon-host.c: Likewise.
70029         * lib/chdir-long.c: Likewise.
70030         * lib/concatpath.c: Likewise.
70031         * lib/exclude.c: Likewise.
70032         * lib/fchdir.c: Likewise.
70033         * lib/getaddrinfo.c: Likewise.
70034         * lib/getcwd.c: Likewise.
70035         * lib/getsubopt.c: Likewise.
70036         * lib/glob.c: Likewise.
70037         * lib/hard-locale.c: Likewise.
70038         * lib/iconvme.c: Likewise.
70039         * lib/javacomp.c: Likewise.
70040         * lib/mempcpy.c: Likewise.
70041         * lib/memrchr.c: Likewise.
70042         * lib/regex_internal.h: Likewise.
70043         * lib/stpncpy.c: Likewise.
70044         * lib/strcasecmp.c: Likewise.
70045         * lib/strchrnul.c: Likewise.
70046         * lib/strdup.c: Likewise.
70047         * lib/striconv.c: Likewise.
70048         * lib/striconveh.c: Likewise.
70049         * lib/striconveha.c: Likewise.
70050         * lib/strncasecmp.c: Likewise.
70051         * lib/strndup.c: Likewise.
70052         * lib/strnlen.c: Likewise.
70053         * lib/strsep.c: Likewise.
70054         * lib/strstr.c: Likewise.
70055         * lib/strtok_r.c: Likewise.
70056         * lib/userspec.c: Likewise.
70057         * lib/w32spawn.h: Likewise.
70058         * lib/xstrndup.c: Likewise.
70059         * lib/mountlist.c (strstr): Remove decl.
70060         * m4/string_h.m4: New file.
70061         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70062         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70063         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70064         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70065         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70066         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70067         Set REPLACE_STRCASECMP if necessary.
70068         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70069         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70070         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70071         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70072         HAVE_DECL_STRDUP if necessary.
70073         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70074         since gl_FUNC_STRNDUP does that now.
70075         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70076         Check for decl here...
70077         (gl_PREREQ_STRNLEN): ... not here.
70078         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70079         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70080         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70081         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70082         necessary.
70083         * modules/string: New file.
70084         * modules/memmem (Files): Remove special-purpose include file.
70085         (Depends-on): Add string.
70086         (Include): Include <string.h>, not the removed file.
70087         * modules/mempcpy: Likewise.
70088         * modules/memrchr: Likewise.
70089         * modules/stpcpy: Likewise.
70090         * modules/stpncpy: Likewise.
70091         * modules/strcase: Likewise.
70092         * modules/strchrnul: Likewise.
70093         * modules/strdup: Likewise.
70094         * modules/strndup: Likewise.
70095         * modules/strnlen: Likewise.
70096         * modules/strpbrk: Likewise.
70097         * modules/strsep: Likewise.
70098         * modules/strstr: Likewise.
70099         * modules/strtok_r: Likewise.
70100         * tests/test-dirname.c: Don't include "strdup.h", since
70101         <string.h> now suffices.
70102         * tests/test-memmem.c: Don't include "memmem.h", since
70103         <string.h> now suffices.
70104
70105 2007-01-25  Bruno Haible  <bruno@clisp.org>
70106
70107         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70108         *resultp is 0.
70109
70110         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70111         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70112         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70113         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70114
70115         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70116         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70117         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70118         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70119         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70120         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70121
70122 2007-01-24  Bruno Haible  <bruno@clisp.org>
70123
70124         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70125         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70126         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70127         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70128         gl_FUNC_FTS_CORE.
70129         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70130         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70131         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70132         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70133         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70134         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70135         gl_FUNC_FCHOWNAT.
70136         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70137         gl_FUNC_STRFTIME.
70138         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70139         Reported by Ralf Wildenhues.
70140
70141 2007-01-24  Bruno Haible  <bruno@clisp.org>
70142
70143         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70144         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70145         gl_GETADDRINFO.
70146         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70147         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70148         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70149
70150 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70151
70152         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70153         Don't use 'exit'; just return from 'main'.
70154         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70155
70156         * lib/fnmatch_.h: Readjust white space and comments to match
70157         glibc, to avoid spurious diffs.
70158
70159 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70160
70161         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70162         2004-12-01 change by Jakub Jelinek, since this code won't compile
70163         if !LIBC.  Problem reported by Bob Proulx.
70164
70165 2007-01-23  Bruno Haible  <bruno@clisp.org>
70166
70167         * lib/striconveh.c: Include c-strcaseeq.h.
70168         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70169         * modules/striconveh (Depends-on): Add c-strcaseeq.
70170
70171 2007-01-23  Bruno Haible  <bruno@clisp.org>
70172
70173         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70174
70175         * modules/c-strcaseeq: New file.
70176         * lib/c-strcaseeq.h: New file.
70177
70178         * modules/streq: New file.
70179         * lib/streq.h: New file.
70180
70181 2007-01-23  Bruno Haible  <bruno@clisp.org>
70182
70183         * modules/striconveha-tests: New file.
70184         * tests/test-striconveha.c: New file.
70185
70186         * lib/striconveha.h: Include <stdbool.h>.
70187         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70188         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70189         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70190         (mem_iconveha): New function.
70191         (str_iconveha_notranslit): Renamed from str_iconveha.
70192         (str_iconveha): New function.
70193         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70194         c-strcase.
70195
70196 2007-01-23  Bruno Haible  <bruno@clisp.org>
70197
70198         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70199         encodings without forgiving before trying any encoding with handler.
70200         (str_iconveha): Try all encodings without forgiving before trying any
70201         encoding with handler.
70202
70203 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70204
70205         Import the following changes from libc.
70206
70207         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70208
70209         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70210
70211         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70212
70213         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70214         normal_bracket label.
70215
70216         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70217
70218         [BZ #361]
70219         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70220         to normal_bracket after fetching the next character.
70221
70222 2007-01-22  Bruno Haible  <bruno@clisp.org>
70223
70224         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70225         argument.
70226         * lib/striconveh.c (iconv_carefully_1): New function.
70227         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70228         argument.
70229         (str_cd_iconveh): Update.
70230         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70231         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70232         * tests/test-striconveh.c (MAGIC): New macro.
70233         (new_offsets): New function.
70234         (main): Test call with and without offsets.
70235
70236 2007-01-22  Bruno Haible  <bruno@clisp.org>
70237
70238         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70239         * modules/sys_select (Makefile.am): Likewise.
70240         * modules/sys_socket (Makefile.am): Likewise.
70241         * modules/sys_time (Makefile.am): Likewise.
70242
70243 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70244
70245         * modules/gettimeofday (License): Change from GPL to LGPL, since
70246         gettimeofday is a library function.
70247
70248 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70249
70250         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70251
70252 2007-01-21  Bruno Haible  <bruno@clisp.org>
70253
70254         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70255
70256 2007-01-21  Bruno Haible  <bruno@clisp.org>
70257
70258         * modules/striconveha: New file.
70259         * lib/striconveha.h: New file.
70260         * lib/striconveha.c: New file.
70261         * MODULES.html.sh (Internationalization functions): Add striconveha.
70262         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70263         string.
70264         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70265
70266 2007-01-21  Bruno Haible  <bruno@clisp.org>
70267
70268         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70269         * lib/striconveh.c (str_iconveh): Likewise.
70270
70271 2007-01-21  Bruno Haible  <bruno@clisp.org>
70272
70273         * lib/striconveh.h (mem_iconveh): New declaration.
70274         * lib/striconveh.c (mem_iconveh): New function.
70275         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70276
70277 2007-01-21  Bruno Haible  <bruno@clisp.org>
70278
70279         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70280
70281         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70282         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70283         original result buffer.
70284         (str_cd_iconveh): Update.
70285         * tests/test-striconveh.c (main): Update.
70286
70287         * lib/striconv.h (mem_cd_iconv): Change specification.
70288         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70289         result buffer.
70290         (str_cd_iconv): Update.
70291         * tests/test-striconv.c (main): Update.
70292
70293 2007-01-21  Bruno Haible  <bruno@clisp.org>
70294
70295         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70296
70297 2007-01-20  Jim Meyering  <jim@meyering.net>
70298
70299         * lib/userspec.c (parse_with_separator): If a user or group string
70300         starts with "+", skip the corresponding name-to-ID look-up, since
70301         such a look-up must fail: user and group names may not include "+".
70302
70303 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70304
70305         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70306         since we now assume the sys_time module.
70307         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70308         check for sys/time.h; no longer needed.
70309         * modules/poll (Depends-on): Depend on sys_time.
70310
70311 2007-01-18  Bruno Haible  <bruno@clisp.org>
70312
70313         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70314         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70315
70316         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70317         gettimeofday.
70318
70319         * tests/test-gettimeofday.c: Include <time.h>.
70320         (dummy): Remove variable.
70321
70322         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70323         gl_HEADER_SYS_TIME_H.
70324         (gl_HEADER_SYS_TIME_H): New macro.
70325
70326         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70327         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70328         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70329         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70330         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70331         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70332         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70333         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70334         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70335         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70336         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70337
70338         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70339         last change; it caused a compilation error when cross-compiling to
70340         Cygwin.
70341
70342 2007-01-18  Jim Meyering  <jim@meyering.net>
70343
70344         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70345         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70346         than the race-prone "test -d sys || mkdir sys".
70347         (configure.ac): Use AC_PROG_MKDIR_P.
70348         * modules/sys_select: Likewise.
70349         * modules/sys_socket: Likewise.
70350         * modules/sys_time: Likewise.
70351
70352 2007-01-18  Eric Blake  <ebb9@byu.net>
70353
70354         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70355         replace gettimeofday.
70356         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70357         name, to avoid infinite recursion.
70358
70359 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70360
70361         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70362         module sys_time.
70363         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70364         assume timespec.h defines struct timeval.
70365         * lib/settime.c: Likewise.
70366         * lib/utimens.c: Likewise.
70367         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70368         since we now assume the gettimeofday module.
70369         * lib/tempname.c (__gen_tempname): Likewise.
70370         * lib/gettimeofday.h: Remove.
70371         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70372         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70373         Include <time.h>, for 'time()'.
70374         (localtime_buffer_addr): Also use this workaround if
70375         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70376         to simplify the uses.  All uses changed.
70377         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70378         that #undef is inside {}, and 'const' follows type name consistently.
70379         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70380         (gettimeofday): Do not use the maximum possible value for
70381         tv->tv_usec, since that might break usages other than ls.c.
70382         Instead, we'll leave ls.c alone.  This undoes today's patch
70383         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70384         we've never observed the problem but might as well keep the
70385         canary.
70386         * lib/nanosleep.c: Include timespec.h first, for interface check.
70387         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70388         now assume the sys_time module.
70389         * lib/tempname.c: Likewise.
70390         * lib/timespec.h: Likewise.
70391         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70392         needed.
70393         * lib/strftime.c: Likewise.
70394         * lib/timespec.h: Likewise.
70395         * lib/posixtm.c: Include posixtm.h first, for interface check.
70396         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70397         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70398         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70399         * lib/sys_time_.h: New file.
70400         * lib/timespec.h (struct timespec): Use long int, not long.
70401         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70402         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70403         Remove obsolescent call to AC_HEADER_TIME.
70404         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70406         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70407         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70408         Likewise.
70409         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70410         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70411         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70412         into the sys_time module.  Check for gettimeofday just once.
70413         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70414         for gettimeofday signature to just check the signature.  Merely
70415         compile it, since linking doesn't test signature.  Improve test for
70416         whether gettimeofday.o is actually needed.
70417         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70418         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70419         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70420         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70421         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70422         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70423         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70424         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70425         than worrying about sys/time.h.
70426         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70427         Don't bother worrying about TIME_WITH_SYS_TIME.
70428         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70429         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70430         * m4/sys_time_h.m4: New file.
70431         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70432         Don't include sys/time.h.  Return from main rather than exiting.
70433         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70434         all uses changed.
70435         * modules/gethrxtime (Depends-on): Add sys_time.
70436         * modules/gettime (Depends-on): Likewise.
70437         * modules/gettimeofday (Depends-on): Likewise.
70438         * modules/nanosleep (Depends-on): Likewise.
70439         * modules/settime (Depends-on): Likewise.
70440         * modules/tempname (Depends-on): Likewise.
70441         * modules/utimens (Depends-on): Likewise.
70442         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70443         (Include): Change back to <sys/time.h>.
70444         (Maintainer): Add self.
70445         * modules/sys_time: New file.
70446         * modules/tempname (Depends-on): Add gettimeofday.
70447         * tests/test-gettimeofday.c: Include <sys/time.h>
70448         rather than gettimeofday.h.
70449
70450 2007-01-17  Bruno Haible  <bruno@clisp.org>
70451
70452         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70453         the license default to GPL.
70454         (func_create_testdir): Don't complain if a module is LGPL and its
70455         tests module depends on GPLed modules.
70456
70457 2007-01-17  Bruno Haible  <bruno@clisp.org>
70458
70459         * lib/gettimeofday.c (gettimeofday): Add code for the case
70460         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70461         maximum possible value for tv->tv_usec, rather than the minimum one.
70462
70463 2005-10-08  Martin Lambers  <marlam@marlam.de>
70464 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70465 2007-01-16  Bruno Haible  <bruno@clisp.org>
70466
70467         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70468         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70469         gl_FUNC_GETTIMEOFDAY.
70470         (Include): Add gettimeofday.h.
70471         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70472         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70473         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70474         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70475         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70476         * lib/gettimeofday.h: New file.
70477         * lib/gettimeofday.c: Include <sys/timeb.h>.
70478         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70479         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70480         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70481         fall back on time().
70482
70483         * tests/test-gettimeofday.c: New file.
70484         * modules/gettimeofday-tests: New file.
70485
70486 2007-01-16  Eric Blake  <ebb9@byu.net>
70487
70488         * modules/fnmatch (Depends-on): Depend on wchar.
70489         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70490         * m4/fnmatch.m4: Likewise.
70491         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70492         * m4/mbchar.m4: Likewise.
70493         * modules/mbswidth (Depends-on): Depend on wchar.
70494         * lib/mbswidth.c: Assume <wchar.h>.
70495         * m4/mbswidth.m4: Likewise.
70496         * modules/quotearg (Depends-on): Depend on wchar.
70497         * lib/quotearg.c: Assume <wchar.h>.
70498         * m4/quotearg.m4: Likewise.
70499         * modules/regex (Depends-on): Depend on wchar.
70500         * lib/regex_internal.h: Assume <wchar.h>.
70501         * m4/regex.m4: Likewise.
70502         * modules/stdint (Depends-on): Depend on wchar.
70503         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70504         * m4/stdint.m4: Likewise.
70505         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70506         * modules/strftime (Depends-on): Depend on wchar.
70507         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70508         * modules/strtol (Depends-on): Depend on wchar.
70509         * lib/strtol.c: Assume <wchar.h>.
70510         * modules/wcwidth (Depends-on): Depend on wchar.
70511         * lib/wcwidth.h: Assume <wchar.h>.
70512         * m4/wcwidth.m4: Likewise.
70513
70514 2007-01-16  Bruno Haible  <bruno@clisp.org>
70515
70516         * modules/csharpexec-script: New, created from...
70517         * modules/csharpexec: ... this.
70518
70519 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70520
70521         * modules/javaexec-script: New, created from...
70522         * modules/javaexec: ... this.
70523
70524 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70525
70526         * modules/poll (Dependencies): Add sys_select.
70527
70528 2007-01-15  Jim Meyering  <jim@meyering.net>
70529
70530         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70531         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70532         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70533         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70534
70535 2007-01-15  Bruno Haible  <bruno@clisp.org>
70536
70537         * modules/striconveh: New file.
70538         * lib/striconveh.h: New file.
70539         * lib/striconveh.c: New file.
70540         * MODULES.html.sh (Internationalization functions): Add striconveh.
70541
70542         * modules/striconveh-tests: New file.
70543         * tests/test-striconveh.c: New file.
70544
70545 2007-01-15  Bruno Haible  <bruno@clisp.org>
70546
70547         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70548         not from GNU libiconv or GNU libc.
70549
70550 2007-01-15  Bruno Haible  <bruno@clisp.org>
70551
70552         * doc/gnulib-intro.texi (Copyright): Explain the different license
70553         terms for module descriptions, autoconf macros, tests, documentation.
70554
70555 2007-01-14  Bruno Haible  <bruno@clisp.org>
70556
70557         * modules/striconv-tests: New file.
70558         * tests/test-striconv.c: New file.
70559
70560 2007-01-14  Bruno Haible  <bruno@clisp.org>
70561
70562         * modules/iconv-tests: New file.
70563         * tests/test-iconv.c: New file.
70564
70565 2007-01-14  Bruno Haible  <bruno@clisp.org>
70566
70567         * gnulib-tool (func_get_license): For test modules, use the license of
70568         the main module.
70569
70570 2007-01-14  Bruno Haible  <bruno@clisp.org>
70571
70572         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70573         if iconv is found to exist.
70574
70575 2007-01-14  Bruno Haible  <bruno@clisp.org>
70576
70577         * modules/c-ctype-tests: New file.
70578         * tests/test-c-ctype.c: New file.
70579
70580 2007-01-14  Bruno Haible  <bruno@clisp.org>
70581
70582         * modules/binary-io-tests: New file.
70583         * tests/test-binary-io.sh: New file.
70584         * tests/test-binary-io.c: New file.
70585
70586 2007-01-14  Bruno Haible  <bruno@clisp.org>
70587
70588         * modules/array-oset-tests: New file.
70589         * tests/test-array_oset.c: New file.
70590
70591 2007-01-14  Bruno Haible  <bruno@clisp.org>
70592
70593         * modules/array-list-tests: New file.
70594         * tests/test-array_list.c: New file.
70595
70596 2007-01-14  Bruno Haible  <bruno@clisp.org>
70597
70598         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70599         and make.
70600         Reported by Simon Josefsson in
70601         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70602
70603 2007-01-14  Bruno Haible  <bruno@clisp.org>
70604
70605         * modules/allocsa-tests: New file.
70606         * tests/test-allocsa.c: New file.
70607
70608 2007-01-14  Bruno Haible  <bruno@clisp.org>
70609
70610         * modules/fchdir (Depends-on): Add absolute-header.
70611         * modules/unistd (Depends-on): Likewise.
70612
70613 2006-12-30  Bruno Haible  <bruno@clisp.org>
70614
70615         * modules/fchdir: New file.
70616         * modules/unistd (Files): Add lib/unistd_.h.
70617         (Makefile.am): Generate unistd.h from unistd_.h.
70618         * lib/fchdir.c: New file.
70619         * lib/dirent_.h: New file.
70620         * lib/unistd_.h: New file.
70621         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70622         * m4/fchdir.m4: New file.
70623         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70624         (gl_HEADER_UNISTD): Invoke it.
70625         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70626         function.
70627         * lib/backupfile.c (opendir, closedir): Undefine.
70628         * lib/chown.c (open, close): Undefine.
70629         * lib/clean-temp.c (open, close): Undefine.
70630         * lib/copy-file.c (open, close): Undefine.
70631         * lib/execute.c (open, close): Undefine.
70632         * lib/fsusage.c (open, close): Undefine.
70633         * lib/gc-gnulib.c (open, close): Undefine.
70634         * lib/getcwd.c (opendir, closedir): Undefine.
70635         * lib/glob.c (opendir, closedir): Undefine.
70636         * lib/javacomp.c (open, close): Undefine.
70637         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70638         * lib/openat-proc.c (open, close): Undefine.
70639         * lib/pagealign_alloc.c (open, close): Undefine.
70640         * lib/pipe.c (open, close): Undefine.
70641         * lib/progreloc.c (open, close): Undefine.
70642         * lib/savedir.c (opendir, closedir): Undefine.
70643         * lib/utime.c (open, close): Undefine.
70644         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70645
70646 2007-01-10  Bruno Haible  <bruno@clisp.org>
70647
70648         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70649
70650 2007-01-12  Eric Blake  <ebb9@byu.net>
70651
70652         Provide a robust <wchar.h>.  Further simplifications are now
70653         possible in other modules, but not included here.
70654         * modules/wchar: New module.
70655         * m4/wchar.m4: New file.
70656         * lib/wchar_.h: Likewise.
70657         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70658         of the new module.
70659         * MODULES.html.sh (Extended multibyte and wide character utilities):
70660         New section.
70661
70662 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70663
70664         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70665         to a reasonable default for memory allocation.
70666         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70667         file system that reports garbage st_size values for symlinks.
70668         Problem reported by Liyang Hu.
70669
70670 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70671
70672         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70673         Emacs .#* auto-save files).
70674
70675 2007-01-11  Bruno Haible  <bruno@clisp.org>
70676
70677         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70678         directory.
70679
70680 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70681
70682         Use @...@ consistently in lib/wctype_.h.
70683         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70684         on it being set to 1 or 0.
70685         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70686         go back to AC_SUBSTing it.
70687         * modules/wctype (Makefile.am): Undo previous change.
70688
70689 2007-01-10  Eric Blake  <ebb9@byu.net>
70690
70691         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70692         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70693         * modules/wctype (Makefile.am): Likewise.
70694         Reported by Chris McGuire.
70695
70696 2007-01-10  Jim Meyering  <jim@meyering.net>
70697
70698         fts.c: a small readability/maintainability improvement
70699         * lib/fts.c (fts_read): Make this code slightly more readable and
70700         maintainable by hoisting the "sp->fts_cur = p" assignments to
70701         immediately follow the statements that set P.  Derived from
70702         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70703
70704 2007-01-10  Eric Blake  <ebb9@byu.net>
70705
70706         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70707         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70708         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70709         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70710         Reported by Chris McGuire.
70711
70712 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70713
70714         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70715         in sed script.
70716
70717 2007-01-09  Bruno Haible  <bruno@clisp.org>
70718
70719         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70720         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70721         variables.
70722         (func_module): Use them.
70723
70724 2007-01-09  Bruno Haible  <bruno@clisp.org>
70725
70726         * modules/unistr/base: New file.
70727         * lib/unistr.h: New file.
70728
70729         * modules/unistr/u8-to-u16: New file.
70730         * lib/unistr/u8-to-u16.c: New file.
70731
70732         * modules/unistr/u8-to-u32: New file.
70733         * lib/unistr/u8-to-u32.c: New file.
70734
70735         * modules/unistr/u16-to-u8: New file.
70736         * lib/unistr/u16-to-u8.c: New file.
70737
70738         * modules/unistr/u16-to-u32: New file.
70739         * lib/unistr/u16-to-u32.c: New file.
70740
70741         * modules/unistr/u32-to-u8: New file.
70742         * lib/unistr/u32-to-u8.c: New file.
70743
70744         * modules/unistr/u32-to-u16: New file.
70745         * lib/unistr/u32-to-u16.c: New file.
70746
70747         * modules/unistr/u8-check: New file.
70748         * modules/unistr/u16-check: New file.
70749         * modules/unistr/u32-check: New file.
70750         * lib/unistr/u8-check.c: New file.
70751         * lib/unistr/u16-check.c: New file.
70752         * lib/unistr/u32-check.c: New file.
70753
70754         * modules/unistr/u8-chr: New file.
70755         * modules/unistr/u16-chr: New file.
70756         * modules/unistr/u32-chr: New file.
70757         * lib/unistr/u8-chr.c: New file.
70758         * lib/unistr/u16-chr.c: New file.
70759         * lib/unistr/u32-chr.c: New file.
70760
70761         * modules/unistr/u8-cmp: New file.
70762         * modules/unistr/u16-cmp: New file.
70763         * modules/unistr/u32-cmp: New file.
70764         * lib/unistr/u8-cmp.c: New file.
70765         * lib/unistr/u16-cmp.c: New file.
70766         * lib/unistr/u32-cmp.c: New file.
70767
70768         * modules/unistr/u8-cpy: New file.
70769         * modules/unistr/u16-cpy: New file.
70770         * modules/unistr/u32-cpy: New file.
70771         * lib/unistr/u8-cpy.c: New file.
70772         * lib/unistr/u16-cpy.c: New file.
70773         * lib/unistr/u32-cpy.c: New file.
70774         * lib/unistr/u-cpy.h: New file.
70775
70776         * modules/unistr/u8-cpy-alloc: New file.
70777         * modules/unistr/u16-cpy-alloc: New file.
70778         * modules/unistr/u32-cpy-alloc: New file.
70779         * lib/unistr/u8-cpy-alloc.c: New file.
70780         * lib/unistr/u16-cpy-alloc.c: New file.
70781         * lib/unistr/u32-cpy-alloc.c: New file.
70782         * lib/unistr/u-cpy-alloc.h: New file.
70783
70784         * modules/unistr/u8-endswith: New file.
70785         * modules/unistr/u16-endswith: New file.
70786         * modules/unistr/u32-endswith: New file.
70787         * lib/unistr/u8-endswith.c: New file.
70788         * lib/unistr/u16-endswith.c: New file.
70789         * lib/unistr/u32-endswith.c: New file.
70790         * lib/unistr/u-endswith.h: New file.
70791
70792         * modules/unistr/u8-mblen: New file.
70793         * modules/unistr/u16-mblen: New file.
70794         * modules/unistr/u32-mblen: New file.
70795         * lib/unistr/u8-mblen.c: New file.
70796         * lib/unistr/u16-mblen.c: New file.
70797         * lib/unistr/u32-mblen.c: New file.
70798
70799         * modules/unistr/u8-mbtouc: New file.
70800         * modules/unistr/u16-mbtouc: New file.
70801         * modules/unistr/u32-mbtouc: New file.
70802         * lib/unistr/u8-mbtouc.c: New file.
70803         * lib/unistr/u16-mbtouc.c: New file.
70804         * lib/unistr/u32-mbtouc.c: New file.
70805
70806         * modules/unistr/u8-mbtouc-safe: New file.
70807         * modules/unistr/u16-mbtouc-safe: New file.
70808         * modules/unistr/u32-mbtouc-safe: New file.
70809         * lib/unistr/u8-mbtouc-safe.c: New file.
70810         * lib/unistr/u16-mbtouc-safe.c: New file.
70811         * lib/unistr/u32-mbtouc-safe.c: New file.
70812
70813         * modules/unistr/u8-move: New file.
70814         * modules/unistr/u16-move: New file.
70815         * modules/unistr/u32-move: New file.
70816         * lib/unistr/u8-move.c: New file.
70817         * lib/unistr/u16-move.c: New file.
70818         * lib/unistr/u32-move.c: New file.
70819         * lib/unistr/u-move.h: New file.
70820
70821         * modules/unistr/u8-next: New file.
70822         * modules/unistr/u16-next: New file.
70823         * modules/unistr/u32-next: New file.
70824         * lib/unistr/u8-next.c: New file.
70825         * lib/unistr/u16-next.c: New file.
70826         * lib/unistr/u32-next.c: New file.
70827
70828         * modules/unistr/u8-prev: New file.
70829         * modules/unistr/u16-prev: New file.
70830         * modules/unistr/u32-prev: New file.
70831         * lib/unistr/u8-prev.c: New file.
70832         * lib/unistr/u16-prev.c: New file.
70833         * lib/unistr/u32-prev.c: New file.
70834
70835         * modules/unistr/u8-set: New file.
70836         * modules/unistr/u16-set: New file.
70837         * modules/unistr/u32-set: New file.
70838         * lib/unistr/u8-set.c: New file.
70839         * lib/unistr/u16-set.c: New file.
70840         * lib/unistr/u32-set.c: New file.
70841         * lib/unistr/u-set.h: New file.
70842
70843         * modules/unistr/u8-startswith: New file.
70844         * modules/unistr/u16-startswith: New file.
70845         * modules/unistr/u32-startswith: New file.
70846         * lib/unistr/u8-startswith.c: New file.
70847         * lib/unistr/u16-startswith.c: New file.
70848         * lib/unistr/u32-startswith.c: New file.
70849         * lib/unistr/u-startswith.h: New file.
70850
70851         * modules/unistr/u8-stpcpy: New file.
70852         * modules/unistr/u16-stpcpy: New file.
70853         * modules/unistr/u32-stpcpy: New file.
70854         * lib/unistr/u8-stpcpy.c: New file.
70855         * lib/unistr/u16-stpcpy.c: New file.
70856         * lib/unistr/u32-stpcpy.c: New file.
70857         * lib/unistr/u-stpcpy.h: New file.
70858
70859         * modules/unistr/u8-stpncpy: New file.
70860         * modules/unistr/u16-stpncpy: New file.
70861         * modules/unistr/u32-stpncpy: New file.
70862         * lib/unistr/u8-stpncpy.c: New file.
70863         * lib/unistr/u16-stpncpy.c: New file.
70864         * lib/unistr/u32-stpncpy.c: New file.
70865         * lib/unistr/u-stpncpy.h: New file.
70866
70867         * modules/unistr/u8-strcat: New file.
70868         * modules/unistr/u16-strcat: New file.
70869         * modules/unistr/u32-strcat: New file.
70870         * lib/unistr/u8-strcat.c: New file.
70871         * lib/unistr/u16-strcat.c: New file.
70872         * lib/unistr/u32-strcat.c: New file.
70873         * lib/unistr/u-strcat.h: New file.
70874
70875         * modules/unistr/u8-strchr: New file.
70876         * modules/unistr/u16-strchr: New file.
70877         * modules/unistr/u32-strchr: New file.
70878         * lib/unistr/u8-strchr.c: New file.
70879         * lib/unistr/u16-strchr.c: New file.
70880         * lib/unistr/u32-strchr.c: New file.
70881
70882         * modules/unistr/u8-strcmp: New file.
70883         * modules/unistr/u16-strcmp: New file.
70884         * modules/unistr/u32-strcmp: New file.
70885         * lib/unistr/u8-strcmp.c: New file.
70886         * lib/unistr/u16-strcmp.c: New file.
70887         * lib/unistr/u32-strcmp.c: New file.
70888
70889         * modules/unistr/u8-strcpy: New file.
70890         * modules/unistr/u16-strcpy: New file.
70891         * modules/unistr/u32-strcpy: New file.
70892         * lib/unistr/u8-strcpy.c: New file.
70893         * lib/unistr/u16-strcpy.c: New file.
70894         * lib/unistr/u32-strcpy.c: New file.
70895         * lib/unistr/u-strcpy.h: New file.
70896
70897         * modules/unistr/u8-strcspn: New file.
70898         * modules/unistr/u16-strcspn: New file.
70899         * modules/unistr/u32-strcspn: New file.
70900         * lib/unistr/u8-strcspn.c: New file.
70901         * lib/unistr/u16-strcspn.c: New file.
70902         * lib/unistr/u32-strcspn.c: New file.
70903         * lib/unistr/u-strcspn.h: New file.
70904
70905         * modules/unistr/u8-strdup: New file.
70906         * modules/unistr/u16-strdup: New file.
70907         * modules/unistr/u32-strdup: New file.
70908         * lib/unistr/u8-strdup.c: New file.
70909         * lib/unistr/u16-strdup.c: New file.
70910         * lib/unistr/u32-strdup.c: New file.
70911         * lib/unistr/u-strdup.h: New file.
70912
70913         * modules/unistr/u8-strlen: New file.
70914         * modules/unistr/u16-strlen: New file.
70915         * modules/unistr/u32-strlen: New file.
70916         * lib/unistr/u8-strlen.c: New file.
70917         * lib/unistr/u16-strlen.c: New file.
70918         * lib/unistr/u32-strlen.c: New file.
70919         * lib/unistr/u-strlen.h: New file.
70920
70921         * modules/unistr/u8-strmblen: New file.
70922         * modules/unistr/u16-strmblen: New file.
70923         * modules/unistr/u32-strmblen: New file.
70924         * lib/unistr/u8-strmblen.c: New file.
70925         * lib/unistr/u16-strmblen.c: New file.
70926         * lib/unistr/u32-strmblen.c: New file.
70927
70928         * modules/unistr/u8-strmbtouc: New file.
70929         * modules/unistr/u16-strmbtouc: New file.
70930         * modules/unistr/u32-strmbtouc: New file.
70931         * lib/unistr/u8-strmbtouc.c: New file.
70932         * lib/unistr/u16-strmbtouc.c: New file.
70933         * lib/unistr/u32-strmbtouc.c: New file.
70934
70935         * modules/unistr/u8-strncat: New file.
70936         * modules/unistr/u16-strncat: New file.
70937         * modules/unistr/u32-strncat: New file.
70938         * lib/unistr/u8-strncat.c: New file.
70939         * lib/unistr/u16-strncat.c: New file.
70940         * lib/unistr/u32-strncat.c: New file.
70941         * lib/unistr/u-strncat.h: New file.
70942
70943         * modules/unistr/u8-strncmp: New file.
70944         * modules/unistr/u16-strncmp: New file.
70945         * modules/unistr/u32-strncmp: New file.
70946         * lib/unistr/u8-strncmp.c: New file.
70947         * lib/unistr/u16-strncmp.c: New file.
70948         * lib/unistr/u32-strncmp.c: New file.
70949
70950         * modules/unistr/u8-strncpy: New file.
70951         * modules/unistr/u16-strncpy: New file.
70952         * modules/unistr/u32-strncpy: New file.
70953         * lib/unistr/u8-strncpy.c: New file.
70954         * lib/unistr/u16-strncpy.c: New file.
70955         * lib/unistr/u32-strncpy.c: New file.
70956         * lib/unistr/u-strncpy.h: New file.
70957
70958         * modules/unistr/u8-strnlen: New file.
70959         * modules/unistr/u16-strnlen: New file.
70960         * modules/unistr/u32-strnlen: New file.
70961         * lib/unistr/u8-strnlen.c: New file.
70962         * lib/unistr/u16-strnlen.c: New file.
70963         * lib/unistr/u32-strnlen.c: New file.
70964         * lib/unistr/u-strnlen.h: New file.
70965
70966         * modules/unistr/u8-strpbrk: New file.
70967         * modules/unistr/u16-strpbrk: New file.
70968         * modules/unistr/u32-strpbrk: New file.
70969         * lib/unistr/u8-strpbrk.c: New file.
70970         * lib/unistr/u16-strpbrk.c: New file.
70971         * lib/unistr/u32-strpbrk.c: New file.
70972         * lib/unistr/u-strpbrk.h: New file.
70973
70974         * modules/unistr/u8-strrchr: New file.
70975         * modules/unistr/u16-strrchr: New file.
70976         * modules/unistr/u32-strrchr: New file.
70977         * lib/unistr/u8-strrchr.c: New file.
70978         * lib/unistr/u16-strrchr.c: New file.
70979         * lib/unistr/u32-strrchr.c: New file.
70980
70981         * modules/unistr/u8-strspn: New file.
70982         * modules/unistr/u16-strspn: New file.
70983         * modules/unistr/u32-strspn: New file.
70984         * lib/unistr/u8-strspn.c: New file.
70985         * lib/unistr/u16-strspn.c: New file.
70986         * lib/unistr/u32-strspn.c: New file.
70987         * lib/unistr/u-strspn.h: New file.
70988
70989         * modules/unistr/u8-strstr: New file.
70990         * modules/unistr/u16-strstr: New file.
70991         * modules/unistr/u32-strstr: New file.
70992         * lib/unistr/u8-strstr.c: New file.
70993         * lib/unistr/u16-strstr.c: New file.
70994         * lib/unistr/u32-strstr.c: New file.
70995         * lib/unistr/u-strstr.h: New file.
70996
70997         * modules/unistr/u8-strtok: New file.
70998         * modules/unistr/u16-strtok: New file.
70999         * modules/unistr/u32-strtok: New file.
71000         * lib/unistr/u8-strtok.c: New file.
71001         * lib/unistr/u16-strtok.c: New file.
71002         * lib/unistr/u32-strtok.c: New file.
71003         * lib/unistr/u-strtok.h: New file.
71004
71005         * modules/unistr/u8-uctomb: New file.
71006         * modules/unistr/u16-uctomb: New file.
71007         * modules/unistr/u32-uctomb: New file.
71008         * lib/unistr/u8-uctomb.c: New file.
71009         * lib/unistr/u16-uctomb.c: New file.
71010         * lib/unistr/u32-uctomb.c: New file.
71011
71012         * MODULES.html.sh (Unicode string functions): Add the new modules.
71013
71014 2007-01-08  Bruno Haible  <bruno@clisp.org>
71015
71016         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71017         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71018         subdirectories.
71019
71020 2007-01-08  Karl Berry  <karl@gnu.org>
71021
71022         * doc/error.texi: mention that main() fns must set program_name
71023         when progname is used.
71024
71025 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71026
71027         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71028         WCTYPE_H is empty, for the benefit of builds from non-distclean
71029         directories.  Problem reported by Eric Blake in
71030         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71031
71032 2007-01-08  Bruno Haible  <bruno@clisp.org>
71033
71034         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71035         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71036         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71037         PROVIDE_CANONICALIZE_FILENAME_MODE.
71038         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71039
71040 2007-01-08  Bruno Haible  <bruno@clisp.org>
71041
71042         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71043         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71044         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71045         * lib/fts.c: Likewise.
71046         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71047
71048 2006-12-25  Bruno Haible  <bruno@clisp.org>
71049
71050         * modules/utf8-ucs4-safe: New file.
71051         * lib/utf8-ucs4-safe.h: New file.
71052         * lib/unistr/utf8-ucs4-safe.c: New file.
71053
71054         * modules/utf16-ucs4-safe: New file.
71055         * lib/utf16-ucs4-safe.h: New file.
71056         * lib/unistr/utf16-ucs4-safe.c: New file.
71057
71058         * MODULES.html.sh (Unicode string functions): Add the new modules.
71059
71060 2007-01-08  Bruno Haible  <bruno@clisp.org>
71061
71062         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71063         (Depends-on): Add unitypes.
71064         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71065         (u8_mbtouc_aux): Move out to separate file.
71066         (u8_mbtouc): Use ucs4_t, uint8_t types.
71067         * lib/unistr/utf8-ucs4.c: New file.
71068
71069         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71070         (Depends-on): Add unitypes.
71071         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71072         (u16_mbtouc_aux): Move out to separate file.
71073         (u16_mbtouc): Use ucs4_t, uint16_t types.
71074         * lib/unistr/utf16-ucs4.c: New file.
71075
71076         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71077         (Depends-on): Add unitypes.
71078         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71079         (u8_uctomb_aux): Move out to separate file.
71080         (u8_uctomb): Use ucs4_t, uint8_t types.
71081         * lib/unistr/ucs4-utf8.c: New file.
71082
71083         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71084         (Depends-on): Add unitypes.
71085         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71086         (u16_uctomb_aux): Move out to separate file.
71087         (u16_uctomb): Use ucs4_t, uint16_t types.
71088         * lib/unistr/ucs4-utf16.c: New file.
71089
71090 2006-12-25  Bruno Haible  <bruno@clisp.org>
71091
71092         * modules/unitypes: New file.
71093         * lib/unitypes.h: New file.
71094         * MODULES.html.sh (func_all_modules): New section "Unicode string
71095         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71096         this section. Add unitypes.
71097
71098 2007-01-08  Bruno Haible  <bruno@clisp.org>
71099
71100         Avoid variable names that conflict with those from libtool.
71101         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71102         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71103         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71104         library_names_spec to acl_library_names_spec, hardcode_* to
71105         acl_hardcode_*.
71106         Reported by Ralf Wildenhues.
71107
71108 2007-01-08  Bruno Haible  <bruno@clisp.org>
71109
71110         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71111         definition.
71112         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71113         definition.
71114         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71115         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71116         definition.
71117         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71118         definition.
71119         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71120         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71121         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71122         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71123         definition.
71124         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71125         definition.
71126         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71127         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71128         GC_USE_<algorithm>.
71129         * lib/gc-libgcrypt.c: Likewise.
71130         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71131         * modules/gc-arctwo (configure.ac): Likewise.
71132         * modules/gc-des (configure.ac): Likewise.
71133         * modules/gc-hmac-md5 (configure.ac): Likewise.
71134         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71135         * modules/gc-md2 (configure.ac): Likewise.
71136         * modules/gc-md4 (configure.ac): Likewise.
71137         * modules/gc-md5 (configure.ac): Likewise.
71138         * modules/gc-random (configure.ac): Likewise.
71139         * modules/gc-rijndael (configure.ac): Likewise.
71140         * modules/gc-sha1 (configure.ac): Likewise.
71141
71142 2007-01-08  Bruno Haible  <bruno@clisp.org>
71143
71144         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71145         macro definition.
71146         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71147         definition.
71148         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71149         definition.
71150         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71151         * modules/fcntl-safer (configure.ac): Likewise.
71152         * modules/fopen-safer (configure.ac): Likewise.
71153         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71154         GNULIB_FWRITEERROR macro definition.
71155
71156 2007-01-08  Bruno Haible  <bruno@clisp.org>
71157
71158         * m4/gnulib-common.m4: New file.
71159         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71160         (func_get_filelist): Add m4/gnulib-common.m4.
71161
71162 2007-01-08  Bruno Haible  <bruno@clisp.org>
71163
71164         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71165         command.
71166
71167 2007-01-08  Jim Meyering  <jim@meyering.net>
71168
71169         Use a more robust test for a "can't happen" condition.
71170         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71171         narrowed the st_size value.  Presuming the "can't happen" condition
71172         is true, that narrowing could conceivably convert an invalid st_size
71173         value into a valid one.  Instead, use a change based on Matthew
71174         Woehlke's original patch.
71175
71176         Slight readability improvement: use an assert-like macro
71177         in place of literal "abort ()" uses.
71178         * lib/fts.c (fts_assert): Define.
71179         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71180         Use this macro instead of a bare 'abort'.
71181
71182 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71183
71184         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71185         simply work around them.
71186         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71187         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71188         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71189         declaring.
71190         Don't bother to define as macros, since the standard doesn't require it.
71191         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71192         longer worry about IRIX 5.3.
71193         (HAVE_WCTYPE_CTMP_BUG): Remove.
71194
71195 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71196
71197         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71198         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71199         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71200         Problems reported by Georg Schwarz for IRIX 5.3.
71201
71202         * gnulib-tool (autoconf_minversion): Take the maximum version number
71203         found, not the minimum.  Problem reported by James Youngman.
71204
71205 2007-01-03  Karl Berry  <karl@gnu.org>
71206
71207         * doc/error.texi: new file, explaining interaction with progname.
71208         * doc/gnulib.texi: include it.  Update copyright.
71209
71210 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71211
71212         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71213         AC_CANONICAL_HOST, to improve autobuild outputs.
71214
71215 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71216             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71217
71218         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71219         sockets, server sockets, and other file descriptors.  Count errors
71220         to compute the return value.  Reorder the code a bit to be easier
71221         to follow.  Don't set event bits that were not requested (except
71222         POLLERR and POLLHUP).
71223
71224 2007-01-01  Bruno Haible  <bruno@clisp.org>
71225
71226         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71227
71228 2007-01-03  Jim Meyering  <jim@meyering.net>
71229
71230         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71231
71232 2007-01-02  Bruno Haible  <bruno@clisp.org>
71233
71234         * modules/settime (Include): Require timespec.h.
71235         * modules/nanosleep (Include): Likewise.
71236
71237 2007-01-01  Bruno Haible  <bruno@clisp.org>
71238
71239         * gnulib-tool (func_emit_copyright_notice): Bump year.
71240         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71241
71242 2007-01-01  Bruno Haible  <bruno@clisp.org>
71243
71244         Improve support for OpenBSD.
71245         * build-aux/config.rpath (libname_spec): Export.
71246         (library_names_spec): New variable. Export.
71247         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71248         library_names_spec from the config.rpath output. Locate shared library
71249         through the name pattern in library_names_spec.
71250
71251 2007-01-01  Eric Blake  <ebb9@byu.net>
71252
71253         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71254
71255 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71256
71257         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71258         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71259         assume the C locale, and avoid an "eval" that could cause trouble.
71260         Problem with SORT reported by Bob Proulx.
71261
71262         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71263         Define.  Trivial patch from Henning Nielsen Lund, originally
71264         sent to bug-grep@gnu.org today.
71265
71266 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71267
71268         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71269         struct stat.  Problem reported by Henning Nielsen Lund.
71270         * lib/acl.c: Include acl.h first, to check interface.  Don't
71271         bother to include sys/types.h and sys/stat.h again.
71272
71273 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71274
71275         Import the following change from libc; problem reported by
71276         Sven Verdoolaege.
71277
71278         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71279
71280         [BZ #1373]
71281         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71282
71283 2006-12-28  Jim Meyering  <jim@meyering.net>
71284
71285         * build-aux/announce-gen: Do not assume that the package
71286         builds any of tar.gz, tar.bz2, and .xdelta files.
71287         Suggestion from Simon Josefsson.
71288
71289 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71290
71291         * modules/announce-gen: New file.
71292
71293 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71294
71295         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71296         handles its gotchas now.
71297         * lib/mbswidth.c: Likewise.
71298         * lib/wcwidth.h: Likewise.
71299         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71300         and iswcntrl; the wctype module does this stuff now.
71301         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71302         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71303         * modules/mbchar (Depends-on): Add wctype.
71304         * modules/mbswidth (Depends-on): Likewise.
71305         * modules/wcwidth (Depends-on): Likewise.
71306
71307 2006-12-27  Eric Blake  <ebb9@byu.net>
71308
71309         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71310         module uses more than what <wctype.h> is required to provide.
71311
71312 2006-12-26  Eric Blake  <ebb9@byu.net>
71313
71314         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71315
71316 2006-12-26  Eric Blake  <ebb9@byu.net>
71317
71318         * modules/absolute-header: New module.
71319         * modules/fcntl (Depends-on): Depend on it.
71320         * modules/inttypes (Depends-on): Likewise.
71321         * modules/stdint (Depends-on): Likewise.
71322         * modules/sys_stat (Depends-on): Likewise.
71323         * modules/wctype (Depends-on): Likewise.
71324         * MODULES.html.sh (Support for building libraries and
71325         executables): Document it.
71326
71327 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71328
71329         * gnulib-tool (SED): Remove, undoing previous change.
71330         The problem was that it broke coreutils on Solaris, because
71331         "sed --posix" leaked into a makefile.
71332         (sed): New alias, if 'alias' and GNU sed.
71333
71334 2006-12-24  Jim Meyering  <jim@meyering.net>
71335
71336         Work around an fchownat bug in glibc-2.4:
71337         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71338         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71339         in spite of the -P option.
71340         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71341         New macros.
71342         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71343         * modules/openat (Files): Add lib/fchownat.c.
71344         * lib/openat.c (fchownat): Don't define here.  Move to...
71345         * lib/fchownat.c: ...this new file.
71346
71347 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71348
71349         Fix bug reported by Bruno Haible in
71350         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71351         where quotearg.c didn't compile on Mac OS X 10.2 because it
71352         lacks <wchar.h> and wint_t.
71353         * lib/wctype_.h (__wctype_wint_t): New type.
71354         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71355         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71356         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71357         Arg is now of type __wctype_wint_t, not wint_t.
71358         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71359         substitute HAVE_WINT_T.
71360         * modules/wctype (Files): Add m4/wint_t.m4.
71361         (wctype.h): Substitute HAVE_WINT_T.
71362
71363 2006-12-23  Bruno Haible  <bruno@clisp.org>
71364
71365         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71366
71367 2006-12-23  Bruno Haible  <bruno@clisp.org>
71368
71369         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71370         S_ISLNK.
71371         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71372         mingw.
71373
71374 2006-12-22  Bruno Haible  <bruno@clisp.org>
71375
71376         * lib/copy-file.c: Include acl.h.
71377         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71378         Close the file descriptors only after being done with copy_acl.
71379         * modules/copy-file (Depends-on): Add acl.
71380
71381 2006-12-22  Bruno Haible  <bruno@clisp.org>
71382
71383         * gnulib-tool (SED): New variable.
71384         Use $SED instead of sed everywhere.
71385
71386 2006-12-22  Bruno Haible  <bruno@clisp.org>
71387
71388         * modules/no-c++: New file.
71389         * m4/no-c++.m4: New file.
71390         * MODULES.html.sh (Support for building libraries and executables):
71391         Add no-c++.
71392
71393 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71394
71395         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71396         Include <limits.h>, and use its INT_MAX to rewrite the
71397         j loop so that it does not overflow 'int'.  Problem reported by
71398         Ralf Wildenhues in
71399         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71400         Play it safe by shifting left by 1 rather than multiplying by 2,
71401         as GCC is less likely to optimize this away when the value
71402         is signed (when it assumes overflow leads to undefined behavior).
71403         Also, don't assume time_t uses two's complement.
71404
71405 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71406
71407         * MODULES.html.sh: New module wctype.
71408         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71409         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71410         <wctype.h>, since the new wctype module should fix this.
71411         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71412         the wctype module should arrange for it.
71413         * lib/regex_internal.h: Likewise.
71414         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71415         since the wctype module should handle this now.
71416         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71417         * modules/fnmatch (Depends-on): Add wctype.
71418         * modules/quotearg (Depends-on): Likewise.
71419         * modules/regex (Depends-on): Likewise.
71420
71421 2006-12-19  Bruno Haible  <bruno@clisp.org>
71422
71423         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71424         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71425
71426 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71427
71428         * modules/savewd (Depends-on): Fix dependency on fcntl.
71429
71430 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71431
71432         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71433         conforms to C99, rather than relying on the user's environment
71434         setting of STDINT_H.
71435
71436 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71437         and Eric Blake  <ebb9@byu.net>
71438
71439         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71440         This is more consistent with the other defines here.
71441         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71442         Port to z/OS.  Problem reported by Paul Gilmartin.
71443         Change local vars to use gl_ prefix rather than ac_.
71444         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71445         with other defines.
71446         * modules/double-slash-root: New module.
71447         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71448         (Depends-on): Add double-slash-root.
71449         * MODULES.html.sh (File system functions): Mention new module.
71450
71451 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71452
71453         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71454         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71455         This is for the benefit of gzip, which doesn't do i18n.
71456
71457 2006-12-12  Jim Meyering  <jim@meyering.net>
71458
71459         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71460         Reported by Andreas Schwab <schwab@suse.de>.
71461
71462 2006-12-12  Bruno Haible  <bruno@clisp.org>
71463
71464         Merge these changes.
71465         2006-09-05  Bruno Haible  <bruno@clisp.org>
71466         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71467         iconv_alloc succeeded.
71468         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71469         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71470         test for " && dest " at the end - dest is always != NULL there. Call
71471         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71472         with 2xNULL arguments, also to flush the state storage. Handle the
71473         IRIX iconv behaviour. Realloc the final result, to throw away unused
71474         memory.
71475
71476 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71477
71478         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71479         and fchmodat unconditionally, since glibc 2.4 has them.
71480         Problem reported by Arkadiusz Miskiewicz.
71481
71482 2006-12-10  Bruno Haible  <bruno@clisp.org>
71483
71484         * gnulib-tool (func_import): Show the include files only for those
71485         modules that are copied and specified.
71486         Reported by Karl Berry.
71487
71488 2006-12-08  Jim Meyering  <jim@meyering.net>
71489
71490         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71491         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71492
71493         * build-aux/announce-gen: Add two new options, both optional:
71494         --bootstrap-tools=TOOL_LIST
71495               a comma-separated list of tools, e.g.,
71496               autoconf,automake,bison,gnulib
71497         --gnulib-snapshot-date=DATE
71498               if gnulib is in the bootstrap tool list,
71499               then report this as the snapshot date.
71500               If not specified, use the current date/time.
71501               If you specify a date here, be sure it's UTC.
71502
71503 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71504
71505         * tests/test-argp-2.sh: Fix test to match actual output.
71506         (func_compare): Fix sed script to be portable.
71507
71508 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71509
71510         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71511         workaround for this case.  It is not autoconfigured now; offhand
71512         it's hard to see how to autoconfigure it.
71513
71514 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71515
71516         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71517         a directory that is about to be chowned.  Such a directory's
71518         initial file permissions should permit the owner only and this
71519         should not be changed until after the chown, since the group and
71520         other bits would be incorrect if they granted permission before
71521         the chown.
71522
71523         Fix porting problem for iswctype reported by Georg Schwarz in:
71524         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71525         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71526         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71527         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71528         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71529
71530 2006-12-03  Jim Meyering  <jim@meyering.net>
71531
71532         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71533         p->fts_statp may not yet be defined.
71534         (fts_read): Instead, set it in the caller, once p->fts_statp is
71535         sure to be defined, and corresponds to a top-level directory.
71536         This bug made du -x fail.  Here's the coreutils test case:
71537         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71538         Reported by Mike Frysinger.
71539
71540 2006-12-01  Jim Meyering  <jim@meyering.net>
71541
71542         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71543         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71544         Reported by Simon Josefsson.
71545
71546 2006-11-30  Jim Meyering  <jim@meyering.net>
71547
71548         * m4/warning.m4: Use the all-permissive copyright notice
71549         recommended by RMS (rather than LGPL).
71550         * m4/vararrays.m4: Likewise.
71551         * m4/flexmember.m4: Likewise.
71552
71553 2006-11-29  Bruno Haible  <bruno@clisp.org>
71554
71555         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71556         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71557         using +=.
71558         Reported by Simon Josefsson <simon@josefsson.org>.
71559
71560 2006-11-28  James Youngman <jay@gnu.org>
71561
71562         * README: Advise users that they might find the bug-gnulib@gnu.org
71563         and autotools-announce@gnu.org mailing lists useful.
71564
71565 2006-11-28  Bruno Haible  <bruno@clisp.org>
71566
71567         * m4/ptrdiff_max.m4: Remove file.
71568
71569 2006-11-21  Bruno Haible  <bruno@clisp.org>
71570
71571         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71572         _AC_COMPUTE_INT.
71573         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71574         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71575         _AC_COMPUTE_INT.
71576         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71577         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71578         _AC_COMPUTE_INT.
71579         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71580
71581 2006-11-28  Jim Meyering  <jim@meyering.net>
71582
71583         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71584         warning from "gcc -Wshadow" about shadowing the builtin.
71585
71586 2006-11-27  Bruno Haible  <bruno@clisp.org>
71587
71588         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71589         _AC_COMPUTE_INT.
71590         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71591
71592 2006-11-27  Bruno Haible  <bruno@clisp.org>
71593             Paul Eggert  <eggert@cs.ucla.edu>
71594
71595         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71596
71597 2006-11-26  Bruno Haible  <bruno@clisp.org>
71598
71599         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71600         noinst_LTLIBRARIES.
71601
71602 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71603             Bruno Haible  <bruno@clisp.org>
71604
71605         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71606         if compiling with "gcc -ansi".
71607
71608 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71609
71610         Fix some incompatibilities with gcc -ansi -pedantic.
71611         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71612         if compiling pedantically with GCC, unless it's C99 or later.
71613         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71614         it mishandles gcc -ansi -pedantic as well.
71615         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71616         if gcc -pedantic.
71617         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71618         initializers for struct if -pedantic, unless it's C99 or later.
71619
71620 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71621
71622         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71623         Don't close an fd more than once. Identical atimes indicate
71624         success, not failure.
71625
71626 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71627
71628         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71629
71630 2006-11-23  Jim Meyering  <jim@meyering.net>
71631
71632         * build-aux/announce-gen: New file.  From coreutils.
71633
71634 2006-11-22  Jim Meyering  <jim@meyering.net>
71635
71636         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71637         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71638         (fts_read): Use a temporary to narrow the overused st_size member
71639         before using it in a switch statement.  Reported by Matthew Woehlke.
71640
71641         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71642         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71643
71644 2006-11-20  Bruno Haible  <bruno@clisp.org>
71645
71646         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71647         changequote instead of pairs of brackets.
71648         Reported by Andreas Schwab <schwab@suse.de>.
71649
71650 2006-11-21  Jim Meyering  <jim@meyering.net>
71651
71652         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71653         so as to remain compatible with older compilers.
71654         Patch from Michael Deutschmann.
71655
71656 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71657
71658         * MODULES.html.sh (File system functions): Add openat.
71659
71660         * lib/openat.h (rpl_fstatat): New macro, if
71661         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71662         (fstatat): Define to rpl_fstatat under the same conditions,
71663         unless COMPILING_FSTATAT.
71664         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71665         seems to have the bug.
71666         * lib/fstatat.c: New file.
71667         * modules/openat (Files): Add it.
71668
71669 2006-11-20  Bruno Haible  <bruno@clisp.org>
71670
71671         * Makefile: New file.
71672
71673 2006-11-20  Jim Meyering  <jim@meyering.net>
71674
71675         The beginnings of syntax-related checks for gnulib.
71676         * lib/Makefile: New file.
71677         * lib/t-idcache: New script.  Ensure that the two halves of
71678         idcache.c stay in sync.
71679
71680         * lib/idcache.c: Adjust comments in user- and group- portions to
71681         be more accurate, and to be consistent with one another.
71682
71683 2006-11-20  Jim Meyering  <jim@meyering.net>
71684
71685         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71686         continue using the flexible array member (thus, this module performs
71687         half as many malloc calls), with the addition that...
71688         (getgroup, getuser): Consistently record a non-match via an empty
71689         "name" string, and map an empty string match to a NULL return value.
71690         * modules/idcache (Depends-on): Re-add flexmember.
71691
71692         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71693         (getuidbyname, getgroup, getgidbyname): Likewise.
71694
71695         Use cleaner syntax: NULL rather than 0.
71696         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71697
71698 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71699
71700         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71701         It mishandled the case where the group was missing.
71702         Problem reported by Greg Schafer.
71703         * modules/idcache: Likewise.
71704
71705 2006-11-18  Jim Meyering  <jim@meyering.net>
71706
71707         * check-module (%exempt_header): Add exception for some
71708         conditionally-included headers.
71709
71710         * modules/i-ring (Depends-on): Add verify.
71711         (License): Change to LGPL.
71712
71713 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71714
71715         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71716         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71717         and inttostr.h.  Use snprintf rather than uinttostr, so that
71718         LGPLed code doesn't depend on GPLed.
71719
71720 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71721
71722         * modules/inline (License): Change from GPL to LGPL.
71723
71724 2006-11-17  Jim Meyering  <jim@meyering.net>
71725
71726         * modules/d-type (License): Switch to LGPL.
71727
71728 2006-11-15  Bruno Haible  <bruno@clisp.org>
71729
71730         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71731
71732 2006-11-15  Eric Blake  <ebb9@byu.net>
71733
71734         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71735         the module dependency.
71736
71737 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71738             Bruno Haible  <bruno@clisp.org>
71739
71740         * gnulib-tool (func_create_testdir): Add license consistency check.
71741
71742 2006-11-15  Eric Blake  <ebb9@byu.net>
71743
71744         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71745         random "(cached)" in configure output.
71746
71747 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71748
71749         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71750         test for conforming inttypes.h is both announced and cached.
71751
71752         * MODULES.html.sh (seen_modules, seen_files): New variables.
71753         (func_module): Rewrite to use a few less gnulib-tool and sed
71754         invocations.  Avoid a couple of quadratic algorithms for ...
71755         (missed_modules, missed_files): ... these, with ...
71756         (func_append, func_tmpdir): ... these new functions, from
71757         gnulib-tool.  Analogously, install traps for cleanup.
71758
71759         * tests/test-gc.c (main): Remove unused variables.
71760         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71761
71762 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71763
71764         * modules/inttostr (License): Change to LGPL.
71765
71766 2006-11-14  Eric Blake  <ebb9@byu.net>
71767
71768         * modules/tempname (License): Change to LGPL.
71769
71770 2006-11-14  Eric Blake  <ebb9@byu.net>
71771
71772         * doc/functions.texi (Function Portability): *printf functions on
71773         Cygwin now understand all POSIX size specifiers.
71774
71775 2006-11-14  Bruno Haible  <bruno@clisp.org>
71776
71777         * modules/c-ctype (License): Change to LGPL.
71778
71779 2006-11-12  Bruno Haible  <bruno@clisp.org>
71780
71781         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71782         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71783         for GNOME libraries, for which the include files are installed in
71784         subdirectories of $prefix/include.
71785
71786 2006-11-12  Bruno Haible  <bruno@clisp.org>
71787
71788         * m4/lib-link.m4: Require at least autoconf-2.54.
71789         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71790         name to underscores for the --with option.
71791
71792 2006-11-13  Bruno Haible  <bruno@clisp.org>
71793
71794         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71795         the tests directory.
71796         Reported by Ralf Wildenhues.
71797
71798 2006-11-13  Bruno Haible  <bruno@clisp.org>
71799
71800         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71801         (func_emit_initmacro_end): Undo the override here.
71802         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71803         Works around the famous automake error in coreutils.
71804
71805 2006-11-13  Eric Blake  <ebb9@byu.net>
71806
71807         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71808         element, not its node.
71809
71810 2006-11-12  Bruno Haible  <bruno@clisp.org>
71811
71812         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71813         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71814
71815 2006-11-12  Bruno Haible  <bruno@clisp.org>
71816
71817         * gnulib-tool: New option --local-symlink.
71818         (func_usage): Document it.
71819         (lsymbolic): New variable.
71820         (func_import, func_create_testdir): If --symlink was not specified,
71821         test whether --local-symlink was specified and the file comes from
71822         the local_gnulib_dir.
71823
71824 2006-11-12  Bruno Haible  <bruno@clisp.org>
71825
71826         * gnulib-tool (func_ln): New function.
71827         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71828
71829 2006-11-12  Bruno Haible  <bruno@clisp.org>
71830
71831         Finish support for source files in subdirectories.
71832         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71833         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71834         AUTOMAKE_OPTIONS.
71835         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71836
71837 2006-11-12  Bruno Haible  <bruno@clisp.org>
71838
71839         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71840         EXTRA_lib_SOURCES augmentation.
71841         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71842
71843 2006-11-12  Jim Meyering  <jim@meyering.net>
71844
71845         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71846         file descriptors.  This also averts a failure on systems with
71847         native openat support when a traversed directory lacks "x" access.
71848         * lib/fts_.h: Include "i-ring.h"
71849         (struct FTS) [fts_fd_ring]: New member.
71850         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71851         (FCHDIR): Add parentheses.
71852         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71853         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71854         When descending, rather than simply closing the previous
71855         fts_cwd_fd value, push that file descriptor onto the ring.
71856         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71857         (fts_open): Initialize the new fd_ring member.
71858         (fts_close): Clear the ring.
71859         (fts_safe_changedir): When possible, use our new fd_ring to skip
71860         the diropen and fstat and dev/ino comparison that would normally
71861         accompany a virtual `chdir ("..")'.
71862
71863         * modules/fts (Depends-on): Add i-ring.
71864         * modules/i-ring: New module.
71865         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71866         * m4/i-ring.m4: New file.
71867
71868 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71869
71870         * gnulib-tool (func_create_testdir): Fix replacement of
71871         `build-aux' in configure.ac.  Run autotools in gltests
71872         subdirectory.
71873         (func_create_testdir, func_create_megatestdir, test): There is
71874         no need for '--force' in most autotool invocations in a new
71875         tree.  Actually fail the whole test if any of the tools, or the
71876         configure or make stages fail.
71877
71878         Sync from Automake.
71879         * build-aux/gnupload: Revert last change.  Add pointer to upload
71880         instructions of the GNU Maintenance Instructions.
71881         Suggestion by Karl Berry.
71882
71883 2006-11-10  Jim Meyering  <jim@meyering.net>
71884
71885         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71886
71887 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71888
71889         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71890         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71891         (bind_textdomain_codeset) [! ENABLE_NLS]:
71892         Evaluate all the arguments.  That way, callers get compatible behavior
71893         if the arguments have side effects.  Also, it avoids some GCC
71894         diagnostics in some cases; Joel E. Denny reported problems when Bison
71895         was configured with --enable-gcc-warnigs.
71896
71897 2006-11-10  Jim Meyering  <jim@meyering.net>
71898
71899         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71900         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71901         account.
71902
71903 2006-11-10  Jim Meyering  <jim@meyering.net>
71904
71905         * modules/inline: New file/module.
71906         * modules/xalloc (Files): Remove m4/inline.m4.
71907         (Depends-on): Add inline, instead.
71908         * modules/oset: Likewise.
71909         * modules/list: Likewise.
71910
71911 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71912
71913         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71914         Problem reported by Matthew Woehlke.
71915
71916 2006-11-09  Bruno Haible  <bruno@clisp.org>
71917
71918         * lib/tempname.c (gen_tempname): Remove variant that invokes
71919         __gen_tempname.
71920         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71921         __gen_tempname.
71922
71923 2006-11-08  Bruno Haible  <bruno@clisp.org>
71924
71925         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71926         to 'yes' instead of 'cross-compiling'.
71927
71928 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71929
71930         * lib/quotearg.h (quotearg_free): New decl.
71931         * lib/quotearg.c (quotearg_free): New function.
71932         (slot0, nslots, slotvec0, slotvec):
71933         Now file-scope so that quotearg_free can get at them.
71934
71935 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71936
71937         Sync from Automake.
71938         * build-aux/gnupload: Add missing 'gnu' to example URL.
71939         Report by Karl Berry.
71940
71941 2006-11-08  Bruno Haible  <bruno@clisp.org>
71942
71943         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71944         Suggested by Paul Eggert.
71945
71946 2006-11-08  Jim Meyering  <jim@meyering.net>
71947
71948         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71949         It's already included if !_LIBC.
71950         (fts_safe_changedir): Add a comment.
71951
71952 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71953
71954         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71955         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71956         Matthew Woehlke.
71957
71958         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71959         definitions up, to avoid colliding with change below.
71960         (static_inline) [HAVE_INLINE]: New macro.
71961         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71962         Provide extern decls when !HAVE_INLINE.  Do not define unless
71963         static_inline is defined, either by us or by xmalloc.c.  Use
71964         static_inline rather than static inline.
71965         (XCALLOC): Optimize sizeof(T) = 1 case.
71966         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71967
71968 2006-11-07  Bruno Haible  <bruno@clisp.org>
71969
71970         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71971         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71972         AC_C_INLINE.
71973         * modules/xalloc (Files): Add m4/inline.m4.
71974
71975 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71976
71977         * README: Fix typo.
71978         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71979         (Miscellanous Notes): ...from this.
71980
71981 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71982
71983         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71984         Mention that offsetof should be used instead of sizeof.
71985         From Bruno Haible.
71986
71987 2006-11-07  Bruno Haible  <bruno@clisp.org>
71988
71989         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71990
71991 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71992
71993         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71994         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71995         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71996         (gl_tree_add_before, gl_tree_add_after):
71997         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71998         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71999         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72000         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72001         (gl_linked_add_after, gl_linked_add_at): Likewise.
72002         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72003         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72004         (gl_tree_add_before, gl_tree_add_after): Likewise.
72005         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72006         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72007         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72008
72009 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72010
72011         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72012
72013 2006-11-06  Bruno Haible  <bruno@clisp.org>
72014
72015         * m4/inline.m4: New file.
72016         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72017         * modules/list (Files): Add m4/inline.m4.
72018         * modules/oset (Files): Likewise.
72019
72020 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72021
72022         * lib/idcache.c: Include <stddef.h>, for offsetof.
72023         (struct userid.name): Change from char * to a flexible array member.
72024         All uses changed.
72025         * modules/idcache (Depends-on): Add flexmember.
72026
72027         * MODULES.html.sh (Core language properties): New module flexmember.
72028         * modules/flexmember, m4/flexmember.m4: New files.
72029
72030         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72031         inline functions that are identical with the old xnmalloc_inline,
72032         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72033         that we can avoid some unnecessary integer multiplications and
72034         divisions in the common case where the element size is known at
72035         compile time.
72036         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72037         needed.
72038         (xnboundedmalloc): Remove.
72039         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72040         arguments, for consistency with rest of this header.
72041         (xcharalloc): Rewrite using XNMALLOC.
72042         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72043         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72044         versions have been moved to lib/xalloc.h and renamed to be the
72045         non-*_inline versions.
72046         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72047         and xnrealloc functions, since those functions are now inline and
72048         now call us.
72049         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72050         renaming described above.
72051         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72052         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72053         captures the dependency in AC_C_INLINE.
72054
72055         New module canonicalize-lgpl, proposed by Charles Wilson in
72056         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72057         with a few small changes afterwards.
72058         * MODULES.html.sh (File system functions): New module
72059         canonicalize-lgpl.
72060         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72061         and canonicalize_file_name.
72062         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72063         * modules/canonicalize-lgpl: New files.
72064
72065 2006-11-05  Bruno Haible  <bruno@clisp.org>
72066
72067         * gnulib-tool (func_import, func_create_testdir): Create directories
72068         also for files in subdirectories of lib/.
72069
72070 2006-11-05  Bruno Haible  <bruno@clisp.org>
72071
72072         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72073         ANSI C compliant.
72074
72075 2006-11-03  Bruno Haible  <bruno@clisp.org>
72076
72077         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72078         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72079         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72080         (xnboundedmalloc): New inline function.
72081         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72082         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72083         xmalloc.
72084         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72085         xmalloc.
72086         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72087         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72088         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72089         xmalloc.
72090         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72091         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72092         xmalloc.
72093         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72094         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72095         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72096         xmalloc.
72097         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72098         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72099         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72100         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72101         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72102         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72103         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72104
72105 2006-11-03  Bruno Haible  <bruno@clisp.org>
72106
72107         * lib/c-ctype.h [C++]: Define functions without name mangling.
72108         * lib/fwriteerror.h [C++]: Likewise.
72109         * lib/gcd.h [C++]: Likewise.
72110         * lib/linebreak.h [C++]: Likewise.
72111
72112 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72113
72114         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72115         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72116         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72117         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72118         Check for functions and headers just once.
72119         Check for declaration of canonicalize_file_name.
72120         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72121
72122 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72123
72124         * gnulib-tool (func_import): Fix typo in actioncmd.
72125
72126 2006-11-02  Bruno Haible  <bruno@clisp.org>
72127
72128         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72129         newline sequence in the Makefile.am snippet as a space, like "make"
72130         does.
72131         Reported by Roger Persson <perrog@gmail.com>.
72132
72133 2006-11-01  Bruno Haible  <bruno@clisp.org>
72134
72135         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72136         already declared in <string.h>.
72137         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72138
72139 2006-11-01  Bruno Haible  <bruno@clisp.org>
72140
72141         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72142         * lib/strcase.h: Include <string.h>.
72143         (strcasecmp): Define to rpl_strcasecmp here.
72144
72145 2006-11-01  Bruno Haible  <bruno@clisp.org>
72146
72147         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72148
72149 2006-11-01  Eric Blake  <ebb9@byu.net>
72150
72151         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72152
72153         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72154
72155 2006-10-29  Bruno Haible  <bruno@clisp.org>
72156
72157         Make it compile in C++ mode.
72158         * lib/full-write.c (full_rw): Add a cast.
72159
72160 2006-11-01  Bruno Haible  <bruno@clisp.org>
72161
72162         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72163         be POSIX compliant.
72164         Reported by Roger Persson <perrog@gmail.com>.
72165
72166 2006-11-01  Eric Blake  <ebb9@byu.net>
72167
72168         * lib/getopt_.h: Fix comments.
72169
72170 2006-10-31  Eric Blake  <ebb9@byu.net>
72171
72172         * modules/tmpdir (Depends-on): Add sys_stat.
72173         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72174         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72175         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72176         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72177         tempname.
72178
72179 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72180
72181         Avoid some C++ diagnostics reported by Bruno Haible.
72182         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72183         xmalloc.
72184         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72185         (struct slotvec): Move to top level.
72186         (quotearg_n_options): Rewrite to avoid xmalloc.
72187         * lib/xalloc.h (xcharalloc): New function.
72188         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72189         [defined __cplusplus]: Add function template that provides result
72190         type propagation.  This part of the change is from Bruno Haible.
72191
72192 2006-10-29  Bruno Haible  <bruno@clisp.org>
72193
72194         Make it compile in C++ mode.
72195         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72196         * lib/strnlen1.c (strnlen1): Cast memchr result.
72197         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72198         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72199         (create_temp_dir): Rename local variable 'template'.
72200         (compile_csharp_using_sscli): Add cast.
72201         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72202         * lib/findprog.c (find_in_path): Likewise.
72203         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72204         * lib/wait-process.c (register_slave_subprocess): Likewise.
72205
72206 2006-10-22  Bruno Haible  <bruno@clisp.org>
72207
72208         * modules/tsearch: New file.
72209         * lib/tsearch.h: New file.
72210         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72211         * m4/tsearch.m4: New file.
72212         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72213
72214 2006-10-29  Eric Blake  <ebb9@byu.net>
72215
72216         * lib/arcfour.c: Assume config.h.
72217         * lib/arctwo.c: Likewise.
72218         * lib/base64.c: Likewise.
72219         * lib/check-version.c: Likewise.
72220         * lib/crc.c: Likewise.
72221         * lib/des.c: Likewise.
72222         * lib/gc-gnulib.c: Likewise.
72223         * lib/gc-libgcrypt.c: Likewise.
72224         * lib/gc-pbkdf2-sha1.c: Likewise.
72225         * lib/getaddrinfo.c: Likewise.
72226         * lib/getdelim.c: Likewise.
72227         * lib/getline.c: Likewise.
72228         * lib/hmac-md5.c: Likewise.
72229         * lib/hmac-sha1.c: Likewise.
72230         * lib/iconvme.c: Likewise.
72231         * lib/md2.c: Likewise.
72232         * lib/md4.c: Likewise.
72233         * lib/memxor.c: Likewise.
72234         * lib/read-file.c: Likewise.
72235         * lib/readline.c: Likewise.
72236         * lib/rijndael-alg-fst.c: Likewise.
72237         * lib/rijndael-api-fst.c: Likewise.
72238         * lib/xgetdomainname.c: Likewise.
72239
72240 2006-10-28  Eric Blake  <ebb9@byu.net>
72241
72242         * lib/xstrndup.c: Assume config.h.
72243
72244 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72245
72246         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72247         stat-macros.h is now for our own macros, whereas stat_h is for
72248         macros in the <sys/stat.h> name space.
72249         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72250         (STAT_MACROS_H): Remove.
72251         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72252         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72253         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72254         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72255         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72256         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72257         Move these macros to ...
72258         * lib/stat_.h: here.  Don't include stat-macros.h.
72259         * lib/canonicalize.c: Don't include stat-macros.h.
72260         * lib/chown.c: Likewise.
72261         * lib/euidaccess.c: Likewise.
72262         * lib/file-type.c: Likewise.
72263         * lib/filemode.c: Likewise.
72264         * lib/glob.c: Likewise.
72265         * lib/isapipe.c: Likewise.
72266         * lib/lchown.c: Likewise.
72267         * lib/lstat.c: Likewise.
72268         * lib/mkdir-p.c: Likewise.
72269         * lib/rmdir.c: Likewise.
72270         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72271         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72272         unless mkdir isn't declared, to speed up 'configure'.
72273         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72274         would define all the S_* symbols.
72275         * modules/canonicalize (Depends-on):
72276         Depend on sys_stat, not stat-macros.
72277         * modules/chown: Likewise.
72278         * modules/euidaccess: Likewise.
72279         * modules/filemode: Likewise.
72280         * modules/file-type: Likewise.
72281         * modules/glob: Likewise.
72282         * modules/isapipe: Likewise.
72283         * modules/lchown: Likewise.
72284         * modules/lstat: Likewise.
72285         * modules/mkancesdirs: Likewise.
72286         * modules/rmdir: Likewise.
72287         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72288         * modules/modechange: Likewise.
72289         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72290         (configure.ac): Remove gl_STAT_MACROS.
72291         * modules/sys_stat (Depends-on): Remove stat-macros.
72292
72293 2006-10-27  Bruno Haible  <bruno@clisp.org>
72294
72295         * m4/signed.m4: Remove file.
72296         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72297         invocation.
72298         * modules/vasnprintf (Files): Remove m4/signed.m4.
72299
72300 2006-10-27  Bruno Haible  <bruno@clisp.org>
72301
72302         Update to GNU gettext 0.16.
72303         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72304         m4/inttypes-h.m4, m4/signed.m4.
72305         * m4/gettext.m4: Update to GNU gettext 0.16.
72306         * m4/intl.m4: New file, from GNU gettext.
72307         * m4/intldir.m4: New file, from GNU gettext.
72308         * config/srclist.txt: Update
72309
72310 2006-10-27  Eric Blake  <ebb9@byu.net>
72311
72312         * MODULES.html.sh: Document tempname.
72313         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72314         dependencies.
72315         (Files): Move lib/tempname.c...
72316         * modules/tempname: ...to this new module.
72317         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72318         (gl_PREREQ_TEMPNAME): Move...
72319         * m4/tempname.m4: ...to this new file.
72320         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72321         * modules/sys_stat (Depends-on): Add stat-macros.
72322         * lib/stat_.h (includes): Pick up stat macros.
72323         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72324         if stat macros are broken.
72325         * lib/tempname.c (includes): No need to include "stat-macros.h".
72326         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72327         (direxists, __path_search) [!_LIBC]: Don't compile these in
72328         gnulib; the tmpdir module covers that.
72329         * lib/tempname.h: New file.
72330
72331 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72332
72333         * COPYING: Explain how gnulib-tool converts licence headers.
72334         Almost all wording by Eric Blake.
72335
72336 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72337
72338         * lib/mbchar.h (is_basic_table): Make read-only.
72339         * lib/mbchar.c (is_basic_table): Likewise.
72340         Reported by John Darrington.
72341
72342 2006-10-25  Bruno Haible  <bruno@clisp.org>
72343
72344         * lib/progname.h (set_program_name): Undefine before defining.
72345
72346 2006-10-25  Bruno Haible  <bruno@clisp.org>
72347
72348         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72349         false for non-gcc C++ compilers.
72350         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72351
72352 2006-10-24  Bruno Haible  <bruno@clisp.org>
72353
72354         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72355         iconv implementations like Irix iconv.
72356
72357 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72358
72359         * modules/vararrays: New file.
72360         * m4/vararrays.m4: New file, taken from diffutils.
72361         * MODULES.html.sh: New module vararrays.
72362
72363 2006-10-24  Karl Berry  <karl@gnu.org>
72364
72365         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72366         Don't call GNU Unix.
72367
72368 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72369
72370         * users.txt: Add Libtool.
72371
72372         Sync from Libtool:
72373
72374         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72375
72376         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72377         to gnulib's policy of including config.h unconditionally.
72378
72379 2006-10-24  Bruno Haible  <bruno@clisp.org>
72380
72381         * modules/wcwidth (Files): Add m4/wint_t.m4.
72382         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72383         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72384
72385 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72386
72387         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72388         to pacify GCC with some -W flags enabled.  Problem reported by
72389         Bruno Haible.
72390
72391 2006-10-24  Jim Meyering  <jim@meyering.net>
72392
72393         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72394         Reported by Karl Berry.
72395
72396 2006-10-23  Bruno Haible  <bruno@clisp.org>
72397
72398         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72399
72400 2006-10-24  Bruno Haible  <bruno@clisp.org>
72401
72402         * lib/gl_list.h: Use C comment style, not C++ comment style.
72403
72404 2006-10-23  Eric Blake  <ebb9@byu.net>
72405
72406         * lib/getaddrinfo.c (includes): Add missing include.
72407
72408 2006-10-23  Bruno Haible  <bruno@clisp.org>
72409             Paul Eggert  <eggert@cs.ucla.edu>
72410
72411         Ability to rename obstack_free.
72412         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72413         obstack_free.
72414         (obstack_free): Invoke the __obstack_free macro.
72415         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72416
72417 2006-10-23  Bruno Haible  <bruno@clisp.org>
72418             Paul Eggert  <eggert@cs.ucla.edu>
72419
72420         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72421         __argc, __argv from the declaration. (They are defined as macros on
72422         mingw.)
72423
72424 2006-10-22  Bruno Haible  <bruno@clisp.org>
72425
72426         * doc/gnulib-intro.texi: New file.
72427         * doc/gnulib.texi: Include it.
72428
72429 2006-10-21  Bruno Haible  <bruno@clisp.org>
72430
72431         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72432         "Introduction", "Miscellanous Notes", "Particular Modules".
72433
72434 2006-10-21  Bruno Haible  <bruno@clisp.org>
72435
72436         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72437         Change mostlyclean-local rule to avoid sh syntax error from bash
72438         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72439
72440 2006-10-23  Jim Meyering  <jim@meyering.net>
72441
72442         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72443         in place of snprintf.
72444
72445         * modules/inttostr (Files): Add lib/uinttostr.c.
72446         * lib/uinttostr.c (inttostr): New file/function.
72447         * lib/inttostr.h (uinttostr): Declare.
72448         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72449         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72450         Add uinttostr.
72451         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72452
72453 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72454
72455         * lib/canonicalize.c (ELOOP): Define if not already defined.
72456         Problem reported by Bruno Haible in
72457         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72458
72459 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72460
72461         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72462         Problem reported by Perry Smith and Ville Laurikari.
72463
72464         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72465         uses.
72466
72467 2006-10-19  Bruno Haible  <bruno@clisp.org>
72468
72469         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72470         for mingw.
72471
72472 2006-10-19  Bruno Haible  <bruno@clisp.org>
72473
72474         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72475         Needed for mingw.
72476
72477 2006-10-19  Bruno Haible  <bruno@clisp.org>
72478
72479         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72480
72481 2006-10-19  Bruno Haible  <bruno@clisp.org>
72482
72483         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72484         it.
72485
72486 2006-10-19  Bruno Haible  <bruno@clisp.org>
72487
72488         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72489         invocation.
72490
72491 2006-10-19  Bruno Haible  <bruno@clisp.org>
72492
72493         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72494         mountlist by default.
72495
72496 2006-10-16  Bruno Haible  <bruno@clisp.org>
72497
72498         * lib/c-strstr.c: Include c-strstr.h.
72499
72500 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72501
72502         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72503         in a slash.
72504
72505 2006-10-18  Bruno Haible  <bruno@clisp.org>
72506
72507         * lib/lock.h [C++]: Wrap definitions in extern "C".
72508
72509 2006-10-18  Bruno Haible  <bruno@clisp.org>
72510
72511         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72512         gl_LIBOBJS list.
72513
72514 2006-10-18  Bruno Haible  <bruno@clisp.org>
72515
72516         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72517
72518 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72519
72520         * lib/xstrtol.h: Include gettext.h.
72521         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72522         Problem reported by Eric Blake.
72523         * modules/xstrtol (Depends-on): Add gettext-h.
72524
72525 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72526
72527         * lib/strftime.c (advance): New macro.
72528         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72529         incomplete type, so you can't add 0 to it.  Problem and patch
72530         reported by Eelco Dolstra for dietlibc.
72531
72532 2006-10-18  Jim Meyering  <jim@meyering.net>
72533
72534         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72535         type for a local, and rename it: s/up/user_proc/.
72536
72537 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72538
72539         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72540         READ_UTMP_USER_PROCESS.
72541         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72542
72543 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72544
72545         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72546         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72547
72548 2006-10-17  Eric Blake  <ebb9@byu.net>
72549
72550         * lib/sigprocmask.c (sigprocmask): Fix typo.
72551
72552         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72553
72554         * modules/clean-temp (Makefile.am): Don't add to make output...
72555         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72556         config.h.
72557
72558 2006-10-17  Bruno Haible  <bruno@clisp.org>
72559
72560         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72561         differently if DEFAULT_TEXT_DOMAIN is set.
72562
72563 2006-10-16  Bruno Haible  <bruno@clisp.org>
72564
72565         * lib/clean-temp.c: Include fwriteerror.h.
72566
72567 2006-10-16  Bruno Haible  <bruno@clisp.org>
72568
72569         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72570
72571 2006-10-16  Bruno Haible  <bruno@clisp.org>
72572
72573         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72574         * lib/sigprocmask.h: Include <sys/types.h>.
72575         (sigset_t): Use the system's definition if present.
72576
72577 2006-10-17  Eric Blake  <ebb9@byu.net>
72578
72579         * lib/xvasprintf.c (includes): Assume config.h.
72580         * lib/xasprintf.c (includes): Likewise.
72581
72582 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72583
72584         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72585         at least as wide as intmax_t.
72586
72587 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72588
72589         (Imported from Automake.)
72590         * build-aux/gnupload: Update to version 1.1 of directive file.
72591
72592 2006-10-16  Eric Blake  <ebb9@byu.net>
72593
72594         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72595         match Automake 1.10a.
72596
72597 2006-10-14  Bruno Haible  <bruno@clisp.org>
72598
72599         * modules/sigprocmask: New file.
72600         * lib/sigprocmask.h: New file.
72601         * lib/sigprocmask.c: New file.
72602         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72603         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72604         request sigprocmask.o.
72605         (gl_PREREQ_SIGPROCMASK): New macro.
72606         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72607         (Depends-on): Add sigprocmask.
72608         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72609         gt_SIGNALBLOCKING. Test for 'raise' only once.
72610         * lib/fatal-signal.c: Include sigprocmask.h.
72611         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72612         unblock_fatal_signals): Define always.
72613         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72614         sigprocmask.
72615
72616 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72617
72618         Sync from Automake.
72619         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72620         which incorrectly sets the mode of an existing destination
72621         directory.  In some cases the unpatched install-sh could do the
72622         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72623         system.  We hope this is rare in practice, but it's clearly worth
72624         fixing.  Problem reported by Alex Unleashed in
72625         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72626         Also, don't bother to check for -m bugs unless we're using -m;
72627         suggested by Stepan Kasal.
72628
72629 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72630
72631         Sync from Automake.
72632         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72633         `-c' flag, so they appear at the same position as in %FASTDEP%
72634         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72635         which ignores unknown options only after the first non-option.
72636         Bug report against M4 by Nelson H. F. Beebe.
72637
72638 2006-10-13  Jim Meyering  <jim@meyering.net>
72639
72640         Fix a bug in yesterday's change.
72641         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72642         p->fts_statp->st_dev would be used uninitialized.
72643         Ensures that we always call fts_stat on the very first entry.
72644         Miklos Szeredi reported that find -xdev stopped working.
72645
72646 2006-10-12  Bruno Haible  <bruno@clisp.org>
72647
72648         * gnulib-tool (func_get_automake_snippet): Append an automatically
72649         computed EXTRA_DIST augmentation.
72650         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72651         * modules/alloca-opt (Makefile.am): Likewise.
72652         * modules/allocsa (Makefile.am): Likewise.
72653         * modules/arcfour (Makefile.am): Likewise.
72654         * modules/arctwo (Makefile.am): Likewise.
72655         * modules/argmatch (Makefile.am): Likewise.
72656         * modules/argz (Makefile.am): Likewise.
72657         * modules/atexit (Makefile.am): Likewise.
72658         * modules/backupfile (Makefile.am): Likewise.
72659         * modules/byteswap (Makefile.am): Likewise.
72660         * modules/c-strtod (Makefile.am): Likewise.
72661         * modules/c-strtold (Makefile.am): Likewise.
72662         * modules/calloc (Makefile.am): Likewise.
72663         * modules/canon-host (Makefile.am): Likewise.
72664         * modules/canonicalize (Makefile.am): Likewise.
72665         * modules/chdir-long (Makefile.am): Likewise.
72666         * modules/chdir-safer (Makefile.am): Likewise.
72667         * modules/check-version (Makefile.am): Likewise.
72668         * modules/chown (Makefile.am): Likewise.
72669         * modules/cloexec (Makefile.am): Likewise.
72670         * modules/close-stream (Makefile.am): Likewise.
72671         * modules/closeout (Makefile.am): Likewise.
72672         * modules/crc (Makefile.am): Likewise.
72673         * modules/csharpexec (Makefile.am): Likewise.
72674         * modules/cycle-check (Makefile.am): Likewise.
72675         * modules/des (Makefile.am): Likewise.
72676         * modules/dev-ino (Makefile.am): Likewise.
72677         * modules/dirfd (Makefile.am): Likewise.
72678         * modules/dirname (Makefile.am): Likewise.
72679         * modules/dup2 (Makefile.am): Likewise.
72680         * modules/eealloc (Makefile.am): Likewise.
72681         * modules/error (Makefile.am): Likewise.
72682         * modules/euidaccess (Makefile.am): Likewise.
72683         * modules/exclude (Makefile.am): Likewise.
72684         * modules/exitfail (Makefile.am): Likewise.
72685         * modules/fcntl-safer (Makefile.am): Likewise.
72686         * modules/fcntl (Makefile.am): Likewise.
72687         * modules/file-type (Makefile.am): Likewise.
72688         * modules/fileblocks (Makefile.am): Likewise.
72689         * modules/filemode (Makefile.am): Likewise.
72690         * modules/filenamecat (Makefile.am): Likewise.
72691         * modules/fnmatch (Makefile.am): Likewise.
72692         * modules/fopen-safer (Makefile.am): Likewise.
72693         * modules/fpending (Makefile.am): Likewise.
72694         * modules/fprintftime (Makefile.am): Likewise.
72695         * modules/free (Makefile.am): Likewise.
72696         * modules/fsusage (Makefile.am): Likewise.
72697         * modules/ftruncate (Makefile.am): Likewise.
72698         * modules/fts (Makefile.am): Likewise.
72699         * modules/gc-arcfour (Makefile.am): Likewise.
72700         * modules/gc-des (Makefile.am): Likewise.
72701         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72702         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72703         * modules/gc-md4 (Makefile.am): Likewise.
72704         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72705         * modules/gc-sha1 (Makefile.am): Likewise.
72706         * modules/gc (Makefile.am): Likewise.
72707         * modules/getaddrinfo (Makefile.am): Likewise.
72708         * modules/getcwd (Makefile.am): Likewise.
72709         * modules/getdelim (Makefile.am): Likewise.
72710         * modules/getdomainname (Makefile.am): Likewise.
72711         * modules/getgroups (Makefile.am): Likewise.
72712         * modules/gethostname (Makefile.am): Likewise.
72713         * modules/gethrxtime (Makefile.am): Likewise.
72714         * modules/getline (Makefile.am): Likewise.
72715         * modules/getloadavg (Makefile.am): Likewise.
72716         * modules/getlogin_r (Makefile.am): Likewise.
72717         * modules/getndelim2 (Makefile.am): Likewise.
72718         * modules/getopt (Makefile.am): Likewise.
72719         * modules/getpagesize (Makefile.am): Likewise.
72720         * modules/getpass-gnu (Makefile.am): Likewise.
72721         * modules/getpass (Makefile.am): Likewise.
72722         * modules/getsubopt (Makefile.am): Likewise.
72723         * modules/gettime (Makefile.am): Likewise.
72724         * modules/gettimeofday (Makefile.am): Likewise.
72725         * modules/getugroups (Makefile.am): Likewise.
72726         * modules/getusershell (Makefile.am): Likewise.
72727         * modules/glob (Makefile.am): Likewise.
72728         * modules/group-member (Makefile.am): Likewise.
72729         * modules/hard-locale (Makefile.am): Likewise.
72730         * modules/hash (Makefile.am): Likewise.
72731         * modules/hmac-md5 (Makefile.am): Likewise.
72732         * modules/hmac-sha1 (Makefile.am): Likewise.
72733         * modules/human (Makefile.am): Likewise.
72734         * modules/idcache (Makefile.am): Likewise.
72735         * modules/imaxabs (Makefile.am): Likewise.
72736         * modules/imaxdiv (Makefile.am): Likewise.
72737         * modules/inet_ntop (Makefile.am): Likewise.
72738         * modules/inet_pton (Makefile.am): Likewise.
72739         * modules/intprops (Makefile.am): Likewise.
72740         * modules/inttostr (Makefile.am): Likewise.
72741         * modules/inttypes (Makefile.am): Likewise.
72742         * modules/isapipe (Makefile.am): Likewise.
72743         * modules/javaversion (Makefile.am): Likewise.
72744         * modules/lchmod (Makefile.am): Likewise.
72745         * modules/lchown (Makefile.am): Likewise.
72746         * modules/localcharset (Makefile.am): Likewise.
72747         * modules/long-options (Makefile.am): Likewise.
72748         * modules/lstat (Makefile.am): Likewise.
72749         * modules/malloc (Makefile.am): Likewise.
72750         * modules/mathl (Makefile.am): Likewise.
72751         * modules/mbchar (Makefile.am): Likewise.
72752         * modules/md2 (Makefile.am): Likewise.
72753         * modules/md4 (Makefile.am): Likewise.
72754         * modules/md5 (Makefile.am): Likewise.
72755         * modules/memcasecmp (Makefile.am): Likewise.
72756         * modules/memchr (Makefile.am): Likewise.
72757         * modules/memcmp (Makefile.am): Likewise.
72758         * modules/memcoll (Makefile.am): Likewise.
72759         * modules/memcpy (Makefile.am): Likewise.
72760         * modules/memmem (Makefile.am): Likewise.
72761         * modules/memmove (Makefile.am): Likewise.
72762         * modules/mempcpy (Makefile.am): Likewise.
72763         * modules/memrchr (Makefile.am): Likewise.
72764         * modules/memset (Makefile.am): Likewise.
72765         * modules/memxor (Makefile.am): Likewise.
72766         * modules/mkancesdirs (Makefile.am): Likewise.
72767         * modules/mkdir-p (Makefile.am): Likewise.
72768         * modules/mkdir (Makefile.am): Likewise.
72769         * modules/mkdtemp (Makefile.am): Likewise.
72770         * modules/mkstemp (Makefile.am): Likewise.
72771         * modules/mktime (Makefile.am): Likewise.
72772         * modules/modechange (Makefile.am): Likewise.
72773         * modules/mountlist (Makefile.am): Likewise.
72774         * modules/nanosleep (Makefile.am): Likewise.
72775         * modules/obstack (Makefile.am): Likewise.
72776         * modules/openat (Makefile.am): Likewise.
72777         * modules/pagealign_alloc (Makefile.am): Likewise.
72778         * modules/pathmax (Makefile.am): Likewise.
72779         * modules/physmem (Makefile.am): Likewise.
72780         * modules/poll (Makefile.am): Likewise.
72781         * modules/posixtm (Makefile.am): Likewise.
72782         * modules/posixver (Makefile.am): Likewise.
72783         * modules/putenv (Makefile.am): Likewise.
72784         * modules/quote (Makefile.am): Likewise.
72785         * modules/quotearg (Makefile.am): Likewise.
72786         * modules/raise (Makefile.am): Likewise.
72787         * modules/read-file (Makefile.am): Likewise.
72788         * modules/readline (Makefile.am): Likewise.
72789         * modules/readlink (Makefile.am): Likewise.
72790         * modules/readtokens (Makefile.am): Likewise.
72791         * modules/readutmp (Makefile.am): Likewise.
72792         * modules/realloc (Makefile.am): Likewise.
72793         * modules/regex (Makefile.am): Likewise.
72794         * modules/rename-dest-slash (Makefile.am): Likewise.
72795         * modules/rename (Makefile.am): Likewise.
72796         * modules/rijndael (Makefile.am): Likewise.
72797         * modules/rmdir (Makefile.am): Likewise.
72798         * modules/rpmatch (Makefile.am): Likewise.
72799         * modules/safe-read (Makefile.am): Likewise.
72800         * modules/safe-write (Makefile.am): Likewise.
72801         * modules/same-inode (Makefile.am): Likewise.
72802         * modules/same (Makefile.am): Likewise.
72803         * modules/save-cwd (Makefile.am): Likewise.
72804         * modules/savedir (Makefile.am): Likewise.
72805         * modules/setenv (Makefile.am): Likewise.
72806         * modules/settime (Makefile.am): Likewise.
72807         * modules/sha1 (Makefile.am): Likewise.
72808         * modules/sig2str (Makefile.am): Likewise.
72809         * modules/snprintf (Makefile.am): Likewise.
72810         * modules/stat-macros (Makefile.am): Likewise.
72811         * modules/stat-time (Makefile.am): Likewise.
72812         * modules/stdbool (Makefile.am): Likewise.
72813         * modules/stdint (Makefile.am): Likewise.
72814         * modules/stdlib-safer (Makefile.am): Likewise.
72815         * modules/stpcpy (Makefile.am): Likewise.
72816         * modules/stpncpy (Makefile.am): Likewise.
72817         * modules/strcase (Makefile.am): Likewise.
72818         * modules/strcasestr (Makefile.am): Likewise.
72819         * modules/strchrnul (Makefile.am): Likewise.
72820         * modules/strcspn (Makefile.am): Likewise.
72821         * modules/strdup (Makefile.am): Likewise.
72822         * modules/strerror (Makefile.am): Likewise.
72823         * modules/strftime (Makefile.am): Likewise.
72824         * modules/strndup (Makefile.am): Likewise.
72825         * modules/strnlen (Makefile.am): Likewise.
72826         * modules/strpbrk (Makefile.am): Likewise.
72827         * modules/strsep (Makefile.am): Likewise.
72828         * modules/strstr (Makefile.am): Likewise.
72829         * modules/strtod (Makefile.am): Likewise.
72830         * modules/strtoimax (Makefile.am): Likewise.
72831         * modules/strtok_r (Makefile.am): Likewise.
72832         * modules/strtol (Makefile.am): Likewise.
72833         * modules/strtoll (Makefile.am): Likewise.
72834         * modules/strtoul (Makefile.am): Likewise.
72835         * modules/strtoull (Makefile.am): Likewise.
72836         * modules/strtoumax (Makefile.am): Likewise.
72837         * modules/strverscmp (Makefile.am): Likewise.
72838         * modules/sys_socket (Makefile.am): Likewise.
72839         * modules/sys_stat (Makefile.am): Likewise.
72840         * modules/sysexits (Makefile.am): Likewise.
72841         * modules/time_r (Makefile.am): Likewise.
72842         * modules/timegm (Makefile.am): Likewise.
72843         * modules/timespec (Makefile.am): Likewise.
72844         * modules/tmpfile-safer (Makefile.am): Likewise.
72845         * modules/trim (Makefile.am): Likewise.
72846         * modules/unistd-safer (Makefile.am): Likewise.
72847         * modules/unlinkdir (Makefile.am): Likewise.
72848         * modules/unlocked-io (Makefile.am): Likewise.
72849         * modules/userspec (Makefile.am): Likewise.
72850         * modules/utime (Makefile.am): Likewise.
72851         * modules/utimecmp (Makefile.am): Likewise.
72852         * modules/utimens (Makefile.am): Likewise.
72853         * modules/vasnprintf (Makefile.am): Likewise.
72854         * modules/vasprintf (Makefile.am): Likewise.
72855         * modules/vsnprintf (Makefile.am): Likewise.
72856         * modules/xalloc (Makefile.am): Likewise.
72857         * modules/xgetcwd (Makefile.am): Likewise.
72858         * modules/xnanosleep (Makefile.am): Likewise.
72859         * modules/xreadlink (Makefile.am): Likewise.
72860         * modules/xstrtod (Makefile.am): Likewise.
72861         * modules/xstrtol (Makefile.am): Likewise.
72862         * modules/xstrtold (Makefile.am): Likewise.
72863         * modules/yesno (Makefile.am): Likewise.
72864         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72865
72866 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72867
72868         * modules/error (Makefile.am): Distribute files through
72869         EXTRA_DIST, not lib_SOURCES.
72870
72871 2006-10-12  Eric Blake  <ebb9@byu.net>
72872
72873         * modules/error (Makefile.am): Distribute files in /lib.
72874         * modules/obstack (Makefile.am): Likewise.
72875
72876 2006-10-12  Bruno Haible  <bruno@clisp.org>
72877
72878         * modules/acl (Makefile.am): Distribute all files in lib/ through
72879         EXTRA_DIST.
72880         * modules/arcfour (Makefile.am): Likewise.
72881         * modules/arctwo (Makefile.am): Likewise.
72882         * modules/argmatch (Makefile.am): Likewise.
72883         * modules/argz (Makefile.am): Likewise.
72884         * modules/atexit (Makefile.am): Likewise.
72885         * modules/backupfile (Makefile.am): Likewise.
72886         * modules/c-strtod (Makefile.am): Likewise.
72887         * modules/c-strtold (Makefile.am): Likewise.
72888         * modules/calloc (Makefile.am): Likewise.
72889         * modules/canon-host (Makefile.am): Likewise.
72890         * modules/canonicalize (Makefile.am): Likewise.
72891         * modules/chdir-long (Makefile.am): Likewise.
72892         * modules/chdir-safer (Makefile.am): Likewise.
72893         * modules/check-version (Makefile.am): Likewise.
72894         * modules/chown (Makefile.am): Likewise.
72895         * modules/cloexec (Makefile.am): Likewise.
72896         * modules/close-stream (Makefile.am): Likewise.
72897         * modules/closeout (Makefile.am): Likewise.
72898         * modules/crc (Makefile.am): Likewise.
72899         * modules/cycle-check (Makefile.am): Likewise.
72900         * modules/des (Makefile.am): Likewise.
72901         * modules/dirfd (Makefile.am): Likewise.
72902         * modules/dirname (Makefile.am): Likewise.
72903         * modules/dup2 (Makefile.am): Likewise.
72904         * modules/euidaccess (Makefile.am): Likewise.
72905         * modules/exclude (Makefile.am): Likewise.
72906         * modules/exitfail (Makefile.am): Likewise.
72907         * modules/fcntl-safer (Makefile.am): Likewise.
72908         * modules/file-type (Makefile.am): Likewise.
72909         * modules/fileblocks (Makefile.am): Likewise.
72910         * modules/filemode (Makefile.am): Likewise.
72911         * modules/filenamecat (Makefile.am): Likewise.
72912         * modules/fnmatch (Makefile.am): Likewise.
72913         * modules/fopen-safer (Makefile.am): Likewise.
72914         * modules/fpending (Makefile.am): Likewise.
72915         * modules/fprintftime (Makefile.am): Likewise.
72916         * modules/free (Makefile.am): Likewise.
72917         * modules/fsusage (Makefile.am): Likewise.
72918         * modules/ftruncate (Makefile.am): Likewise.
72919         * modules/fts (Makefile.am): Likewise.
72920         * modules/gc (Makefile.am): Likewise.
72921         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72922         * modules/getaddrinfo (Makefile.am): Likewise.
72923         * modules/getcwd (Makefile.am): Likewise.
72924         * modules/getdelim (Makefile.am): Likewise.
72925         * modules/getdomainname (Makefile.am): Likewise.
72926         * modules/getgroups (Makefile.am): Likewise.
72927         * modules/gethostname (Makefile.am): Likewise.
72928         * modules/gethrxtime (Makefile.am): Likewise.
72929         * modules/getline (Makefile.am): Likewise.
72930         * modules/getloadavg (Makefile.am): Likewise.
72931         * modules/getlogin_r (Makefile.am): Likewise.
72932         * modules/getopt (Makefile.am): Likewise.
72933         * modules/getpass (Makefile.am): Likewise.
72934         * modules/getpass-gnu (Makefile.am): Likewise.
72935         * modules/getsubopt (Makefile.am): Likewise.
72936         * modules/gettime (Makefile.am): Likewise.
72937         * modules/gettimeofday (Makefile.am): Likewise.
72938         * modules/getugroups (Makefile.am): Likewise.
72939         * modules/getusershell (Makefile.am): Likewise.
72940         * modules/glob (Makefile.am): Likewise.
72941         * modules/group-member (Makefile.am): Likewise.
72942         * modules/hard-locale (Makefile.am): Likewise.
72943         * modules/hash (Makefile.am): Likewise.
72944         * modules/hmac-md5 (Makefile.am): Likewise.
72945         * modules/hmac-sha1 (Makefile.am): Likewise.
72946         * modules/human (Makefile.am): Likewise.
72947         * modules/idcache (Makefile.am): Likewise.
72948         * modules/imaxabs (Makefile.am): Likewise.
72949         * modules/imaxdiv (Makefile.am): Likewise.
72950         * modules/inet_ntop (Makefile.am): Likewise.
72951         * modules/inet_pton (Makefile.am): Likewise.
72952         * modules/inttostr (Makefile.am): Likewise.
72953         * modules/isapipe (Makefile.am): Likewise.
72954         * modules/lchown (Makefile.am): Likewise.
72955         * modules/long-options (Makefile.am): Likewise.
72956         * modules/lstat (Makefile.am): Likewise.
72957         * modules/malloc (Makefile.am): Likewise.
72958         * modules/mathl (Makefile.am): Likewise.
72959         * modules/mbchar (Makefile.am): Likewise.
72960         * modules/md2 (Makefile.am): Likewise.
72961         * modules/md4 (Makefile.am): Likewise.
72962         * modules/md5 (Makefile.am): Likewise.
72963         * modules/memcasecmp (Makefile.am): Likewise.
72964         * modules/memchr (Makefile.am): Likewise.
72965         * modules/memcmp (Makefile.am): Likewise.
72966         * modules/memcoll (Makefile.am): Likewise.
72967         * modules/memcpy (Makefile.am): Likewise.
72968         * modules/memmem (Makefile.am): Likewise.
72969         * modules/memmove (Makefile.am): Likewise.
72970         * modules/mempcpy (Makefile.am): Likewise.
72971         * modules/memrchr (Makefile.am): Likewise.
72972         * modules/memset (Makefile.am): Likewise.
72973         * modules/memxor (Makefile.am): Likewise.
72974         * modules/mkancesdirs (Makefile.am): Likewise.
72975         * modules/mkdir (Makefile.am): Likewise.
72976         * modules/mkdir-p (Makefile.am): Likewise.
72977         * modules/mkdtemp (Makefile.am): Likewise.
72978         * modules/mkstemp (Makefile.am): Likewise.
72979         * modules/mktime (Makefile.am): Likewise.
72980         * modules/modechange (Makefile.am): Likewise.
72981         * modules/mountlist (Makefile.am): Likewise.
72982         * modules/nanosleep (Makefile.am): Likewise.
72983         * modules/openat (Makefile.am): Likewise.
72984         * modules/pagealign_alloc (Makefile.am): Likewise.
72985         * modules/physmem (Makefile.am): Likewise.
72986         * modules/poll (Makefile.am): Likewise.
72987         * modules/posixtm (Makefile.am): Likewise.
72988         * modules/posixver (Makefile.am): Likewise.
72989         * modules/putenv (Makefile.am): Likewise.
72990         * modules/quote (Makefile.am): Likewise.
72991         * modules/quotearg (Makefile.am): Likewise.
72992         * modules/raise (Makefile.am): Likewise.
72993         * modules/read-file (Makefile.am): Likewise.
72994         * modules/readline (Makefile.am): Likewise.
72995         * modules/readlink (Makefile.am): Likewise.
72996         * modules/readtokens (Makefile.am): Likewise.
72997         * modules/readutmp (Makefile.am): Likewise.
72998         * modules/realloc (Makefile.am): Likewise.
72999         * modules/regex (Makefile.am): Likewise.
73000         * modules/rename (Makefile.am): Likewise.
73001         * modules/rename-dest-slash (Makefile.am): Likewise.
73002         * modules/rijndael (Makefile.am): Likewise.
73003         * modules/rmdir (Makefile.am): Likewise.
73004         * modules/rpmatch (Makefile.am): Likewise.
73005         * modules/safe-read (Makefile.am): Likewise.
73006         * modules/safe-write (Makefile.am): Likewise.
73007         * modules/same (Makefile.am): Likewise.
73008         * modules/save-cwd (Makefile.am): Likewise.
73009         * modules/savedir (Makefile.am): Likewise.
73010         * modules/setenv (Makefile.am): Likewise.
73011         * modules/settime (Makefile.am): Likewise.
73012         * modules/sha1 (Makefile.am): Likewise.
73013         * modules/sig2str (Makefile.am): Likewise.
73014         * modules/snprintf (Makefile.am): Likewise.
73015         * modules/stdlib-safer (Makefile.am): Likewise.
73016         * modules/stpcpy (Makefile.am): Likewise.
73017         * modules/stpncpy (Makefile.am): Likewise.
73018         * modules/strcase (Makefile.am): Likewise.
73019         * modules/strcasestr (Makefile.am): Likewise.
73020         * modules/strchrnul (Makefile.am): Likewise.
73021         * modules/strcspn (Makefile.am): Likewise.
73022         * modules/strdup (Makefile.am): Likewise.
73023         * modules/strerror (Makefile.am): Likewise.
73024         * modules/strftime (Makefile.am): Likewise.
73025         * modules/strndup (Makefile.am): Likewise.
73026         * modules/strnlen (Makefile.am): Likewise.
73027         * modules/strpbrk (Makefile.am): Likewise.
73028         * modules/strsep (Makefile.am): Likewise.
73029         * modules/strstr (Makefile.am): Likewise.
73030         * modules/strtod (Makefile.am): Likewise.
73031         * modules/strtoimax (Makefile.am): Likewise.
73032         * modules/strtok_r (Makefile.am): Likewise.
73033         * modules/strtol (Makefile.am): Likewise.
73034         * modules/strtoll (Makefile.am): Likewise.
73035         * modules/strtoul (Makefile.am): Likewise.
73036         * modules/strtoull (Makefile.am): Likewise.
73037         * modules/strtoumax (Makefile.am): Likewise.
73038         * modules/strverscmp (Makefile.am): Likewise.
73039         * modules/time_r (Makefile.am): Likewise.
73040         * modules/timegm (Makefile.am): Likewise.
73041         * modules/tmpfile-safer (Makefile.am): Likewise.
73042         * modules/unistd-safer (Makefile.am): Likewise.
73043         * modules/unlinkdir (Makefile.am): Likewise.
73044         * modules/userspec (Makefile.am): Likewise.
73045         * modules/utime (Makefile.am): Likewise.
73046         * modules/utimecmp (Makefile.am): Likewise.
73047         * modules/utimens (Makefile.am): Likewise.
73048         * modules/vasnprintf (Makefile.am): Likewise.
73049         * modules/vasprintf (Makefile.am): Likewise.
73050         * modules/vsnprintf (Makefile.am): Likewise.
73051         * modules/xalloc (Makefile.am): Likewise.
73052         * modules/xgetcwd (Makefile.am): Likewise.
73053         * modules/xnanosleep (Makefile.am): Likewise.
73054         * modules/xreadlink (Makefile.am): Likewise.
73055         * modules/xstrtod (Makefile.am): Likewise.
73056         * modules/xstrtol (Makefile.am): Likewise.
73057         * modules/xstrtold (Makefile.am): Likewise.
73058         * modules/yesno (Makefile.am): Likewise.
73059
73060 2006-10-12  Jim Meyering  <jim@meyering.net>
73061
73062         * m4/getloadavg.m4: Revert the change below.
73063
73064         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73065         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73066         fail with a symlink, which is what coreutils' ./bootstrap now
73067         creates by default.
73068
73069 2006-10-12  Bruno Haible  <bruno@clisp.org>
73070
73071         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73072         mingw.
73073         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73074         MSVC and mingw explicitly.
73075
73076 2006-10-11  Simon Josefsson  <jas@extundo.com>
73077             Bruno Haible  <bruno@clisp.org>
73078
73079         Add support for multiple gnulib-tool invocations in the scope of a
73080         single configure.ac file.
73081         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73082         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73083         with the same contents as the _LIBADD variable.
73084         (func_emit_initmacro_start, func_emit_initmacro_end,
73085         func_emit_initmacro_done): New functions.
73086         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73087         gl_LIBOBJS and gl_LTLIBOBJS.
73088
73089 2006-10-11  Bruno Haible  <bruno@clisp.org>
73090
73091         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73092         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73093         autoreconf. Instead, invoke autopoint explicitly but move back the
73094         *.m4 files from gnulib.
73095
73096 2006-10-11  Bruno Haible  <bruno@clisp.org>
73097
73098         * gnulib-tool (func_usage): Make module names after --create-testdir
73099         optional.
73100         (func_create_testdir): If no module was specified, use nearly all
73101         modules.
73102
73103 2006-10-12  Jim Meyering  <jim@meyering.net>
73104
73105         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73106         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73107         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73108         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73109         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73110         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73111         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73112         (fts_set_stat_required): New function.
73113         (fts_open): Defer the calls to fts_stat, if possible or requested.
73114         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73115         into fts_stat itself.
73116         (fts_read): Perform any required (deferred) fts_stat call.
73117         (fts_build): Likewise, for the directory we're about to open and read.
73118         In the readdir loop, carefully decide whether each entry will require
73119         an eventual call to fts_stat, using dirent.d_type info if available.
73120         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73121         a command line argument into this function.  Update all callers.
73122         Map a return value of FTS_DOT to FTS_D for a command line argument.
73123         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73124         Thanks to Miklos Szeredi for his tenacity and for the initial
73125         bug report about "find" failing on a FUSE-based file system.
73126
73127         * lib/fts.c (fts_open): Use consistent indentation.
73128
73129 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73130
73131         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73132         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73133         reported by Jim Meyering.  All uses of cache variables renamed
73134         to match Autoconf's.
73135         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73136         the other one.
73137
73138         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73139         Fix misspelling in diagnostic.
73140
73141 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73142
73143         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73144         defined.  Problem reported by Matthew Woehlke.
73145
73146         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73147         Add support for Tandem NonStop R series.
73148         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73149         Use new macro.
73150
73151         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73152         (has_trailing_slash): Omit size arg; all callers changed.
73153         Omit 'inline', since it doesn't help performance and we'd
73154         need to configure it.
73155         Don't count //, ///, etc. as having a trailing slash.
73156         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73157         (rpl_rename_dest_slash): On failure, use rename's errno rather
73158         than (in some cases) an incorrect or junk errno.
73159         Simplify code by removing need to compute length; this does
73160         cause it to make two passes instead of one over the file name,
73161         but it's worth it.
73162
73163         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73164         change, since Autoconf's version may no longer be appropriate now
73165         that we are using CVS Autoconf's version.  Add support for Tandem.
73166
73167 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73168             Bruno Haible  <bruno@clisp.org>
73169
73170         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73171         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73172         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73173         gl_AC_TYPE_LONG_LONG.
73174
73175         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73176         instead of HAVE_LONG_LONG.
73177         * lib/printf-args.c (printf_fetchargs): Likewise.
73178         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73179         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73180         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73181         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73182         gl_AC_TYPE_LONG_LONG.
73183
73184 2006-10-11  Bruno Haible  <bruno@clisp.org>
73185
73186         * m4/longlong.m4: Add comments.
73187         * m4/ulonglong.m4: Likewise.
73188
73189 2006-10-10  Bruno Haible  <bruno@clisp.org>
73190
73191         Make it possible to #define stpcpy, strdup to aliases.
73192         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73193         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73194
73195 2006-10-10  Bruno Haible  <bruno@clisp.org>
73196
73197         Make it possible to #define gcd to an alias.
73198         * lib/gcd.c: Include config.h.
73199
73200 2006-10-10  Bruno Haible  <bruno@clisp.org>
73201
73202         Make it possible to #define c_isascii to an alias.
73203         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73204         defined. Undefine the macros before defining them, to avoid gcc
73205         warnings.
73206         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73207         define NO_C_CTYPE_MACROS early.
73208
73209 2006-10-10  Bruno Haible  <bruno@clisp.org>
73210
73211         Make it possible to #define set_program_name to an alias.
73212         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73213         ENABLE_RELOCATABLE early.
73214
73215 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73216
73217         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73218         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73219         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73220         More generally, don't assume that 64-bit signed int is available
73221         if unsigned int is, and vice versa.
73222         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73223         unsigned symbols, not on their signed counterparts.
73224         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73225         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73226         (UINT64_C, UINTMAX_C):
73227         Likewise.
73228         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73229         unsigned counterparts.
73230         (Have_long_long, Unsigned): New macros.
73231         (Int): Renamed from INT.
73232         (strtoimax): Use the new macros.
73233         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73234         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73235         * modules/inttypes (inttypes.h): Substitute
73236         HAVE_UNSIGNED_LONG_LONG_INT.
73237         * modules/stdint (stdint.h): Likewise.
73238         (Files): Add m4/ulonglong.m4.
73239
73240 2006-10-10  Bruno Haible  <bruno@clisp.org>
73241
73242         Fix a gcc -Wshadow warning.
73243         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73244         to 'bucket'.
73245         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73246         gl_linked_indexof_from_to): Likewise.
73247         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73248         Likewise.
73249         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73250         Likewise.
73251         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73252         Reported by Eric Blake.
73253
73254 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73255
73256         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73257         for NetBSD.  Problem reported by Bruno Haible.
73258
73259 2006-10-09  Jim Meyering  <jim@meyering.net>
73260
73261         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73262         Patch from Bruno Haible.
73263
73264 2006-10-09  Jim Meyering  <jim@meyering.net>
73265
73266         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73267         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73268         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73269
73270 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73271
73272         Don't include <config.h> twice; this doesn't work in some cases,
73273         e.g., when config.h has "#define intmax_t long long int" and
73274         we include <config.h>, <inttypes.h>, <config.h> in that order.
73275         Problem reported by Matthew Woehlke in:
73276         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73277         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73278         * lib/fts-cycle.c: Don't include config.h.
73279         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73280         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73281         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73282         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73283         inttypes.h.
73284         * lib/xstrtoumax.c: Likewise.
73285         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73286         __strtol and the like, so that this module is more like its siblings.
73287         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73288         Remove; no longer needed now that we assume gnulib inttypes.h.
73289
73290 2006-10-08  Bruno Haible  <bruno@clisp.org>
73291
73292         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73293         option.
73294
73295 2006-10-07  Jim Meyering  <jim@meyering.net>
73296
73297         * modules/inttypes (inttypes.h): Revert what seems to have been
73298         an inadvertent part of today's change: use "|", not "/" in the
73299         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73300
73301 2006-10-07  Bruno Haible  <bruno@clisp.org>
73302
73303         * modules/sublist: New file.
73304
73305 2006-10-07  Bruno Haible  <bruno@clisp.org>
73306
73307         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73308         * modules/argz (argz.h): Likewise.
73309         * modules/arpa_inet (arpa/inet.h): Likewise.
73310         * modules/byteswap (byteswap.h): Likewise.
73311         * modules/configmake (configmake.h): Likewise.
73312         * modules/fcntl (fcntl.h): Likewise.
73313         * modules/fnmatch (fnmatch.h): Likewise.
73314         * modules/getopt (getopt.h): Likewise.
73315         * modules/glob (glob.h): Likewise.
73316         * modules/inttypes (inttypes.h): Likewise.
73317         * modules/netinet_in (netinet/in.h): Likewise.
73318         * modules/poll (poll.h): Likewise.
73319         * modules/stdbool (stdbool.h): Likewise.
73320         * modules/stdint (stdint.h): Likewise.
73321         * modules/sys_select (sys/select.h): Likewise.
73322         * modules/sys_socket (sys/socket.h): Likewise.
73323         * modules/sys_stat (sys/stat.h): Likewise.
73324         * modules/sysexits (sysexits.h): Likewise.
73325         * modules/unistd (unistd.h): Likewise.
73326         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73327         Add a "DO NOT EDIT" comment to the generated file.
73328         (func_import): Likewise for gnulib-comp.m4.
73329
73330 2006-10-07  Bruno Haible  <bruno@clisp.org>
73331
73332         * lib/gl_sublist.h: New file.
73333         * lib/gl_sublist.c: New file.
73334
73335 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73336
73337         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73338         name (relative to the original working directory) and the file
73339         name component (relative to the temporary working directory).  All
73340         callers changed.
73341         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73342         * lib/mkdir-p.c (make_dir_parents): Likewise.
73343         * lib/mkdir-p.h (make_dir_parents): Likewise.
73344
73345 2006-10-06  Eric Blake  <ebb9@byu.net>
73346
73347         Define several macros for use by the clean-temp module.
73348         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73349         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73350         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73351
73352         * lib/clean-temp.h (close_stream_temp): New declaration.
73353         * lib/clean-temp.c (includes): Pull in headers according to what
73354         other modules are in use.
73355         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73356
73357 2006-10-06  Bruno Haible  <bruno@clisp.org>
73358
73359         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73360         instead of fopen, fwriteerror.
73361
73362 2006-10-06  Bruno Haible  <bruno@clisp.org>
73363
73364         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73365         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73366         int.
73367         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73368         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73369         Return an error indicator.
73370         Suggested by Eric Blake.
73371
73372 2006-10-06  Bruno Haible  <bruno@clisp.org>
73373
73374         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73375         Reported by Eric Blake.
73376
73377 2006-10-06  Bruno Haible  <bruno@clisp.org>
73378
73379         * modules/closeout (Description): Mention stderr too.
73380
73381 2006-10-06  Bruno Haible  <bruno@clisp.org>
73382         and Paul Eggert  <eggert@cs.ucla.edu>
73383
73384         * lib/closeout.c (close_stdout): Also close stderr.
73385         * lib/closeout.h: Update comment.
73386
73387 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73388
73389         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73390         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73391         * lib/dirchownmod.c: Include lchown.h.
73392         * lib/lchown.c: Don't include files that lchown.h now includes.
73393         Don't declare chown, since lchown.h now does that.
73394         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73395         (lchown): Define to rpl_chown if lchown is declared but
73396         does not exist.  Declare using a prototype if lchown is not
73397         declared.  Add a copyright notice.
73398         * lib/mkstemp.h: Include <unistd.h>.
73399         * lib/openat.c: Include lchown.h.
73400
73401         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73402         we now test for that separately.
73403         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73404         rather than O_NOFOLLOW, when testing whether it's possible to
73405         avoid a race condition reliably.
73406         * lib/savewd.c (savewd_chdir): Likewise.
73407
73408         Remove macros that are no longer needed now that stdint.h is
73409         reliable.
73410         * lib/fsusage.c (UINTMAX_MAX): Remove.
73411         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73412         * lib/utimecmp.c (SIZE_MAX): Remove.
73413
73414         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73415
73416         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73417         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73418         O_NOATIME works.
73419
73420 2006-10-05  Bruno Haible  <bruno@clisp.org>
73421
73422         * lib/gl_list.h (gl_sortedlist_search_from_to,
73423         gl_sortedlist_indexof_from_to): New declarations.
73424         (gl_list_implementation): New fields sortedlist_search_from_to,
73425         sortedlist_indexof_from_to.
73426         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73427         inline functions.
73428         * lib/gl_list.c (gl_sortedlist_search_from_to,
73429         gl_sortedlist_indexof_from_to): New functions.
73430         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73431         function.
73432         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73433         (gl_array_sortedlist_search_from_to): New function.
73434         (gl_array_list_implementation): Update.
73435         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73436         function.
73437         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73438         (gl_carray_sortedlist_search_from_to): New function.
73439         (gl_carray_list_implementation): Update.
73440         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73441         gl_linked_sortedlist_indexof_from_to): New functions.
73442         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73443         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73444         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73445         gl_tree_sortedlist_indexof_from_to): New functions.
73446         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73447         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73448         Update.
73449         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73450         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73451         Update.
73452
73453 2006-10-05  Bruno Haible  <bruno@clisp.org>
73454
73455         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73456         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73457         (struct gl_list_implementation): Add fields search_from_to,
73458         indexof_from_to. Remove fields search, indexof.
73459         (gl_list_search): Use the search_from_to method.
73460         (gl_list_search_from, gl_list_search_from_to): New functions.
73461         (gl_list_indexof): Use the indexof_from_to method.
73462         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73463         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73464         (gl_list_search_from, gl_list_search_from_to): New functions.
73465         (gl_list_indexof): Use the indexof_from_to method.
73466         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73467         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73468         gl_array_indexof. Add start_index, end_index arguments.
73469         (gl_array_search_from_to): Renamed from gl_array_search. Add
73470         start_index, end_index arguments.
73471         (gl_array_remove, gl_array_list_implementation): Update.
73472         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73473         gl_carray_indexof. Add start_index, end_index arguments.
73474         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73475         start_index, end_index arguments.
73476         (gl_carray_remove, gl_carray_list_implementation): Update.
73477         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73478         gl_linked_search. Add start_index, end_index arguments.
73479         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73480         start_index, end_index arguments.
73481         (gl_linked_remove): Update.
73482         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73483         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73484         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73485         field to 'size_t'.
73486         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73487         gl_tree_search. Add start_index, end_index arguments.
73488         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73489         start_index, end_index arguments.
73490         (gl_tree_remove): Update.
73491         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73492         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73493         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73494         function.
73495         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73496         gl_tree_search. Add start_index, end_index arguments.
73497         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73498         start_index, end_index arguments.
73499         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73500         Update.
73501         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73502
73503 2006-10-05  Bruno Haible  <bruno@clisp.org>
73504
73505         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73506
73507         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73508         fwriteerror_temp): New declarations.
73509         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73510         (descriptors): New variable.
73511         (cleanup): First, close the descriptors.
73512         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73513         fclose_temp, fwriteerror_temp): New functions.
73514
73515 2006-10-04  Jim Meyering  <jim@meyering.net>
73516
73517         * lib/fts.c (fts_open): Tiny comment change.
73518
73519 2006-10-04  Bruno Haible  <bruno@clisp.org>
73520
73521         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73522         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73523         gl_LOCK_BODY.
73524         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73525         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73526         gl_LOCK_EARLY_BODY.
73527         (gl_LOCK): Require gl_LOCK_BODY.
73528
73529 2006-10-04  Bruno Haible  <bruno@clisp.org>
73530
73531         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73532         (gl_oset_search_atleast): New declaration.
73533         (struct gl_oset_implementation): Add field 'search_atleast'.
73534         (gl_oset_search_atleast): New inline function.
73535         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73536         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73537         (gl_array_oset_implementation): Update.
73538         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73539         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73540         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73541
73542 2006-10-04  Bruno Haible  <bruno@clisp.org>
73543
73544         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73545
73546 2006-10-03  Bruno Haible  <bruno@clisp.org>
73547
73548         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73549         from gl_avltreehash_list_implementation.
73550
73551 2006-10-03  Bruno Haible  <bruno@clisp.org>
73552
73553         * lib/gl_oset.c (gl_oset_add): Fix return type.
73554
73555 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73556
73557         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73558
73559 2006-10-02  Eric Blake  <ebb9@byu.net>
73560
73561         * modules/strnlen (Depends-on): Add extensions.
73562
73563 2006-10-02  Eric Blake  <ebb9@byu.net>
73564
73565         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73566         definition in 2.60+.
73567
73568 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73569
73570         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73571         checks.
73572
73573 2006-10-02  Bruno Haible  <bruno@clisp.org>
73574
73575         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73576         to the AUTOMAKE_OPTIONS.
73577         Reported by Jim Meyering.
73578
73579 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73580
73581         Work around bug in Solaris 10 /proc file system:
73582         /proc/self/fd/NNN/.. isn't the parent directory of
73583         the directory whose file descriptor is NNN.  This needs to
73584         be worked around at run time, not compile time, since a
73585         program might be built on Solaris 8, where things work, and
73586         run on Solaris 10.
73587         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73588         to use the following interface instead:
73589         (OPENAT_BUFFER_SIZE): New macro.
73590         (openat_proc_name): New function.
73591         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73592         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73593         Likewise.
73594         * lib/openat-proc.c: New file.
73595         * modules/openat (Files): Add lib/openat-proc.c.
73596         (Depends-on): Add same-inode, stdbool.
73597         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73598
73599 2006-09-29  Bruno Haible  <bruno@clisp.org>
73600
73601         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73602         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73603         argument. Set stdout_closed before testing for ferror, not after.
73604         (fwriteerror, fwriteerror_no_ebadf): New functions.
73605
73606 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73607
73608         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73609
73610 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73611
73612         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73613         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73614
73615 2006-09-28  Jim Meyering  <jim@meyering.net>
73616
73617         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73618         Include <unistd.h>.
73619
73620 2006-09-28  Bruno Haible  <bruno@clisp.org>
73621
73622         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73623         * modules/linkedhash-list (Depends-on): Likewise.
73624         * modules/rbtreehash-list (Depends-on): Likewise.
73625
73626 2006-09-28  Bruno Haible  <bruno@clisp.org>
73627
73628         * lib/strndup.h: Simplify the redefinition of strndup.
73629         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73630         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73631
73632 2006-09-28  Bruno Haible  <bruno@clisp.org>
73633
73634         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73635         * lib/gl_linkedhash_list.c: Likewise.
73636         * lib/gl_rbtreehash_list.c: Likewise.
73637
73638 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73639
73640         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73641         getaddrinfo.
73642
73643         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73644         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73645         it causes <stdio_ext.h> to cause a compile-time error.
73646         Problem reported by Nelson H. F. Beebe.
73647         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73648         of HAVE_DECL___PENDING.
73649
73650         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73651         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73652         declaration.
73653
73654 2006-09-27  Jim Meyering  <jim@meyering.net>
73655
73656         This file could end up with a definition for a function
73657         named __strndup, rather than rpl_strndup on a system with
73658         incomplete weak_alias support.
73659         * lib/strndup.c (strndup): Rename from __strndup.
73660         Remove #defines that used to map __strndup to strndup.
73661         Don't use K&R prototypes.
73662         Remove LIBC-related code, since this file is not sync'd with glibc.
73663         * lib/strndup.h: Revamp, accordingly.
73664         * m4/strndup.m4: Modernize.
73665
73666 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73667
73668         * modules/savewd (Depends-on): Add 'raise'.
73669         * lib/savewd.c: Include <signal.h>, for 'raise'.
73670
73671 2006-09-26  Jim Meyering  <jim@meyering.net>
73672
73673         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73674         when we detect Darwin 8.7.0's acl_get_file bug.
73675         Rearrange to perform the new (below) run-test while $LIBS
73676         contains any acl-related library.  Set USE_ACL at the end.
73677         (gl_ACL_GET_FILE): New function.
73678
73679 2006-09-26  Eric Blake  <ebb9@byu.net>
73680
73681         * lib/verror.c: Include <config.h> unconditionally.
73682
73683 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73684
73685         * modules/clock-time (Maintainer): Add self.
73686         * modules/getlogin_r (Depends-on): Add extensions.
73687
73688 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73689
73690         * modules/clock-time: New module.
73691         * modules/nanosleep (Depends-on): Add clock-time.
73692         * modules/gethrxtime (Depends-on): Likewise.
73693         * modules/gettime (Depends-on): Likewise.
73694         * modules/settime (Depends-on): Likewise.
73695
73696         * modules/fts-lgpl: Depend on openat.
73697         * modules/mkancesdirs: Depend on savewd.
73698         * modules/mkdir-p: Likewise.
73699
73700 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73701
73702         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73703
73704         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73705         `gl_have_arbitrary_file_name_length_limit' to
73706         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73707         actually works between configure runs.
73708
73709 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73710             Bruno Haible  <bruno@clisp.org>
73711
73712         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73713
73714 2006-09-25  Jim Meyering  <jim@meyering.net>
73715
73716         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73717         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73718
73719 2006-09-25  Eric Blake  <ebb9@byu.net>
73720
73721         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73722         exec's in 2006-09-18 patch when shuffling fds.
73723
73724 2006-09-25  Bruno Haible  <bruno@clisp.org>
73725
73726         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73727         Reported by Jim Meyering.
73728
73729 2006-09-24  Jim Meyering  <jim@meyering.net>
73730
73731         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73732         compare a pointer against a literal "0".  That caused failures with
73733         at least HP-UX's hpcc.
73734
73735 2006-09-22  Simon Josefsson  <jas@extundo.com>
73736
73737         * modules/gc-sha1:
73738         * modules/gc-md4:
73739         * modules/gc-hmac-sha1:
73740         * modules/gc-hmac-md5:
73741         * modules/gc-des:
73742         * modules/gc-arcfour: Distribute more files.
73743
73744 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73745
73746         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73747         (gl_linked_iterator_from_to): Initialize struct completely.
73748         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73749         (gl_tree_iterator_from_to): Likewise
73750         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73751         * lib/gl_array_list.c [lint] (gl_array_iterator)
73752         (gl_array_iterator_from_to): Likewise.
73753         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73754         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73755         (gl_carray_iterator_from_to): Likewise.
73756
73757         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73758         * lib/md4.c (md4_process_block): Remove unused variable.
73759         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73760         parentheses for clarity.
73761
73762 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73763
73764         * modules/bison-i18n (Depends-on): Add gettext.
73765
73766 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73767
73768         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73769         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73770         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73771         also add missing comma that caused broken test.
73772         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73773         stdlib.h, for `abort'.
73774         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73775         variables.
73776         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73777         include unistd.h if present, for `rmdir'.
73778         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73779         variables.
73780         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73781         in the process include standard headers for prototypes.
73782         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73783         gets declared on GNU/Linux.
73784         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73785         unistd.h, for `rmdir'.
73786         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73787
73788         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73789         always true.
73790         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73791
73792         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73793
73794 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73795
73796         * gnulib-tool (func_version): Create output all at once.  This
73797         may help avoid triggering unnecessary SIGPIPEs, and at any
73798         rate it doesn't hurt.
73799
73800 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73801             Bruno Haible  <bruno@clisp.org>
73802
73803         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73804         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73805         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73806
73807         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73808         (gl_FUNC_VASPRINTF): Invoke it.
73809
73810 2006-09-22  Bruno Haible  <bruno@clisp.org>
73811
73812         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73813         getloadavg.c as first argument.
73814
73815 2006-09-22  Bruno Haible  <bruno@clisp.org>
73816
73817         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73818         at the beginning of the gl_INIT macro.
73819         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73820         gl_GETLOADAVG.
73821
73822 2006-09-22  Bruno Haible  <bruno@clisp.org>
73823
73824         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73825         module.
73826         Suggested by Ralf Wildenhues.
73827
73828 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73829
73830         Import this patch from libc:
73831
73832         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73833
73834         * lib/regex_internal.c (re_string_reconstruct): Handle
73835         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73836         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73837         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73838         re_string_context_at.
73839
73840         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73841         now requires it.
73842         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73843         gl_REGEX now does it for us.
73844         (gl_REGEX): Add test taken from
73845         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73846
73847         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73848         Check that large offsets work.  Modernize Autoconf usages.
73849         Prefer "yes" to mean a good thing rather than a bad.
73850         Don't put "#define mkstemp" in config.h, as this might interfere
73851         with standard system headers that "#define mkstemp mkstemp64".
73852
73853         * modules/mkstemp (Depends-on): Add extensions, so that
73854         mkstemp is visible on some platforms.
73855         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73856         (Include): Change to "mkstemp.h" from <stdlib.h>.
73857         (Files): Add mkstemp.h.
73858
73859         * lib/mkstemp.h: New file, since some standard headers
73860         #define mkstemp.
73861         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73862         Include "mkstemp.h".
73863         Make the _LIBC code resemble glibc original more,
73864         e.g., use K&R style.
73865         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73866         (mkstemp): Remove, since mkstemp.h does this for us.
73867         * lib/stdlib--.h: Include mkstemp.h.
73868
73869         Import this patch from libc:
73870
73871         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73872
73873         * lib/tempname.c (__gen_tempname): Change attempts_min
73874         into a macro.  Use preprocessor to decide how to initialize
73875         attempts [Coverity CID 67].
73876
73877 2006-09-20  Bruno Haible  <bruno@clisp.org>
73878
73879         * lib/mkdtemp.c: Import from libc.
73880         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73881                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73882                 attempts_min into a macro.  Use preprocessor to decide how to
73883                 initialize attempts [Coverity CID 67].
73884         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73885                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73886                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73887
73888 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73889
73890         * gnulib-tool (func_exit): New function, to allow to pass the
73891         exit status portably through the trap.  Use everywhere.
73892         (--help, --version): Signal a write error.
73893         (trap): catch SIGPIPE, for write errors.
73894         Exit at the end of the trap, with the correct exit status.
73895
73896 2006-09-19  Karl Berry  <karl@gnu.org>
73897
73898         * doc/gnulib.texi: note about the license texinfo files.
73899
73900 2006-09-19  Eric Blake  <ebb9@byu.net>
73901
73902         * gnulib-tool: Avoid space-tab.
73903
73904 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73905
73906         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73907         that prevented coreutils 6.1 from building.  Problem reported
73908         by Petter Reinholdtsen.
73909
73910 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73911
73912         * gnulib-tool (avoidlist): Fix typo that broke options like
73913         --avoid=lock that are used by coreutils bootstrap.
73914
73915 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73916
73917         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73918         more systematically.
73919
73920 2006-09-18  Jim Meyering  <jim@meyering.net>
73921
73922         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73923
73924 2006-09-18  Bruno Haible  <bruno@clisp.org>
73925
73926         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73927
73928 2006-09-18  Bruno Haible  <bruno@clisp.org>
73929
73930         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73931         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73932         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73933         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73934         * m4/gettext.m4: Require autoconf >= 2.52.
73935         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73936         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73937         of gl_cv_header_inttypes_h.
73938
73939 2006-09-18  Bruno Haible  <bruno@clisp.org>
73940
73941         * lib/javaversion.c: Include configmake.h.
73942
73943 2006-09-18  Bruno Haible  <bruno@clisp.org>
73944
73945         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73946         avoid that the while loops be executed in a subshell.
73947
73948 2006-09-18  Bruno Haible  <bruno@clisp.org>
73949
73950         * MODULES.html.sh (func_module): Break long lines.
73951         Suggested by Bruce Korb <bkorb@gnu.org>.
73952
73953 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73954
73955         Speed up by a factor of 1.12.
73956         * gnulib-tool (nl): New variable.
73957         (func_import): Rewrite include directive extraction to only read each
73958         directive once.
73959
73960 2006-09-17  Bruno Haible  <bruno@clisp.org>
73961
73962         * modules/javaversion (Makefile.am): Remove DEFS setting.
73963         (Depends-on): Add configmake, for PKGDATADIR definition.
73964
73965 2006-09-17  Bruno Haible  <bruno@clisp.org>
73966
73967         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73968
73969 2006-09-17  Bruno Haible  <bruno@clisp.org>
73970
73971         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73972         (func_modules_transitive_closure, func_modules_add_dummy,
73973         func_modules_to_filelist, func_import, func_create_testdir,
73974         func_create_megatestdir, ...): Use it wherever possible.
73975         Suggested by Ralf Wildenhues.
73976
73977 2006-09-16  Karl Berry  <karl@gnu.org>
73978
73979         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73980         to avoid sectioning errors.
73981         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73982         [ifinfo]: blank line after @center-ed titles.
73983         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73984         Spell FSF address consistently with others.
73985         (These changes approved by rms.)
73986
73987 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73988
73989         Speed up by a factor of 1.61.
73990         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73991         already checked module names again.
73992
73993 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73994
73995         Speed up by a factor of 1.13.
73996         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73997         for new_files, and the input to func_add_or_update.
73998
73999 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74000
74001         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74002         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74003
74004 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74005
74006         * modules/mkancesdirs (Depends-on): Add fcntl.
74007         * modules/savewd: New file.
74008         * MODULES.html.sh (File system functions): Add savewd.
74009
74010         * modules/configmake (Makefile.am): Add support for the
74011         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74012
74013 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74014
74015         * m4/savewd.m4: New file.
74016
74017 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74018
74019         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74020         (dirchownmod): New arg FD.  All callers changed.
74021         Use FD rather than opening the directory ourself, as opening is
74022         now the caller's responsibility.
74023         * lib/dirchownmod.h: Likewise.
74024         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74025         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74026         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74027         (test_dir): Remove.
74028         (mkancesdirs): Return length of prefix of FILE that has already
74029         been made, or -2 if there is a child doing the work.  Redo
74030         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74031         ".", and treat ".." specially since it might stray back into
74032         already-created areas.  Use a subprocess if necessary.  New arg
74033         WD; all users changed.  MAKE_DIR function should now return 1
74034         if it creates a directory that is not readable.  Return -2 if
74035         a child process is spun off.
74036         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74037         Adjust signature to match code.
74038         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74039         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74040         all users changed.
74041         * lib/savewd.c, lib/savewd.h: New files.
74042
74043 2006-09-15  Jim Meyering  <jim@meyering.net>
74044
74045         * modules/rename-dest-slash: New module.
74046         * MODULES.html.sh (posix_compat): Add it here.
74047
74048         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74049
74050 2006-09-15  Jim Meyering  <jim@meyering.net>
74051
74052         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74053         file.
74054
74055         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74056
74057 2006-09-15  Jim Meyering  <jim@meyering.net>
74058
74059         * lib/rename-dest-slash.c (has_trailing_slash): Use
74060         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74061         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74062         test before testing whether SRC is a directory.
74063         Suggestions from Bruno Haible.
74064
74065         Avoid a warning about an unused variable.
74066         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74067         into the #ifdef block where it's used.
74068
74069         * lib/rename-dest-slash.c: New file.
74070
74071 2006-09-14  Bruno Haible  <bruno@clisp.org>
74072
74073         * lib/allocsa.c: Include <config.h> unconditionally.
74074         * lib/asnprintf.c: Likewise.
74075         * lib/asprintf.c: Likewise.
74076         * lib/c-strcasecmp.c: Likewise.
74077         * lib/c-strcasestr.c: Likewise.
74078         * lib/c-strncasecmp.c: Likewise.
74079         * lib/c-strstr.c: Likewise.
74080         * lib/classpath.c: Likewise.
74081         * lib/clean-temp.c: Likewise.
74082         * lib/concatpath.c: Likewise.
74083         * lib/copy-file.c: Likewise.
74084         * lib/csharpcomp.c: Likewise.
74085         * lib/csharpexec.c: Likewise.
74086         * lib/execute.c: Likewise.
74087         * lib/fatal-signal.c: Likewise.
74088         * lib/findprog.c: Likewise.
74089         * lib/fwriteerror.c: Likewise.
74090         * lib/gl_array_list.c: Likewise.
74091         * lib/gl_array_oset.c: Likewise.
74092         * lib/gl_avltree_list.c: Likewise.
74093         * lib/gl_avltree_oset.c: Likewise.
74094         * lib/gl_avltreehash_list.c: Likewise.
74095         * lib/gl_carray_list.c: Likewise.
74096         * lib/gl_linked_list.c: Likewise.
74097         * lib/gl_linkedhash_list.c: Likewise.
74098         * lib/gl_list.c: Likewise.
74099         * lib/gl_oset.c: Likewise.
74100         * lib/gl_rbtree_list.c: Likewise.
74101         * lib/gl_rbtree_oset.c: Likewise.
74102         * lib/gl_rbtreehash_list.c: Likewise.
74103         * lib/imaxabs.c: Likewise.
74104         * lib/imaxdiv.c: Likewise.
74105         * lib/javacomp.c: Likewise.
74106         * lib/javaexec.c: Likewise.
74107         * lib/javaversion.c: Likewise.
74108         * lib/linebreak.c: Likewise.
74109         * lib/localcharset.c: Likewise.
74110         * lib/lock.c: Likewise.
74111         * lib/mbchar.c: Likewise.
74112         * lib/mbswidth.c: Likewise.
74113         * lib/mkdtemp.c: Likewise.
74114         * lib/pipe.c: Likewise.
74115         * lib/printf-args.c: Likewise.
74116         * lib/printf-parse.c: Likewise.
74117         * lib/progname.c: Likewise.
74118         * lib/progreloc.c: Likewise.
74119         * lib/readlink.c: Likewise.
74120         * lib/sh-quote.c: Likewise.
74121         * lib/stpcpy.c: Likewise.
74122         * lib/stpncpy.c: Likewise.
74123         * lib/strcasecmp.c: Likewise.
74124         * lib/strcasestr.c: Likewise.
74125         * lib/strcspn.c: Likewise.
74126         * lib/striconv.c: Likewise.
74127         * lib/strncasecmp.c: Likewise.
74128         * lib/strnlen1.c: Likewise.
74129         * lib/strstr.c: Likewise.
74130         * lib/strtok_r.c: Likewise.
74131         * lib/tls.c: Likewise.
74132         * lib/tmpdir.c: Likewise.
74133         * lib/unicodeio.c: Likewise.
74134         * lib/unsetenv.c: Likewise.
74135         * lib/vasnprintf.c: Likewise.
74136         * lib/vasprintf.c: Likewise.
74137         * lib/wait-process.c: Likewise.
74138         * lib/xallocsa.c: Likewise.
74139         * lib/xsetenv.c: Likewise.
74140         * lib/xstriconv.c: Likewise.
74141
74142 2006-09-13  Simon Josefsson  <jas@extundo.com>
74143
74144         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74145         that internally, suggested by Ralf Wildenhues
74146         <Ralf.Wildenhues@gmx.de>.
74147
74148 2006-09-13  Simon Josefsson  <jas@extundo.com>
74149
74150         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74151         @LIBOBJS@.
74152         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74153
74154 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74155
74156         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74157         longer worry about uses that don't define HAVE_CONFIG_H.
74158         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74159         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74160         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74161         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74162         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74163         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74164         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74165         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74166         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74167         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74168         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74169         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74170         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74171         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74172         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74173         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74174         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74175         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74176         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74177         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74178         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74179         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74180         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74181         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74182         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74183         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74184         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74185         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74186         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74187         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74188         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74189         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74190         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74191         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74192         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74193         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74194         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74195         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74196         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74197         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74198         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74199         Likewise.
74200
74201 2006-09-13  Eric Blake  <ebb9@byu.net>
74202
74203         * lib/getopt.c: Fix typo in last commit.
74204
74205 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74206
74207         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74208         dgettext.
74209
74210 2006-09-12  Jim Meyering  <jim@meyering.net>
74211
74212         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74213         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74214         Reported by Nelson H. F. Beebe.
74215
74216 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74217
74218         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74219         program_invocation_name and program_invocation_short_name are
74220         initialized.
74221         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74222         and program_invocation_short_name to argp.h, so they are visible
74223         to user programs.
74224         * lib/argp.h: Likewise
74225
74226 2006-09-10  Bruno Haible  <bruno@clisp.org>
74227
74228         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74229         m4/inttypes_h.m4, m4/uintmax_t.m4.
74230
74231 2006-09-10  Bruno Haible  <bruno@clisp.org>
74232
74233         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74234         gl_AC_TYPE_UINTMAX_T.
74235
74236 2006-09-10  Bruno Haible  <bruno@clisp.org>
74237
74238         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74239
74240 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74241
74242         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74243         convention.  Text proposed by Bruno Haible.
74244         (struct argp_option): Document the use of N_() wrappers.
74245
74246         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74247         '\v', and translate the two parts separately, instead of feeding
74248         the whole string to gettext.  This allows to exclude
74249         '\v' from the strings visible to the translator by writing doc
74250         strings as N_("..") "\v" N_("..").
74251
74252 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74253
74254         * config/srclist.txt: Undo latest change; the bug was fixed.
74255
74256 2006-09-09  Bruno Haible  <bruno@clisp.org>
74257
74258         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74259         assignments if building a library without libtool.
74260         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74261         in func_emit_lib_Makefile_am.
74262         (func_import): When building a static library libfoo.a, arrange to
74263         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74264         (func_create_testdir): Likewise.
74265         * modules/gc (configure.ac, Makefile.am): If building statically,
74266         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74267         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74268         * modules/striconv (configure.ac, Makefile.am): Likewise.
74269         Based on a suggestion by Ralf Wildenhues.
74270
74271 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74272
74273         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74274         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74275         Also:
74276
74277         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74278         Add year_2050_test to catch glibc bug 2821
74279         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74280
74281         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74282         Prefer #ifdef to #if.
74283
74284         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74285         Return from 'main' instead of calling 'exit'.
74286
74287 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74288
74289         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74290         returned the maximum time_t value rather than (time_t) -1.
74291         Problem originally reported by William Bardwell
74292         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74293
74294         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74295         Moved to here ...
74296         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74297         ... from here.
74298
74299 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74300
74301         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74302         2821 is fixed.
74303
74304 2006-09-08  Jim Meyering  <jim@meyering.net>
74305
74306         Don't make generated files read-only.  That would bother too many
74307         people.  However, do retain the ability to work when targets are
74308         read-only: remove the destination and temporary files before writing
74309         them (when generated via sed or echo), or by using the -f option for
74310         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74311         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74312         * modules/byteswap, modules/configmake, modules/fcntl:
74313         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74314         * modules/localcharset, modules/netinet_in, modules/poll:
74315         * modules/stdbool, modules/stdint, modules/sys_select:
74316         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74317
74318 2006-09-08  Jim Meyering  <jim@meyering.net>
74319
74320         Avoid new build failure on FreeBSD 6.0.
74321         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74322         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74323         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74324
74325 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74326
74327         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74328
74329 2006-09-07  Jim Meyering  <jim@meyering.net>
74330
74331         Fix global typo in last change: use chmod u-w, not chmod u-x.
74332         Spotted by Paul Eggert and Bruce Korb.
74333         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74334         * modules/byteswap, modules/configmake, modules/fcntl:
74335         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74336         * modules/localcharset, modules/netinet_in, modules/poll:
74337         * modules/stdbool, modules/stdint, modules/sys_select:
74338         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74339
74340 2006-09-06  Jim Meyering  <jim@meyering.net>
74341
74342         Make generated files be read-only.
74343         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74344         Ensure that each generated file is now read-only.
74345         * modules/argz: Likewise.
74346         * modules/arpa_inet: Likewise.
74347         * modules/byteswap: Likewise.
74348         * modules/configmake: Likewise.
74349         * modules/fcntl: Likewise.
74350         * modules/fnmatch: Likewise.
74351         * modules/getopt: Likewise.
74352         * modules/glob: Likewise.
74353         * modules/inttypes: Likewise.
74354         * modules/netinet_in: Likewise.
74355         * modules/poll: Likewise.
74356         * modules/stdbool: Likewise.
74357         * modules/stdint: Likewise.
74358         * modules/sys_select: Likewise.
74359         * modules/sys_socket: Likewise.
74360         * modules/sys_stat: Likewise.
74361         * modules/sysexits: Likewise.
74362         * modules/localcharset: Same as above, but continue using temporary
74363         file named "t-$@" (why different?) rather than the "$@-t" used
74364         everywhere else.
74365
74366         * modules/sysexits (Makefile.am): Replace literal occurrences
74367         of "sysexit.h" more readable, and more consistent, "$@".
74368
74369 2006-09-06  Bruno Haible  <bruno@clisp.org>
74370
74371         * modules/striconv: New file.
74372         * modules/xstriconv: New file.
74373         * MODULES.html.sh (Internationalization functions): Add striconv,
74374         xstriconv.
74375
74376 2006-09-06  Bruno Haible  <bruno@clisp.org>
74377
74378         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74379         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74380         not using libtool correctly.
74381
74382 2006-09-06  Bruno Haible  <bruno@clisp.org>
74383
74384         * lib/striconv.h: New file.
74385         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74386         iconvstring.c.
74387         * lib/xstriconv.h: New file.
74388         * lib/xstriconv.c: New file.
74389
74390 2006-09-06  Bruno Haible  <bruno@clisp.org>
74391
74392         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74393         lib_..._LDFLAGS.
74394
74395 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74396
74397         * lib/argz_.h: Sync from Libtool.
74398
74399         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74400                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74401
74402         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74403
74404 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74405
74406         * modules/trim: New file.
74407
74408 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74409
74410         * lib/trim.h: New file.
74411         * lib/trim.c: New file.
74412
74413 2006-09-05  Bruno Haible  <bruno@clisp.org>
74414
74415         * MODULES.html.sh (String handling): Add trim.
74416
74417 2006-09-04  Karl Berry  <karl@gnu.org>
74418
74419         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74420         until next release.
74421
74422 2006-09-03  Bruno Haible  <bruno@clisp.org>
74423
74424         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74425         correctly.
74426
74427 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74428
74429         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74430         not gl_GETLOADAVG.  Omit unneeded semicolons.
74431         Problems reported by Ralf Wildenhues in
74432         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74433         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74434         at the end, which is the usual gnulib style.
74435
74436         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74437         of doing all the work ourselves.
74438         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74439         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74440
74441 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74442
74443         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74444         Problem reported by Ralf Wildenhues in
74445         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74446
74447         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74448         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74449
74450 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74451
74452         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74453         yesterday's patch by changing test -n to test -z.
74454
74455 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74456
74457         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74458         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74459         the former is now obsolescent.
74460
74461         * modules/chdir-long (Depends-on): Add fcntl.
74462
74463 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74464
74465         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74466         obsolescent, and programs should use gnulib instead.
74467         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74468         but with prefixes changed.
74469
74470 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74471
74472         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74473         or stdbool.h, because they might not exist while configuring.
74474
74475         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74476         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74477         does that for us.
74478         (O_DIRECTORY): Remove.
74479
74480 2006-08-31  Eric Blake  <ebb9@byu.net>
74481
74482         * gnulib-tool: Don't let emacs change spaces to TAB.
74483
74484 2006-08-31  Bruno Haible  <bruno@clisp.org>
74485
74486         * gnulib-tool: When calling func_import more than once, do it in a
74487         subshell.
74488         Reported by Eric Blake <ebb9@byu.net>.
74489
74490 2006-08-31  Bruno Haible  <bruno@clisp.org>
74491
74492         * gnulib-tool (nl): Remove variable.
74493         (sed_transform_lib_file): Use more robust test for config-h module.
74494         (func_import): Fix typo in 2006-08-25 patch.
74495
74496 2006-08-31  Bruno Haible  <bruno@clisp.org>
74497
74498         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74499         specified, augment Makefile.am variables instead of assigning them.
74500
74501 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74502
74503         Work around a bug in both the Linux and SunOS 64-bit kernels:
74504         nanosleep mishandles sleeps for longer than 2**31 seconds.
74505         Problem reported by Frank v Waveren in
74506         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74507         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74508         Check for nanosleep bug.
74509         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74510
74511 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74512
74513         Work around a bug in both the Linux and SunOS 64-bit kernels:
74514         nanosleep mishandles sleeps for longer than 2**31 seconds.
74515         Problem reported by Frank v Waveren in
74516         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74517         * lib/nanosleep.c (BILLION): New constant.
74518         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74519         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74520         implementation.
74521
74522 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74523
74524         * modules/nanosleep (Depends-on): Add gettime.
74525
74526 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74527         and Simon Josefsson  <jas@extundo.com>
74528         and Oskar Liljeblad  <oskar@osk.mine.nu>
74529
74530         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74531         * gnulib-tool (func_import): New license type 'unmodifiable license
74532         text'.
74533         * modules/fdl: Use it.  Longer description.
74534         * module/gpl, module/lgpl: New files.
74535
74536 2006-08-30  Jim Meyering  <jim@meyering.net>
74537
74538         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74539         shadowing the parameter.
74540
74541 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74542
74543         Sync from Libtool:
74544
74545         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74546
74547         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74548         sharing with gnulib.  Report by Eric Blake.
74549
74550 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74551
74552         * modules/isapipe: New file.
74553         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74554
74555 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74556
74557         * modules/configmake (Makefile.am): Add a comment, and omit
74558         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74559         by Bruno Haible.
74560
74561 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74562
74563         * m4/isapipe.m4: New file.
74564
74565 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74566
74567         * lib/isapipe.c, lib/isapipe.h: New files.
74568
74569 2006-08-29  Jim Meyering  <jim@meyering.net>
74570
74571         * modules/configmake (Makefile.am): Make configmake.h depend on
74572         Makefile.  Otherwise, a stale configmake.h could hang around.
74573
74574 2006-08-29  Eric Blake  <ebb9@byu.net>
74575
74576         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74577         resolution of upstream bug 3044.
74578
74579 2006-08-29  Bruno Haible  <bruno@clisp.org>
74580
74581         * modules/localcharset (Depends-on): Add configmake.
74582         (Makefile.am): Remove setting of LIBDIR through DEFS.
74583
74584 2006-08-29  Bruno Haible  <bruno@clisp.org>
74585
74586         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74587         defined.
74588
74589 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74590
74591         * modules/fcntl: New file.
74592         * modules/chdir-safer (Depends-on): Add fcntl.
74593         * modules/fts: Likewise.
74594         * modules/mkdir-p: Likewise.
74595
74596         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74597         This undoes the most recent change, since we're now addressing the
74598         problem in a different way.
74599
74600         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74601         into output, since the output might be called Makefile.am even
74602         if $makefile_name is something different.
74603         (func_import): Use $makefile_am rather than
74604         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74605         empty.
74606
74607         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74608
74609 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74610
74611         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74612         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74613         recent change to stdint.m4, since we're now addressing the problem in a
74614         different way.
74615
74616 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74617
74618         * m4/fcntl_h.m4: New file.
74619
74620 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74621
74622         * lib/fcntl_.h: New file.
74623         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74624         the fcntl module.
74625         * lib/dirchownmod.c: Likewise.
74626         * lib/fts.c: Likewise.
74627
74628         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74629         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74630         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74631         just before including <inttypes.h>, to avoid circular inclusion.
74632
74633 2006-08-28  Jim Meyering  <jim@meyering.net>
74634
74635         * doc/visibility.texi: Actually read and correct the grammar of the
74636         sentence affected by yesterday's change.
74637
74638 2006-08-28  Eric Blake  <ebb9@byu.net>
74639
74640         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74641         needs wrapper.
74642
74643 2006-08-28  Eric Blake  <ebb9@byu.net>
74644
74645         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74646
74647 2006-08-28  Eric Blake  <ebb9@byu.net>
74648
74649         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74650
74651 2006-08-28  Bruno Haible  <bruno@clisp.org>
74652
74653         * modules/c-strstr: New file, from GNU gettext.
74654         * MODULES.html.sh (String handling): Add c-strstr.
74655
74656 2006-08-28  Bruno Haible  <bruno@clisp.org>
74657
74658         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74659         macros.
74660         Reported by Eric Blake.
74661
74662 2006-08-28  Bruno Haible  <bruno@clisp.org>
74663
74664         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74665         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74666         * lib/vasprintf.c: Include errno.h, limits.h.
74667         (EOVERFLOW): New fallback definition.
74668         (vasprintf): Test here whether the string length is > INT_MAX.
74669         * lib/vsnprintf.c: Include errno.h, limits.h.
74670         (EOVERFLOW): New fallback definition.
74671         (vsnprintf): Fix bug when generated string was too long for the buffer.
74672         Test here whether the string length is > INT_MAX.
74673
74674 2006-08-28  Bruno Haible  <bruno@clisp.org>
74675
74676         * lib/inttypes_.h (SCNX*): Remove definitions.
74677         Reported by Eric Blake.
74678
74679 2006-08-28  Bruno Haible  <bruno@clisp.org>
74680
74681         * lib/c-strstr.h: New file, from GNU gettext.
74682         * lib/c-strstr.c: New file, from GNU gettext.
74683
74684 2006-08-28  Bruno Haible  <bruno@clisp.org>
74685
74686         * gnulib-tool: Reorder some statements.
74687
74688 2006-08-28  Bruno Haible  <bruno@clisp.org>
74689
74690         * gnulib-tool: New option --makefile-name.
74691         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74692         $makefile_name.
74693         (func_import): Write $makefile_name to the cache file, and read it from
74694         there unless explicitly specified. Use $makefile_name as file name
74695         instead of Makefile.am. Adjust the recommendations accordingly.
74696
74697 2006-08-28  Bruno Haible  <bruno@clisp.org>
74698
74699         * gnulib-tool (func_verify_module): Check against misapplying patch.
74700
74701 2006-08-28  Bruno Haible  <bruno@clisp.org>
74702
74703         * gnulib-tool (func_relativize, func_relconcat): New functions.
74704         Give an error if --local-dir is given with --update.
74705         Remove trailing slashes from $local_gnulib_dir.
74706         (func_import): Store the relativized $local_gnulib_dir in
74707         gnulib-cache.m4, and read it from there if not specified explicitly.
74708
74709 2006-08-28  Bruno Haible  <bruno@clisp.org>
74710
74711         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74712         is the current directory. Respect also $local_gnulib_dir.
74713
74714 2006-08-28  Bruno Haible  <bruno@clisp.org>
74715             Simon Josefsson  <jas@extundo.com>
74716
74717         BeOS portability.
74718         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74719
74720 2006-08-27  Jim Meyering  <jim@meyering.net>
74721
74722         * doc/visibility.texi: Remove duplicate word: "pointer".
74723
74724 2006-08-26  Bruno Haible  <bruno@clisp.org>
74725
74726         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74727         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74728         (Makefile.am): Create inttypes.h from inttypes_.h.
74729         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74730
74731         * modules/imaxabs: New file.
74732
74733         * modules/imaxdiv: New file.
74734
74735 2006-08-26  Bruno Haible  <bruno@clisp.org>
74736
74737         * m4/inttypes.m4: New file.
74738         * m4/_inttypes_h.m4: Remove file.
74739         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74740         PRI_MACROS_BROKEN.
74741         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74742
74743         * m4/imaxabs.m4: New file.
74744
74745         * m4/imaxdiv.m4: New file.
74746
74747 2006-08-26  Bruno Haible  <bruno@clisp.org>
74748
74749         * lib/inttypes_.h: New file.
74750         * lib/inttypes.h: Remove file.
74751         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74752
74753         * lib/imaxabs.c: New file.
74754
74755         * lib/imaxdiv.c: New file.
74756
74757 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74758
74759         New config-h module, so that "make" output needn't be cluttered
74760         by -DHAVE_CONFIG_H.
74761         * MODULES.html.sh (Support for building libraries and executables):
74762         Add config-h.
74763         * modules/config-h: New file.
74764         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74765         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74766         the config-h module is used.
74767
74768         New configmake module, so that "make" output needn't be cluttered
74769         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74770         * MODULES.html.sh (Support for building libraries and executables):
74771         Add configmake.
74772         * modules/configmake: New file.
74773
74774 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74775
74776         * m4/config-h.m4: New file.
74777
74778 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74779
74780         * config/srclist.txt: Add elisp-comp.
74781
74782 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74783
74784         * MODULES.html.sh (Support for building libraries and executables):
74785         Add elisp-comp.
74786         * build-aux/elisp-comp: New file.
74787         * modules/elisp-comp: New file.
74788
74789 2006-08-24  Bruno Haible  <bruno@clisp.org>
74790
74791         * gnulib-tool (func_create_testdir): Use non-default values of
74792         sourcebase and m4base.
74793
74794 2006-08-24  Bruno Haible  <bruno@clisp.org>
74795
74796         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74797         HTML structure.
74798
74799 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74800
74801         * modules/openat (Depends-on): Add lchown.
74802
74803 2006-08-23  Bruno Haible  <bruno@clisp.org>
74804
74805         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74806         of gl_LOCK_EARLY instead of gl_LOCK.
74807
74808 2006-08-23  Bruno Haible  <bruno@clisp.org>
74809
74810         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74811         on OSF/1 to no.
74812         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74813
74814 2006-08-23  Bruno Haible  <bruno@clisp.org>
74815
74816         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74817         as unusable.
74818
74819         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74820         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74821         (gl_LOCK): New macro.
74822
74823 2006-08-22  Simon Josefsson  <jas@extundo.com>
74824
74825         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74826         to md5 module.
74827
74828 2006-08-22  Simon Josefsson  <jas@extundo.com>
74829
74830         * MODULES.html.sh: Add "Support for maintaining and release
74831         projects".
74832
74833         * build-aux/gnupload: New file, from coreutils.
74834
74835 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74836
74837         Avoid the need for AC_LIBSOURCES in m4 macros.
74838         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74839         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74840         * modules/check-version (EXTRA_DIST): Add check-version.h.
74841         * modules/crc (EXTRA_DIST): Add crc.h.
74842         * modules/des (EXTRA_DIST): Add des.h.
74843         * modules/gc (EXTRA_DIST): Add gc.h.
74844         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74845         * modules/getline (EXTRA_DIST): Add getline.h.
74846         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74847         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74848         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74849         * modules/md2 (EXTRA_DIST): Add md2.h.
74850         * modules/md4 (EXTRA_DIST): Add md4.h.
74851         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74852         * modules/read-file (EXTRA_DIST): Add read-file.h.
74853         * modules/readline (EXTRA_DIST): Add readline.h.
74854         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74855         rijndael-api-fst.h.
74856
74857 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74858
74859         * m4/rijndael.m4 (gl_ARCFOUR):
74860         * m4/arctwo.m4 (gl_ARCTWO):
74861         * m4/check-version.m4 (gl_CHECK_VERSION):
74862         * m4/crc.m4 (gl_CRC):
74863         * m4/des.m4 (gl_DES):
74864         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74865         * m4/gc.m4 (gl_GC):
74866         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74867         * m4/getline.m4 (gl_FUNC_GETLINE):
74868         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74869         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74870         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74871         * m4/md2.m4 (gl_MD2):
74872         * m4/md4.m4 (gl_MD4):
74873         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74874         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74875         * m4/readline.m4 (gl_FUNC_READLINE):
74876         * m4/rijndael.m4 (gl_RIJNDAEL):
74877         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74878         to get the necessary .h files and whatnot.
74879
74880 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74881
74882         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74883         gnulib rather than the other way around.
74884         * config/srclistvars.sh (COREUTILS): Remove.
74885
74886 2006-08-22  Jim Meyering  <jim@meyering.net>
74887
74888         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74889
74890         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74891
74892 2006-08-22  Eric Blake  <ebb9@byu.net>
74893
74894         * modules/regexprops-generic: New file.
74895         * MODULES.html.sh (Support for building documentation): List it.
74896
74897 2006-08-22  Eric Blake  <ebb9@byu.net>
74898
74899         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74900         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74901         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74902         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74903
74904 2006-08-22  Bruno Haible  <bruno@clisp.org>
74905
74906         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74907         and lib_LTLIBRARIES like the other lib_* variables.
74908
74909 2006-08-22  Bruno Haible  <bruno@clisp.org>
74910
74911         * build-aux/x-to-1.in: New file, from GNU gettext.
74912
74913 2006-08-22  Bruno Haible  <bruno@clisp.org>
74914
74915         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74916         <utmpx.h> exists.
74917
74918 2006-08-22  Bruno Haible  <bruno@clisp.org>
74919
74920         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74921         <utmpx.h> exists.
74922
74923 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74924
74925         BeOS portability.
74926         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74927         exist.
74928         Problem reported by Bruno Haible.
74929
74930 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74931
74932         Avoid the need for AC_LIBSOURCES in m4 macros.
74933         * modules/acl (EXTRA_DIST): Add acl.h.
74934         * modules/argmatch (Files): Add m4/argmatch.m4.
74935         (configure.ac): Add gl_ARGMATCH.
74936         (EXTRA_DIST): Renamed from lib_SOURCES, for
74937         consistency with the other modules.  Remove argmatch.c.
74938         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74939         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74940         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74941         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74942         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74943         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74944         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74945         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74946         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74947         * modules/closeout (EXTRA_DIST): Add closeout.h.
74948         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74949         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74950         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74951         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74952         dirname.h; remove basename.c and stripslash.c.
74953         * modules/exclude (EXTRA_DIST): Add exclude.h.
74954         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74955         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74956         * modules/file-type (EXTRA_DIST): Add file-type.h.
74957         * modules/filemode (EXTRA_DIST): Add filemode.h.
74958         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74959         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74960         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74961         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74962         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74963         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74964         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74965         * modules/getdate (EXTRA_DIST): Add getdate.c.
74966         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74967         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74968         * modules/getpass (EXTRA_DIST): Add getpass.h.
74969         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74970         * modules/group-member (EXTRA_DIST): Add group-member.h.
74971         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74972         * modules/hash (EXTRA_DIST): Add hash.h.
74973         * modules/human (EXTRA_DIST): Add human.h.
74974         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74975         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74976         * modules/lchown (EXTRA_DIST): Add lchown.h.
74977         * modules/long-options (EXTRA_DIST): Add long-options.h.
74978         * modules/lstat (EXTRA_DIST): Add lstat.h.
74979         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74980         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74981         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74982         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74983         * modules/memxor (EXTRA_DIST): Add memxor.h.
74984         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74985         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74986         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74987         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74988         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74989         * modules/physmem (EXTRA_DIST): Add physmem.h.
74990         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74991         * modules/posixver (EXTRA_DIST): Add posixver.h.
74992         * modules/quote (EXTRA_DIST): Add quote.h.
74993         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74994         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74995         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74996         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74997         regex_internal.h regexec.c.
74998         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74999         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75000         * modules/same (EXTRA_DIST): Add same.h.
75001         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75002         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75003         * modules/savedir (EXTRA_DIST): Add savedir.h.
75004         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75005         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75006         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75007         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75008         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75009         * modules/strdup (EXTRA_DIST): Add strdup.h.
75010         * modules/strftime (EXTRA_DIST): Add strftime.h.
75011         * modules/strndup (EXTRA_DIST): Add strndup.h.
75012         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75013         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75014         * modules/time_r (EXTRA_DIST): Add time_r.h.
75015         * modules/timespec (EXTRA_DIST): Add timespec.h.
75016         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75017         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75018         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75019         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75020         * modules/userspec (EXTRA_DIST): Add userspec.h.
75021         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75022         * modules/utimens (EXTRA_DIST): Add utimens.h.
75023         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75024         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75025         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75026         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75027         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75028         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75029         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75030         * modules/yesno (EXTRA_DIST): Add yesno.h.
75031
75032 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75033
75034         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75035
75036         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75037         * m4/dev-ino.m4, same-inode.m4: Remove.
75038
75039         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75040         * m4/acl.m4 (AC_FUNC_ACL):
75041         * m4/backupfile.m4 (gl_BACKUPFILE):
75042         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75043         * m4/canon-host.m4 (gl_CANON_HOST):
75044         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75045         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75046         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75047         * m4/cloexec.m4 (gl_CLOEXEC):
75048         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75049         * m4/closeout.m4 (gl_CLOSEOUT):
75050         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75051         * m4/dirname.m4 (gl_DIRNAME):
75052         * m4/exclude.m4 (gl_EXCLUDE):
75053         * m4/exitfail.m4 (gl_EXITFAIL):
75054         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75055         * m4/file-type.m4 (gl_FILE_TYPE):
75056         * m4/filemode.m4 (gl_FILEMODE):
75057         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75058         * m4/fpending.m4 (gl_FUNC_FPENDING):
75059         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75060         * m4/fts.m4 (gl_FUNC_FTS):
75061         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75062         * m4/getdate.m4 (gl_GETDATE):
75063         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75064         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75065         * m4/getpass.m4 (gl_FUNC_GETPASS):
75066         * m4/gettime.m4 (gl_GETTIME):
75067         * m4/getugroups.m4 (gl_GETUGROUPS):
75068         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75069         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75070         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75071         * m4/hash.m4 (gl_HASH):
75072         * m4/idcache.m4 (gl_IDCACHE):
75073         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75074         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75075         * m4/long-options.m4 (gl_LONG_OPTIONS):
75076         * m4/lstat.m4 (gl_FUNC_LSTAT):
75077         * m4/md5.m4 (gl_MD5):
75078         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75079         * m4/memcoll.m4 (gl_MEMCOLL):
75080         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75081         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75082         * m4/memxor.m4 (gl_MEMXOR):
75083         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75084         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75085         * m4/modechange.m4 (gl_MODECHANGE):
75086         * m4/mountlist.m4 (gl_MOUNTLIST):
75087         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75088         * m4/openat.m4 (gl_FUNC_OPENAT):
75089         * m4/pathmax.m4 (gl_PATHMAX):
75090         * m4/physmem.m4 (gl_PHYSMEM):
75091         * m4/posixtm.m4 (gl_POSIXTM):
75092         * m4/posixver.m4 (gl_POSIXVER):
75093         * m4/quote.m4 (gl_QUOTE):
75094         * m4/quotearg.m4 (gl_QUOTEARG):
75095         * m4/readtokens.m4 (gl_READTOKENS):
75096         * m4/readutmp.m4 (gl_READUTMP):
75097         * m4/regex.m4 (gl_REGEX):
75098         * m4/safe-read.m4 (gl_SAFE_READ):
75099         * m4/safe-write.m4 (gl_SAFE_WRITE):
75100         * m4/same.m4 (gl_SAME):
75101         * m4/save-cwd.m4 (gl_SAVE_CWD):
75102         * m4/savedir.m4 (gl_SAVEDIR):
75103         * m4/settime.m4 (gl_SETTIME):
75104         * m4/sha1.m4 (gl_SHA1):
75105         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75106         * m4/stat-macros.m4 (gl_STAT_MACROS):
75107         * m4/stat-time.m4 (gl_STAT_TIME):
75108         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75109         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75110         * m4/strdup.m4 (gl_FUNC_STRDUP):
75111         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75112         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75113         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75114         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75115         * m4/time_r.m4 (gl_TIME_R):
75116         * m4/timespec.m4 (gl_TIMESPEC):
75117         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75118         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75119         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75120         * m4/userspec.m4 (gl_USERSPEC):
75121         * m4/utimecmp.m4 (gl_UTIMECMP):
75122         * m4/utimens.m4 (gl_UTIMENS):
75123         * m4/xalloc.m4 (gl_XALLOC):
75124         * m4/xgetcwd.m4 (gl_XGETCWD):
75125         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75126         * m4/xreadlink.m4 (gl_XREADLINK):
75127         * m4/xstrtod.m4 (gl_XSTRTOD):
75128         * m4/yesno.m4 (gl_YESNO):
75129         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75130         to get the necessary .h files and whatnot.
75131
75132 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75133             Bruno Haible  <bruno@clisp.org>
75134
75135         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75136         /bin/sh understanding of '!' conditional negation.
75137
75138 2006-08-21  Jim Meyering  <jim@meyering.net>
75139
75140         * modules/openat (Depends-on): Really alphabetize.
75141
75142         * modules/acl (Depends-on): Add error and quote.
75143
75144         * check-module (find_included_lib_files): Add at-func.c to the
75145         ok-to-include-more-than-once white list.
75146
75147         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75148
75149 2006-08-21  Bruno Haible  <bruno@clisp.org>
75150
75151         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75152         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75153         Reported by Martin Lambers <marlam@marlam.de>.
75154
75155 2006-08-21  Bruno Haible  <bruno@clisp.org>
75156
75157         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75158         specify an installation location, don't emit a noinst_LIBRARIES or
75159         noinst_LTLIBRARIES assignment.
75160
75161 2006-08-21  Bruno Haible  <bruno@clisp.org>
75162
75163         BeOS portability.
75164         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75165         BeOS has mbrtowc() but no <wctype.h>.
75166
75167 2006-08-21  Bruno Haible  <bruno@clisp.org>
75168
75169         BeOS portability.
75170         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75171         exist.
75172
75173 2006-08-21  Bruno Haible  <bruno@clisp.org>
75174
75175         BeOS portability.
75176         * lib/mbchar.h: Include <wctype.h> only if it exists.
75177
75178 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75179
75180         Remove files that are no longer needed by their respective modules.
75181         * m4/obstack.m4: Remove.
75182         * m4/strerror_r.m4: Remove.
75183         * m4/uint32_t.m4: Remove.
75184         * m4/uintptr_t.m4: Remove.
75185         * m4/ullong_max.m4: Remove.
75186         * m4/xstrtoimax.m4: Remove.
75187         * m4/xstrtoumax.m4: Remove.
75188
75189         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75190         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75191         dependencies now capture this.
75192
75193         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75194         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75195         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75196         * m4/human.m4 (gl_HUMAN): Likewise.
75197         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75198         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75199
75200         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75201
75202         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75203         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75204         stdint.
75205         * m4/human.m4 (gl_HUMAN): Likewise.
75206         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75207         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75208         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75209         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75210         * m4/xstrtol (gl_XSTRTOL): Likewise.
75211
75212         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75213         AC_TYPE_LONG_LONG_INT.
75214         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75215         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75216         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75217         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75218
75219         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75220         on stdbool.
75221
75222         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75223         (gl_PREREQ_XSTRTOUL): Remove.
75224
75225         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75226
75227         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75228         mode.
75229
75230 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75231
75232         Add and change modules to make it easier for coreutils to use
75233         gnulib-tool.
75234         * modules/backupfile (Files): Remove m4/d-ino.m4.
75235         (Depends-on): Add d-ino.
75236         * modules/cycle-check (Depends-on): Add stdint.
75237         (lib_SOURCES): Add cycle-check.h.
75238         * modules/d-ino: New module.
75239         * modules/d-type: New module.
75240         * modules/error (Files): Remove m4/strerror_r.m4.
75241         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75242         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75243         m4/inttypes_h.m4, m4/uintmax_t.m4.
75244         (Depends-on): Add stdint.
75245         (lib_SOURCES): Add fsusage.h.
75246         * modules/getcwd (Files): Remove d-ino.m4.
75247         (Depends-on): Add d-ino.
75248         * modules/getndelim2 (Depends-on): Add stdint.
75249         * modules/glob (Files): Remove m4/d-type.m4.
75250         (Depends-on): Add d-type.
75251         * modules/host-os: New module.
75252         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75253         m4/inttypes_h.m4, m4/uintmax_t.m4.
75254         * Depends-on: Add stdint.
75255         (lib_SOURCES): Add human.h.
75256         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75257         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75258         m4/uintmax_t.m4, m4/ulonglong.m4.
75259         (Depends-on): Add stdint.
75260         (EXTRA_DIST): Add inttostr.h.
75261         * modules/lchmod: New module.
75262         * modules/link-follow: New module.
75263         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75264         (Depends-on): Add lchmod.
75265         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75266         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75267         (Depends-on): Add stdint.
75268         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75269         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75270         (Depends-on): Add stdint.
75271         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75272         * modules/perl: New module.
75273         * modules/regex (Depends-on): Add stdint.
75274         * modules/rmdir-errno: New module.
75275         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75276         m4/intmax_t.m4.
75277         (Depends-on): Add stdint.
75278         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75279         m4/uintmax_t.m4.
75280         (Depends-on): Add stdint.
75281         * modules/unlink-busy: New module.
75282         * modules/utimecmp (Depends-on): Add stdint.
75283         * modules/uptime: New module.
75284         * modules/winsz-ioctl: New module.
75285         * modules/winsz-termios: New module.
75286         * modules/xnanosleep (Depends-on): Add nanosleep.
75287         * modules/ullong_max: Remove.
75288         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75289         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75290         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75291         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75292         (Depends-on): Add inttypes.
75293         (lib_SOURCES): Add xstrtol.h.
75294         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75295         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75296         * MODULES.html.sh: Move 'assert' into the assert section.
75297         Move 'dummy' into the linking section.
75298         Remove ullong_max.
75299         Add section for compatibility checks for POSIX:2001 functions,
75300         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75301         winsz-ioctl, and winsz-termios into it.
75302         Add lchmod.
75303         Add top-level Misc section and put host-os, perl, and uptime
75304         into it.
75305
75306 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75307
75308         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75309         now assume the stdint module.  Do not include inttypes.h.
75310         * lib/fsusage.h: Likewise.
75311         * lib/getndelim2.c: Likewise.
75312         * lib/human.h: Likewise.
75313         * lib/inttostr.h: Likewise.
75314         * lib/obstack.c: Likewise.
75315         * lib/regex_internal.h: Likewise.
75316         * lib/tempname.c: Likewise.
75317         * lib/utimecmp.c: Likewise.
75318         * lib/xstrtol.h: Likewise.
75319
75320         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75321
75322         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75323         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75324         * lib/xtime.h: Likewise.
75325
75326 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75327
75328         * modules/openat (Files): Add lib/fchmodat.c.
75329         Fixes problem reported by Jay Youngman.
75330
75331 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75332
75333         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75334         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75335
75336 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75337             Bruno Haible  <bruno@clisp.org>
75338
75339         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75340         and is a script that invokes bison. Tighten the code. Add comments.
75341
75342 2006-08-18  Jim Meyering  <jim@meyering.net>
75343
75344         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75345         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75346         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75347         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75348
75349 2006-08-18  Bruno Haible  <bruno@clisp.org>
75350
75351         * modules/bison-i18n: New file.
75352         * MODULES.html.sh (Internationalization functions): Add it.
75353
75354 2006-08-18  Bruno Haible  <bruno@clisp.org>
75355
75356         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75357         sys/statvfs.h. When getmntinfo was found, check its declaration and
75358         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75359
75360 2006-08-18  Bruno Haible  <bruno@clisp.org>
75361
75362         * m4/bison-i18n.m4: New file, from bison.
75363
75364 2006-08-18  Bruno Haible  <bruno@clisp.org>
75365
75366         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75367         (ME_DUMMY): Treat "kernfs" as a dummy.
75368         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75369
75370 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75371
75372         Update from coreutils.
75373
75374         2006-08-15  Jim Meyering  <jim@meyering.net>
75375
75376         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75377
75378         2006-01-17  Jim Meyering  <jim@meyering.net>
75379
75380         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75381
75382         2006-01-11  Jim Meyering  <jim@meyering.net>
75383
75384         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75385         Check for the lchmod function.
75386
75387 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75388
75389         Update from coreutils.
75390
75391         * lib/__fpending.h: Add copyright notice.
75392         * lib/fprintftime.h: Likewise.
75393         * lib/savedir.c: Use (C) in copyright notice.
75394         * lib/savedir.h: Likewise.
75395
75396         2006-08-15  Jim Meyering  <jim@meyering.net>
75397
75398         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75399         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75400         in support of the EXPECTED_ERRNO macro.
75401         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75402         definitions.  Instead, define the appropriate symbols and include
75403         "at-func.c".
75404         * lib/mkdirat.c (mkdirat): Likewise.
75405         * lib/fchmodat.c (fchmodat): Likewise.
75406         (ENOSYS): Remove definition.
75407         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75408         it.  Don't include "unistd--.h" -- it wasn't ever used.
75409
75410         2006-01-17  Jim Meyering  <jim@meyering.net>
75411
75412         Rewrite fts.c not to change the current working directory,
75413         by using openat, fstatat, fdopendir, etc..
75414
75415         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75416         (HAVE_OPENAT_SUPPORT): Define.
75417         [_LIBC] (fchdir): Don't undef or define; no longer used.
75418         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75419         Now, this `function' always succeeds, and consumes its file descriptor
75420         parameter -- so callers must not close such FDs.  Update callers.
75421         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75422         (diropen): Add parameter, SP.  Adjust all callers.
75423         Implement using diropen_fd, rather than open.
75424         (fts_open): Initialize new member, fts_cwd_fd.
75425         Remove fts_rft-setting code.
75426         (fts_close): Close fts_cwd_fd, if necessary.
75427         (__opendir2): Define in terms of opendir or opendirat,
75428         depending on whether the FST_NOCHDIR flag is set.
75429         (fts_build): Since fts_safe_changedir consumes its FD, and since
75430         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75431         and close the dup'd file descriptor upon failure.
75432         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75433         (fts_safe_changedir): Tweak semantics to reflect that this function
75434         now calls cwd_advance_fd and hence consumes its FD argument.
75435         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75436         [struct FTS] (fts_rft): Remove now-unused member.
75437         [struct FTS] (fts_cycle.state): Improve comment.
75438
75439         * lib/openat.c (openat_needs_fchdir): New function.
75440         * lib/openat.h (openat_needs_fchdir): Declare it.
75441
75442 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75443
75444         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75445         Problem and fix reported by Pádraig Brady in
75446         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75447
75448 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75449
75450         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75451
75452 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75453
75454         * lib/memcoll.c (memcoll): Optimize for the common case where the
75455         arguments are bytewise equal.
75456
75457 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75458
75459         * doc/regexprops-generic.texi: Add a copyright notice.
75460
75461 2006-08-15  Bruno Haible  <bruno@clisp.org>
75462
75463         * modules/tmpdir (License): Change to LGPL.
75464
75465 2006-08-15  Bruno Haible  <bruno@clisp.org>
75466
75467         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75468         module.
75469
75470 2006-08-14  Simon Josefsson  <jas@extundo.com>
75471
75472         * config/srclist.txt: Add gnupload.
75473
75474 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75475
75476         Change copyright notice from LGPL 2 to GPL 2, since that's the
75477         standard form used in the gnulib repository.
75478         * tests/test-lock.c: Likewise.
75479         * tests/test-stdint.c: Likewise.
75480         * tests/test-tls.c: Likewise.
75481
75482         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75483         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75484         Add copyright notice.
75485
75486         * check-module: Add copyright notice.  Output a copyright
75487         notice if "--version" is specified.
75488         * modules/COPYING: New file.
75489         * tests/test-getaddrinfo.c: Add copyright notice.
75490         * tests/test-verify.c: Likewise.
75491
75492 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75493
75494         Change copyright notice from LGPL 2 to GPL 2, since that's the
75495         standard form used in the gnulib repository.
75496         * lib/lock.c: LGPL -> GPL.
75497         * lib/lock.h: Likewise.
75498         * lib/strnlen1.c: Likewise.
75499         * lib/strnlen1.h: Likewise.
75500         * lib/tls.c: Likewise.
75501         * lib/tls.h: Likewise.
75502         * lib/tmpdir.c: Likewise.
75503
75504         * lib/TODO: Remove; this belongs only in coreutils.
75505
75506 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75507
75508         Add copyright notices to long-enough files that lack them, since
75509         otherwise the files aren't clearly free.  Use the same notice that
75510         getdate.texi already uses.
75511         * doc/alloca-opt.texi: Add copyright notice.
75512         * doc/alloca.texi: Likewise.
75513         * doc/ctime.texi: Likewise.
75514         * doc/functions.texi: Likewise.
75515         * doc/gcd.texi: Likewise.
75516         * doc/gnulib-tool.texi: Likewise.
75517         * doc/inet_ntoa.texi: Likewise.
75518         * doc/visibility.texi: Likewise.
75519
75520         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75521         * doc/quote.texi: Add copyright notice.
75522
75523         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75524         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75525         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75526         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75527         is now obsolete, and give a pointer to the Sun list.
75528         Add copyright notice.
75529
75530 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75531
75532         * config/srclistvars.sh: Add copyright notice.
75533
75534 2006-08-14  Eric Blake  <ebb9@byu.net>
75535
75536         Import the following change from libc:
75537
75538         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75539
75540         Upstream bug 2997.
75541         * lib/misc/error.c: Add space between program name and message if file
75542         name is missing.
75543
75544 2006-08-12  Karl Berry  <karl@gnu.org>
75545
75546         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75547         remove, these originate in gnulib now.
75548
75549 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75550
75551         * doc/Makefile (standards.info standards.html standards.dvi):
75552         Also depend on make-stds.texi.
75553
75554 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75555
75556         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75557         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75558
75559         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75560         in wchar_t.  Problem reported by Eric Blake.
75561
75562         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75563         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75564         Also, help the compiler to keep LEN in a register.
75565
75566 2006-08-11  Eric Blake  <ebb9@byu.net>
75567
75568         * users.txt: Sort.  Add tar.
75569
75570 2006-08-11  Bruno Haible  <bruno@clisp.org>
75571
75572         * users.txt: New file.
75573
75574 2006-08-11  Bruno Haible  <bruno@clisp.org>
75575
75576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75577         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75578
75579 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75580
75581         * modules/snprintf (Depends-on): Remove minmax.
75582         (Maintainer): Add self and Bruno.
75583
75584 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75585
75586         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75587         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75588         (EOVERFLOW): Define if the system does not.
75589         Do not include "minmax.h"; it wasn't used.
75590         (snprintf): Don't assume size_t promotes to an unsigned type.
75591         Fix bug when generated string was too long for the buffer: the
75592         buffer's contents are supposed to be the initial prefix of the
75593         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75594         exceeds INT_MAX; do the check ourselves.
75595
75596         Import the following changes from libc:
75597
75598         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75599
75600         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75601         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75602         set wc to the byte which couldn't be converted.
75603         (re_string_reconstruct): Don't clear valid_raw_len before calling
75604         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75605         tip_context using re_string_context_at.
75606
75607         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75608
75609         * lib/posix/regex.h: g++ still cannot handled [restrict].
75610
75611         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75612
75613         * lib/posix/regex.h: Remove special handling for VMS.
75614
75615 2006-08-10  Jim Meyering  <jim@meyering.net>
75616
75617         * modules/same-inode: New module.
75618         * modules/dev-ino: New module.
75619         * modules/cycle-check: Depend on these modules, rather than simply
75620         including their .h files.
75621         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75622         required via m4/cycle-check.m4.
75623         * modules/same: Depend on new same-inode module, rather than
75624         including same-inode.h.
75625         * modules/chdir-safer: New file.
75626
75627         * modules/chown (Depends-on): Add stat-macros.
75628
75629 2006-08-10  Jim Meyering  <jim@meyering.net>
75630
75631         * m4/cycle-check.m4: New file.
75632         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75633         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75634
75635 2006-08-10  Eric Blake  <ebb9@byu.net>
75636
75637         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75638         in from original proposal.
75639
75640 2006-08-10  Eric Blake  <ebb9@byu.net>
75641         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75642
75643         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75644         namespace.
75645
75646 2006-08-10  Bruno Haible  <bruno@clisp.org>
75647
75648         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75649         as well.
75650
75651 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75652
75653         Sync from coreutils.
75654
75655         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75656
75657         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75658         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75659
75660 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75661
75662         * modules/restrict: Remove; no longer needed now that we assume
75663         Autoconf 2.59 or later.
75664         * MODULES.html.sh: Remove 'restrict'.
75665         * modules/argp (Depends-on): Remove 'restrict'.
75666         * modules/base64 (Depends-on): Likewise.
75667         * modules/gc (Depends-on): Likewise.
75668         * modules/getaddrinfo (Depends-on): Likewise.
75669         * modules/glob (Depends-on): Likewise.
75670         * modules/inet_ntop (Depends-on): Likewise.
75671         * modules/inet_pton (Depends-on): Likewise.
75672         * modules/memxor (Depends-on): Likewise.
75673         * modules/regex (Depends-on): Likewise.
75674         * modules/strtok_r (Depends-on): Likewise.
75675         * modules/time_r (Depends-on): Likewise.
75676
75677 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75678
75679         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75680         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75681         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75682         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75683         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75684         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75685         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75686         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75687
75688         Merge from coreutils.
75689         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75690         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75691         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75692         * m4/time_r.m4 (gl_TIME_R): Likewise.
75693
75694 2006-08-09  Karl Berry  <karl@gnu.org>
75695
75696         * config/srclist.txt: no more gettext-tools, per Bruno.
75697
75698 2006-08-08  Eric Blake  <ebb9@byu.net>
75699
75700         * modules/verror: New module.
75701         * MODULES.html.sh: Document it.
75702
75703 2006-08-08  Eric Blake  <ebb9@byu.net>
75704
75705         * lib/verror.h, lib/verror.c: New files.
75706
75707 2006-08-08  Eric Blake  <ebb9@byu.net>
75708
75709         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75710         verror_at_line output complies with GNU Coding Standards even when
75711         file is NULL.
75712
75713 2006-08-07  Bruno Haible  <bruno@clisp.org>
75714
75715         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75716         versions of AIX.
75717         Reported by Ralf Wildenhues.
75718
75719 2006-08-07  Bruno Haible  <bruno@clisp.org>
75720
75721         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75722         in an AC_DEFUN. Needed so that the autoconf snippets can use
75723         AC_REQUIRE.
75724
75725 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75726
75727         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75728         Initialize pkgdata_DATA.
75729         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75730         overriding it.
75731
75732 2006-08-06  Eric Blake  <ebb9@byu.net>
75733
75734         * lib/error.h: Fold in some upstream changes from glibc.
75735         * lib/error.c: Likewise.
75736
75737 2006-08-04  Bruno Haible  <bruno@clisp.org>
75738
75739         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75740         Make the mostlyclean-local rule depend on mostlyclean-generic.
75741         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75742
75743 2006-07-31  Bruno Haible  <bruno@clisp.org>
75744
75745         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75746         <stdlib.h>, <string.h>.
75747
75748 2006-07-30  Bruno Haible  <bruno@clisp.org>
75749
75750         * modules/readlink (License): Change to LGPL.
75751
75752 2006-07-30  Bruno Haible  <bruno@clisp.org>
75753
75754         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75755         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75756         set PKGDATADIR to point to it.
75757
75758 2006-07-30  Bruno Haible  <bruno@clisp.org>
75759
75760         * modules/csharpexec (configure.ac): Comment out macro invocation.
75761         * modules/javaexec (configure.ac): Likewise.
75762         * modules/javacomp-script (configure.ac): Likewise.
75763
75764         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75765
75766 2006-07-30  Bruno Haible  <bruno@clisp.org>
75767
75768         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75769         linked-list.
75770
75771 2006-07-30  Bruno Haible  <bruno@clisp.org>
75772
75773         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75774
75775 2006-07-30  Bruno Haible  <bruno@clisp.org>
75776
75777         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75778         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75779         get removed.
75780
75781 2006-07-29  Bruno Haible  <bruno@clisp.org>
75782
75783         Make it possible for gnulib-tool to work with locally modified or
75784         augmented gnulib repositories.
75785         * gnulib-tool (func_usage): Document --local-dir option.
75786         (local_gnulib_dir): New variable.
75787         Handle --local-dir option.
75788         (func_lookup_file): New function.
75789         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75790         (func_get_description, func_get_filelist, func_get_description,
75791         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75792         func_get_automake_snippet, func_get_include_directive,
75793         func_get_license, func_get_maintainer): Use func_lookup_file.
75794         (func_import, func_create_testdir): Use func_lookup_file.
75795
75796 2006-07-29  Bruno Haible  <bruno@clisp.org>
75797
75798         * modules/setenv (Depends-on): Add unistd.
75799
75800 2006-07-29  Bruno Haible  <bruno@clisp.org>
75801
75802         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75803
75804 2006-07-29  Bruno Haible  <bruno@clisp.org>
75805
75806         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75807
75808 2006-07-29  Bruno Haible  <bruno@clisp.org>
75809
75810         * gnulib-tool (import, update): If there is no Makefile.am, look at
75811         aclocal.m4, instead of bailing out.
75812
75813 2006-07-29  Bruno Haible  <bruno@clisp.org>
75814
75815         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75816         Categorize the options by when they are useful.
75817
75818 2006-07-29  Bruno Haible  <bruno@clisp.org>
75819
75820         * gnulib-tool (func_usage): Document option --no-libtool.
75821         Handle option --no-libtool.
75822         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75823         for changed semantics of $libtool variable.
75824         (func_import): Likewise. If libtool is not used, show this through
75825         an option --no-libtool.
75826         (func_create_testdir): Update.
75827
75828 2006-07-29  Bruno Haible  <bruno@clisp.org>
75829
75830         * gnulib-tool (func_import): Extend error message about missing
75831         --doc-base.
75832
75833 2006-07-29  Bruno Haible  <bruno@clisp.org>
75834
75835         * gnulib-tool (func_import): Don't create the $docbase directory if
75836         there is no file to store there.
75837
75838 2006-07-29  Bruno Haible  <bruno@clisp.org>
75839
75840         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75841         relevant, look for configure.ac there, not in the current directory.
75842         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75843
75844 2006-07-29  Bruno Haible  <bruno@clisp.org>
75845
75846         * gnulib-tool (SORT): New variable.
75847         (func_usage): Undocument --assume-autoconf option.
75848         Remove --assume-autoconf option handling.
75849         (autoconf_minversion): Determine from the contents of configure.ac.
75850         (func_import): Remove autoconf_minversion handling.
75851         Suggested by Eric Blake.
75852
75853 2006-07-29  Bruno Haible  <bruno@clisp.org>
75854
75855         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75856
75857 2006-07-29  Bruno Haible  <bruno@clisp.org>
75858
75859         * config/srclist.txt (*setenv.[ch]): Remove rules.
75860
75861 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75862
75863         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75864
75865 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75866
75867         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75868         arpa/inet.h.
75869
75870 2006-07-28  Simon Josefsson  <jas@extundo.com>
75871
75872         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75873         * modules/inet_pton (Depends-on): Likewise.
75874
75875 2006-07-28  Simon Josefsson  <jas@extundo.com>
75876
75877         * m4/netinet_in_h.m4: New file.
75878
75879 2006-07-28  Simon Josefsson  <jas@extundo.com>
75880
75881         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75882         #include's.
75883
75884 2006-07-28  Simon Josefsson  <jas@extundo.com>
75885
75886         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75887         #include's.
75888
75889 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75890
75891         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75892         setgid on directories only if they set these bits.
75893         * lib/modechange.h: Remove obsolete comment about masks.
75894
75895 2006-07-28  Eric Blake  <ebb9@byu.net>
75896
75897         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75898         macro expansion.
75899
75900 2006-07-28  Bruno Haible  <bruno@clisp.org>
75901
75902         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75903
75904 2006-07-28  Bruno Haible  <bruno@clisp.org>
75905
75906         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75907
75908 2006-07-28  Bruno Haible  <bruno@clisp.org>
75909
75910         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75911         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75912         Define fallbacks.
75913         Avoids link error on FreeBSD 4.x.
75914         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75915
75916         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75917         encoding.
75918         * lib/mbswidth.c (iswcntrl): Likewise.
75919
75920 2006-07-27  Bruno Haible  <bruno@clisp.org>
75921
75922         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75923         test.
75924
75925 2006-07-27  Bruno Haible  <bruno@clisp.org>
75926
75927         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75928         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75929         defined.
75930
75931 2006-07-26  Eric Blake  <ebb9@byu.net>
75932
75933         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75934
75935 2006-07-26  Eric Blake  <ebb9@byu.net>
75936
75937         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75938         like mingw that lack mkstemp.
75939         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75940         avoid compilation warning on mingw.
75941
75942 2006-07-26  Bruno Haible  <bruno@clisp.org>
75943
75944         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75945         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75946         INT_FAST*_MIN, INTPTR_MIN.
75947
75948 2006-07-25  Bruno Haible  <bruno@clisp.org>
75949
75950         * modules/version-etc (Depends-on): Add stdarg.
75951
75952 2006-07-25  Bruno Haible  <bruno@clisp.org>
75953
75954         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75955         complex commands.
75956
75957 2006-07-25  Bruno Haible  <bruno@clisp.org>
75958
75959         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75960         defined in <stdarg.h> or config.h.
75961
75962 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75963
75964         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75965         (gl_STDIO_SAFER): Remove.
75966
75967 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75968
75969         * MODULES.html.sh (File stream based Input/Output):
75970         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75971         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75972         * modules/fopen-safer, modules/tmpfile-safer: New files.
75973         * modules/stdio-safer: Remove.
75974
75975 2006-07-24  Bruno Haible  <bruno@clisp.org>
75976
75977         * modules/tmpdir: New file.
75978         * MODULES.html.sh (File system functions): Add it.
75979
75980 2006-07-24  Bruno Haible  <bruno@clisp.org>
75981
75982         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75983         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75984
75985 2006-07-24  Bruno Haible  <bruno@clisp.org>
75986
75987         * modules/clean-temp: New file.
75988
75989 2006-07-24  Bruno Haible  <bruno@clisp.org>
75990
75991         * m4/tmpdir.m4: New file, from GNU gettext.
75992
75993 2006-07-24  Bruno Haible  <bruno@clisp.org>
75994
75995         * lib/tmpdir.h: New file, from GNU gettext.
75996         * lib/tmpdir.c: New file, from GNU gettext.
75997
75998 2006-07-24  Bruno Haible  <bruno@clisp.org>
75999
76000         * lib/clean-temp.h: New file, from GNU gettext.
76001         * lib/clean-temp.c: New file, from GNU gettext.
76002
76003 2006-07-23  Eric Blake  <ebb9@byu.net>
76004
76005         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76006         (Depends-on): Add binary-io.
76007
76008 2006-07-23  Eric Blake  <ebb9@byu.net>
76009
76010         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76011
76012 2006-07-23  Eric Blake  <ebb9@byu.net>
76013
76014         * lib/tmpfile-safer.c: New file.
76015         * lib/stdio-safer.h (fopen_safer): Add prototype.
76016         * lib/stdio--.h (tmpfile): Make safer.
76017
76018 2006-07-23  Bruno Haible  <bruno@clisp.org>
76019
76020         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76021         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76022         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76023         gl_linked_remove_at): Use it.
76024
76025 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76026         and Simon Josefsson <jas@extundo.com>
76027
76028         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76029
76030         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76031
76032 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76033
76034         * modules/close-stream: New file.
76035         * modules/closeout (Description): Make it clear that it exits
76036         with a diagnostic on error.
76037         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76038         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76039
76040 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76041
76042         * m4/close-stream.m4: New file.
76043
76044 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76045
76046         * lib/close-stream.c, lib/close-stream.h: New files.
76047
76048 2006-07-22  Bruno Haible  <bruno@clisp.org>
76049
76050         Merge from GNU gettext 0.15.
76051
76052         2006-05-01  Bruno Haible  <bruno@clisp.org>
76053
76054                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76055
76056         2006-07-22  Bruno Haible  <bruno@clisp.org>
76057
76058                 * modules/javaversion: New file.
76059                 * MODULES.html.sh (Java): Add javaversion.
76060
76061         2006-03-12  Bruno Haible  <bruno@clisp.org>
76062
76063                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76064
76065         2005-12-04  Bruno Haible  <bruno@clisp.org>
76066
76067                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76068                 (untested).
76069
76070         2006-06-21  Bruno Haible  <bruno@clisp.org>
76071
76072                 Avoid warnings from recent versions of mcs.
76073                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76074                 -o, -L, -r any more. Use options documented since mcs-1.0
76075                 instead. Similarly for -g.
76076
76077         2005-12-04  Bruno Haible  <bruno@clisp.org>
76078
76079                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76080                 .resources, not .resource.
76081
76082         2005-07-09  Bruno Haible  <bruno@clisp.org>
76083
76084                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76085                 add a .dll suffix.
76086                 Reported by Mark Junker <mjscod@gmx.de>.
76087
76088         2006-07-22  Bruno Haible  <bruno@clisp.org>
76089
76090                 * modules/gettext: Upgrade to gettext-0.15.
76091                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76092                 m4/visibility.m4.
76093                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76094
76095 2006-07-22  Bruno Haible  <bruno@clisp.org>
76096
76097         Merge from GNU gettext 0.15.
76098
76099         2006-03-25  Bruno Haible  <bruno@clisp.org>
76100
76101                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76102
76103         2006-07-21  Bruno Haible  <bruno@clisp.org>
76104
76105                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76106                 "1.1".
76107
76108         2006-05-09  Bruno Haible  <bruno@clisp.org>
76109
76110                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76111                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76112                 for the conftestver execution.
76113
76114         2006-05-01  Bruno Haible  <bruno@clisp.org>
76115
76116                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76117                 optional target-version argument. Verify that the compiler
76118                 groks source of the specified source-version, or add -source
76119                 option as necessary. Verify that the compiler produces
76120                 bytecode in the specified target-version, or add -target and
76121                 -source options as necessary. Make the result of the test
76122                 available as variable CONF_JAVAC. Also log error output in
76123                 config.log.
76124
76125         2006-03-11  Bruno Haible  <bruno@clisp.org>
76126
76127                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76128
76129         2006-05-09  Bruno Haible  <bruno@clisp.org>
76130
76131                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76132                 CLASSPATH_SEPARATOR to a semicolon.
76133
76134         2006-03-12  Bruno Haible  <bruno@clisp.org>
76135
76136                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76137                 available as variable CONF_JAVA, for subsequent autoconf
76138                 tests. Also log error output in config.log.
76139
76140         2006-07-19  Bruno Haible  <bruno@clisp.org>
76141
76142                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76143                 that getline works on glibc2 systems. Needed to avoid trouble
76144                 in relocatable.c.
76145                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76146
76147         2005-12-04  Bruno Haible  <bruno@clisp.org>
76148
76149                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76150                 launcher (untested).
76151
76152         2005-12-04  Bruno Haible  <bruno@clisp.org>
76153
76154                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76155
76156         2006-07-22  Bruno Haible  <bruno@clisp.org>
76157
76158                 * gettext.m4: Update from GNU gettext-0.15.
76159                 * nls.m4: Likewise.
76160                 * po.m4: Likewise.
76161                 * inttypes-pri.m4: Likewise.
76162                 * inttypes-h.m4: Renamed from inttypes.m4.
76163                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76164
76165 2006-07-22  Bruno Haible  <bruno@clisp.org>
76166
76167         Merge from GNU gettext 0.15.
76168
76169         2005-07-05  Bruno Haible  <bruno@clisp.org>
76170
76171                 * printf-args.c (printf_fetchargs): Work around broken
76172                 definition of wint_t on mingw.
76173
76174         2005-02-12  Bruno Haible  <bruno@clisp.org>
76175
76176                 * xallocsa.h: Add extern "C" for C++.
76177
76178         2006-05-17  Bruno Haible  <bruno@clisp.org>
76179
76180                 Cygwin portability.
76181                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76182
76183         2006-04-30  Bruno Haible  <bruno@clisp.org>
76184
76185                 * progreloc.c: Include <mach-o/dyld.h> if available.
76186                 (find_executable): Use _NSGetExecutablePath when possible.
76187
76188         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76189
76190                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76191                 function.
76192
76193         2005-12-29  Bruno Haible  <bruno@clisp.org>
76194
76195                 * progreloc.c (set_program_name_and_installdir): Fix
76196                 compilation error.
76197
76198         2005-12-04  Bruno Haible  <bruno@clisp.org>
76199
76200                 Cygwin portability.
76201                 * progreloc.c: Include <windows.h> also on Cygwin.
76202                 (find_executable): Add support for Cygwin.
76203                 (set_program_name_and_installdir): Handle also platforms with
76204                 nonempty EXEEXT.
76205
76206         2006-07-11  Bruno Haible  <bruno@clisp.org>
76207
76208                 * javacomp.c: Fix a comment.
76209                 Reported by Jim Meyering.
76210
76211         2006-04-30  Bruno Haible  <bruno@clisp.org>
76212
76213                 * javacomp.h (compile_java_class): Add source_version,
76214                 target_version arguments.
76215                 * javacomp.c: Rewritten to choose only a compiler that
76216                 respects the specified source_version and target_version.
76217
76218         2006-06-27  Bruno Haible  <bruno@clisp.org>
76219
76220                 Assume correct S_ISDIR macro.
76221                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76222
76223         2006-07-22  Bruno Haible  <bruno@clisp.org>
76224
76225                 * javaversion.h: New file, from GNU gettext.
76226                 * javaversion.c: New file, from GNU gettext.
76227                 * javaversion.java: New file, from GNU gettext.
76228                 * javaversion.class: New file, from GNU gettext.
76229
76230         2006-05-17  Bruno Haible  <bruno@clisp.org>
76231
76232                 Cygwin portability.
76233                 * javaexec.c (execute_java_class): Test for jview program
76234                 also on Cygwin.
76235
76236         2006-04-09  Bruno Haible  <bruno@clisp.org>
76237
76238                 * fatal-signal.c: Don't include string.h.
76239                 (at_fatal_signal): Use a copying loop instead of memcpy.
76240
76241         2005-12-04  Bruno Haible  <bruno@clisp.org>
76242
76243                 * csharpexec.c: Add support for 'clix' launcher (untested).
76244                 (execute_csharp_using_sscli): New function.
76245                 (execute_csharp_program): Call it.
76246
76247         2006-06-21  Bruno Haible  <bruno@clisp.org>
76248
76249                 Avoid warnings from recent versions of mcs.
76250                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76251                 -o, -L, -r any more. Use options documented since mcs-1.0
76252                 instead. Similarly for -g.
76253
76254         2005-07-09  Bruno Haible  <bruno@clisp.org>
76255
76256                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76257                 add a .dll suffix.
76258                 Reported by Mark Junker <mjscod@gmx.de>.
76259
76260         2006-06-17  Bruno Haible  <bruno@clisp.org>
76261
76262                 * config.charset: Update for NetBSD 3.0.
76263
76264         2006-05-17  Bruno Haible  <bruno@clisp.org>
76265
76266                 Cygwin portability.
76267                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76268
76269         2006-05-16  Bruno Haible  <bruno@clisp.org>
76270
76271                 * localcharset.c [CYGWIN]: Include <windows.h>.
76272                 (get_charset_aliases): For Cygwin, return the same CPxxx
76273                 aliases list as under WIN32.
76274                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76275                 the environment variables. Fall back to GetACP().
76276
76277         2006-04-05  Bruno Haible  <bruno@clisp.org>
76278
76279                 * config.charset: Update Juan Manuel Guerrero's address.
76280
76281         2005-02-12  Bruno Haible  <bruno@clisp.org>
76282
76283                 * allocsa.h: Add extern "C" for C++.
76284
76285         2005-02-10  Bruno Haible  <bruno@clisp.org>
76286
76287                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76288                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76289
76290         2006-07-22  Bruno Haible  <bruno@clisp.org>
76291
76292                 * gettext.h: Update to GNU gettext-0.15.
76293
76294 2006-07-22  Bruno Haible  <bruno@clisp.org>
76295
76296         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76297         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76298         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76299
76300 2006-07-21  Eric Blake  <ebb9@byu.net>
76301
76302         * modules/stdlib-safer: New file.
76303         * MODULES.html.sh (File stream based Input/Output): Add
76304         stdlib-safer.
76305
76306 2006-07-21  Eric Blake  <ebb9@byu.net>
76307
76308         * lib/stdlib-safer.h: New file from coreutils, required by
76309         stdlib--.h.
76310
76311 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76312
76313         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76314
76315 2006-07-20  Bruno Haible  <bruno@clisp.org>
76316
76317         * gnulib-tool: Recognize new option --assume-autoconf.
76318         (autoconf_minversion): New variable.
76319         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76320
76321 2006-07-20  Bruno Haible  <bruno@clisp.org>
76322
76323         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76324
76325 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76326
76327         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76328         Reindent and repaginate.
76329
76330 2006-07-19  Derek Price  <derek@ximbiot.com>
76331
76332         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76333         Correct grammar.
76334
76335 2006-07-17  Bruno Haible  <bruno@clisp.org>
76336
76337         * modules/list: New file.
76338         * modules/array-list: New file.
76339         * modules/carray-list, modules/carray-list-tests: New files.
76340         * modules/linked-list, modules/linked-list-tests: New files.
76341         * modules/avltree-list, modules/avltree-list-tests: New files.
76342         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76343         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76344         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76345         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76346         * modules/oset: New file.
76347         * modules/array-oset: New file.
76348         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76349         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76350         * tests/test-carray_list.c: New file.
76351         * tests/test-linked_list.c: New file.
76352         * tests/test-avltree_list.c: New file.
76353         * tests/test-rbtree_list.c: New file.
76354         * tests/test-linkedhash_list.c: New file.
76355         * tests/test-avltreehash_list.c: New file.
76356         * tests/test-rbtreehash_list.c: New file.
76357         * tests/test-avltree_oset.c: New file.
76358         * tests/test-rbtree_oset.c: New file.
76359         * MODULES.html.sh (Container data structures): New section.
76360
76361 2006-07-17  Bruno Haible  <bruno@clisp.org>
76362
76363         * m4/gl_list.m4: New file.
76364
76365 2006-07-17  Bruno Haible  <bruno@clisp.org>
76366
76367         * lib/gl_list.h: New file.
76368         * lib/gl_list.c: New file.
76369         * lib/gl_array_list.h: New file.
76370         * lib/gl_array_list.c: New file.
76371         * lib/gl_carray_list.h: New file.
76372         * lib/gl_carray_list.c: New file.
76373         * lib/gl_linked_list.h: New file.
76374         * lib/gl_linked_list.c: New file.
76375         * lib/gl_anylinked_list1.h: New file.
76376         * lib/gl_anylinked_list2.h: New file.
76377         * lib/gl_avltree_list.h: New file.
76378         * lib/gl_avltree_list.c: New file.
76379         * lib/gl_anyavltree_list1.h: New file.
76380         * lib/gl_anyavltree_list2.h: New file.
76381         * lib/gl_rbtree_list.h: New file.
76382         * lib/gl_rbtree_list.c: New file.
76383         * lib/gl_anyrbtree_list1.h: New file.
76384         * lib/gl_anyrbtree_list2.h: New file.
76385         * lib/gl_anytree_list1.h: New file.
76386         * lib/gl_anytree_list2.h: New file.
76387         * lib/gl_linkedhash_list.h: New file.
76388         * lib/gl_linkedhash_list.c: New file.
76389         * lib/gl_anyhash_list1.h: New file.
76390         * lib/gl_anyhash_list2.h: New file.
76391         * lib/gl_avltreehash_list.h: New file.
76392         * lib/gl_avltreehash_list.c: New file.
76393         * lib/gl_rbtreehash_list.h: New file.
76394         * lib/gl_rbtreehash_list.c: New file.
76395         * lib/gl_anytreehash_list1.h: New file.
76396         * lib/gl_anytreehash_list2.h: New file.
76397
76398         * lib/gl_oset.h: New file.
76399         * lib/gl_oset.c: New file.
76400         * lib/gl_array_oset.h: New file.
76401         * lib/gl_array_oset.c: New file.
76402         * lib/gl_avltree_oset.h: New file.
76403         * lib/gl_avltree_oset.c: New file.
76404         * lib/gl_rbtree_oset.h: New file.
76405         * lib/gl_rbtree_oset.c: New file.
76406         * lib/gl_anytree_oset.h: New file.
76407
76408 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76409
76410         * m4/mkancesdirs.m4: New file.
76411         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76412         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76413         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76414         it.
76415
76416 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76417
76418         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76419         * lib/mkancesdirs.h: New files.
76420         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76421         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76422         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76423         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76424         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76425         callers changed.  Revamp internals significantly, by not
76426         attempting to create directories that are temporarily more
76427         permissive than the final results.  Do not attempt to use
76428         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76429         This removes some race conditions, fixes some bugs, and simplifies
76430         things.  Use new dirchownmod function to do owner and mode changes.
76431         * lib/mkdir-p.h: Likewise.
76432         * lib/modechange.c (octal_to_mode): New function.
76433         (struct mode_change): New member mentioned.
76434         (make_node_op_equals): New arg mentioned.  All callers changed.
76435         (mode_compile): Keep track of which mode bits the user has explicitly
76436         mentioned.
76437         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76438         New arg PMODE_BITS, to keep track of which mode bits the user
76439         mentioned; it treats S_ISUID and S_ISGID speciall.
76440         All callers changed.
76441         * lib/modechange.h: Likewise.
76442
76443 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76444
76445         * MODULES.html.sh: Add mkancestors.
76446         * modules/mkancesdirs: New module.
76447         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76448         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76449         The chdir-safer and afs files are now orphans; I'll remove them
76450         unless someone speaks up.
76451         Add lib/dirchownmod.c, lib/dirchownmod.h.
76452         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76453         Add lchown, mkancesdirs.
76454         (Maintainer): Add self.
76455
76456 2006-07-15  Karl Berry  <karl@gnu.org>
76457
76458         * gnulib-tool: help message wording/arrangement.
76459
76460 2006-07-14  Simon Josefsson  <jas@extundo.com>
76461
76462         * doc/gnulib.texi (Libtool and Windows): New section.
76463
76464 2006-07-12  Simon Josefsson  <jas@extundo.com>
76465
76466         * modules/gendocs (License): Fix license, approved by Karl.
76467
76468 2006-07-12  Eric Blake  <ebb9@byu.net>
76469
76470         * MODULES.html.sh: Add gendocs.
76471
76472 2006-07-11  Eric Blake  <ebb9@byu.net>
76473
76474         * modules/fdl: New module, to install doc/fdl.texi.
76475         * MODULES.html.sh: Add new section for documentation modules.
76476         * gnulib-tool: Avoid space-tab.
76477         (--doc-base): New option, to manage files from doc.
76478
76479 2006-07-11  Eric Blake  <ebb9@byu.net>
76480
76481         * m4/absolute-header.m4: Fix comments to match recent change.
76482
76483 2006-07-11  Eric Blake  <ebb9@byu.net>
76484
76485         * gnulib-tool: List --doc-base before --tests-base.
76486
76487 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76488
76489         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76490
76491 2006-07-11  Bruno Haible  <bruno@clisp.org>
76492
76493         * README: Mention where to put documentation.
76494
76495 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76496
76497         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76498
76499 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76500
76501         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76502         to stdint.m4.
76503
76504 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76505
76506         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76507         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76508         "no/such/file/stdint.h" when there is no such file, so that
76509         the resulting C code can be parsed by dodgy compilers.
76510         Problems reported by Bob Proulx.
76511
76512 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76513
76514         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76515         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76516         macros into the GNU _D_EXACT_NAMLEN.
76517         * lib/savedir.c:  Likewise.
76518         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76519
76520 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76521         and Paul Eggert  <eggert@cs.ucla.edu>
76522
76523         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76524         * m4/savedir.m4:
76525         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76526         macros into the GNU _D_EXACT_NAMLEN.
76527
76528 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76529
76530         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76531         around the absolute name, to work around a problem with the HP-UX
76532         11.23 native C compiler, reported by Bob Proulx.
76533
76534 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76535
76536         * doc/maintain.texi, make-stds.texi: Sync from
76537         <http://savannah.gnu.org/projects/gnustandards>.
76538
76539 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76540
76541         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76542
76543 2006-07-09  Jim Meyering  <jim@meyering.net>
76544
76545         * m4/glob.m4: Remove a doubled word in a comment.
76546
76547 2006-07-09  Jim Meyering  <jim@meyering.net>
76548
76549         * lib/argp-pv.c: Remove a doubled word in a comment.
76550         * lib/check-version.c (check_version): Likewise.
76551         * lib/javacomp.c (compile_java_class): Likewise.
76552
76553 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76554
76555         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76556         for the benefit of people using Autoconf 2.60.  If you want to
76557         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76558         (or m4/onceonly.m4, if pre-2.57) manually.
76559
76560 2006-07-08  Jim Meyering  <jim@meyering.net>
76561
76562         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76563         comment.
76564         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76565         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76566         comment.
76567
76568 2006-07-08  Jim Meyering  <jim@meyering.net>
76569
76570         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76571
76572 2006-07-07  Simon Josefsson  <jas@extundo.com>
76573
76574         * tests/test-crc.c: Change expected crc value, the test vector
76575         were probably computed using the old broken crc.c?
76576
76577 2006-07-06  Simon Josefsson  <jas@extundo.com>
76578
76579         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76580         now the canonical place for the M4 file).
76581
76582         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76583         from the sys_socket dependency now.
76584
76585         * modules/inet_pton (Files): Ditto.
76586
76587         * modules/inet_ntop (Files): Ditto.
76588
76589 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76590
76591         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76592         not gl_PREREQ_GETUSERSHELL.
76593
76594 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76595
76596         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76597         with only one argument, for Autoconf 2.60.
76598         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76599         expand to nothing, so add a shell command to avoid syntax error.
76600         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76601
76602 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76603
76604         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76605
76606 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76607
76608         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76609         no longer needed.  Check for isblank decl.
76610         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76611         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76612         of existence.
76613
76614 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76615
76616         * lib/getloadavg.c: Use __VMS, not VMS.
76617         * lib/getopt.c: Likewise.
76618         * lib/getpagesize.h: Likewise.
76619         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76620         and probably does not work.
76621
76622 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76623
76624         * lib/.cppi-disable: Add wcwidth.
76625         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76626         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76627         (ISGRAPH): Remove.  All uses changed to isgraph.
76628         (FOLD) [!defined _LIBC]: Remove special case.
76629         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76630         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76631         HAVE_ISBLANK.
76632         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76633         case.
76634
76635 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76636
76637         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76638         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76639         brackets.  Other minor changes to suppress some compiler
76640         warnings.
76641
76642 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76643         and Paul Eggert  <eggert@cs.ucla.edu>
76644
76645         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76646         of invoking obsolescent AC_HEADER_DIRENT macro.
76647         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76648         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76649         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76650         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76651         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76652         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76653         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76654         * m4/readdir.m4: Remove; no longer needed.
76655
76656 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76657         and Paul Eggert  <eggert@cs.ucla.edu>
76658
76659         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76660         Don't worry about this obsolete case any more.
76661         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76662         directories.
76663         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76664         worry about this obsolete case any more.
76665         * lib/fts.c: Likewise.
76666         * lib/getcwd.c: Likewise.
76667         * lib/glob.h: Likewise.
76668         * lib/savedir.c: Likewise.
76669
76670 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76671
76672         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76673         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76674         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76675         needed.
76676         All uses removed.
76677         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76678         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76679         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76680         needed.
76681         * m4/getdate.m4 (gl_GETDATE): Likewise.
76682         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76683         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76684         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76685         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76686         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76687         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76688         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76689         needed.
76690
76691 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76692
76693         * lib/memcasecmp.c: Include <limits.h>.
76694         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76695         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76696         Don't assume isdigit succeeds only on '0' through '9'.
76697
76698 2006-07-05  Eric Blake  <ebb9@byu.net>
76699
76700         * modules/getaddrinfo (Depends-on): Add snprintf.
76701
76702 2006-07-05  Eric Blake  <ebb9@byu.net>
76703
76704         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76705         to avoid 'header present but could not be compiled' on cygwin.
76706
76707 2006-07-05  Eric Blake  <ebb9@byu.net>
76708
76709         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76710         missing from netdb.h.
76711         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76712
76713 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76714
76715         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76716         no longer needed.
76717         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76718         * m4/getdate.m4 (gl_GETDATE): Likewise.
76719         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76720         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76721         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76722         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76723         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76724
76725 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76726
76727         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76728         All uses of is_space replaced by isspace.
76729         * lib/exit.h: Don't talk about STDC_HEADERS.
76730         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76731         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76732         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76733         replaced by isprint etc.
76734         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76735         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76736         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76737         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76738         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76739         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76740
76741 2006-07-05  Bruno Haible  <bruno@clisp.org>
76742
76743         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76744         the function exists, before testing against AIX.
76745         Reported by Martin Lambers <marlam@marlam.de>.
76746
76747 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76748
76749         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76750         From Mark D. Baushke.
76751
76752 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76753
76754         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76755         to the absolute name, not just one, to bypass Sun C 5.8's
76756         "warning: #include of /usr/include/... may be non-portable".
76757
76758 2006-07-04  Eric Blake  <ebb9@byu.net>
76759
76760         * modules/dirname-tests: New test module.
76761         * tests/test-dirname.c: New file, replacing dirname.c
76762         TEST_DIRNAME section that was recently deleted.
76763
76764 2006-07-04  Bruno Haible  <bruno@clisp.org>
76765
76766         Assume ANSI C header files and <ctype.h> functions.
76767         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76768         (mbsnwidth): Use isprint, iscntrl instead.
76769
76770 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76771
76772         Merge from coreutils.
76773         * MODULES.html.sh: Add xstrtold.
76774         * modules/xstrtold: New file.
76775         * modules/cycle-check (Files): Add lib/same-inode.h.
76776         * modules/dirname (Files): Add m4/double-slash-root.m4.
76777         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76778         * modules/mkdir-p (Files): Add lib/same-inode.h.
76779         * modules/same (Files): Add lib/same-inode.h.
76780
76781 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76782
76783         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76784         This is to keep the terminology clean; POSIX talks about
76785         "absolute pathnames", not "full pathnames", but the GNU
76786         Coding Standards say to use "path" for something else;
76787         so use "absolute" to keep both sides happy.
76788         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76789         Set gl_absolute_header, not gl_full_header_path.
76790         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76791         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76792         All uses changed.
76793
76794         Merge from coreutils.
76795
76796         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76797
76798         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76799         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76800         want to require the building of c-strtod.o.
76801         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76802         needs -lm directly.
76803         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76804
76805         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76806
76807         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76808         --as-needed option if available.  Problem reported by Albert Chin in
76809         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76810         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76811         cc merely issues a bunch of annoying warnings for --as-needed
76812         (this problem was reported by Bob Proulx).  Also, try linking with
76813         -lm to detect a bug in binutils 2.16 (this problem was reported
76814         by Ralf Wildenhues).
76815
76816         2006-06-18  Jim Meyering  <jim@meyering.net>
76817
76818         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76819         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76820         macro.
76821         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76822         also check for glibc-2.4's abort-inducing bug.
76823
76824         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76825         Low-probability clean-up should be to use rmdir to get rid of
76826         the just-created directory, not unlink.
76827
76828         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76829         configure fail, and request a bug report to inform us about it.
76830         Add a comment that, barring reports to the contrary, in 2007 we'll
76831         assume ftruncate is universally available.
76832
76833         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76834
76835         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76836
76837         2006-03-12  Jim Meyering  <jim@meyering.net>
76838
76839         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76840         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76841         * m4/same.m4 (gl_SAME): Likewise.
76842         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76843
76844         2006-03-11  Eric Blake  <ebb9@byu.net>
76845
76846         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76847         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76848         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76849         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76850
76851 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76852
76853         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76854         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76855         reported by Mark D. Baushke, one in
76856         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76857
76858         Merge from coreutils.
76859
76860         * lib/.cppi-disable: Add stdint_.h.
76861         * lib/.cvsignore: Add stdint.h.
76862
76863         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76864
76865         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76866         both double and long double versions.
76867         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76868         * lib/xstrtold.c: New file.
76869         * lib/xstrtod.h (xstrtold): New decl.
76870
76871         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76872
76873         * lib/filemode.c (setst): Remove.
76874         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76875         (arguably) clearer, and the generated code is a bit smaller on my
76876         Debian GNU/Linux stable x86 host.
76877
76878         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76879
76880         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76881         Assume that filemode.h includes sys/types.h and sys/stat.h.
76882         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76883         (ftypelet): Reorder to put common cases first, for efficiency.
76884         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76885         to do 'M'.
76886         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76887         of 10, for compatibility with FreeBSD.  All callers changed.
76888         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76889         types that can't be deduced solely from st_mode.  First arg is now a
76890         const pointer.
76891         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76892         (strmode): Renamed from mode_string.
76893         (filemodestring): New decl.
76894         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76895         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76896         needed.
76897         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76898
76899         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76900
76901         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76902         fsusage.h now does that.  Include fsusage.h first, to test interface.
76903         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76904         at most one method (the old code could have generated decls that
76905         didn't conform to C89, not that this was ever exercised).
76906         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76907
76908         2006-03-19  Jim Meyering  <jim@meyering.net>
76909
76910         Work even in a chroot where d_ino values for entries in "/"
76911         don't match the stat.st_ino values for the same names.
76912         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76913         number, iterate through all entries again, using lstat instead.
76914         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76915         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76916
76917         * lib/getcwd.c (__getcwd): Clarify a comment.
76918         Use memcpy in place of a call to strcpy.
76919
76920         2006-03-12  Jim Meyering  <jim@meyering.net>
76921
76922         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76923         matches that of the current directory (which we're about to chdir ".."
76924         out of), then save the dev-ino of the parent, instead.
76925
76926         * lib/same-inode.h (SAME_INODE): New file/macro.
76927         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76928         Include "same-inode.h", instead.
76929         * lib/same.c: Likewise.
76930         * lib/cycle-check.h: Include "same-inode.h".
76931         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76932         * lib/cycle-check.c (SAME_INODE): Remove definition.
76933         * lib/root-dev-ino.h: Include "same-inode.h".
76934
76935         2006-03-11  Eric Blake  <ebb9@byu.net>
76936
76937         * lib/same.c (same_name): s/base_name/last_component/
76938         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76939         * lib/filenamecat.c (file_name_concat): Likewise.
76940
76941         2006-03-11  Eric Blake  <ebb9@byu.net>,
76942                     Paul Eggert  <eggert@cs.ucla.edu>
76943
76944         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76945         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76946         drive prefix.
76947         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76948         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76949         (last_component): New method.
76950         * lib/dirname.c (dir_len): Determine when drive letters need a
76951         subsequent slash.  Preserve // when it is special.
76952         (dir_name): Don't append dot when drive letter is absolute.
76953         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76954         * lib/basename.c (base_name): New semantics - malloc the result.
76955         Preserve // when it is special.  Preserve relative files that look
76956         like drive letters.
76957         (base_len): Preserve // when it is special.
76958         (last_component): New method, similar to old base_name semantics.
76959         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76960         base_name.  Strip redundant slashes from ///.
76961
76962 2006-07-03  Jim Meyering  <jim@meyering.net>
76963
76964         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76965         macro is used before the first cycle_check call.
76966
76967 2006-07-03  Eric Blake  <ebb9@byu.net>
76968
76969         * modules/dirname (Depends-on): Add xstrndup.
76970
76971 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76972
76973         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76974         test cases, so that config.log is a bit easier to follow.
76975
76976 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76977
76978         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76979         both are 64 bits, since this seems to be the tradition, and this
76980         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76981         we ever run into a host that prefers long long to long in this
76982         case, we'll need another configure-time test.  Problem reported by
76983         Jim Meyering.
76984
76985 2006-07-02  Eric Blake  <ebb9@byu.net>
76986
76987         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76988
76989 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76990
76991         * modules/inttypes (Depends-on): No longer depends on stdint.
76992         * modules/stdint (Description): Say more about assumptions.
76993         Say that the fast types might differ.  Say macros are used.
76994         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76995         (Makefile.am): Revise list of substituted symbols to match
76996         new stdint.m4.
76997         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76998         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76999         * tests/test-stdint.c (verify_same_types)
77000         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77001         the code conforms to C99/C89.
77002         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77003         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77004
77005 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77006
77007         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77008         but fix a bug, by requiring at least 64 bits.
77009         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77010         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77011         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77012         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77013
77014         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77015         changes.  Make 2.59 a prerequisite.  Check and substitute for
77016         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77017         inttypes.h.  Do not use special include files; just use the
77018         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77019         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77020         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77021         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77022         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77023         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77024         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77025         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77026         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77027         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77028         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77029         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77030         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77031         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77032         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77033         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77034         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77035         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77036         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77037         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77038         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77039         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77040         not check for things that C99 does not require, e.g., int8_t.  If
77041         a test isn't needed unless <stdint.h> isn't working, and is
77042         unlikely to be needed for any other reason, then don't do it
77043         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77044         size_t, since we assume C89 freestanding at least.  Do not check
77045         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77046         the right thing even if the types are not defined.  Instead use:
77047         (gl_STDINT_TYPE_PROPERTIES): New macro.
77048         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77049         testing whether <sys/types.h> clashes, as Autoconf does this for
77050         us now.  All uses removed.
77051         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77052         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77053         (gl_CHECK_TYPE_SAME):
77054         Remove; no longer needed.
77055         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77056         exists, since we'll return 0 anyway in that case.
77057         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77058
77059 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77060
77061         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77062         possible collision with system files.
77063         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77064         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77065         WCHAR_MIN and WCHAR_MAX in this case.
77066         (<stddef.h>): Do not include; no longer needed.
77067         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77068         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77069         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77070         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77071         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77072         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77073         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77074         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77075         !defined(__c99))]: Include in this case too, since it's harmless
77076         now.
77077         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77078         dangerous to do so.
77079         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77080         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77081         (_STDINT_MIN, _STDINT_MAX): New macros.
77082         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77083         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77084         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77085         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77086         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77087         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77088         macros, not typedefs; this simplifies things quite a bit.
77089         Use long int for all types narrower than int64_t.
77090         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77091         Define in terms of long long int or int64_t or long int,
77092         not int64_t or int32_t.  This saves some compile-time testing.
77093         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77094         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77095         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77096         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77097         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77098         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77099         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77100         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77101         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77102         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77103         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77104         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77105         undef any previous version and define our own version, for
77106         simplicity and consistency with the new macros for types.
77107         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77108         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77109         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77110         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77111         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77112         @WINT_T_SUFFIX@ to keep things simple here.
77113         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77114         Simplify by assuming typical 8/16/32/64 host, since we're
77115         already doing that elsewhere anyway.
77116         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77117         and assume long long int is 64 bits if available.  This
77118         speeds up 'configure'.
77119
77120 2006-07-01  Eric Blake  <ebb9@byu.net>
77121
77122         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77123         Reported by Andreas Buening.
77124
77125 2006-07-01  Eric Blake  <ebb9@byu.net>
77126
77127         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77128
77129 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77130
77131         * lib/getaddrinfo.c: fixed typo
77132
77133 2006-06-29  Jim Meyering  <jim@meyering.net>
77134
77135         * modules/strftime (Maintainer): Add my name, since with the
77136         FPRINTFTIME changes strftime.c has forked from glibc.
77137
77138 2006-06-29  Eric Blake  <ebb9@byu.net>
77139
77140         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77141
77142 2006-06-29  Eric Blake  <ebb9@byu.net>
77143
77144         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77145
77146 2006-06-29  Eric Blake  <ebb9@byu.net>
77147
77148         * lib/stat_.h: New file.
77149
77150 2006-06-29  Eric Blake  <ebb9@byu.net>
77151
77152         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77153         unused static function.
77154
77155 2006-06-29  Eric Blake  <ebb9@byu.net>
77156
77157         * doc/functions.texi (Function Portability): Document missing lstat
77158         on mingw.
77159
77160 2006-06-29  Eric Blake  <ebb9@byu.net>
77161
77162         * MODULES.html.sh: Add sys_stat.
77163         * modules/sys_stat: New module.
77164         * modules/mkstemp (Depends-on): Add sys_stat.
77165
77166 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77167
77168         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77169
77170 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77171
77172         * m4/c-bs-a.m4: Removed.
77173
77174 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77175
77176         * lib/strftime.c: Assume strftime() exists.
77177
77178 2006-06-29  Derek Price  <derek@ximbiot.com>
77179
77180         * modules/c-bs-a: Removed - \a is C89.
77181         * MODULES.html.sh: Remove c-bs-a.
77182
77183 2006-06-29  Bruno Haible  <bruno@clisp.org>
77184
77185         * modules/wcwidth (License): Change to LGPL.
77186
77187 2006-06-28  Simon Josefsson  <jas@extundo.com>
77188
77189         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77190         on _WIN32.
77191
77192         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77193         getnameinfo.
77194
77195 2006-06-28  Simon Josefsson  <jas@extundo.com>
77196
77197         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77198
77199 2006-06-28  Simon Josefsson  <jas@extundo.com>
77200
77201         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77202         functions there.  It will succeed on Windows XP, but on Windows
77203         2000 and (presumably) earlier, it will fail, and use the internal
77204         re-implementation.
77205         (use_win32_p): New function.
77206         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77207         Support AI_NUMERICSERV to disable getservbyname.
77208         (getnameinfo): New function, only supports
77209         NI_NUMERICHOST|NI_NUMERICSERV for now.
77210
77211         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77212         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77213         getnameinfo.
77214
77215 2006-06-28  Eric Blake  <ebb9@byu.net>
77216
77217         * modules/wcwidth: New file.
77218         * modules/mbchar (Depends-on): Add wcwidth.
77219         * modules/mbswidth (Depends-on): Add wcwidth.
77220         * MODULES.html.sh: Add wcwidth.
77221
77222 2006-06-28  Eric Blake  <ebb9@byu.net>
77223
77224         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77225         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77226
77227 2006-06-28  Eric Blake  <ebb9@byu.net>
77228
77229         * lib/xvasprintf.h: Fix comments.
77230
77231 2006-06-28  Eric Blake  <ebb9@byu.net>
77232
77233         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77234         * lib/mbswidth.c (wcwidth): Move from here...
77235         * lib/wcwidth.h: ...to this new file.
77236
77237 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77238
77239         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77240
77241         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77242         it's obsolete.
77243         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77244
77245 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77246
77247         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77248         Autoconf 2.60 says this stuff was obsolete.
77249
77250 2006-06-28  Bruno Haible  <bruno@clisp.org>
77251
77252         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77253
77254 2006-06-28  Bruno Haible  <bruno@clisp.org>
77255
77256         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77257         gt_TYPE_WCHAR_T.
77258
77259 2006-06-28  Bruno Haible  <bruno@clisp.org>
77260
77261         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77262         declaration for wcwidth.
77263         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77264
77265 2006-06-28  Bruno Haible  <bruno@clisp.org>
77266
77267         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77268         (mkdir): Define using _mkdir.
77269
77270 2006-06-28  Bruno Haible  <bruno@clisp.org>
77271
77272         * lib/getaddrinfo.h: Fix POSIX URL.
77273         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77274         _WIN32.
77275         (use_win32_p): Make static.
77276         (getaddrinfo): Reject service name if it is empty or does not consist
77277         solely of decimal digits, or if its value is > 65535.
77278         (getnameinfo): Remove useless casts.
77279
77280 2006-06-27  Simon Josefsson  <jas@extundo.com>
77281
77282         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77283         Eggert and Martin Lambers.
77284
77285 2006-06-27  Simon Josefsson  <jas@extundo.com>
77286
77287         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77288         Eggert and Martin Lambers.
77289
77290 2006-06-27  Bruno Haible  <bruno@clisp.org>
77291
77292         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77293         result to 0, not to empty.
77294         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77295
77296 2006-06-27  Bruno Haible  <bruno@clisp.org>
77297
77298         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77299
77300 2006-06-26  Simon Josefsson  <jas@extundo.com>
77301
77302         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77303         present.
77304
77305 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77306
77307         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77308         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77309         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77310
77311 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77312
77313         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77314
77315 2006-06-26  Bruno Haible  <bruno@clisp.org>
77316
77317         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77318
77319 2006-06-26  Bruno Haible  <bruno@clisp.org>
77320
77321         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77322
77323 2006-06-26  Bruno Haible  <bruno@clisp.org>
77324
77325         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77326         SGI C compiler in pre-C99 mode.
77327         Suggested by Mark D. Baushke and Larry Jones.
77328
77329 2006-06-26  Bruno Haible  <bruno@clisp.org>
77330
77331         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77332         WCHAR_MAX.
77333         Reported by Mark D. Baushke and Larry Jones.
77334
77335 2006-06-26  Bruno Haible  <bruno@clisp.org>
77336
77337         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77338         in pre-C99 mode.
77339         Suggested by Mark D. Baushke and Larry Jones.
77340
77341 2006-06-23  Simon Josefsson  <jas@extundo.com>
77342             Bruno Haible  <bruno@clisp.org>
77343
77344         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77345         Emit mostlyclean-local rule.
77346         (func_emit_tests_Makefile_am): Likewise.
77347         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77348
77349 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77350
77351         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77352
77353 2006-06-23  Bruno Haible  <bruno@clisp.org>
77354
77355         * tests/test-stdint.c: Update to match ISO C 99 Technical
77356         Corrigendum 1.
77357
77358 2006-06-23  Bruno Haible  <bruno@clisp.org>
77359
77360         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77361
77362 2006-06-23  Bruno Haible  <bruno@clisp.org>
77363
77364         * lib/stdint_.h: Treat IRIX like OpenBSD.
77365
77366 2006-06-23  Bruno Haible  <bruno@clisp.org>
77367
77368         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77369         ISO C 99 Technical Corrigendum 1.
77370
77371 2006-06-22  Simon Josefsson  <jas@extundo.com>
77372
77373         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77374         MinGW.
77375
77376 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77377
77378         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77379         needed.  Some compiler complained about some of them.  Problem reported
77380         by Larry Jones in
77381         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77382
77383 2006-06-21  Simon Josefsson  <jas@extundo.com>
77384
77385         * tests/test-getaddrinfo.c: New file.
77386
77387         * modules/getaddrinfo-tests: New file.
77388
77389         * MODULES.html.sh: Add inet_pton.
77390
77391         * modules/inet_pton: New file.
77392
77393 2006-06-21  Simon Josefsson  <jas@extundo.com>
77394
77395         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77396         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77397         of using the (limited) gnulib implementation on Windows XP.
77398
77399         * m4/inet_pton.m4: New file.
77400
77401 2006-06-21  Simon Josefsson  <jas@extundo.com>
77402
77403         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77404         variable.
77405
77406         * lib/socket_.h: Don't define WINVER.
77407
77408         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77409         slightly modified to work in gnulib.
77410
77411 2006-06-21  Simon Josefsson  <jas@extundo.com>
77412
77413         * doc/gnulib.texi (Windows sockets): Add.
77414
77415 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77416
77417         * lib/read-file.c (fread_file): Start with buffer allocation of
77418         0 bytes rather than 1 byte; this simplifies the code.
77419         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77420         code to free buffer and save/restore errno.
77421         (internal_read_file): Remove unused local.
77422
77423 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77424
77425         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77426         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77427         Problem reported by Denis Excoffier in
77428         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77429
77430 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77431
77432         * modules/sys_socket, modules/socklen: Include sys/types since
77433         FreeBSD 4.x's sys/socket.h needs it.
77434
77435 2006-06-19  Simon Josefsson  <jas@extundo.com>
77436
77437         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77438
77439 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77440
77441         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77442
77443 2006-06-19  Bruno Haible  <bruno@clisp.org>
77444
77445         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77446         and FULL_PATH_INTTYPES_H in angle brackets.
77447         Reported by Mark D. Baushke <mdb@gnu.org>.
77448
77449 2006-06-17  Eric Blake  <ebb9@byu.net>
77450
77451         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77452         errno.
77453
77454 2006-06-17  Bruno Haible  <bruno@clisp.org>
77455
77456         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77457         <sys/inttypes.h>.
77458
77459 2006-06-17  Bruno Haible  <bruno@clisp.org>
77460
77461         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77462         whether errno is declared. Assume <errno.h> declares errno.
77463
77464 2006-06-17  Bruno Haible  <bruno@clisp.org>
77465
77466         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77467
77468 2006-06-17  Bruno Haible  <bruno@clisp.org>
77469
77470         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77471         problem on Solaris 2.5.1.
77472
77473 2006-06-16  Eric Blake  <ebb9@byu.net>
77474
77475         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77476         * lib/unicodeio.c [!defined errno]: Likewise.
77477         * lib/strtol.c [!defined errno]: Likewise.
77478         * lib/strtod.c [!defined errno]: Likewise.
77479
77480 2006-06-15  Eric Blake  <ebb9@byu.net>
77481
77482         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77483
77484 2006-06-15  Eric Blake  <ebb9@byu.net>
77485
77486         * config/srclist.txt (ssize_t.m4): Lose sync.
77487
77488 2006-06-15  Bruno Haible  <bruno@clisp.org>
77489
77490         * modules/stdint (Files): Include m4/full-header-path.m4,
77491         m4/size_max.m4, m4/wchar_t.m4.
77492         (Makefile.am): Many more substitutions.
77493         * modules/stdint-tests: New file.
77494         * tests/test-stdint.c: New file.
77495
77496 2006-06-15  Bruno Haible  <bruno@clisp.org>
77497
77498         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77499         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77500         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77501         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77502         gl_CHECK_TYPE_SAME): New macros.
77503
77504 2006-06-15  Bruno Haible  <bruno@clisp.org>
77505
77506         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77507
77508 2006-06-15  Bruno Haible  <bruno@clisp.org>
77509
77510         * lib/stdint_.h: Rewritten to be fully auto-configured.
77511         Fixes bug on HP-UX/IA64.
77512
77513 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77514
77515         * lib/getdate.y (__attribute__): Don't define if already defined.
77516         Problem reported by Larry Jones.
77517         * lib/utimens.c (__attribute__): Likewise.
77518
77519 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77520
77521         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77522         reported by Andreas Schwab.
77523
77524 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77525             Bruno Haible  <bruno@clisp.org>
77526
77527         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77528         check for the declaration of strnlen and a run test that exposes the
77529         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77530         rpl_strndup.
77531
77532 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77533             Bruno Haible  <bruno@clisp.org>
77534
77535         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77536
77537 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77538
77539         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77540         compile test, for Tru64 4.0D.
77541
77542 2006-05-28  Karl Berry  <karl@gnu.org>
77543
77544         * config/srclist.txt (printf-args.c): lose sync.
77545
77546 2006-05-26  Martin Lambers  <marlam@marlam.de>
77547
77548         * lib/getpass.c: Updates the test for the native W32 API, and adds
77549         missing includes, thus fixing compilation warnings.
77550
77551 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77552
77553         * lib/exclude.c (exclude_fnmatch): New function.
77554         (excluded_file_name): Call exclude_fnmatch.
77555         * lib/exclude.h (excluded_file_name): New prototype
77556
77557 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77558
77559         * lib/tempname.c (small_open, large_open): New macros.
77560         (__open, __open64) [!_LIBC]: Remove.
77561         (__gen_tempname): Use small_open and large_open instead of __open
77562         and __open64.  This fixes a portability bug on HP-UX 11.11i
77563         reported by Simon Wing-Tang in
77564         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77565
77566 2006-05-24  Bruno Haible  <bruno@clisp.org>
77567
77568         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77569         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77570         Reported by Thorsten Maerz <torte@netztorte.de> via
77571         Aaron Stone <aaron@serendipity.cx>.
77572
77573 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77574
77575         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77576         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77577         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77578         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77579         not really conditional on the cache.
77580         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77581
77582 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77583
77584         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77585         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77586         (my_usleep): Don't mishandle maximum value.
77587
77588 2006-05-19  Jim Meyering  <jim@meyering.net>
77589
77590         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77591
77592 2006-05-17  Bruno Haible  <bruno@clisp.org>
77593
77594         Cygwin portability.
77595         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77596
77597 2006-05-17  Bruno Haible  <bruno@clisp.org>
77598
77599         * lib/stdint_.h: Fix recognition of Cygwin.
77600
77601 2006-05-15  Bruno Haible  <bruno@clisp.org>
77602
77603         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77604         on libtool patch by Ralf Wildenhues.
77605
77606 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77607
77608         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77609         test for C99 conformance; (bool) 0.5 is an integer constant
77610         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77611         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77612
77613 2006-05-11  Simon Josefsson  <jas@extundo.com>
77614
77615         * m4/xvasprintf.m4: Fix obvious typo.
77616
77617 2006-05-11  Jim Meyering  <jim@meyering.net>
77618
77619         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77620         James Lemley.
77621
77622 2006-05-10  Simon Josefsson  <jas@extundo.com>
77623
77624         * lib/md4.c: Typo fix, update copyright years.
77625         (K1, K2): Don't use L because it turn computations into 64-bit on
77626         64-bit platforms.
77627
77628 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77629
77630         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77631         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77632         unwanted sign propagation, e.g., on hosts with 64-bit int.
77633         There still are some problems with reeelly weird theoretical hosts
77634         (e.g., 33-bit int) but it's not worth worrying about now.
77635         * lib/sha1.c (rol): Likewise.
77636         (K1, K2, K3, K4): Remove unnecessary L suffix.
77637
77638 2006-05-10  Bruno Haible  <bruno@clisp.org>
77639
77640         * lib/des.c: Cast to avoid warnings.
77641
77642 2006-05-09  Bruno Haible  <bruno@clisp.org>
77643
77644         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77645         (Depends-on): Depend also on xsize, stdarg.
77646         (configure.ac): Add gl_XVASPRINTF.
77647
77648 2006-05-09  Bruno Haible  <bruno@clisp.org>
77649
77650         * m4/xvasprintf.m4: New file.
77651
77652 2006-05-09  Bruno Haible  <bruno@clisp.org>
77653
77654         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77655         (EOVERFLOW): Define fallback value.
77656         (xstrcat): New function.
77657         (xvasprintf): Recognize the special case of a string concatenation.
77658
77659 2006-05-08  Eric Blake  <ebb9@byu.net>
77660
77661         * gnulib-tool (func_version): Base copyright year on CVS date.
77662         (func_emit_copyright_notice): New function.
77663         (func_emit_lib_Makefile_am): Use it.
77664         (func_emit_tests_Makefile_am): Likewise.
77665         (func_import): Likewise.
77666
77667 2006-05-08  Bruno Haible  <bruno@clisp.org>
77668
77669         * modules/stdarg: New file.
77670         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77671
77672 2006-05-08  Bruno Haible  <bruno@clisp.org>
77673
77674         * m4/stdarg.m4: New file, from GNU gettext.
77675
77676 2006-05-08  Bruno Haible  <bruno@clisp.org>
77677
77678         * config/srclist.txt (build-aux/config.rpath): different from latest
77679         release.
77680
77681 2006-05-08  Bruno Haible  <bruno@clisp.org>
77682
77683         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77684
77685 2006-05-05  Jim Meyering  <jim@meyering.net>
77686
77687         * m4/warning.m4: New file, derived from bison's file by the same name.
77688
77689 2006-05-03  Bruno Haible  <bruno@clisp.org>
77690
77691         * lib/stdint_.h: Shorter URL.
77692         * lib/inttypes.h: Likewise.
77693
77694 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77695
77696         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77697
77698 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77699
77700         * lib/verify.h: Document the internals better.  Most of this change
77701         was written by Bruno Haible.
77702
77703 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77704
77705         * doc/verify.texi: New file, partly based on a proposal by
77706         Bruno Haible.
77707
77708 2006-05-02  Bruno Haible  <bruno@clisp.org>
77709
77710         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77711         test from here...
77712         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77713
77714 2006-04-29  Bruno Haible  <bruno@clisp.org>
77715
77716         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77717         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77718
77719 2006-04-29  Bruno Haible  <bruno@clisp.org>
77720
77721         * gnulib-tool: Make --update option actually work.
77722
77723 2006-04-29  Bruno Haible  <bruno@clisp.org>
77724
77725         * doc/gcd.texi: New file.
77726         * doc/gnulib.texi: Include it.
77727
77728 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77729
77730         * lib/getdate.y (get_date): When adding relative date, start with the
77731         initial time, not with the result of the first mktime call.
77732
77733 2006-04-25  Bruno Haible  <bruno@clisp.org>
77734
77735         * gnulib-tool (func_import): Output the include directives in three
77736         blocks, sorted separately.
77737         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77738
77739 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77740
77741         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77742         to define main with arguments, for C++.  Reported by Eric Blake.
77743         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77744         Prefer 'int main ()' to 'int main (void)', for C++.
77745         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77746         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77747         for 'main', for C99 and C++.
77748
77749 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77750
77751         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77752         Don't assume that exit status -1 is valid.
77753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77754         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77755         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77756         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77757         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77758         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77759         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77760         functions can be used without declaring them, or that you can
77761         exit with status -1.
77762         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77763
77764 2006-04-24  Karl Berry  <karl@gnu.org>
77765
77766         * config/srclist.txt (longdouble.m4): sync lost.
77767
77768 2006-04-24  Eric Blake  <ebb9@byu.net>
77769
77770         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77771
77772 2006-04-24  Bruno Haible  <bruno@clisp.org>
77773
77774         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77775         poll() implementation in AIX.
77776         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77777
77778 2006-04-24  Bruno Haible  <bruno@clisp.org>
77779
77780         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77781         assigned exactly once.
77782
77783 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77784             Bruno Haible  <bruno@clisp.org>
77785
77786         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77787         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77788         for AM_CPPFLAGS.
77789
77790 2006-04-23  Bruno Haible  <bruno@clisp.org>
77791
77792         * modules/copy-file: Depend on unistd.
77793         * modules/execute: Likewise.
77794         * modules/fatal-signal: Likewise.
77795         * modules/findprog: Likewise.
77796         * modules/mkdtemp : Likewise.
77797         * modules/pipe: Likewise.
77798         * modules/wait-process: Likewise.
77799
77800 2006-04-23  Bruno Haible  <bruno@clisp.org>
77801
77802         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77803         condition was already detected.
77804         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77805
77806 2006-04-23  Bruno Haible  <bruno@clisp.org>
77807
77808         * lib/copy-file.c: Include <unistd.h> unconditionally.
77809         * lib/execute.c: Likewise.
77810         * lib/fatal-signal.c: Likewise.
77811         * lib/findprog.c: Likewise.
77812         * lib/mkdtemp.c: Likewise.
77813         * lib/pipe.h: Likewise.
77814         * lib/pipe.c: Likewise.
77815         * lib/wait-process.h: Likewise.
77816
77817 2006-04-23  Bruno Haible  <bruno@clisp.org>
77818
77819         * gnulib-tool (func_usage): Fix --import description. Document
77820         --update.
77821         (func_import): Create temporary file in a temporary directory, if
77822         --dry-run is specified. Silence errors from 'grep' when there are no
77823         m4 files in $m4dir.
77824         (func_create_testdir): Silence errors from 'grep' when there are no
77825         m4 files in $m4dir.
77826         Reported by Karl Berry <karl@freefriends.org>.
77827
77828 2006-04-20  Bruno Haible  <bruno@clisp.org>
77829
77830         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77831         one argument, so that the code will be portable to Autoconf 2.60.
77832         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77833         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77834         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77835
77836 2006-04-19  Derek Price  <derek@ximbiot.com>
77837             Eric Blake  <ebb9@byu.net>
77838
77839         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77840         rather than "/full/path.h".  Update comment to match.  Shorten &
77841         generalize m4_translit call via AS_TR_CPP.
77842
77843 2006-04-19  Derek Price  <derek@ximbiot.com>
77844             Eric Blake  <ebb9@byu.net>
77845
77846         * lib/inttypes.h: Correct grammar in comment.
77847
77848 2006-04-18  Derek Price  <derek@ximbiot.com>
77849             Paul Eggert  <eggert@cs.ucla.edu>
77850
77851         * modules/inttypes: New file.
77852         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77853
77854 2006-04-18  Derek Price  <derek@ximbiot.com>
77855             Paul Eggert  <eggert@cs.ucla.edu>
77856
77857         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77858         New files.
77859
77860 2006-04-18  Derek Price  <derek@ximbiot.com>
77861             Paul Eggert  <eggert@cs.ucla.edu>
77862
77863         * lib/inttypes.h: New file.
77864         * lib/strtoimax.c: Assume <inttypes.h>.
77865
77866 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77867
77868         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77869         isn't mounted.  Problem reported by Kir Kolyshkin.
77870
77871 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77872
77873         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77874         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77875         Derek R. Price.
77876         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77877         implementation.
77878
77879 2006-04-12  Eric Blake  <ebb9@byu.net>
77880
77881         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77882         is now done automatically by the corresponding Autoconf macro.
77883
77884 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77885
77886         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77887         time_r.h.
77888
77889 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77890
77891         Merge regex changes from libc, removing some of our
77892         POSIX-conformance changes that were rejected and redoing them in a
77893         less-intrusive way.
77894
77895         * lib/regcomp.c (re_compile_internal, init_dfa):
77896         Length arg is now size_t, not Idx.  All uses changed.
77897         (peek_token): Forward decl now says internal_function.
77898         (__re_error_msgid, __re_error_msgid_idx):
77899         Now static rather than extern with attribute_hidden.
77900         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77901         For some reason libc prefers K&R style defns for external functions.
77902         (regerror) [!defined _LIBC]: Likewise.
77903         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77904         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77905         (build_range_exp, build_collating_symbol):
77906         Use K&R-style defn.
77907         (re_compile_fastmap): Use '\0' to memset, not 0.
77908         (utf8_sb_map): Make the calculations more obvious.
77909         (init_dfa, parse_bracket_exp, build_charclass_op):
77910         Call calloc and cast result, as glibc does.
77911         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77912         (build_range_exp, build_collating_symbol):
77913         Now internal functions.
77914
77915         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77916
77917         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77918         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77919         Don't depend on VMS; depend on __VMS instead, for POSIX
77920         namespace cleanness.
77921         (regoff_t): Define to ssize_t, not long int.
77922
77923         Remove the REG_ macros named below.  Instead, make the old names
77924         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77925         __USE_GNU_REGEX.
77926         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77927         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77928         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77929         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77930         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77931         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77932         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77933         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77934         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77935         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77936         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77937         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77938         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77939         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77940         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77941         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77942         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77943         (REG_NREGS):
77944         Remove.  All uses replaced by the old RE_* names.
77945         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77946         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77947         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77948         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77949         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77950         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77951         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77952         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77953         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77954         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77955         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77956         Don't bother having these macros be independent of each others'
77957         values, since they no longer exist in the POSIX name space.
77958
77959         Rename the following member names back to their old names,
77960         unless !__USE_GNU_REGEX.  All uses changed back.
77961         (buffer): Renamed from re_buffer.
77962         (allocated): Renamed from re_allocated.
77963         (used): Renamed from re_used.
77964         (syntax): Renamed from re_syntax.
77965         (fastmap): Renamed from re_fastmap.
77966         (translate): Renamed from re_translate.
77967         (can_be_null): Renamed from re_can_be_null.
77968         (regs_allocated): Renamed from re_regs_allocated.
77969         (fastmap_accurate): Renamed from re_fastmap_accurate.
77970         (no_sub): Renamed from re_no_sub.
77971         (not_bol): Renamed from re_not_bol.
77972         (not_eol): Renamed from re_not_eol.
77973         (newline_anchor): Renamed from re_newline_anchor.
77974         (num_regs): Renamed from rm_num_regs.
77975         (start): Renamed from rm_start.
77976         (end): Renamed from rm_end.
77977
77978         (free_state): Move up a bit.
77979
77980         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77981         #define to be empty.
77982         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77983         when that is what is intended.
77984         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77985         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77986         (MAX): New macro.
77987         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77988         All uses changed back to re_malloc, etc.  It's now the caller's
77989         responsibility to check for overflow; all callers changed.
77990         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77991         (re_x2nrealloc): Remove.
77992         (free_state): Remove decl.
77993
77994         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77995         (re_set_registers, re_exec):
77996         Use K&R-style defn.
77997
77998         2006-01-31  Roland McGrath  <roland@redhat.com>
77999
78000         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78001         Reported by Mike Frysinger <vapier@gentoo.org>.
78002
78003         2006-01-15  Andreas Jaeger  <aj@suse.de>
78004
78005         [BZ #1950]
78006         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78007         build_wcs_upper_buffer change.
78008         (build_wcs_upper_buffer): Change return type.
78009
78010         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78011
78012         * lib/regex_internal.h: Include <stdint.h> if available.
78013
78014         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78015
78016         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78017
78018         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78019
78020         * lib/regcomp.c: Adjust for changed secondary hash function.
78021
78022         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78023
78024         * lib/regex.h: Pretty printing.
78025         Clean up namespace a bit.
78026
78027         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78028
78029         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78030         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78031
78032         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78033                     Ulrich Drepper  <drepper@redhat.com>
78034
78035         [BZ #1302]
78036         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78037         changed.
78038         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78039
78040         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78041
78042         [BZ #281]
78043         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78044         * lib/regcomp.c: Remove unnecessary uses of
78045         unsigned RE_TRANSLATE_TYPE.
78046         * lib/regex_internal.h: Likewise.
78047         * lib/regex_internal.c: Likewise.
78048         * lib/regexec.c: Likewise.
78049         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78050
78051         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78052
78053         * lib/regexec.c (find_recover_state): Remove unnecessary
78054         initialization.
78055         (transit_state_bkref): Make DFA a const pointer.
78056         (get_subexp): Likewise.
78057         (check_arrival): Likewise.
78058         (update_cur_sifted_state): Likewise.
78059         (re_search_internal): Likewise.
78060         (prune_impossible_nodes): Likewise.
78061         (acquire_init_state_context): Likewise.
78062         (proceed_next_node): Likewise.
78063         (set_regs): Likewise.
78064         (free_fail_stack_return): Likewise.
78065         (check_arrival_expand_ecl): Mark DFA parameter as const.
78066         (check_arrival_expand_ecl_sub): Likewise.
78067         (check_subexp_limits): Likewise.
78068         (sub_epsilon_src_nodes):  Likewise.
78069         (add_epsilon_src_nodes):  Likewise.
78070         (merge_state_array): Likewise.
78071         (update_regs): Likewise.
78072         (build_trtable): Likewise.
78073         (sift_states_backward): Mark MCTX parameter as const.
78074         (build_sifted_states): Likewise.
78075         (update_cur_sifted_state): Likewise.
78076         (sift_states_mkref): Likewise.
78077         (check_arrival_expand_ecl): Mark eclosure as const.
78078         (check_dst_limits_calc_pos_1): Likewise.
78079         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78080         pointer.
78081
78082         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78083
78084         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78085         (transit_state_sb): Likewise.
78086         (transit_state_mb): Likewise.
78087         (sift_states_iter_mb): Likewise.
78088         (check_arrival_add_next_nodes): Likewise.
78089         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78090         [_LIBC] (re_search_2_stub): Use mempcpy.
78091
78092         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78093         mbrtowc for very simple UTF-8 case.
78094
78095         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78096         a pointer-to-const.
78097         (re_acquire_state_context): Likewise.
78098         * lib/regex_internal.h: Adjust prototypes.
78099
78100         * lib/regex.c: Prevent using C++ compilers.
78101
78102         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78103         (re_acquire_state_context): Likewise.
78104
78105 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78106
78107         * modules/regex (Depends-on): Add ssize_t.
78108
78109 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78110
78111         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78112         translation table.
78113
78114 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78115
78116         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78117
78118 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78119             Bruno Haible  <bruno@clisp.org>
78120
78121         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78122         <sys/types.h> and <inttypes.h>.
78123
78124 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78125
78126         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78127         `__error_t_defined', so argp.h will not typedef the former.
78128
78129 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78130
78131         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78132         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78133         glibc names.  Even if glibc is changed to conform to POSIX, the
78134         traditional names will be available anyway, since regex depends on
78135         the extensions module.  Also, fix a longstanding typo in the
78136         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78137         reported by Emanuele Giaquinta.  Also, change sense of cached
78138         variable, so that the message makes sense.
78139
78140 2006-03-24  Simon Josefsson  <jas@extundo.com>
78141
78142         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78143         including some doc fixes.
78144         (base64_encode_alloc): Fix +1 bug on allocation failures.
78145
78146 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78147
78148         * lib/base64.c (base64_encode): Do not read past end of array with
78149         unsanitized input on systems with CHAR_BIT > 8.
78150
78151 2006-03-24  Eric Blake  <ebb9@byu.net>
78152
78153         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78154
78155 2006-03-22  Karl Berry  <karl@gnu.org>
78156
78157         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78158         * config/srclistvars.sh (COREUTILS): new var.
78159
78160 2006-03-17  Jim Meyering  <jim@meyering.net>
78161
78162         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78163         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78164
78165 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78166
78167         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78168         no longer needs it.  Instead, check that regoff_t is as least
78169         as wide as ptrdiff_t.
78170
78171         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78172         so that our regex.h stays compatible with the installed regex.
78173         This is helpful for installers who configure --without-included-regex.
78174         Problem reported by Emanuele Giaquinta.
78175
78176 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78177
78178         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78179         Typedef to long int, not to off_, as POSIX will likely change
78180         in that direction.
78181
78182 2006-03-15  Eric Blake  <ebb9@byu.net>
78183
78184         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78185
78186 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78187
78188         * lib/argp-help.c (validate_uparams): Fix typo
78189         * lib/argp-parse.c (argp_default_options): Consistently begin help
78190         messages with a lowercase letter.
78191
78192 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78193
78194         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78195         overrun buffers and shouldn't be used (much as gets shouldn't be
78196         used).
78197         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78198
78199 2006-03-08  Simon Josefsson  <jas@extundo.com>
78200
78201         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78202         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78203
78204 2006-03-08  Simon Josefsson  <jas@extundo.com>
78205
78206         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78207         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78208
78209 2006-03-08  Simon Josefsson  <jas@extundo.com>
78210
78211         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78212         signal that configure disabled the device.
78213
78214 2006-03-08  Simon Josefsson  <jas@extundo.com>
78215
78216         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78217         languages.
78218
78219 2006-03-07  Simon Josefsson  <jas@extundo.com>
78220
78221         * modules/getopt (Depends-on): Add unistd.
78222
78223         * modules/unistd: New file.
78224
78225 2006-03-07  Simon Josefsson  <jas@extundo.com>
78226
78227         * modules/gc-random: New file.
78228
78229 2006-03-07  Simon Josefsson  <jas@extundo.com>
78230
78231         * m4/unistd_h.m4: New file.
78232
78233 2006-03-07  Simon Josefsson  <jas@extundo.com>
78234
78235         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78236         test to be side-effect free by storing the result in the cache
78237         variable gl_cv_lib_readline, and moving the assignment of
78238         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78239         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78240
78241 2006-03-07  Simon Josefsson  <jas@extundo.com>
78242
78243         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78244         error on missing devices (the functions will return an error).
78245
78246         * m4/gc.m4: Move random stuff to gc-random.m4
78247
78248 2006-03-07  Simon Josefsson  <jas@extundo.com>
78249
78250         * lib/unistd_.h: New file.
78251
78252 2006-03-07  Simon Josefsson  <jas@extundo.com>
78253
78254         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78255
78256 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78257
78258         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78259         Problem reported by Juan Manuel Guerrero.
78260
78261 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78262
78263         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78264         the unistd module.
78265         * lib/getlogin_r.c: Likewise.
78266         * lib/getlogin_r.h: Likewise.
78267         * lib/glob.c: Likewise.
78268         * lib/pagealign_alloc.c: Likewise.
78269         * lib/unistd_.h: Remove; no longer needed.
78270
78271 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78272
78273         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78274         Add unistd.
78275         * modules/c-stack (Depends-on): Add unistd.
78276         * modules/getlogin_r: Likewise.
78277         * modules/glob: Likewise.
78278         * modules/pagealign_alloc: Likewise.
78279         * modules/unistd (Files): Remove lib/unistd_.h.
78280         (EXTRA_DIST): Remove.
78281         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78282         need unistd_.h.
78283         (MOSTLYCLEANFILES): Remove unistd.h-t.
78284
78285 2006-03-03  Simon Josefsson  <jas@extundo.com>
78286
78287         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78288
78289 2006-03-03  Simon Josefsson  <jas@extundo.com>
78290
78291         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78292         libidn and bison.
78293
78294 2006-03-03  Simon Josefsson  <jas@extundo.com>
78295
78296         * build-aux/maint.mk: Add indent target.
78297
78298 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78299
78300         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78301         our replacement poll.h in any case, to avoid a differing
78302         declaration from a system header.  Seen on AIX.
78303
78304 2006-03-01  Simon Josefsson  <jas@extundo.com>
78305
78306         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78307         <kasal@ucw.cz>.
78308
78309 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78310
78311         * modules/gettime (Depends-on): Add extensions module.
78312         * modules/nanosleep (Depends-on): Likewise.
78313         * modules/settime (Depends-on): Likewise.
78314
78315 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78316
78317         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78318         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78319         pedantically.
78320         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78321         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78322
78323         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78324         not "==".  Reported by Ralf Wildenhues.
78325
78326 2006-03-01  Karl Berry  <karl@gnu.org>
78327
78328         * doc/Copyright/request-*: new files, synced from gnuorg.
78329
78330 2006-03-01  Karl Berry  <karl@gnu.org>
78331
78332         * config/srclist.txt (Copyright/*): new entries.
78333
78334 2006-02-28  Simon Josefsson  <jas@extundo.com>
78335
78336         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78337
78338 2006-02-27  Simon Josefsson  <jas@extundo.com>
78339
78340         * lib/base64.h: Indent #define's.  From Jim Meyering
78341         <jim@meyering.net>.
78342
78343 2006-02-27  Jim Meyering  <jim@meyering.net>
78344
78345         Revert the change of 2006-02-24, so these files can continue
78346         to be sync'd from gettext.
78347         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78348         of `config.h'.
78349
78350 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78351
78352         * modules/intprops: New file.
78353         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78354         Add intprops.
78355         * modules/getloadavg (Files): Remove lib/intprops.h.
78356         (Depends-on): Add intprops.
78357         * modules/human: Likewise.
78358         * modules/inttostr: Likewise.
78359         * modules/openat: Likewise.
78360         * modules/sig2str: Likewise.
78361         * modules/userspec: Likewise.
78362         * modules/utimecmp: Likewise.
78363         * modules/xnanosleep: Likewise.
78364         * modules/xstrtol: Likewise.
78365
78366 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78367
78368         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78369         * modules/lock-tests (TESTS): Use $(EXEEXT).
78370         * modules/tls-tests: Likewise.
78371         * modules/argp-tests: Likewise.
78372         (check_PROGRAMS): New var, replacing...
78373         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78374
78375 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78376
78377         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78378         `config.h'.
78379
78380 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78381
78382         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78383
78384 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78385
78386         Sync from coreutils.
78387         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78388         gl_CHDIR_SAFER.
78389
78390 2006-02-22  Jim Meyering  <jim@meyering.net>
78391
78392         Sync from coreutils.
78393         * m4/chdir-safer.m4: New file.
78394
78395 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78396
78397         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78398         AT_FDCWD exceeds INT_MAX.
78399         * lib/openat.h (AT_FDCWD): Likewise.
78400
78401 2006-02-17  Eric Blake  <address@hidden>
78402
78403         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78404
78405 2006-02-16  Simon Josefsson  <jas@extundo.com>
78406
78407         * modules/getaddrinfo (Depends-on): Add sys_socket.
78408
78409 2006-02-15  Simon Josefsson  <jas@extundo.com>
78410
78411         * build-aux/maint.mk: Add dsyntax-check rule.
78412
78413 2006-02-15  Eric Blake  <ebb9@byu.net>
78414
78415         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78416         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78417         'present but cannot compile' warnings on cygwin.
78418         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78419         use ws2tcpip.h if sys/socket.h works.
78420         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78421         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78422
78423 2006-02-14  Simon Josefsson  <jas@extundo.com>
78424
78425         * modules/maintainer-makefile (Files): Rename.
78426
78427         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78428         and (the local) Makefile.cfg to maint-cfg.mk.
78429
78430         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78431         to the latter.
78432
78433         * modules/maintainer-makefile: New module.
78434
78435         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78436         severaly stripped to make it possible to build it up from scratch
78437         with reliable tests.
78438
78439         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78440         fixes to permit overriding the default actions when configure and
78441         makefile are not available.
78442
78443 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78444
78445         Sync from coreutils.
78446         * modules/lstat (Depends-on): Don't depend on xalloc.
78447         (License): Change from GPL to LGPL, since this is now simply a
78448         replacement for a libc function.
78449
78450 2006-02-14  Jim Meyering  <jim@meyering.net>
78451
78452         Sync from coreutils.
78453
78454         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78455         failure on deficient systems, and simplify gnulib lgpl dependencies.
78456         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78457         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78458
78459         * lib/xalloc-die.c: Remove unused definition of N_.
78460
78461 2006-02-14  Jim Meyering  <jim@meyering.net>
78462
78463         Sync from coreutils.
78464         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78465         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78466         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78467         double-quote uses of that variable, to accommodate the rare case in
78468         which getmntent is available in none of the libraries checked.  This
78469         happens at least on FreeBSD 5.0.
78470
78471 2006-02-13  Simon Josefsson  <jas@extundo.com>
78472
78473         * gnulib-tool (Usage): Fix --import, from
78474         karl@freefriends.org (Karl Berry).
78475
78476 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78477
78478         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78479
78480 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78481
78482         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78483         "autoupdate" on 2005-12-12.
78484
78485 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78486
78487         * modules/closeout (Depends-on): Remove atexit.
78488
78489 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78490
78491         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78492         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78493
78494 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78495
78496         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78497         __EXTENSIONS__ if this causes compilation to fail.  Problem
78498         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78499         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78500
78501 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78502
78503         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78504         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78505         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78506         All uses changed.
78507
78508 2006-01-26  Simon Josefsson  <jas@extundo.com>
78509
78510         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78511         prototype is visible on mingw32.
78512
78513         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78514         for mingw32.
78515
78516         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78517         mingw32).
78518
78519 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78520
78521         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78522         attempt to open for write; this always fails, at least on POSIX
78523         hosts.  This reinstates the 2006-01-09 change, which was
78524         inadvertently removed.
78525
78526 2006-01-26  Bruno Haible  <bruno@clisp.org>
78527
78528         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78529         Reported by Paul Eggert.
78530
78531 2006-01-26  Bruno Haible  <bruno@clisp.org>
78532             Paul Eggert  <eggert@cs.ucla.edu>
78533
78534         * lib/stdbool_.h (_Bool)
78535         [(! (defined __cplusplus || defined __BEOS__)
78536           && !defined __GNUC__
78537           && !(defined __HP_cc || defined __xlc__
78538                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78539                || defined __sgi))]:
78540         #define to signed char in these cases too; this simplifies
78541         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78542         etc., separately) and makes it more conservative.
78543
78544 2006-01-25  Simon Josefsson  <jas@extundo.com>
78545
78546         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78547         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78548         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78549
78550 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78551
78552         * lib/argp-namefrob.h: Bugfix. Remove stray #
78553
78554 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78555
78556         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78557         so that we test the test.
78558         Check for yet another HP-UX cc bug involving *bool |= bool.
78559
78560 2006-01-25  Karl Berry  <karl@gnu.org>
78561
78562         * config/srclist.txt (vasnprintf.c): sync lost.
78563
78564 2006-01-25  Jim Meyering  <jim@meyering.net>
78565
78566         Sync from the stable (b5) branch of coreutils:
78567
78568         * lib/fts.c (fts_children): Don't let close() clobber errno from
78569         failed fchdir().
78570
78571         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78572         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78573         a dangling symlink.  That can also happen at least for ELOOP.
78574         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78575         FYI, this bug predates the inclusion of fts.c in coreutils.
78576
78577         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78578         in their own block, so pre-c99 compilers don't object.
78579
78580         Avoid the double-free (first in fts_read, second in fts_close) that
78581         would occur when an `active' directory is made inaccessible (e.g.,
78582         via chmod a-x) during a traversal.
78583         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78584         before returning.  Reproduce this failure by
78585         mkdir -p a/b; cd a; chmod a-x . b
78586         Reported by Stavros Passas.
78587
78588 2006-01-25  Jim Meyering  <jim@meyering.net>
78589
78590         * lib/fileblocks.c: Remove more useless parentheses.
78591         * lib/readutmp.h: Likewise.
78592
78593 2006-01-25  Bruno Haible  <bruno@clisp.org>
78594
78595         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78596         warnings.
78597         Reported by Paul Eggert.
78598
78599 2006-01-25  Bruno Haible  <bruno@clisp.org>
78600
78601         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78602         rid of a trap command. For Solaris sh.
78603         Reported by Mark D. Baushke <mdb@gnu.org>.
78604
78605 2006-01-24  Simon Josefsson  <jas@extundo.com>
78606
78607         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78608         Bruno.
78609
78610 2006-01-24  Karl Berry  <karl@gnu.org>
78611
78612         * config/srclist.txt (argp-namefrob.h): sync lost.
78613
78614 2006-01-24  Jim Meyering  <jim@meyering.net>
78615
78616         * modules/openat (Files): Add lib/intprops.h.
78617         From Mark D. Baushke.
78618
78619 2006-01-24  Jim Meyering  <jim@meyering.net>
78620
78621         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78622         Reported by Mark D. Baushke.
78623
78624 2006-01-24  Jim Meyering  <jim@meyering.net>
78625
78626         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78627
78628 2006-01-24  Bruno Haible  <bruno@clisp.org>
78629
78630         * modules/strnlen (Maintainer): Change from glibc to all.
78631
78632 2006-01-24  Bruno Haible  <bruno@clisp.org>
78633
78634         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78635         Patch by Paul Eggert.
78636
78637 2006-01-24  Bruno Haible  <bruno@clisp.org>
78638
78639         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78640         already has it.
78641         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78642         2005-11-26.
78643
78644         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78645         'signed char' to avoid problems with the built-in _Bool type.
78646         Reported by Paul Eggert on 2005-11-26.
78647
78648 2006-01-24  Bruno Haible  <bruno@clisp.org>
78649
78650         * gnulib-tool (func_import): Avoid constructing complicated sed
78651         expressions inside backquote.
78652         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78653
78654 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78655
78656         These changes imported from libc.
78657         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78658         test and two separate function calls.
78659         * lib/strndup.c (__strndup): Add libc_hidden_def.
78660
78661 2006-01-23  Simon Josefsson  <jas@extundo.com>
78662
78663         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78664         Remove the test_*_SOURCES variable: automake infers it by default.
78665         * modules/tls-tests: Likewise.
78666
78667 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78668
78669         Work around porting bugs reported by Dieter in
78670         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78671         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78672         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78673         Include "getopt.h" first, to check interface.
78674         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78675         !HAVE_DECL_GETENV.
78676         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78677         (__strndup): Revert to K&R-style function dfns, the glibc style.
78678         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78679         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78680         Include strnlen.h first, to get prototype properly.
78681         (strnlen): Renamed from __strnlen.
78682         Remove weak alias.
78683
78684 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78685
78686         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78687
78688 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78689
78690         * config/srclist.txt: Adjust to reflect glibc reorganization.
78691         This affects only comments.
78692
78693 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78694
78695          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78696          Reported by Bruce Korb <bkorb@gnu.org>.
78697
78698 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78699
78700         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78701         to pacify gcc -Wswitch-default.
78702
78703 2006-01-22  Bruno Haible  <bruno@clisp.org>
78704
78705         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78706         temporary buffer for sprintf, take into account the precision also
78707         for 'd', 'i', 'u', 'o', 'x', 'X'.
78708
78709 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78710
78711         * modules/argp-tests: New module
78712         * tests/test-argp.c: New file
78713         * tests/test-argp-2.sh: New file
78714
78715 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78716
78717         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78718         (__argp_base_name): Removed
78719         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78720         typo.
78721         (__argp_base_name): Provide macro definition or extern declaration
78722         depending on the configuration
78723
78724 2006-01-20  Simon Josefsson  <jas@extundo.com>
78725
78726         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78727
78728 2006-01-20  Simon Josefsson  <jas@extundo.com>
78729
78730         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78731
78732 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78733
78734         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78735         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78736         Suggested by Bruno Haible.
78737
78738 2006-01-20  Karl Berry  <karl@gnu.org>
78739
78740         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78741         until changes propagate, I guess.
78742
78743 2006-01-19  Simon Josefsson  <jas@extundo.com>
78744
78745         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78746
78747 2006-01-19  Simon Josefsson  <jas@extundo.com>
78748
78749         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78750
78751 2006-01-19  Simon Josefsson  <jas@extundo.com>
78752
78753         * gnulib-tool: Set check_PROGRAMS.
78754
78755         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78756         modules/des-tests, modules/gc-arcfour-tests,
78757         modules/gc-arctwo-tests, modules/gc-des-tests,
78758         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78759         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78760         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78761         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78762         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78763         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78764         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78765         test_*_SOURCES.
78766
78767 2006-01-18  Simon Josefsson  <jas@extundo.com>
78768
78769         * modules/socklen (Depends-on): Depend on sys_socket.
78770
78771 2006-01-18  Simon Josefsson  <jas@extundo.com>
78772
78773         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78774         modules/des-tests, modules/gc-arcfour-tests,
78775         modules/gc-arctwo-tests, modules/gc-des-tests,
78776         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78777         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78778         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78779         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78780         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78781         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78782         $(EXEEXT) to automake TESTS variable, for mingw32.
78783
78784 2006-01-17  Simon Josefsson  <jas@extundo.com>
78785
78786         * modules/socklen (Include): Need sys/socket.h.
78787
78788 2006-01-17  Bruno Haible  <bruno@clisp.org>
78789
78790         * modules/ssize_t (Include): Add <sys/types.h>.
78791
78792 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78793
78794         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78795         it's not portable and it doesn't work with cross-compiles.
78796         Problem reported by Bruno Haible.  Fix missing-$ typo in
78797         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78798         -zignore from being used with Sun's C compiler.
78799
78800 2006-01-12  Simon Josefsson  <jas@extundo.com>
78801
78802         * lib/base64.c: Fix warning, reported by Bruno Haible
78803         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78804
78805 2006-01-12  Bruno Haible  <bruno@clisp.org>
78806
78807         * modules/ldd: New file.
78808         * build-aux/ldd.sh.in: New file.
78809         * MODULES.html.sh (Support for building libraries and executables): Add
78810         ldd.
78811
78812 2006-01-12  Bruno Haible  <bruno@clisp.org>
78813
78814         * m4/ldd.m4: New file.
78815
78816 2006-01-12  Bruno Haible  <bruno@clisp.org>
78817
78818         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78819         endless loop while replacing $auxdir with build-aux.
78820
78821 2006-01-11  Simon Josefsson  <jas@extundo.com>
78822
78823         * lib/stdint_.h (SIZE_MAX): Add missing (.
78824
78825 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78826
78827         Sync from coreutils.
78828         * lib/md5.c: Fix commentary typos.
78829         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78830         * lib/md5.h (__attribute__): Remove; unused.
78831         * lib/sha1.c: Fix commentary to match md5 better.
78832         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78833         so that we don't need to worry about alignment.  All uses changed.
78834         This merges the 2005-10-28 md5 change into sha1.
78835
78836 2006-01-11  Jim Meyering  <jim@meyering.net>
78837
78838         Sync from coreutils.
78839         * lib/md5.c (OP): Fix spacing.
78840
78841 2006-01-11  Bruno Haible  <bruno@clisp.org>
78842
78843         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78844         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78845         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78846
78847 2006-01-11  Bruno Haible  <bruno@clisp.org>
78848
78849         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78850         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78851         the "early" section as well.
78852
78853 2006-01-11  Bruno Haible  <bruno@clisp.org>
78854
78855         Avoid "ar: no archive members specified" error on MacOS X.
78856         * gnulib-tool (func_modules_add_dummy): New function.
78857         (func_import, func_create_testdir): Invoke it.
78858
78859 2006-01-11  Bruno Haible  <bruno@clisp.org>
78860
78861         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78862         with $auxdir in AC_CONFIG_FILES statements.
78863
78864 2006-01-11  Bruno Haible  <bruno@clisp.org>
78865
78866         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78867         Initialize also noinst_HEADERS to empty.
78868
78869 2006-01-11  Bruno Haible  <bruno@clisp.org>
78870
78871         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78872         variables.
78873         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78874         autoreconf.
78875
78876 2006-01-11  Bruno Haible  <bruno@clisp.org>
78877
78878         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78879         overridable by the user.
78880         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78881
78882 2006-01-10  Simon Josefsson  <jas@extundo.com>
78883
78884         * modules/sys_socket: New file.
78885
78886 2006-01-10  Simon Josefsson  <jas@extundo.com>
78887
78888         * m4/sys_socket_h.m4: New file.
78889
78890 2006-01-10  Simon Josefsson  <jas@extundo.com>
78891
78892         * lib/socket_.h: New file.
78893
78894 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78895
78896         * modules/readutmp (Maintainer): Add myself.
78897
78898 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78899
78900         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78901         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78902         People who are still concerned with buggy memcmp implementations
78903         can invoke gl_FUNC_MEMCMP themselves.
78904
78905 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78906
78907         * lib/regex_internal.h (BITSET_WORD_BITS):
78908         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78909         preprocessor mishandles large unsigned values as if they were signed.
78910         Problem reported by Claudio Fontana in
78911         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78912
78913 2006-01-10  Jim Meyering  <jim@meyering.net>
78914
78915         Avoid the double-free (first in fts_read, second in fts_close) that
78916         would occur when an `active' directory is made inaccessible (e.g.,
78917         via chmod a-x) during a traversal.
78918         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78919         before returning.  Reproduce this failure by
78920         mkdir -p a/b; cd a; chmod a-x . b
78921         Reported by Stavros Passas.
78922
78923         Sync from coreutils.
78924         * lib/sha1.c: Tweak grammar in a comment.
78925
78926 2006-01-10  Jim Meyering  <jim@meyering.net>
78927
78928         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78929         Patch by Joerg Sonnenberger.
78930
78931 2006-01-10  Bruno Haible  <bruno@clisp.org>
78932
78933         * modules/readutmp: Depend on module free.
78934         * modules/strtok_r: Depend on module restrict.
78935
78936 2006-01-10  Bruno Haible  <bruno@clisp.org>
78937
78938         * modules/gettext (configure.ac): Add an invocation of
78939         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78940
78941 2006-01-10  Bruno Haible  <bruno@clisp.org>
78942
78943         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78944         Reported by Werner Lemberg <wl@gnu.org>.
78945
78946 2006-01-10  Bruno Haible  <bruno@clisp.org>
78947
78948         * lib/localcharset.c: Update from GNU gettext.
78949
78950 2006-01-10  Bruno Haible  <bruno@clisp.org>
78951
78952         * lib/argp.h (__const): Remove macro. Use const instead.
78953         * lib/argp-fmtstream.h (__const): Likewise.
78954         * lib/glob_.h (__const): Remove macro.
78955         * lib/glob-libc.h: Use const instead of __const.
78956
78957 2006-01-10  Bruno Haible  <bruno@clisp.org>
78958
78959         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78960         variable.
78961         Needed to avoid an automake error regarding the 'gettext' module.
78962
78963 2006-01-09  Simon Josefsson  <jas@extundo.com>
78964
78965         * modules/inet_ntop (Depends-on): Add restrict.
78966
78967 2006-01-09  Simon Josefsson  <jas@extundo.com>
78968
78969         * modules/gc-rijndael-tests (License): Put under LGPL.
78970
78971         * modules/gc-des-tests (License): Likewise.
78972
78973         * modules/gc-arcfour-tests (License): Likewise.
78974
78975         * modules/gc-arctwo-tests (License): Likewise.
78976
78977         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78978
78979         * modules/gc-hmac-sha1-tests (Files): Likewise.
78980
78981         * modules/gc-hmac-md5-tests (License): Likewise.
78982
78983         * modules/gc-sha1-tests (License): Likewise.
78984
78985         * modules/gc-md5-tests (License): Likewise.
78986
78987         * modules/gc-md4-tests (License): Likewise.
78988
78989         * modules/gc-md2-tests (License): Likewise.
78990
78991         * modules/gc-tests (License): Likewise.
78992
78993         * modules/des-tests (License): Likewise.
78994
78995         * modules/md4-tests (License): Likewise.
78996
78997         * modules/md2-tests (License): Likewise.
78998
78999 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79000
79001         Sync from coreutils:
79002
79003         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79004         * modules/lib-ignore: New file.
79005         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79006         chdir-safer.m4, lchmod.m4.
79007         * modules/openat: Add mkdirat.c, openat-priv.h.
79008
79009 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79010
79011         Sync from coreutils.
79012         * m4/lib-ignore.m4: New file.
79013         * m4/lchmod.m4: New file.
79014
79015 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79016
79017         Sync from coreutils.
79018         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79019         for write access: POSIX says that must fail.
79020         * lib/fts.c (diropen): Likewise.
79021         * lib/save-cwd.c (save_cwd): Likewise.
79022         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79023         well, for minor improvements on hosts that lack O_DIRECTORY.
79024         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79025         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79026         Fall back on chown if open failed with EACCES.
79027
79028         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79029         Report an error at compile-time if only a 1-second nominal clock
79030         resolution is found.
79031
79032         * lib/lchmod.h: New file.
79033         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79034         (make_dir_parents): Use lchown rather than chown, and
79035         lchmod rather than chmod.
79036
79037         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79038         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79039         "proc" reported by n0dalus.
79040
79041         * lib/mountlist.c: Include <limits.h>.
79042         (dev_from_mount_options)
79043         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79044         New function.  It no longer assumes "dev=" has the System V meaning
79045         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79046         (read_file_system_list)
79047         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79048         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79049         dev= in that case.
79050
79051         * lib/posixtm.h (PDS_PRE_2000): New macro.
79052         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79053         allow_century.  All usages changed.  Reject dates outside the range
79054         1969-1999 if PDS_PRE_2000 is used.
79055
79056 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79057
79058         Sync from coreutils.
79059         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79060         (Time of day items): Mention the possibility of leap seconds.
79061         Problem reported by Dr. David Alan Gilbert.
79062
79063 2006-01-09  Jim Meyering  <jim@meyering.net>
79064
79065         Sync from coreutils.
79066
79067         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79068
79069         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79070
79071         * lib/modechange.c (mode_compile): Reject an invalid mode string
79072         that starts with an octal digit.  From Andreas Gruenbacher.
79073
79074         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79075         and dup to open_safer and dup_safer, respectively.
79076         (openat_permissive): Fix typo in comment.
79077
79078         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79079         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79080         (_): Remove; no longer needed.
79081         (openat): Renamed from rpl_openat; no need for rpl_openat
79082         since openat.h renames openat for us.
79083         Replace most of the body with a call to openat_permissive,
79084         to avoid duplicate code.
79085         Port to (probably hypothetical) environments were mode_t is
79086         wider than int.
79087         (openat_permissive): Require mode arg, so that we can check
79088         types better.  Put it just after flags.  Change cwd failure
79089         indicator from pointer-to-bool to pointer-to-errno-value.
79090         All callers changed.
79091         Invoke openat_save_fail and/or openat_restore_fail if
79092         cwd_errno is null, so that openat can call us.
79093         (openat_permissive, fdopendir, fstatat, unlinkat):
79094         Simplify errno handling to avoid some duplicate code,
79095         as it's OK to set errno on success.
79096         * lib/openat.h: Revamp code so that function macros depend on
79097         __OPENAT_PREFIX only, not also on AT_FDCWD.
79098         (openat_ro): Remove.  Caller changed to use openat_permissive.
79099         (openat_permissive): Now a macro, if not a function.
79100         (openat_restore_fail, openat_save_fail): Now always functions,
79101         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79102
79103         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79104         and openat.c.
79105         * lib/mkdirat.c: Include openat-priv.h.
79106         Remove definitions of macros defined therein.
79107         * lib/openat.c: Likewise.
79108
79109         * lib/mkdirat.c (mkdirat): New file and function.
79110         * lib/openat.h (mkdirat): Declare.
79111
79112         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79113
79114         * lib/openat.h (openat_permissive): Declare.
79115         (openat_ro): Define.
79116
79117         * lib/openat.c (EXPECTED_ERRNO): New macro.
79118         (openat_permissive): New function -- used in remove.c rewrite.
79119         (all functions): Set errno just before returning, only if there
79120         was an actual failure.
79121         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79122
79123         Emulate openat-family functions using Linux's procfs, if possible.
79124         Idea and some code based on Ulrich Drepper's glibc changes.
79125
79126         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79127         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79128         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79129         before falling back on save_cwd and restore_cwd.
79130         (fdopendir, fstatat, unlinkat): Likewise.
79131
79132         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79133         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79134
79135         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79136         as second argument to va_arg.  Otherwise, some versions of gcc
79137         warn that `if this code is reached, the program will abort'.
79138
79139 2006-01-09  Jim Meyering  <jim@meyering.net>
79140
79141         Sync from coreutils.
79142         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79143         Require openat-priv.h.
79144
79145 2006-01-09  Bruno Haible  <bruno@clisp.org>
79146
79147         * modules/strnlen (Include): Use strnlen.h.
79148
79149 2006-01-09  Bruno Haible  <bruno@clisp.org>
79150
79151         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79152
79153 2006-01-09  Bruno Haible  <bruno@clisp.org>
79154
79155         * lib/sysexit_.h (EX_OK): New macro.
79156         Suggested by Martin Lambers <marlam@marlam.de>.
79157
79158 2006-01-09  Bruno Haible  <bruno@clisp.org>
79159
79160         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79161         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79162
79163 2006-01-09  Bruno Haible  <bruno@clisp.org>
79164
79165         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79166         numbers.
79167
79168 2006-01-09  Bruno Haible  <bruno@clisp.org>
79169
79170         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79171         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79172         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79173         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79174
79175 2006-01-09  Bruno Haible  <bruno@clisp.org>
79176
79177         * build-aux/javacomp.sh.in: New file, moved from lib/.
79178         * modules/javacomp-script (Files): Update.
79179         (configure.ac): Add AC_CONFIG_FILES invocation.
79180         (EXTRA_DIST): Remove variable.
79181
79182         * build-aux/javaexec.sh.in: New file, moved from lib/.
79183         * modules/javaexec (Files): Update.
79184         (configure.ac): Add AC_CONFIG_FILES invocation.
79185         (EXTRA_DIST): Remove javaexec.sh.in.
79186
79187         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79188         * modules/csharpcomp-script (Files): Update.
79189         (configure.ac): Add AC_CONFIG_FILES invocation.
79190         (EXTRA_DIST): Remove variable.
79191
79192         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79193         * modules/csharpexec (Files): Update.
79194         (configure.ac): Add AC_CONFIG_FILES invocation.
79195         (EXTRA_DIST): Remove csharpexec.sh.in.
79196
79197 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79198
79199         Sync from coreutils.
79200
79201         Add POSIX ACL support
79202         * lib/acl.h (copy_acl, set_acl): Add declarations.
79203         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79204         systems other than Linux.
79205         (chmod_or_fchmod): New function: use fchmod when possible,
79206         and chmod otherwise.
79207         (file_has_acl): Add a POSIX ACL implementation, with a
79208         Linux-specific subcase.
79209         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79210         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79211         acls are unsupported.
79212         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79213         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79214         are unsupported.
79215
79216 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79217
79218         Sync from coreutils.
79219         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79220
79221 2006-01-07  Bruno Haible  <bruno@clisp.org>
79222
79223         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79224         gl_EARLY.
79225
79226 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79227
79228         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79229         Problem reported for Mingw by Mark Junker.
79230
79231 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79232
79233         * README: Gnulib normally doesn't generate a tarball.
79234
79235 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79236
79237         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79238         long int, not int, for nanosecond counts, so that people who are
79239         used to POSIX struct timespec won't be surprised.  Reported by Jim
79240         Meyering.
79241
79242 2005-12-28  Bruno Haible  <bruno@clisp.org>
79243
79244         * build-aux/config.rpath: Update from GNU gettext.
79245
79246 2005-12-16  Jim Meyering  <jim@meyering.net>
79247
79248         * modules/fprintftime: New module.
79249         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79250
79251 2005-12-16  Jim Meyering  <jim@meyering.net>
79252
79253         * m4/fprintftime.m4: New file.
79254
79255 2005-12-16  Jim Meyering  <jim@meyering.net>
79256
79257         * lib/fprintftime.c, lib/fprintftime.h: New files.
79258
79259 2005-12-15  Simon Josefsson  <jas@extundo.com>
79260
79261         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79262         new m4/socklen.m4.
79263
79264 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79265
79266         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79267         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79268
79269 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79270
79271         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79272         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79273         struct uparams is valid. Fall back to the default values if it is
79274         not.
79275
79276 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79277
79278         * modules/argp (Files): Add argp-pin.c
79279         (Depends-on): dirname
79280         (lib_SOURCES): Add argp-pin.c
79281
79282 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79283
79284         * m4/argp.m4:  Check if program_invocation_name and
79285         program_invocation_short_name are declared and define appropriate
79286         macros if they are not.
79287
79288 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79289
79290         * lib/argp-help.c (__argp_base_name): New function
79291         (__argp_short_program_name): Rewrite using __argp_base_name
79292         * lib/argp-namefrob.h: Define program_invocation_name and
79293         program_invocation_short_name if requested
79294         (__argp_base_name): Add prototype
79295         * lib/argp-parse.c (argp_def): Use gettext wrappers
79296         (argp_default_parser): Use __argp_base_name
79297         * lib/argp-pin.c: New file. Defines program_invocation_name and
79298         program_invocation_short_name on systems that lack them.
79299
79300 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79301
79302         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79303         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79304         porting problem reported by Georg Schwarz in
79305         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79306
79307 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79308
79309         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79310         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79311         porting problem reported by Georg Schwarz in
79312         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79313
79314 2005-12-05  Bruno Haible  <bruno@clisp.org>
79315
79316         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79317         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79318         Reported by Mark Junker <mjscod@gmx.de>.
79319
79320 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79321
79322         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79323         Use implementation from Albert Chin, with some
79324         comments/corrections by Stepan Kasal and myself.
79325
79326 2005-12-02  Bruno Haible  <bruno@clisp.org>
79327
79328         * gnulib-tool (func_import): Accept GPLed build tool modules when
79329         --lgpl is given.
79330         * modules/csharpcomp-script: New file.
79331         * modules/csharpcomp: Depend on it.
79332         * modules/javacomp-script: New file.
79333         * modules/javacomp: Depend on it.
79334         Suggested by Simon Josefsson.
79335
79336 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79337
79338         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79339         statement, to work around an HP-UX 10.20 compiler bug reported by
79340         Peter O'Gorman.
79341
79342 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79343
79344         * modules/savedir (Depends-on): Add openat.
79345
79346 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79347
79348         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79349         (uintmax_t) [defined uintmax_t]: Do not declare.
79350         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79351         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79352         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79353         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79354         sake of portability to weird hosts that C allows (though we don't
79355         know of any practical examples).
79356
79357         * lib/savedir.h (fdsavedir): New decl.
79358         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79359         contains most of the former guts of savedir.
79360         (savedir): Use savedirstream.
79361         Include "openat.h".
79362
79363 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79364
79365         * modules/obstack (Files): Add m4/ulonglong.m4.
79366         Problem reported by Davide Angelocola.
79367
79368 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79369
79370         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79371         coreutils no longer futzes with rounding modes.
79372
79373 2005-11-14  Jim Meyering  <jim@meyering.net>
79374
79375         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79376         replacement of mkstemp.
79377
79378 2005-11-10  Simon Josefsson  <jas@extundo.com>
79379
79380         * lib/readline.c: Remove EOL.
79381
79382 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79383
79384         * modules/gethrxtime (Depends-on): Add gettime.
79385
79386 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79387
79388         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79389         or gettimeofday; no longer needed.
79390
79391 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79392
79393         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79394         time business.
79395         (gethrxtime) [! (HAVE_NANOUPTIME
79396         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79397         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79398         our own approximation.
79399
79400 2005-11-08  Eric Blake  <ebb9@byu.net>
79401
79402         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79403
79404 2005-11-08  Eric Blake  <ebb9@byu.net>
79405
79406         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79407
79408 2005-11-04  Bruno Haible  <bruno@clisp.org>
79409
79410         * gnulib-tool: Implement --update mode.
79411
79412 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79413
79414         Fix porting problem reported by Theodoros V. Kalamatianos.
79415         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79416         Don't assume that futimes failing means we must fail.
79417
79418 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79419
79420         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79421         variables to suggest the intended function of the PATH_MAX check.
79422
79423 2005-10-30  Kean Johnston  <jkj@sco.com>
79424
79425         Trivial changes to support SCO systems.
79426         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79427         as PATH_MAX.
79428         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79429         where __ptr is null when no I/O is pending.
79430
79431 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79432
79433         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79434         leave errno alone.  Problem reported by Dmitry V. Levin.
79435
79436 2005-10-28  Simon Josefsson  <jas@extundo.com>
79437
79438         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79439         Test more.
79440
79441         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79442
79443         * modules/md2, modules/md2-tests: New files.
79444
79445 2005-10-28  Simon Josefsson  <jas@extundo.com>
79446
79447         * m4/inet_ntop.m4: More tests.
79448
79449         * m4/gc-md2.m4, md2.m4: New file.
79450
79451 2005-10-28  Simon Josefsson  <jas@extundo.com>
79452
79453         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79454         "restrict" keywords, as per POSIX.  Protect the function
79455         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79456         Don't use K&R prototypes.  Check the sprintf return values.
79457         Re-define EAFNOSUPPORT if not present.  Indent.
79458
79459         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79460         suggested by Bruno Haible <bruno@clisp.org>.
79461
79462         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79463
79464         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79465
79466         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79467         libgcrypt).
79468
79469         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79470
79471         * lib/md2.h, lib/md2.c: New files.
79472
79473 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79474
79475         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79476         errno alone.  Problem reported by Frederic Jolliton.
79477
79478 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79479
79480         * modules/verify (License): Change from GPL to LGPL.  This is a
79481         tiny module and there are apparently near-equivalents that are
79482         under the BSD license.
79483
79484 2005-10-24  Simon Josefsson  <jas@extundo.com>
79485
79486         * modules/sha1: Relicense to LGPL.
79487
79488 2005-10-24  Simon Josefsson  <jas@extundo.com>
79489
79490         * lib/md4.h: Shrink buffer size, now that we changed the type.
79491
79492 2005-10-23  Simon Josefsson  <jas@extundo.com>
79493
79494         * gnulib-tool (func_import): Fix --tests-base.
79495
79496 2005-10-22  Simon Josefsson  <jas@extundo.com>
79497
79498         * modules/arcfour (Depends-on): Need stdint.
79499
79500 2005-10-22  Simon Josefsson  <jas@extundo.com>
79501
79502         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79503         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79504
79505 2005-10-22  Simon Josefsson  <jas@extundo.com>
79506
79507         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79508         suggested by Bruno Haible <bruno@clisp.org>.
79509
79510 2005-10-22  Simon Josefsson  <jas@extundo.com>
79511
79512         * lib/crc.h: Include stddef.h, for size_t.
79513
79514 2005-10-22  Simon Josefsson  <jas@extundo.com>
79515
79516         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79517         arcfour_context struct (simplify test vector testing in GNU
79518         Shishi).
79519
79520 2005-10-21  Simon Josefsson  <jas@extundo.com>
79521
79522         * modules/des, modules/des-tests: New files.
79523
79524         * modules/gc-des, modules/gc-des-tests: New files.
79525
79526         * tests/test-des.c, tests/test-gc-des.c: New file.
79527
79528 2005-10-21  Simon Josefsson  <jas@extundo.com>
79529
79530         * modules/arctwo, modules/arctwo-tests: New files.
79531
79532         * tests/test-arctwo.c: New file.
79533
79534         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79535
79536         * tests/test-gc-arctwo.c: New file.
79537
79538 2005-10-21  Simon Josefsson  <jas@extundo.com>
79539
79540         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79541         Bruno Haible <bruno@clisp.org>.
79542
79543         * m4/gc-des.m4: New file.
79544
79545 2005-10-21  Simon Josefsson  <jas@extundo.com>
79546
79547         * m4/arctwo.m4: New file.
79548
79549         * m4/gc-arctwo.m4: New file.
79550
79551 2005-10-21  Simon Josefsson  <jas@extundo.com>
79552
79553         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79554         block.
79555
79556 2005-10-21  Simon Josefsson  <jas@extundo.com>
79557
79558         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79559         <bruno@clisp.org>.
79560
79561         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79562
79563         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79564         Bruno Haible <bruno@clisp.org>.
79565
79566         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79567         <bruno@clisp.org>.
79568
79569 2005-10-21  Simon Josefsson  <jas@extundo.com>
79570
79571         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79572
79573 2005-10-21  Simon Josefsson  <jas@extundo.com>
79574
79575         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79576
79577 2005-10-21  Simon Josefsson  <jas@extundo.com>
79578
79579         * lib/des.h, lib/des.c: New files.
79580
79581         * lib/gc-gnulib.c: Support DES.c
79582
79583 2005-10-21  Simon Josefsson  <jas@extundo.com>
79584
79585         * lib/arctwo.h, lib/arctwo.c: New files.
79586
79587         * lib/gc-gnulib.c: Support ARCTWO.
79588
79589 2005-10-21  Simon Josefsson  <jas@extundo.com>
79590
79591         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79592         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79593
79594 2005-10-21  Simon Josefsson  <jas@extundo.com>
79595
79596         * gnulib-tool (func_import, func_create_testdir): Define automake
79597         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79598         Makefile.am snippet),
79599         suggested by Bruno Haible <bruno@clisp.org>.
79600
79601         * modules/gc (Makefile.am): Use it.
79602
79603 2005-10-21  Bruno Haible  <bruno@clisp.org>
79604
79605         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79606         patch.
79607
79608 2005-10-19  Simon Josefsson  <jas@extundo.com>
79609
79610         * tests/test-gc-rijndael.c: New file.
79611
79612         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79613
79614 2005-10-19  Simon Josefsson  <jas@extundo.com>
79615
79616         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79617         interface too.
79618
79619 2005-10-19  Simon Josefsson  <jas@extundo.com>
79620
79621         * tests/test-gc-arcfour.c: New file.
79622
79623         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79624
79625 2005-10-19  Simon Josefsson  <jas@extundo.com>
79626
79627         * modules/gc-md4, modules/gc-md4-tests: New file.
79628
79629         * tests/test-gc-md4.c: New file.
79630
79631 2005-10-19  Simon Josefsson  <jas@extundo.com>
79632
79633         * m4/gc-md4.m4: New file.
79634
79635 2005-10-19  Simon Josefsson  <jas@extundo.com>
79636
79637         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79638         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79639         <kasal@ucw.cz>.
79640
79641 2005-10-19  Simon Josefsson  <jas@extundo.com>
79642
79643         * m4/gc-arcfour.m4: New file.
79644
79645         * m4/gc-rijndael.m4: New file.
79646
79647 2005-10-19  Simon Josefsson  <jas@extundo.com>
79648
79649         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79650
79651 2005-10-19  Simon Josefsson  <jas@extundo.com>
79652
79653         * lib/gc-gnulib.c: Support ARCFOUR.
79654
79655 2005-10-19  Simon Josefsson  <jas@extundo.com>
79656
79657         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79658         support.
79659
79660         * lib/gc.h: Add ECB enum type.
79661
79662         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79663
79664 2005-10-18  Simon Josefsson  <jas@extundo.com>
79665
79666         * tests/test-md5.c: New file.
79667
79668         * modules/md5-tests: New file.
79669
79670 2005-10-18  Simon Josefsson  <jas@extundo.com>
79671
79672         * tests/test-md4.c: New file.
79673
79674         * modules/md4, modules/md4-tests: New files.
79675
79676 2005-10-18  Simon Josefsson  <jas@extundo.com>
79677
79678         * m4/md4.m4: New file.
79679
79680 2005-10-18  Simon Josefsson  <jas@extundo.com>
79681
79682         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79683
79684 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79685
79686         * gnulib-tool (func_create_testdir): Omit the second check whether
79687         BUILT_SOURCES in nonempty.
79688
79689 2005-10-17  Simon Josefsson  <jas@extundo.com>
79690
79691         * tests/test-rijndael.c: New file.
79692
79693 2005-10-17  Simon Josefsson  <jas@extundo.com>
79694
79695         * modules/sha1: Depend on stdint instead of md5.
79696
79697         * modules/md5: Depend on stdint, remove uint32_t.
79698
79699 2005-10-17  Simon Josefsson  <jas@extundo.com>
79700
79701         * modules/gc-sha1-tests: New file.
79702
79703         * tests/test-gc-sha1.c: New file.
79704
79705 2005-10-17  Simon Josefsson  <jas@extundo.com>
79706
79707         * m4/md5.m4: Remove call to uint32_t.m4.
79708
79709 2005-10-17  Simon Josefsson  <jas@extundo.com>
79710
79711         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79712
79713         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79714         md5.h.
79715
79716         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79717
79718         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79719
79720 2005-10-17  Simon Josefsson  <jas@extundo.com>
79721
79722         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79723
79724 2005-10-17  Simon Josefsson  <jas@extundo.com>
79725
79726         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79727
79728 2005-10-17  Simon Josefsson  <jas@extundo.com>
79729
79730         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79731
79732         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79733
79734 2005-10-17  Bruno Haible  <bruno@clisp.org>
79735
79736         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79737         that it can also be used in a test.
79738
79739 2005-10-16  Bruno Haible  <bruno@clisp.org>
79740
79741         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79742         TESTS_ENVIRONMENT, so that individual tests can augment it.
79743
79744         * gnulib-tool (func_create_testdir): Use an intermediate target for
79745         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79746         macros, like $(ALLOCA_H), which cannot be passed through the command
79747         line.
79748
79749 2005-10-15  Simon Josefsson  <jas@extundo.com>
79750
79751         * modules/rijndael-tests: New file.
79752
79753         * modules/rijndael: New file.
79754
79755 2005-10-15  Simon Josefsson  <jas@extundo.com>
79756
79757         * m4/rijndael.m4: New file.
79758
79759 2005-10-15  Simon Josefsson  <jas@extundo.com>
79760
79761         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79762
79763         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79764
79765 2005-10-14  Simon Josefsson  <jas@extundo.com>
79766
79767         * tests/test-arcfour.c: New file.
79768
79769         * modules/arcfour, modules/arcfour-tests: New files.
79770
79771 2005-10-14  Simon Josefsson  <jas@extundo.com>
79772
79773         * m4/arcfour.m4: New file.
79774
79775 2005-10-14  Simon Josefsson  <jas@extundo.com>
79776
79777         * lib/arcfour.h, lib/arcfour.c: New files.
79778
79779 2005-10-14  Roland McGrath  <roland@redhat.com>
79780
79781         Import from libc.  [BZ #1331]
79782         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79783         macro argument.
79784         Reported by Matej Vela <vela@debian.org>.
79785
79786 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79787
79788         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79789         include <wchar.h>; no longer needed.
79790
79791 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79792
79793         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79794
79795 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79796         and  Ulrich Drepper  <drepper@redhat.com>
79797
79798         Import from libc.
79799         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79800         instead of inline stream orientation test and two separate
79801         function calls.  Pay no attention to USE_IN_LIBIO.
79802
79803 2005-10-13  Simon Josefsson  <jas@extundo.com>
79804
79805         * modules/gc-hmac-md5-tests: New file.
79806
79807         * tests/test-gc-hmac-sha1.c: New file.
79808
79809         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79810
79811         * modules/gc-hmac-md5-tests: New file.
79812
79813         * tests/test-gc-md5.c: New file.
79814
79815         * modules/gc-md5-tests: New file.
79816
79817 2005-10-13  Simon Josefsson  <jas@extundo.com>
79818
79819         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79820         Move memory allocation outside of loop.
79821
79822 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79823
79824         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79825         intermediate directory is in a read-only file system.  Problem
79826         reported by Eric Blake.
79827
79828 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79829
79830         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79831
79832 2005-10-12  Simon Josefsson  <jas@extundo.com>
79833
79834         * tests/test-hmac-sha1.c: New file.
79835
79836         * modules/hmac-sha1-tests: New file.
79837
79838         * modules/hmac-sha1: New file.
79839
79840 2005-10-12  Simon Josefsson  <jas@extundo.com>
79841
79842         * modules/gc-sha1: New file.
79843
79844 2005-10-12  Simon Josefsson  <jas@extundo.com>
79845
79846         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79847
79848         * tests/test-gc-pbkdf2-sha1.c: New file.
79849
79850 2005-10-12  Simon Josefsson  <jas@extundo.com>
79851
79852         * modules/gc-md5, modules/gc-hmac-md5: New files.
79853
79854         * modules/gc (Files): Remove md5, memxor and hmac files.
79855
79856 2005-10-12  Simon Josefsson  <jas@extundo.com>
79857
79858         * m4/gc-pbkdf2-sha1.m4: New file.
79859
79860         * m4/gc-hmac-sha1.m4: New file.
79861
79862         * m4/gc-sha1: New file.
79863
79864         * m4/hmac-sha1.m4: New file.
79865
79866 2005-10-12  Simon Josefsson  <jas@extundo.com>
79867
79868         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79869
79870         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79871
79872 2005-10-12  Simon Josefsson  <jas@extundo.com>
79873
79874         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79875         suggested by Bruno Haible <bruno@clisp.org>.
79876
79877 2005-10-12  Simon Josefsson  <jas@extundo.com>
79878
79879         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79880
79881 2005-10-12  Simon Josefsson  <jas@extundo.com>
79882
79883         * lib/gc-pbkdf2-sha1.c: New file.
79884
79885         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79886
79887 2005-10-12  Simon Josefsson  <jas@extundo.com>
79888
79889         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79890
79891         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79892
79893 2005-10-12  Simon Josefsson  <jas@extundo.com>
79894
79895         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79896         GC_USE_HMAC_MD5, respectively.
79897
79898         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79899         (gc_md5): Fix typo.
79900
79901         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79902
79903         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79904
79905         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79906
79907 2005-10-12  Bruno Haible  <bruno@clisp.org>
79908
79909         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79910         Reported by Stepan Kasal <kasal@ucw.cz>.
79911
79912 2005-10-11  Simon Josefsson  <jas@extundo.com>
79913
79914         * tests/test-crc.c: New file.
79915
79916         * modules/crc, modules/crc-tests: New files.
79917
79918 2005-10-11  Simon Josefsson  <jas@extundo.com>
79919
79920         * m4/crc.m4: New file.
79921
79922 2005-10-11  Simon Josefsson  <jas@extundo.com>
79923
79924         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79925
79926         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79927
79928         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79929
79930 2005-10-11  Simon Josefsson  <jas@extundo.com>
79931
79932         * lib/crc.h, lib/crc.c: New files.
79933
79934         * lib/gc.h (gc_hash_buffer): Add doc.
79935
79936 2005-10-11  Bruno Haible  <bruno@clisp.org>
79937
79938         * modules/c-strcasestr: New file.
79939         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79940
79941 2005-10-11  Bruno Haible  <bruno@clisp.org>
79942
79943         * modules/c-strcase: New file.
79944         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79945
79946 2005-10-11  Bruno Haible  <bruno@clisp.org>
79947
79948         * lib/strcasecmp.c: Include limits.h.
79949         (strcasecmp): Avoid integer overflow on exotic platforms.
79950         * lib/strncasecmp.c: Include limits.h.
79951         (strncasecmp): Avoid integer overflow on exotic platforms.
79952         Reported by Paul Eggert.
79953
79954 2005-10-11  Bruno Haible  <bruno@clisp.org>
79955
79956         * lib/c-strcasestr.h: New file, from GNU gettext.
79957         * lib/c-strcasestr.c: New file, from GNU gettext.
79958
79959 2005-10-11  Bruno Haible  <bruno@clisp.org>
79960
79961         * lib/c-strcase.h: New file, from GNU gettext.
79962         * lib/c-strcasecmp.c: New file, from GNU gettext.
79963         * lib/c-strncasecmp.c: New file, from GNU gettext.
79964
79965 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79966
79967         * modules/mempcpy (License): GPL -> LGPL.
79968         * modules/strchrnul (License): Likewise.
79969         * modules/sysexits (License): Likewise.
79970
79971 2005-10-08  Simon Josefsson  <jas@extundo.com>
79972
79973         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79974
79975 2005-10-07  Simon Josefsson  <jas@extundo.com>
79976
79977         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79978
79979 2005-10-06  Simon Josefsson  <jas@extundo.com>
79980
79981         * tests/test-hmac-md5.c: New file.
79982
79983         * modules/hmac-md5-tests: New file.
79984
79985         * modules/hmac-md5: New file.
79986
79987 2005-10-06  Simon Josefsson  <jas@extundo.com>
79988
79989         * m4/hmac-md5.m4: New file.
79990
79991         * m4/memxor.m4: Require gl_C_RESTRICT.
79992
79993 2005-10-06  Simon Josefsson  <jas@extundo.com>
79994
79995         * lib/memxor.c (memxor): Avoid casts and warnings.
79996
79997 2005-10-06  Simon Josefsson  <jas@extundo.com>
79998
79999         * lib/hmac-md5.c: New file.
80000
80001         * lib/hmac.h: New file.
80002
80003 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80004
80005         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80006         promotes to int, not unsigned int, to catch the AIX 5.3
80007         compiler bug.
80008
80009 2005-10-05  Simon Josefsson  <jas@extundo.com>
80010
80011         * modules/memxor: New file.
80012
80013         * modules/iconv (Files): Move config.rpath to havelib, it is used
80014         there.
80015
80016         * modules/havelib (Files): Add config.rpath.
80017
80018 2005-10-05  Simon Josefsson  <jas@extundo.com>
80019
80020         * m4/memxor.m4: New file.
80021
80022 2005-10-05  Simon Josefsson  <jas@extundo.com>
80023
80024         * lib/memxor.c (memxor): Fix compiler error.
80025
80026         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80027         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80028
80029         * lib/memxor.h, lib/memxor.c: New files.
80030
80031         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80032         we assume all systems have it, suggested by Jim Meyering
80033         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80034         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80035         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80036         same reasons.
80037
80038 2005-10-05  Simon Josefsson  <jas@extundo.com>
80039
80040         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80041
80042 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80043
80044         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80045         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80046         needed, since the source code now assumes these .h files.
80047
80048 2005-10-05  Derek Price  <derek@ximbiot.com>
80049
80050         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80051
80052 2005-10-05  Bruno Haible  <bruno@clisp.org>
80053
80054         * modules/stdint (License): Change to LGPL.
80055
80056 2005-10-04  Simon Josefsson  <jas@extundo.com>
80057
80058         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80059         D. Baushke" <mdb@gnu.org>.
80060
80061 2005-10-04  Bruno Haible  <bruno@clisp.org>
80062
80063         * lib/verify.h (verify_true): Provide alternative definition for C++.
80064
80065 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80066
80067         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80068         (SSIZE_MAX): New macro, if not already defined.
80069         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80070         than 2 GiB.
80071
80072 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80073
80074         Sync from coreutils.
80075         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80076         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80077         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80078         ULLONG_MAX doesn't work with 2.7.2.1.
80079
80080 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80081
80082         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80083         From Ben Pfaff.
80084
80085         * modules/exclude (Depends-on): Depend on verify.
80086         * modules/strtoimax (Depends-on): Likewise.
80087         * modules/utimecmp (Depends-on): Likewise.
80088
80089 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80090
80091         * lib/exclude.c: Include verify.h.
80092         (verify): Remove.  All callers changed to use verify.h's version.
80093         * lib/strtoimax.c: Likewise.
80094         * lib/utimecmp.c: Likewis.e
80095
80096         Sync from coreutils.
80097         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80098         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80099         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80100         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80101         bother returning ENOSYS if settimeofday or stime fails; just let
80102         them return whatever errno they want to return.
80103         * lib/utimens.c: Include unistd.h, for dup2.
80104         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80105         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80106
80107 2005-10-02  Jim Meyering  <jim@meyering.net>
80108
80109         Sync from coreutils.
80110         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80111         from glibc-2.2.5 that fails for read-only files.
80112
80113 2005-10-02  Jim Meyering  <jim@meyering.net>
80114
80115         Sync from coreutils.
80116         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80117         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80118         `#if HAVE_CONFIG_H'.
80119         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80120         Remove AT_FDCWD test.
80121         Do not consume the fd unless successful.
80122         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80123         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80124         block, so that we don't even try to compile it if settimeofday is
80125         available.  This works around a compilation failure on OSF1 V5.1,
80126         due to stime requiring a `long int*' while tv_sec is `int'.
80127
80128 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80129
80130         Sync from coreutils.
80131         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80132         against `yes', rather than just testing for nonempty.
80133
80134 2005-10-01  Simon Josefsson  <jas@extundo.com>
80135
80136         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80137         and Darwin.
80138
80139         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80140         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80141         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80142         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80143         Check if struct addrinfo is declared.
80144
80145 2005-10-01  Simon Josefsson  <jas@extundo.com>
80146
80147         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80148         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80149         AI_* and EAI_* definitions.  Protect function declarations.
80150
80151 2005-10-01  Jim Meyering  <jim@meyering.net>
80152
80153         Sync from coreutils.
80154
80155         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80156         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80157         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80158         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80159         in the inet and nsl libraries.  Required on Solaris 5.7.
80160
80161 2005-10-01  Jim Meyering  <jim@meyering.net>
80162
80163         Sync from coreutils.
80164         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80165         in the inet and nsl libraries.  Required on Solaris 5.7.
80166
80167 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80168
80169         * lib/getdelim.c (getdelim): Remove unused variables.
80170
80171 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80172
80173         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80174         so that the code works even with ancient cpp.  Portability problem
80175         with GCC 2.7.2.1 reported by Thomas M.Ott.
80176
80177 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80178
80179         * modules/regex (Depends-on): Add strcase.
80180
80181         * modules/gethostname (Licence): Change from GPL to LGPL, since
80182         gethostname.c is a trivial implementation of a standard library
80183         function.
80184         * modules/poll (License): Change from GPL to LGPL, since it's
80185         derived from LGPL code.
80186
80187 2005-09-27  Jim Meyering  <jim@meyering.net>
80188
80189         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80190         HAVE_CONFIG_H.
80191
80192         * lib/intprops.h (signed_type_or_expr__): Define.
80193         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80194         for unsigned types.
80195
80196 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80197
80198         * lib/verify.h (verify_expr): Remove, replacing with:
80199         (verify_true): New macro that returns true instead of void.
80200         (verify_type__): Remove.
80201         (verify): Use verify_true rather than verify_type__.
80202
80203 2005-09-26  Bruno Haible  <bruno@clisp.org>
80204
80205         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80206         is necessary.
80207         (lib_SOURCES): Remove mbchar.c.
80208         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80209         (Files): Add m4/mbrtowc.m4.
80210         * modules/mbiter: Likewise.
80211         * modules/mbuiter: Likewise.
80212
80213 2005-09-26  Bruno Haible  <bruno@clisp.org>
80214
80215         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80216         compile mbchar.c if they are not both present.
80217         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80218         * m4/mbiter.m4 (gl_MBITER): Likewise.
80219         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80220         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80221         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80222
80223 2005-09-25  Jim Meyering  <jim@meyering.net>
80224
80225         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80226         also uses socklen_t.
80227
80228 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80229
80230         * lib/utimens.c (ENOSYS): Define if not already defined.
80231         (futimens): Support having a null PATH if the file descriptor
80232         is nonnegative.
80233
80234         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80235         Remove.
80236         (__attribute): Define to empty unless GCC 3.1 or later.
80237         This works around a core dump on OpenBSD 3.4, which has GCC
80238         2.95.3, which dumps core when given __attribute__(()).  It also
80239         simplifies other tests, since we really don't want to bother with
80240         worrying about which ancient version of GCC supported what.
80241         Original problem reported by Yoann Vandoorselaere, with part of
80242         the fix suggested by Derek Price.
80243
80244 2005-09-24  Jim Meyering  <jim@meyering.net>
80245
80246         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80247         so we can once again use a positive bitfield width of 1 -- now we
80248         don't have to explain why we were using a bitfield width of 2.
80249
80250 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80251
80252         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80253         and similarly for the other external symbols.  Problem reported
80254         by James Gallager.
80255
80256         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80257         bug reported by Jim Meyering.
80258
80259         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80260         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80261         not needed, since socklen is a prerequisite module.
80262
80263 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80264
80265         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80266         Problem reported by Eric Blake.
80267         (getaddrinfo): Initialize se so that it's not garbage.
80268         Redo internal storage allocation so that it doesn't make unportable
80269         assumptions about alignment.
80270         Fix a memory leak.
80271
80272         * lib/utimens.c (futimens): Use futimesat if available.
80273         Prefer it to futimes since it doesn't have the futimes bug.
80274
80275         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80276         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80277         Instead, declare a function that returns a pointer to an array,
80278         and use verify_type__ to declare the size of the array.
80279         Problem and germ of a solution reported by Bruno Haible.
80280         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80281         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80282
80283 2005-09-23  Jim Meyering  <jim@meyering.net>
80284
80285         Sync from coreutils.
80286         Correct build failure (socklen_t not defined) on at least
80287         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80288         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80289
80290 2005-09-23  Jim Meyering  <jim@meyering.net>
80291
80292         * modules/getaddrinfo (Depends-on): Add socklen.
80293
80294 2005-09-23  Bruno Haible  <bruno@clisp.org>
80295
80296         * tests/test-verify.c: New file.
80297
80298 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80299
80300         Sync from coreutils.
80301
80302         * modules/argmatch (Depends-on): Add verify.
80303         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80304         unistd-safer.
80305         * modules/save-cwd (Depends-on): Likewise.
80306
80307         * modules/openat (Files): Add lib/openat-die.c.
80308         (Depends-on): Remove error, exitfail.
80309         Add dirname.
80310
80311         * modules/verify: New file.
80312         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80313         with "verify" module.
80314
80315 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80316
80317         Sync from coreutils.
80318
80319         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80320         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80321         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80322         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80323         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80324         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80325         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80326         Don't bother checking for string.h, stdlib.h, unistd.h.
80327         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80328         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80329         module's job.
80330         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80331         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80332
80333         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80334         (gl_GETDATE): Use it.
80335
80336         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80337
80338 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80339
80340         Sync from coreutils.
80341
80342         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80343         stat-time.h.
80344         * lib/argmatch.h: Include verify.h
80345         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80346         (ARGMATCH_ASSERT): Remove; unused.
80347         * lib/canonicalize.c: Assume STDC_HEADERS.
80348         * lib/exclude.c: Include "strcase.h".
80349         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80350         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80351         and stdio-safer.h.
80352         (getusershell): Call fopen, not fopen_safer.
80353         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80354         Do not include unistd-safer.h.
80355         (save_cwd): Don't call fd_safer; no longer needed
80356         now that we include fcntl--.h.
80357
80358         * lib/getdate.y (relative_time): New type.
80359         (RELATIVE_TIME_0): New constant.
80360         (parser_control): Use relative_time instead of doing it ourselves.
80361         (%union): Add new relative_time rel member.
80362         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80363         Now typeless.
80364         (relunit, relunit_snumber): Now of type rel.
80365         (zone, rel, relunit, get_date): Adjust to above changes.
80366
80367         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80368         Do not include unistd-safer.h.
80369         (getloadavg): Don't call fd_safer; no longer needed
80370         now that we include fcntl--.h.
80371
80372         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80373         (make_dir_parents): Treat ENOSYS like EEXIST.
80374
80375         Improve quality of diagnostics on restore_cwd failure.
80376         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80377         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80378         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80379         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80380         each time through the loop.  Do not diagnose restore_cwd failure;
80381         that is the caller's job (and perhaps the caller does not care).
80382
80383         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80384         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80385         If the file already exists but is not a directory, don't bother
80386         to try to make its parents.
80387         Close potential file descriptor leak if we can't chdir("/") (!).
80388         Don't always return true if chdir($PWD) fails; return true only
80389         if the requested action was done successfully (except for the
80390         chdir($PWD)).
80391         Don't log final directory unless we actually made it.
80392         Refactor to avoid duplicate code to fix up permissions.
80393         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80394
80395         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80396         to make it a bit faster and (I hope) clearer.
80397         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80398         Fix bug in formats like %2N.
80399
80400         * lib/verify.h: New file.
80401
80402 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80403
80404         Sync from coreutils.
80405         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80406
80407 2005-09-22  Jim Meyering  <jim@meyering.net>
80408
80409         Sync from coreutils.
80410
80411         * m4/lstat.m4 (gl_FUNC_LSTAT):
80412         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80413         Remove obsolete comment.
80414         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80415         * m4/xstrtod.m4: Likewise.
80416
80417         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80418
80419 2005-09-22  Jim Meyering  <jim@meyering.net>
80420
80421         Sync from coreutils.
80422
80423         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80424
80425         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80426         the .tm_year member, since otherwise gcc-4.0 would now warn about
80427         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80428
80429         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80430         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80431
80432         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80433         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80434         when run in a time zone for which daylight savings time is in effect
80435         for the starting date.
80436
80437         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80438         stop us from restricting permissions of just-created absolute-named
80439         directories.
80440         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80441         to restore initial working directory.
80442         * lib/mkdir-p.c (make_dir_parents): New parameter:
80443         different_working_dir, to tell caller if/when we change the working
80444         directory and are unable to return to the initial one.
80445         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80446         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80447         `return false'.  This fixes a bug introduced on 2004-07-30.
80448
80449         * lib/openat.c (fdopendir): Be sure to close the supplied
80450         file descriptor before returning.  This makes our replacement
80451         implementation a little closer to Solaris's, where fdopendir
80452         ties the file descriptor to the returned DIR* pointer.
80453         * lib/openat.c (unlinkat): New function.
80454         * lib/openat.h (unlinkat): Add prototype.
80455         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80456         (openat_restore_fail): Rename from openat_restore_die.
80457         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80458
80459         Provide an alternative to exiting immediately upon save_cwd or
80460         restore_cwd failure.  Now, an application can arrange e.g.,
80461         to perform a longjump in that case.
80462         * lib/openat.c: Include dirname.h.
80463         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80464         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80465         and openat_restore_die rather than calling error directly.
80466         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80467
80468         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80469         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80470         define.
80471
80472         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80473         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80474                             int utc, int nanoseconds);
80475         Background:
80476         date should not have to allocate a megabyte of virtual memory to
80477         handle a format argument like +%1048575T.  When implemented with
80478         strftime, it must allocate such a buffer, use strftime to fill it
80479         in, print it, then free it.
80480         With fprintftime, it simply prints everything and exits.
80481         With no need for memory allocation, that's one fewer way to fail.
80482         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80483         optional field width, not before, so we accept %9:z, not %:9z.
80484         (my_strftime): Be sure to use L_('x') for literals.
80485
80486         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80487         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80488         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80489         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80490         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80491         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80492         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80493         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80494         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80495         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80496         * lib/xgethostname.c, lib/xreadlink.c:
80497         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80498
80499         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80500         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80501         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80502         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80503         and don't include <sys/file.h>).
80504
80505 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80506
80507         Sync from coreutils.
80508
80509         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80510         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80511         [!LDAV_DONE]: Avoid unused variable warning.
80512
80513 2005-09-21  Bruno Haible  <bruno@clisp.org>
80514
80515         * lib/unicodeio.h (unicode_to_mb): New declaration.
80516
80517 2005-09-20  Derek Price  <derek@ximbiot.com>
80518
80519         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80520         getaddrinfo.h.
80521
80522 2005-09-20  Bruno Haible  <bruno@clisp.org>
80523
80524         * gnulib-tool: Remove trailing slashes from the values specified for
80525         --source-base, --m4-base, --tests-base, --aux-dir.
80526         Suggested by Simon Josefsson <jas@extundo.com>.
80527
80528 2005-09-20  Bruno Haible  <bruno@clisp.org>
80529
80530         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80531         func_modules_to_filelist, func_import, func_create_testdir): Make all
80532         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80533         change when gnulib-tool is invoked in a different locale.
80534
80535 2005-09-19  Simon Josefsson  <jas@extundo.com>
80536
80537         * m4/socklen.m4: Fix typo.
80538
80539 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80540
80541         Use a consistent style for including <config.h>.
80542         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80543         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80544         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80545         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80546         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80547         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80548         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80549         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80550         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80551         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80552         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80553         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80554         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80555         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80556         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80557         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80558         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80559         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80560         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80561         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80562         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80563         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80564         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80565         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80566         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80567         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80568         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80569         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80570         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80571         lib/xstrtoumax.c, lib/yesno.c:
80572         Standardize inclusion of config.h.
80573         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80574         lib/inttostr.h:  Removed inclusion of config.h from header files.
80575         * lib/inttostr.c:  Adjusted in-tree users.
80576         * lib/timespec.h: Remove superfluous warning to include config.h.
80577         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80578         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80579         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80580         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80581         config.h with HAVE_CONFIG_H.
80582
80583 2005-09-19  Jim Meyering  <jim@meyering.net>
80584
80585         * modules/pathmax (License): Change to LGPL.
80586
80587 2005-09-19  Derek Price  <derek@ximbiot.com>
80588
80589         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80590
80591 2005-09-19  Bruno Haible  <bruno@clisp.org>
80592
80593         * gnulib-tool (import): Provide default for --tests-base.
80594
80595 2005-09-19  Bruno Haible  <bruno@clisp.org>
80596
80597         * doc/quote.texi: New file, extracted from gnulib.texi.
80598         * doc/ctime.texi: New file, extracted from gnulib.texi.
80599         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80600         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80601         * doc/gnulib.texi: Include them.
80602
80603 2005-09-18  Bruno Haible  <bruno@clisp.org>
80604
80605         Portability fix.
80606         * gnulib-tool (func_readlink): New function.
80607         (func_ln_if_changed): Use it.
80608
80609 2005-09-18  Bruno Haible  <bruno@clisp.org>
80610
80611         * gnulib-tool: Support --with-tests also with --import.
80612         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80613         (func_import): Use variables $testsbase and $inctests. Emit a
80614         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80615         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80616         SUBDIRS += $testsdir.
80617         (func_create_testdir): Update.
80618
80619 2005-09-18  Bruno Haible  <bruno@clisp.org>
80620
80621         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80622         instead of $dry_run.
80623         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80624         (func_ln_if_changed): Don't handle dry-run here.
80625         (func_import): In dry-run mode, detect more precisely which actions
80626         would be performed, and don't use "...ing" verbs.
80627
80628 2005-09-18  Bruno Haible  <bruno@clisp.org>
80629
80630         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80631         (func_import): Use join on two temporary files instead of three nested
80632         loops, in order to determine which files are new or old.
80633
80634 2005-09-18  Bruno Haible  <bruno@clisp.org>
80635
80636         * gnulib-tool (func_import): Comment out code that spits out the
80637         new files with --dry-run.
80638
80639 2005-09-18  Bruno Haible  <bruno@clisp.org>
80640
80641         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80642
80643 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80644
80645         * lib/stat-time.h: New file.
80646         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80647         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80648         in a different way.
80649         (timespec_cmp): New function.
80650         * lib/utimecmp.c: Include stat-time.h.
80651         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80652         members exist, not on the obsolescent ST_MTIM_NSEC.
80653         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80654
80655 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80656
80657         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80658
80659 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80660
80661         * MODULES.html.sh (File system functions): Add stat-time.
80662         * modules/stat-time: New file.
80663         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80664         is now done in a different way, by the stat-time module.
80665         * modules/utimecmp (Depends-on): Add stat-time.
80666
80667 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80668
80669         * m4/st_mtim.m4: Remove.  Superseded by...
80670         * m4/stat-time.m4: New file.
80671         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80672         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80673
80674 2005-09-15  Derek Price  <derek@ximbiot.com>
80675
80676         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80677
80678 2005-09-15  Derek Price  <derek@ximbiot.com>
80679
80680         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80681         * lib/regex_internal.c: Ditto, using this...
80682         (__GNUC_PREREQ): ...new macro.
80683         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80684         using...
80685         (__GNUC_PREREQ): ...this new macro.
80686
80687         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80688
80689 2005-09-15  Derek Price  <derek@ximbiot.com>
80690             Paul Eggert  <eggert@cs.ucla.edu>
80691
80692         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80693         changes, consolidating in...
80694         * lib/regex_internal.h: ...this file.
80695
80696 2005-09-13  Jim Meyering  <jim@meyering.net>
80697
80698         * lib/canon-host.c: Filter through gnu indent and reword comments
80699         slightly.
80700         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80701
80702 2005-09-13  Derek Price  <derek@ximbiot.com>
80703
80704         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80705         failure.
80706         Reported by Jim Meyering  <jim@meyering.net>.
80707
80708 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80709
80710         * lib/base64.c: Typo.
80711         (base64_encode): Put b64str in initialized data section.
80712
80713 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80714
80715         Merge glibc and coreutils changes into gnulib, plus a few
80716         extra fixes.
80717         * lib/md5.c: Use #error rather than a string.
80718         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80719         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80720         (__attribute__): Define to empty for non recent-GCC.
80721         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80722         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80723         Renamed from their non-__ counterparts, with new macros replacing
80724         them if not _LIBC.  Add __THROW attribute.
80725         (rol): Remove.
80726         (struct md5_ctx): Align buffer if using GCC.
80727         * lib/sha1.h (struct sha1_ctx): Likewise.
80728         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80729         The old name was backwards.
80730         (NOTSWAP): Remove; not used.
80731         (rol): New macro, moved here from md5.h.
80732         (sha1_process_block): Remove a FIXME that doesn't make sense.
80733
80734 2005-09-12  Derek Price  <derek@ximbiot.com>
80735
80736         Return usable errors from canon-host.
80737         * lib/canon-host.h: New file.
80738         * lib/canon-host.c (canon_host): Wrap...
80739         (canon_host_r): ...this new function, which now relies exclusively on
80740         getaddrinfo.
80741         (ch_strerror): New function.
80742         (last_cherror): New global.
80743         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80744         interface.
80745         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80746         void *.
80747         (freeaddrinfo): Free ai->ai_canonname when set.
80748
80749 2005-09-12  Derek Price  <derek@ximbiot.com>
80750
80751         Make canon-host require getaddrinfo.
80752         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80753         AC_LIBSOURCE canon-host.h.  Call...
80754         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80755         gl_GETADDRINFO.
80756         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80757
80758 2005-09-12  Derek Price  <derek@ximbiot.com>
80759
80760         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80761         LGPL.
80762         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80763
80764 2005-09-12  Derek Price  <derek@ximbiot.com>
80765
80766         * lib/gai_strerror.c: Include config.h when available.  Include
80767         getaddrinfo.h before other headers to test interface.
80768         Reported by Larry Jones <lawrence.jones@ugs.com>.
80769
80770 2005-09-12  Derek Price  <derek@ximbiot.com>
80771             Paul Eggert  <eggert@cs.ucla.edu>
80772
80773         * modules/glob (Files): Add glob-libc.h.
80774
80775 2005-09-12  Derek Price  <derek@ximbiot.com>
80776             Paul Eggert  <eggert@cs.ucla.edu>
80777
80778         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80779         glob_.h, glob-libc.h.
80780         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80781
80782 2005-09-12  Derek Price  <derek@ximbiot.com>
80783             Paul Eggert  <eggert@cs.ucla.edu>
80784
80785         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80786         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80787         protecting things that should be done only in gnulib contexts.
80788         * lib/glob_.h: New file, containing only the glob things needed for
80789         gnulib.
80790         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80791         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80792         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80793         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80794         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80795         and to respect the namespace rules better.
80796
80797 2005-09-08  Simon Josefsson  <jas@extundo.com>
80798
80799         * modules/socklen: New file.
80800
80801 2005-09-08  Simon Josefsson  <jas@extundo.com>
80802
80803         * m4/socklen.m4: New file.
80804
80805 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80806
80807         * modules/utimens (Files): Add m4/utimbuf.m4, since
80808         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80809         Reported by Sergey Poznyakoff.
80810
80811 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80812
80813         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80814         definitions, since that's the preferred style in glibc.
80815         Fix a minor spacing issue, and update copyright notice to match
80816         glibc's.
80817
80818 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80819
80820         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80821
80822 2005-09-06  Simon Josefsson  <jas@extundo.com>
80823
80824         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80825         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80826
80827 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80828
80829         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80830         warning.
80831
80832 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80833
80834         * config/srclist.txt: Add glibc bug 1302.
80835
80836 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80837
80838         Change bitset word type from unsigned int to unsigned long int,
80839         as this has better performance on typical 64-bit hosts.
80840         Port bitset code to hosts with unusual word sizes.
80841         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80842         (build_collating_symbol):
80843         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80844         argument is a bitset.  This is merely a style issue, but it makes
80845         it clearer that an entire array is expected.
80846         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80847         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80848         Port to the case where bitset_word is not the same as unsigned int.
80849         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80850         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80851         Likewise.
80852         * lib/regexec.c (check_dst_limits_calc_pos_1,
80853         check_subexp_matching_top):
80854         (build_trtable, group_nodes_into_DFAstates):
80855         Likewise.
80856         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80857         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80858         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80859         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80860         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80861         * lib/regcomp.c (optimize_subexps, lower_subexp):
80862         Work even if bitset_word has holes in its bitwise representation.
80863         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80864         * lib/regexec.c (check_dst_limits_calc_pos_1,
80865         check_subexp_matching_top):
80866         Likewise.
80867         * lib/regex_internal.c (re_string_reconstruct):
80868         Don't assume UCHAR_MAX == 255.
80869         * lib/regex_internal.h (bitset_set_all): Likewise.
80870         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80871         All uses changed.
80872         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80873         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80874         All uses changed.
80875         (BITSET_WORD_MAX): New macro.
80876         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80877         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80878         (bitset_empty, bitset_copy):
80879         Prefer sizeof (bitset) to multiplying it out ourselves.
80880         (bitset_not_merge): Remove; unused.
80881         (bitset_contain): Return bool, not unsigned int with one bit on.
80882         All callers changed.
80883         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80884         alignment than re_node_set; do this by defining a new internal
80885         type struct dests_alloc and using it to allocate memory.
80886
80887 2005-09-05  Bruno Haible  <bruno@clisp.org>
80888
80889         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80890         links.
80891
80892 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80893
80894         * modules/size_max (Makefile.am): Add size_max.h
80895
80896 2005-09-04  Derek Price  <derek@ximbiot.com>
80897
80898         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80899
80900 2005-09-03  Simon Josefsson  <jas@extundo.com>
80901
80902         * gnulib-tool: Fix typo.
80903
80904 2005-09-03  Simon Josefsson  <jas@extundo.com>
80905
80906         * config/srclist.txt: Add glibc bug 1293.
80907
80908 2005-09-03  Derek Price  <derek@ximbiot.com>
80909
80910         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80911         From Larry Jones <lawrence.jones@ugs.com>.
80912
80913 2005-09-02  Simon Josefsson  <jas@extundo.com>
80914
80915         * modules/socklen: New file.
80916
80917 2005-09-02  Simon Josefsson  <jas@extundo.com>
80918
80919         * modules/havelib: New module.
80920
80921         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80922         Use havelib.
80923
80924 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80925
80926         Check for arithmetic overflow when calculating sizes, to prevent
80927         some buffer-overflow issues.  These patches are conservative, in the
80928         sense that when I couldn't determine whether an overflow was possible,
80929         I inserted a run-time check.
80930         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80931         macros.
80932         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80933         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80934         (re_xnrealloc, re_x2nrealloc): New inline functions.
80935         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80936         parse_bracket_exp):
80937         (build_equiv_class, build_charclass): Check for arithmetic overflow
80938         in size expression calculations.
80939         * lib/regex_internal.c (re_string_realloc_buffers):
80940         (build_wcs_upper_buffer, re_node_set_add_intersect):
80941         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80942         (re_dfa_add_node, register_state): Likewise.
80943         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80944         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80945         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80946         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80947
80948 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80949
80950         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80951         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80952
80953 2005-09-02  Bruno Haible  <bruno@clisp.org>
80954
80955         Support for lib vs. lib64 distinction on biarch platforms.
80956         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80957         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80958         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80959
80960 2005-09-02  Bruno Haible  <bruno@clisp.org>
80961
80962         * gnulib-tool (import): In the other first-use case, provide defaults
80963         as well.
80964
80965 2005-09-02  Bruno Haible  <bruno@clisp.org>
80966
80967         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80968         patches not yet found in the latest gettext release.
80969
80970 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80971
80972         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80973         to avoid a collision with bits/local_lim.h in glibc.
80974         All uses changed.  Problem reported by Dmitry V. Levin in
80975         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80976
80977         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80978         bugs in int versus size_t comparisons.
80979         (re_string_context_at): Fix bug where the code assumed that
80980         Idx is signed.
80981
80982         Use bool where appropriate.
80983         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80984         All callers changed.
80985         (calc_eclosure_iter): Likewise, for ROOT arg.
80986         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80987         (build_charclass_op): Likewise, for NON_MATCH arg.
80988         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80989         (re_string_construct_common): Likewise, for ICASE arg.
80990         * lib/regexec.c (re_search_2_stub, re_search_stub):
80991         Likewise, for RET_LEN arg.
80992         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80993         (set_regs): Likewise, for FL_BACKTRACK arg.
80994         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80995         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80996         (calc_eclosure_iter, parse_bracket_exp):
80997         Use bool for internal variables that are booleans.
80998         * lib/regexec.c (re_search_internal, check_matching,
80999         proceed_next_node):
81000         (set_regs, build_sifted_states, sift_states_bkref):
81001         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81002         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81003         (find_collation_sequence_value):
81004         Likewise.
81005         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81006         (re_node_set_compare):
81007         Return bool, not int. All callers changed.
81008         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81009         (build_trtable, check_node_accept): Likewise.
81010         * lib/regex_internal.h: Include stdbool.h.
81011
81012         Fix bugs uncovered when converting to bool.
81013         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81014         failure instead of charging ahead blindly.
81015         * lib/regex_internal.c (register_state): Likewise.
81016         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81017         for freeing internal storage.
81018         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81019         bitset pieces used as boolean, to avoid undefined behavior
81020         on hosts that do int overflow checking.
81021
81022 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81023
81024         * config/srclist.txt: Add glibc bugs 1285-1287.
81025
81026 2005-09-01  Jim Meyering  <jim@meyering.net>
81027
81028         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81029         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81030         Require gl_STAT_MACROS, too.
81031
81032 2005-09-01  Bruno Haible  <bruno@clisp.org>
81033
81034         * gnulib-tool (import): In the first-use case, provide defaults.
81035
81036 2005-09-01  Bruno Haible  <bruno@clisp.org>
81037
81038         * gnulib-tool (func_import): Remove the .tmp files.
81039
81040 2005-09-01  Bruno Haible  <bruno@clisp.org>
81041
81042         * gnulib-tool (func_import): Fix handling of symbolic links.
81043
81044 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81045
81046         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81047         old glibc regex code mishandles strings longer than 2**31 bytes.
81048         This patch fixes this when the regex code is used in gnulib
81049         (i.e., outside glibc).
81050
81051         This patch should not affect the use of the regex code inside
81052         glibc.  No doubt this problem also needs to be handled for glibc
81053         as well, but the result will be an incompatible change to the
81054         glibc ABI, and the old ABI will have to be supported too.  That
81055         can be the the subject for another patch.
81056
81057         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81058         governing whether the rest of this patch is active.  By default,
81059         the macro is disabled and the patch has no effect.
81060         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81061         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81062         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81063         (re_match_2, re_set_registers): Use the new types.
81064         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81065         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81066         New macros.
81067         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81068         (re_string_context_at, bin_tree_t, re_dfastate_t):
81069         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81070         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81071         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81072         (re_string_char_size_at, re_string_wchar_at):
81073         (re_string_elem_size_at):
81074         Use the new types and macros to port to 64-bit hosts.
81075         Use unsigned types for internal values, so that the code
81076         mostly works even for arrays larger than SSIZE_MAX.
81077         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81078         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81079         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81080         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81081         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81082         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81083         (calc_inveclosure, parse_dup_op, build_range_exp):
81084         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81085         (fetch_number, create_token_tree, mark_opt_subexp):
81086         Likewise.
81087         * lib/regex_internal.c (re_string_construct_common,
81088         create_ci_newstate):
81089         (create_cd_newstate, re_string_allocate, re_string_construct):
81090         (re_string_realloc_buffers, build_wcs_upper_buffer):
81091         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81092         (re_string_reconstruct, re_string_peek_byte_case):
81093         (re_string_fetch_byte_case, re_string_context_at):
81094         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81095         (re_node_set_init_copy, re_node_set_add_intersect):
81096         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81097         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81098         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81099         (re_acquire_state, re_acquire_state_context, register_state):
81100         Likewise.
81101         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81102         search_cur_bkref_entry):
81103         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81104         (re_search_internal, re_search_2_stub, re_search_stub)
81105         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81106         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81107         (update_cur_sifted_state, check_dst_limits):
81108         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81109         (check_subexp_limits, sift_states_bkref, merge_state_array):
81110         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81111         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81112         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81113         (expand_bkref_cache, check_node_accept_bytes):
81114         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81115         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81116         (acquire_init_state_context, check_halt_node_context):
81117         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81118         (sift_states_backward, clean_state_log_if_needed):
81119         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81120         (find_recover_state, transit_state_sb, transit_state_mb):
81121         (transit_state_bkref, build_trtable, match_ctx_clean):
81122         Likewise.
81123         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81124         to work around an assumption that REG_MISSING is negative.
81125
81126         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81127         (seek_collating_symbol_entry) [defined _LIBC]:
81128         (lookup_collation_sequence_value) [defined _LIBC]:
81129         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81130         Use prototypes rather than old-style function definitions.
81131         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81132         (transit_state_sb) [0]:
81133         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81134
81135         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81136         rm_eo.
81137
81138         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81139         (optimize_subexps, lower_subexp):
81140         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81141         since the signed shift might overflow.  Use 1u<<31 instead.
81142         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81143         Likewise.
81144         * lib/regexec.c (check_dst_limits_calc_pos_1,
81145         check_subexp_matching_top): Likewise.
81146
81147         * lib/regcomp.c (optimize_subexps, lower_subexp):
81148         Use CHAR_BIT rather than 8, for clarity.
81149         * lib/regexec.c (check_dst_limits_calc_pos_1):
81150         (check_subexp_matching_top): Likewise.
81151         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81152         have to worry about portability issues when shifting it left.
81153         Remove no-longer-needed test for table_size > 0.
81154         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81155         in a word, as the resulting behavior is undefined.
81156         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81157         in one case, a <= should have been an <, and in another case the
81158         whole test was missing.
81159         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81160         the standard name CHAR_BIT.
81161         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81162         this is not true on one's complement and signed-magnitude hosts.
81163
81164         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81165         next_last_offset.
81166         (struct re_dfa_t): Remove unused member states_alloc.
81167         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81168
81169 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81170
81171         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81172         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81173         and large-file glibc and in 32-bit large-file Solaris.
81174
81175 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81176
81177         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81178         lengths fit in regoff_t; this isn't true if regoff_t is the same
81179         width as size_t.
81180         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81181         (= START + RANGE) instead of RANGE.  This avoids overflow
81182         problems when regoff_t is the same width as size_t.
81183         All callers changed.
81184         (re_search_2_stub): Check for overflow when adding the
81185         sizes of the two strings.
81186         (re_search_stub): Check for overflow when adding START
81187         to RANGE; if it occurs, substitute the extreme value.
81188
81189 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81190
81191         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81192
81193 2005-08-31  Jim Meyering  <jim@meyering.net>
81194
81195         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81196         a pointer-to-const.
81197         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81198         (register_state): Likewise.
81199         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81200         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81201         (group_nodes_into_DFAstates): Likewise.
81202
81203 2005-08-31  Jim Meyering  <jim@meyering.net>
81204
81205         * check-module: Add a FIXME comment.
81206
81207 2005-08-31  Eric Blake  <ebb9@byu.net>
81208
81209         * modules/unistd-safer (Files): Add unistd--.h.
81210         * modules/stdio-safer (Files): Add stdio--.h.
81211
81212 2005-08-31  Derek Price  <derek@ximbiot.com>
81213
81214         * lib/getdelim.c (getdelim): Return EOF on EOF.
81215         Reported by Larry Jones <lawrence.jones@ugs.com>.
81216
81217 2005-08-31  Bruno Haible  <bruno@clisp.org>
81218
81219         Avoid unnecessary diffs in the generated lib/Makefile.am.
81220         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81221         the generated files.
81222         (func_import): Don't set cmd.
81223
81224 2005-08-31  Bruno Haible  <bruno@clisp.org>
81225
81226         * lib/strstr.c: Include <stddef.h>, for NULL.
81227         * lib/strcasestr.c: Likewise.
81228         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81229
81230 2005-08-31  Bruno Haible  <bruno@clisp.org>
81231
81232         * gnulib-tool: New option --macro-prefix.
81233         (func_import): Use macro_prefix.
81234         (import): Handle option --macro-prefix.
81235
81236 2005-08-31  Bruno Haible  <bruno@clisp.org>
81237
81238         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81239         Also use new variables cached_lgpl, cached_libtool.
81240
81241 2005-08-31  Bruno Haible  <bruno@clisp.org>
81242
81243         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81244         always instantiating them.
81245
81246 2005-08-31  Bruno Haible  <bruno@clisp.org>
81247
81248         * gnulib-tool (func_import): Read the previous cached settings
81249         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81250         earlier added by gnulib but are now dropped. Warn when a gnulib file
81251         overwrites a non-gnulib file.
81252
81253 2005-08-31  Bruno Haible  <bruno@clisp.org>
81254
81255         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81256         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81257         projects that don't keep autogenerated files in CVS. Put into
81258         actioncmd only the specified modules, not the transitive closure.
81259
81260 2005-08-31  Bruno Haible  <bruno@clisp.org>
81261
81262         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81263         Create directories that shall be filled.
81264         (import): Don't look for gl_* macros in configure.ac. Recurse across
81265         all directories containing a gnulib-cache.m4 files, if meaningful.
81266
81267 2005-08-31  Bruno Haible  <bruno@clisp.org>
81268
81269         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81270         (import): Set seen_libtool when we see gl_LIBTOOL.
81271
81272 2005-08-31  Bruno Haible  <bruno@clisp.org>
81273
81274         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81275         declaration macro definitions from generated gnulib.m4.
81276
81277 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81278
81279         * lib/iconvme.h: Add prototype for iconv_alloc.
81280
81281 2005-08-29  Simon Josefsson  <jas@extundo.com>
81282
81283         * lib/iconvme.c: Fix errno.
81284
81285 2005-08-29  Bruno Haible  <bruno@clisp.org>
81286
81287         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81288         that it works when the directory contains spaces.
81289
81290 2005-08-29  Bruno Haible  <bruno@clisp.org>
81291
81292         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81293
81294 2005-08-29  Bruno Haible  <bruno@clisp.org>
81295
81296         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81297         Emit more advice.
81298
81299 2005-08-29  Bruno Haible  <bruno@clisp.org>
81300         and Stepan Kasal  <kasal@ucw.cz>
81301
81302         * check-module: If more parameters are given, check each of them
81303         separately; add more exceptions, as noted by Jim Meyering.
81304         (check_module): New procedure.
81305         (%exempt_header): Now contains all exceptions.
81306
81307 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81308
81309         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81310
81311 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81312
81313         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81314
81315 2005-08-28  Bruno Haible  <bruno@clisp.org>
81316
81317         * m4/gnulib-tool.m4: New file.
81318
81319 2005-08-27  Jim Meyering  <jim@meyering.net>
81320
81321         * modules/unistd-safer (Files): Add pipe-safer.c.
81322         * modules/fcntl-safer (Files): Add creat-safer.c.
81323
81324 2005-08-27  Jim Meyering  <jim@meyering.net>
81325
81326         * m4/stdlib-safer.m4: New file.  From coreutils.
81327         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81328         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81329         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81330         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81331         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81332
81333 2005-08-27  Jim Meyering  <jim@meyering.net>
81334
81335         * lib/fopen-safer.c: Merge minor changes from coreutils.
81336         * lib/dup-safer.c: Likewise.
81337         * lib/fd-safer.c: Likewise.
81338
81339         Merge from coreutils.
81340         * lib/stdio--.h: New file.
81341         * lib/stdlib--.h: New file.
81342         * lib/mkstemp-safer.c: New file.
81343
81344         GNU tar needs these.
81345         * lib/pipe-safer.c: New file.
81346         * lib/creat-safer.c: New file.
81347         * lib/fcntl--.h (creat): Define to creat_safer.
81348         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81349         * lib/unistd--.h (pipe): Define to pipe_safer.
81350         * lib/unistd-safer.h: Declare pipe_safer.
81351
81352 2005-08-26  Simon Josefsson  <jas@extundo.com>
81353
81354         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81355         Haible <bruno@clisp.org>.
81356
81357 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81358
81359         * lib/regex_internal.h: Remove all references to
81360         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81361         or better.
81362         (bitset_not, bitset_merge, bitset_not_merge):
81363         (bitset_mask, re_string_allocate, re_string_construct):
81364         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81365         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81366         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81367         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81368         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81369         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81370         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81371         (re_acquire_state_context):
81372         Remove unnecessary forward decls.
81373         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81374         Put __attribute at function definition,
81375         now that the function decl has been removed.
81376         * lib/regex_internal.c (re_string_peek_byte_case):
81377         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81378         Likewise.
81379
81380 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81381
81382         * m4/regex.m4: Add AC_PREREQ(2.50).
81383         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81384
81385 2005-08-25  Simon Josefsson  <jas@extundo.com>
81386
81387         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81388         __fsetlocking.
81389
81390 2005-08-25  Simon Josefsson  <jas@extundo.com>
81391
81392         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81393         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81394         GLIBC specific code.
81395
81396 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81397
81398         Make regex safe for g++.  This fixes one real bug (an "err"
81399         that should have been "*err").  g++ problem reported by
81400         Sam Steingold.
81401         * lib/regex_internal.h (re_calloc): New macro, consistent with
81402         re_malloc etc.  All callers of calloc changed to use re_calloc.
81403         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81404         not int.  All callers changed.
81405         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81406         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81407         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81408         (find_recover_state): Change "err" to "*err"; this fixes what
81409         appears to be a real bug.
81410         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81411         versus int.
81412
81413 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81414
81415         * modules/regex (Depends-on): Add malloc, since the code
81416         assumes that !malloc(0) means failure.
81417
81418 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81419
81420         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81421
81422         alloca modernization/simplification for regex.
81423         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81424         needs to be at the start of the file, and can be moved into
81425         regex_internal.h and simplified.
81426         * lib/regex_internal.h: Include <alloca.h>.
81427         (__libc_use_alloca) [!defined _LIBC]: New macro.
81428         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81429         now works outside glibc.
81430
81431 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81432
81433         * config/srclist.txt: Add glibc bugs 1241, 1245.
81434
81435 2005-08-25  Jim Meyering  <jim@meyering.net>
81436
81437         * lib/open-safer.c: Include <config.h>.
81438         Otherwise, we'd lose LARGEFILE support in any file using
81439         e.g. "fcntl--.h"
81440
81441 2005-08-25  Bruno Haible  <bruno@clisp.org>
81442
81443         * m4/minmax.m4: Require autoconf 2.52.
81444         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81445         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81446         alternatives of translit over the alphabet.
81447         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81448
81449 2005-08-24  Simon Josefsson  <jas@extundo.com>
81450
81451         * tests/test-getpass.c: New file.
81452
81453 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81454
81455         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81456         for GNU regex features.
81457
81458 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81459
81460         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81461         * lib/regex.h (regerror): Likewise.
81462
81463         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81464         requires this.  (The code never needed it.)
81465
81466         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81467         All uses of recently-renamed identifiers changed to use the new,
81468         POSIX-compliant names.  The code will build and run just fine
81469         without these changes, but it's better to eat our own dog food
81470         and use the standard-conforming names.
81471
81472         * lib/regex.h: Fix a multitude of POSIX name space violations.
81473         These changes have an effect only for programs that define
81474         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81475         do not change anything for programs compiled in the normal way.
81476         Also, there is no effect on the ABI.
81477
81478         (_REGEX_SOURCE): New macro.
81479         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81480         defined and _GNU_SOURCE is not; this fixes a name space violation.
81481
81482         Rename the following macros to obey POSIX requirements.
81483         The old names are still visible as macros if _REGEX_SOURCE is defined.
81484         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81485         RE_BACKSLASH_ESCAPE_IN_LISTS.
81486         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81487         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81488         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81489         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81490         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81491         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81492         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81493         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81494         (REG_INTERVALS): renamed from RE_INTERVALS.
81495         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81496         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81497         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81498         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81499         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81500         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81501         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81502         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81503         RE_UNMATCHED_RIGHT_PAREN_ORD.
81504         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81505         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81506         (REG_DEBUG): renamed from RE_DEBUG.
81507         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81508         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81509         unusual, since we can't clash with the POSIX REG_ICASE.
81510         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81511         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81512         (REG_NO_SUB): renamed from RE_NO_SUB.
81513         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81514         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81515         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81516         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81517         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81518         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81519         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81520         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81521         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81522         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81523         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81524         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81525         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81526         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81527         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81528         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81529         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81530         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81531         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81532         (REG_FIXED): Renamed from REGS_FIXED.
81533         (REG_NREGS): Renamed from RE_NREGS.
81534
81535         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81536         of other REG_* macros, since POSIX says the user is allowed to
81537         #undef these macros selectively.
81538
81539         (reg_errcode_t): Update comment stating what other tables need
81540         to be consistent.
81541
81542         Rename the following enum values to obey POSIX requirements.
81543         The old names are still visible as macros.
81544         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81545         is not defined, since GNU is supposed to be a superset of POSIX as
81546         much as possible, and since we want reg_errcode_t to be a signed
81547         type for implementation consistency.
81548         (_REG_NOERROR): Renamed from REG_NOERROR.
81549         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81550         (_REG_BADPAT): Renamed from REG_BADPAT.
81551         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81552         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81553         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81554         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81555         (_REG_EBRACK): Renamed from REG_EBRACK.
81556         (_REG_EPAREN): Renamed from REG_EPAREN.
81557         (_REG_EBRACE): Renamed from REG_EBRACE.
81558         (_REG_BADBR): Renamed from REG_BADBR.
81559         (_REG_ERANGE): Renamed from REG_ERANGE.
81560         (_REG_ESPACE): Renamed from REG_ESPACE.
81561         (_REG_BADRPT): Renamed from REG_BADRPT.
81562         (_REG_EEND): Renamed from REG_EEND.
81563         (_REG_ESIZE): Renamed from REG_ESIZE.
81564         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81565         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81566         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81567         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81568         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81569
81570         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81571         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81572         changed.  But support the old name if the new one is not defined
81573         and if _REGEX_SOURCE.
81574
81575         Change the following member names in struct re_pattern_buffer.
81576         The old names are still supported if !_REGEX_SOURCE.
81577         The new names are always supported, regardless of _REGEX_SOURCE.
81578         (re_buffer): Renamed from buffer.
81579         (re_allocated): Renamed from allocated.
81580         (re_used): Renamed from used.
81581         (re_syntax): Renamed from syntax.
81582         (re_fastmap): Renamed from fastmap.
81583         (re_translate): Renamed from translate.
81584         (re_can_be_null): Renamed from can_be_null.
81585         (re_regs_allocated): Renamed from regs_allocated.
81586         (re_fastmap_accurate): Renamed from fastmap_accurate.
81587         (re_no_sub): Renamed from no_sub.
81588         (re_not_bol): Renamed from not_bol.
81589         (re_not_eol): Renamed from not_eol.
81590         (re_newline_anchor): Renamed from newline_anchor.
81591
81592         Change the following member names in struct re_registers.
81593         The old names are still supported if !_REGEX_SOURCE.
81594         The new names are always supported, regardless of _REGEX_SOURCE.
81595         (rm_num_regs): Renamed from num_regs.
81596         (rm_start): Renamed from start.
81597         (rm_end): Renamed from end.
81598
81599         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81600         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81601         Prepend __ to parameter names.
81602
81603         Undo yesterday's changes.
81604
81605 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81606
81607         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81608         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81609         lib/regex.c.
81610
81611 2005-08-24  Jim Meyering  <jim@meyering.net>
81612
81613         Sync from coreutils.
81614         * m4/fcntl-safer.m4: New file.
81615
81616         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81617         and object files for this module.
81618
81619 2005-08-24  Jim Meyering  <jim@meyering.net>
81620
81621         Sync from coreutils.
81622         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81623
81624 2005-08-24  Jim Meyering  <jim@meyering.net>
81625
81626         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81627         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81628
81629 2005-08-24  Jim Meyering  <jim@meyering.net>
81630
81631         * modules/fcntl-safer: New module.
81632         * modules/fts (Depends-on): Add fcntl-safer.
81633         * MODULES.html.sh (File descriptor based Input/Output):
81634         Add fcntl-safer.
81635
81636 2005-08-24  Bruno Haible  <bruno@clisp.org>
81637
81638         Support for unit test modules.
81639         * modules/README: Mention tests modules.
81640         * modules/TEMPLATE-TESTS: New file.
81641         * gnulib-tool: New options --extract-tests-module, --with-tests and
81642         --tests-base (unused for the moment).
81643         (testsbase, inctests): New variables.
81644         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81645         (func_verify_module): Exclude TEMPLATE-TESTS.
81646         (func_verify_nontests_module, func_verify_tests_module): New functions.
81647         (func_get_dependencies): Add implicit dependency for tests modules.
81648         (func_get_tests_module): New function.
81649         (func_modules_transitive_closure): When --with-tests was specified,
81650         include the unit tests as well, unless explicitly avoided.
81651         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81652         (func_emit_tests_Makefile_am): New function.
81653         (func_create_testdir): When --with-tests was specified, emit a
81654         tests/ directory.
81655         * MODULES.html.sh (Future developments): Update.
81656
81657 2005-08-24  Bruno Haible  <bruno@clisp.org>
81658
81659         * modules/tls-tests: New file.
81660         * tests/test-tls.c: New file, from GNU gettext.
81661
81662 2005-08-24  Bruno Haible  <bruno@clisp.org>
81663
81664         * modules/lock-tests: New file.
81665         * tests/test-lock.c: New file, from GNU gettext.
81666
81667 2005-08-24  Bruno Haible  <bruno@clisp.org>
81668
81669         * lib/lock.h: Add multiple inclusion guard.
81670         * lib/tls.h: Add multiple inclusion guard.
81671
81672 2005-08-24  Bruno Haible  <bruno@clisp.org>
81673
81674         * gnulib-tool: Add support for the --aux-dir option to
81675         --create-testdir, --create-megatestdir, --test, --megatest.
81676         (func_create_testdir, func_create_megatestdir): Optionally emit a
81677         AC_CONFIG_AUX_DIR directive.
81678         (create-testdir, create-megatestdir, test, megatest): Provide a
81679         default value for $auxdir.
81680
81681 2005-08-24  Bruno Haible  <bruno@clisp.org>
81682
81683         * gnulib-tool (import): Use compound statement instead of subshell
81684         where possible.
81685
81686 2005-08-24  Bruno Haible  <bruno@clisp.org>
81687
81688         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81689
81690 2005-08-24  Bruno Haible  <bruno@clisp.org>
81691
81692         * gnulib-tool (func_version): Update.
81693
81694 2005-08-24  Bruno Haible  <bruno@clisp.org>
81695
81696         * gnulib-tool (func_import, func_create_testdir,
81697         func_create_megatestdir): Quote all autoconf macro arguments.
81698
81699 2005-08-24  Bruno Haible  <bruno@clisp.org>
81700
81701         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81702         option --force, because --force causes the aclocal.m4 of each
81703         subdirectory to be newer than the corresponding config.h.in.
81704
81705 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81706
81707         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81708         All contents moved to gl_REGEX.
81709         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81710         assume that it does.
81711
81712 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81713
81714         * lib/regex.h (REG_NOSYS)
81715         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81716         Define, since POSIX requires it as of 2001.
81717         (_REG_ENOSYS)
81718         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81719         New private symbol, used to keep the enum signed in all cases.
81720         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81721         Youngman in
81722         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81723
81724         * lib/regex_internal.c (re_string_skip_chars, register_state):
81725         (calc_state_hash):
81726         Remove forward decls; no longer needed now that we use prototypes.
81727         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81728         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81729         (clean_state_log_if_needed): Likewise.
81730
81731 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81732
81733         * config/srclist.txt: Add glibc bugs 1231-1233.
81734
81735 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81736
81737         Fix problems reported by Sam Steingold in
81738         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81739         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81740         assumed that reg_errcode_t is a signed type, which is not
81741         necessarily true if _XOPEN_SOURCE is not defined.
81742         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81743         since some compilers warn about it otherwise.
81744
81745 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81746
81747         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81748         (init_word_char, create_initial_state, duplicate_node_closure):
81749         (fetch_token, peek_token_bracket, build_range_exp):
81750         (build_collating_symbol): Remove forward decls; no longer needed
81751         now that we use prototypes.
81752
81753         * lib/regcomp.c:
81754         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81755         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81756         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81757         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81758         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81759         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81760         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81761         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81762         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81763         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81764         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81765         (build_charclass, build_charclass_op, fetch_number, create_tree):
81766         (create_token_tree, mark_opt_subexp, duplicate_tree):
81767         Use prototypes rather than old-style definitions.
81768
81769         * lib/regex_internal.c:
81770         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81771         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81772         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81773         (re_string_reconstruct, re_string_peek_byte_case):
81774         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81775         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81776         (re_node_set_init_copy, re_node_set_add_intersect):
81777         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81778         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81779         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81780         (re_acquire_state, re_acquire_state_context, register_state):
81781         (create_ci_newstate, create_cd_newstate, free_state):
81782         Likewise.
81783         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81784         re_search_2):
81785         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81786         (re_search_internal, prune_impossible_nodes):
81787         (acquire_init_state_context, check_matching, static):
81788         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81789         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81790         (update_regs, sift_states_backward, build_sifted_states):
81791         (clean_state_log_if_needed, merge_state_array):
81792         (update_cur_sifted_state, add_epsilon_src_nodes):
81793         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81794         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81795         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81796         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81797         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81798         (check_arrival, check_arrival_add_next_nodes):
81799         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81800         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81801         (check_node_accept_bytes, check_node_accept, extend_buffers):
81802         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81803         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81804         (sift_ctx_init):
81805         Likewise.
81806
81807         * lib/regex_internal.h:
81808         (re_string_allocate, re_string_construct, re_string_reconstruct):
81809         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81810         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81811         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81812         (re_string_context_at, re_string_peek_byte_case):
81813         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81814         is defined, since we now use prototypes always.
81815
81816         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81817         C89 or better.  All uses removed.
81818
81819 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81820
81821         * config/srclist.txt: Add glibc bugs 1220-1227.
81822
81823 2005-08-20  Jim Meyering  <jim@meyering.net>
81824
81825         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81826         of unused local, dfa.
81827
81828 2005-08-20  Bruno Haible  <bruno@clisp.org>
81829
81830         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81831
81832 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81833
81834         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81835         (re_node_set_insert_last, re_dfa_add_node):
81836         Rename local variables to avoid GCC shadowing warnings.
81837
81838 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81839
81840         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81841         [defined lint]: Suppress bogus uninitialized-variable warnings.
81842
81843         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81844         and let the caller return REG_ESPACE if out of space.  This
81845         removes an uninitialied-variable warning with GCC 4.0.1, and also
81846         avoids taking the address of a local variable.  All callers
81847         changed.
81848
81849 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81850
81851         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81852         $LIBCSRC/posix/regexec.c.
81853         Add glibc bug 1217 for regcomp.c.
81854
81855 2005-08-19  Jim Meyering  <jim@meyering.net>
81856
81857         * lib/regexec.c (proceed_next_node): Redo local variables to
81858         avoid GCC shadowing warnings.
81859
81860 2005-08-18  Bruno Haible  <bruno@clisp.org>
81861
81862         * lib/strstr.c (strstr): Fix return value in multibyte case.
81863         * lib/strcasestr.c (strcasestr): Likewise.
81864
81865 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81866
81867         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81868
81869 2005-08-17  Jim Meyering  <jim@meyering.net>
81870
81871         Make the %s format (seconds since the epoch) work for a negative
81872         number and when used with a zero-padded field width, e.g. %015s.
81873
81874         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81875         label so that it precedes the code to set `digits'.  Otherwise,
81876         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81877         print `00-22'.  Now, it prints `-0022', as it should.
81878
81879 2005-08-17  Bruno Haible  <bruno@clisp.org>
81880
81881         * modules/strstr (Files): Add m4/mbrtowc.m4.
81882         (Depends-on): Add mbuiter.
81883
81884 2005-08-17  Bruno Haible  <bruno@clisp.org>
81885
81886         * modules/strcasestr: New file.
81887         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81888         strcasestr.
81889
81890 2005-08-17  Bruno Haible  <bruno@clisp.org>
81891
81892         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81893
81894 2005-08-17  Bruno Haible  <bruno@clisp.org>
81895
81896         * modules/mbuiter: New file.
81897         * MODULES.html.sh (Extended multibyte and wide character utilities):
81898         Add mbuiter.
81899
81900 2005-08-17  Bruno Haible  <bruno@clisp.org>
81901
81902         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81903         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81904
81905 2005-08-17  Bruno Haible  <bruno@clisp.org>
81906
81907         * m4/strcasestr.m4: New file.
81908
81909 2005-08-17  Bruno Haible  <bruno@clisp.org>
81910
81911         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81912         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81913
81914 2005-08-17  Bruno Haible  <bruno@clisp.org>
81915
81916         * lib/strcasestr.h: New file.
81917         * lib/strcasestr.c: New file.
81918
81919 2005-08-17  Bruno Haible  <bruno@clisp.org>
81920
81921         * lib/strcasecmp.c: Use mbuiter.h.
81922
81923 2005-08-17  Bruno Haible  <bruno@clisp.org>
81924
81925         * lib/mbuiter.h: New file.
81926
81927 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81928
81929         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81930         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81931         and gl_GETOPT are both invoked via different paths (as happens
81932         with GNU tar CVS because it uses both argp and getopt), the former
81933         wins.
81934
81935 2005-08-16  Bruno Haible  <bruno@clisp.org>
81936
81937         * modules/tls: New file.
81938         * MODULES.html.sh (Multithreading): Add tls.
81939
81940 2005-08-16  Bruno Haible  <bruno@clisp.org>
81941
81942         * modules/strnlen1: New file.
81943         * MODULES.html.sh (String handling): Add strnlen1.
81944
81945 2005-08-16  Bruno Haible  <bruno@clisp.org>
81946
81947         * modules/strcase (Files): Add m4/mbrtowc.m4.
81948         (Depends-on): Add strnlen1, mbchar.
81949
81950 2005-08-16  Bruno Haible  <bruno@clisp.org>
81951
81952         * modules/mbiter: New file.
81953         * MODULES.html.sh (Extended multibyte and wide character utilities):
81954         Add mbiter.
81955
81956 2005-08-16  Bruno Haible  <bruno@clisp.org>
81957
81958         * modules/mbfile: New file.
81959         * MODULES.html.sh (Extended multibyte and wide character utilities):
81960         Add mbfile.
81961
81962 2005-08-16  Bruno Haible  <bruno@clisp.org>
81963
81964         * modules/mbchar: New file.
81965         * MODULES.html.sh (Extended multibyte and wide character utilities):
81966         New section.
81967
81968 2005-08-16  Bruno Haible  <bruno@clisp.org>
81969
81970         * m4/tls.m4: New file, from GNU gettext.
81971
81972 2005-08-16  Bruno Haible  <bruno@clisp.org>
81973
81974         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81975         always.
81976         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81977
81978 2005-08-16  Bruno Haible  <bruno@clisp.org>
81979
81980         * m4/mbiter.m4: New file.
81981
81982 2005-08-16  Bruno Haible  <bruno@clisp.org>
81983
81984         * m4/mbfile.m4: New file.
81985
81986 2005-08-16  Bruno Haible  <bruno@clisp.org>
81987
81988         * m4/mbchar.m4: New file.
81989
81990 2005-08-16  Bruno Haible  <bruno@clisp.org>
81991
81992         * lib/tls.h: New file, from GNU gettext.
81993         * lib/tls.c: New file, from GNU gettext.
81994
81995 2005-08-16  Bruno Haible  <bruno@clisp.org>
81996
81997         * lib/strnlen1.h: New file.
81998         * lib/strnlen1.c: New file.
81999
82000 2005-08-16  Bruno Haible  <bruno@clisp.org>
82001
82002         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82003         (mbi_init): Update.
82004         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82005         NUL byte, not after it.
82006
82007 2005-08-16  Bruno Haible  <bruno@clisp.org>
82008
82009         * lib/strcase.h (strcasecmp): Add note in comments.
82010         * lib/strncasecmp.c: Use code from strcasecmp.c.
82011         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82012         (strcasecmp): Work correctly in multibyte locales.
82013
82014 2005-08-16  Bruno Haible  <bruno@clisp.org>
82015
82016         * lib/mbiter.h: New file.
82017
82018 2005-08-16  Bruno Haible  <bruno@clisp.org>
82019
82020         * lib/mbfile.h: New file.
82021
82022 2005-08-16  Bruno Haible  <bruno@clisp.org>
82023
82024         * lib/mbchar.h: New file.
82025         * lib/mbchar.c: New file.
82026
82027 2005-08-16  Bruno Haible  <bruno@clisp.org>
82028
82029         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82030         the valid ones. Makes the comparison operations transitive:
82031         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82032         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82033
82034 2005-08-15  Simon Josefsson  <jas@extundo.com>
82035
82036         * modules/ssize_t (License): Change to 'unlimited'.
82037
82038         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82039
82040 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82041
82042         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82043         Add comments for each pending glibc patch.
82044
82045 2005-08-15  Bruno Haible  <bruno@clisp.org>
82046
82047         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82048         __cplusplus is defined.
82049
82050 2005-08-14  Jim Meyering  <jim@meyering.net>
82051
82052         Sync from coreutils.
82053
82054         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82055         Use the hash-table-based cycle-detection code not just when
82056         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82057         Reported by James Youngman in
82058         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82059         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82060         FTS_TIGHT_CYCLE_CHECK.
82061         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82062         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82063         once again.
82064         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82065         * lib/fts.c (fd_safer): Remove decl.
82066         Include fcntl--.h rather than unistd-safer.h
82067         (fts_safe_changedir): Don't call fd_safer; no longer needed
82068         now that we include fcntl--.h.
82069
82070 2005-08-12  Simon Josefsson  <jas@extundo.com>
82071
82072         * modules/getndelim2: Use ssize_t module.
82073         * modules/getnline: Likewise.
82074         * modules/safe-read: Likewise.
82075         * modules/xreadlink: Likewise.
82076
82077         * modules/ssize_t: New file.
82078
82079 2005-08-12  Simon Josefsson  <jas@extundo.com>
82080
82081         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82082
82083 2005-08-12  Simon Josefsson  <jas@extundo.com>
82084
82085         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82086         ssize_t.
82087
82088 2005-08-12  Simon Josefsson  <jas@extundo.com>
82089
82090         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82091         readline, getdelim and check_version.
82092         (Support for systems lacking ISO C 99: Sizes of integer types):
82093         Add size_max.
82094
82095 2005-08-12  Bruno Haible  <bruno@clisp.org>
82096
82097         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82098
82099 2005-08-11  Simon Josefsson  <jas@extundo.com>
82100
82101         * modules/readline: New file.
82102
82103         * modules/strnlen (Files): Add strnlen.h.
82104
82105 2005-08-11  Simon Josefsson  <jas@extundo.com>
82106
82107         * m4/readline.m4: New file.
82108
82109 2005-08-11  Simon Josefsson  <jas@extundo.com>
82110
82111         * lib/readline.h, readline.c: New file.
82112
82113 2005-08-11  Simon Josefsson  <jas@extundo.com>
82114
82115         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82116         gl_AVOID.
82117
82118 2005-08-11  Bruno Haible  <bruno@clisp.org>
82119
82120         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82121
82122 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82123
82124         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82125
82126 2005-08-10  Simon Josefsson  <jas@extundo.com>
82127
82128         * tests/test-iconvme.c: New file.
82129
82130 2005-08-10  Simon Josefsson  <jas@extundo.com>
82131
82132         * m4/strnlen.m4: New file.
82133
82134         * m4/strndup.m4: Don't check for strnlen declaration, done in
82135         strnlen.m4.
82136
82137 2005-08-10  Simon Josefsson  <jas@extundo.com>
82138
82139         * lib/strndup.c: Use strnlen.h.
82140
82141         * lib/strnlen.h: New file.
82142
82143 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82144
82145         * README: Typos.
82146
82147 2005-08-02  Simon Josefsson  <jas@extundo.com>
82148
82149         * modules/readline: New file.
82150
82151 2005-08-02  Simon Josefsson  <jas@extundo.com>
82152
82153         * modules/getdelim: New file.
82154
82155         * modules/getline: Rewrite, don't use getndelim2.
82156
82157 2005-08-02  Simon Josefsson  <jas@extundo.com>
82158
82159         * m4/getline.m4: Separate out getdelim stuff into separate module.
82160
82161         * m4/getdelim.m4: New file.
82162
82163 2005-08-02  Simon Josefsson  <jas@extundo.com>
82164
82165         * lib/getline.h, getline.c: Rewrite.
82166
82167         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82168
82169 2005-07-31  Bruno Haible  <bruno@clisp.org>
82170
82171         * lib/lock.h (gl_lock_initializer): New macro.
82172         (gl_lock_define_initialized): Use it.
82173         (gl_rwlock_initializer): New macro.
82174         (gl_rwlock_define_initialized): Use it.
82175         (gl_recursive_lock_initializer): New macro.
82176         (gl_recursive_lock_define_initialized): Use it.
82177
82178 2005-07-30  Karl Berry  <karl@gnu.org>
82179
82180         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82181         Report from Ben Pfaff, regarding getopt.
82182
82183 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82184
82185         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82186         normal way.
82187         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82188         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82189         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82190         (gl_GETOPT): Use the new macros.  Most of the implementation
82191         is moved to the new macros.  This is for programs like Emacs
82192         that don't want all the functionality of gl_GETOPT.
82193
82194 2005-07-26  Bruno Haible  <bruno@clisp.org>
82195
82196         * m4/lock.m4: Update from GNU gettext.
82197
82198 2005-07-26  Bruno Haible  <bruno@clisp.org>
82199
82200         * lib/lock.h: Update from GNU gettext.
82201         * lib/lock.c: Update from GNU gettext.
82202
82203 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82204
82205         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82206         obsolescent AC_TRY_RUN.  Include the default includes files, for
82207         'exit'.
82208
82209 2005-07-24  Bruno Haible  <bruno@clisp.org>
82210
82211         * modules/visibility: New file.
82212         * MODULES.html.sh (Misc): Add visibility.
82213
82214 2005-07-24  Bruno Haible  <bruno@clisp.org>
82215
82216         * m4/visibility.m4: New file.
82217
82218 2005-07-24  Bruno Haible  <bruno@clisp.org>
82219
82220         * doc/visibility.texi: New file.
82221
82222 2005-07-22  Bruno Haible  <bruno@clisp.org>
82223
82224         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82225         $(ALLOCA_H), redundant through BUILT_SOURCES.
82226         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82227         redundant through BUILT_SOURCES.
82228         * modules/byteswap (Makefile.am): Remove explicit dependency on
82229         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82230         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82231         $(FNMATCH_H), redundant through BUILT_SOURCES.
82232         * modules/getopt (Makefile.am): Remove explicit dependency on
82233         $(GETOPT_H), redundant through BUILT_SOURCES.
82234         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82235         redundant through BUILT_SOURCES.
82236         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82237         redundant through BUILT_SOURCES.
82238         * modules/stdbool (Makefile.am): Remove explicit dependency on
82239         $(STDBOOL_H), redundant through BUILT_SOURCES.
82240         * modules/stdint (Makefile.am): Remove explicit dependency on
82241         $(STDINT_H), redundant through BUILT_SOURCES.
82242         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82243         Remove explicit dependency on $(SYSEXITS_H).
82244         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82245
82246 2005-07-18  Simon Josefsson  <jas@extundo.com>
82247
82248         * lib/check-version.c (check_version): Accept identical versions too.
82249
82250 2005-07-18  Bruno Haible  <bruno@clisp.org>
82251
82252         * modules/lock: New file.
82253         * MODULES.html.sh (Multithreading): New section.
82254
82255 2005-07-18  Bruno Haible  <bruno@clisp.org>
82256
82257         * m4/lock.m4: New file, from GNU gettext.
82258
82259 2005-07-18  Bruno Haible  <bruno@clisp.org>
82260
82261         * lib/lock.h: New file, from GNU gettext.
82262         * lib/lock.c: New file, from GNU gettext.
82263
82264 2005-07-18  Bruno Haible  <bruno@clisp.org>
82265
82266         * lib/lock.h (gl_once_t): New type.
82267         (gl_once_define, gl_once): New macros.
82268         * lib/lock.c (fresh_once): New variable.
82269         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82270         functions.
82271
82272 2005-07-16  Simon Josefsson  <jas@extundo.com>
82273
82274         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82275         workaround, suggested by Bruno.
82276
82277 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82278
82279         * modules/xalloc (Depends-on): Add xalloc-die.
82280         * modules/xvasprintf (Depends-on): Add xalloc-die.
82281
82282 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82283
82284         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82285         with a minor change.
82286
82287 2005-07-15  Bruno Haible  <bruno@clisp.org>
82288
82289         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82290         When using lib/poll.c, define poll as rpl_poll.
82291
82292 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82293
82294         * modules/argp (Depends-on): Remove unlocked-io.
82295
82296 2005-07-14  Derek Price  <derek@ximbiot.com>
82297
82298         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82299         for glob symlink bug.
82300
82301 2005-07-14  Bruno Haible  <bruno@clisp.org>
82302
82303         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82304         Instead, test for *_unlocked function declarations directly.
82305
82306 2005-07-11  Simon Josefsson  <jas@extundo.com>
82307
82308         * modules/size_max: New file.
82309
82310         * modules/xsize: Depend on size_max module for size_max.m4.
82311
82312 2005-07-11  Simon Josefsson  <jas@extundo.com>
82313
82314         * lib/size_max.h: New file.
82315
82316 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82317
82318         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82319         copyright symbol and the year.
82320         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82321         (version_etc_va): Use parameterized copyright notice.
82322         Reword to conform to the current GNU coding standards.
82323
82324 2005-07-11  Karl Berry  <karl@gnu.org>
82325
82326         * doc/gnulib.texi (Quoting): new node.
82327         (Initial import): more info, from Patrice.
82328
82329 2005-07-11  Bruno Haible  <bruno@clisp.org>
82330
82331         * gnulib-tool (func_usage): Document option --avoid.
82332         (Command line options): Handle --avoid.
82333         (func_acceptable): New function.
82334         (func_modules_transitive_closure): Use it.
82335
82336 2005-07-11  Bruno Haible  <bruno@clisp.org>
82337
82338         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82339         Reported by Jim Meyering.
82340
82341 2005-07-10  Bruno Haible  <bruno@clisp.org>
82342
82343         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82344         Needed when size_t is smaller than 'unsigned int'.
82345         Reported by Paul Eggert.
82346
82347 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82348
82349         * modules/argp (Depends-on): Add unlocked-io
82350
82351 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82352
82353         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82354         block of defines.
82355
82356 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82357
82358         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82359         fix now.
82360
82361 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82362         and Paul Eggert  <eggert@cs.ucla.edu>
82363
82364         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82365         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82366
82367 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82368
82369         * modules/regex (Files): Add lib/regex_internal.c,
82370         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82371         (Depends-on): Add extensions.
82372         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82373
82374 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82375
82376         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82377         pathconf.
82378         * m4/same.m4 (gl_SAME): Likewise.
82379         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82380
82381         * m4/regex.m4: Adjust to new libc regex implementation.
82382         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82383         all the .c and .h parts of (the new) regex.
82384         Quote the m4 stuff better.
82385         Check for RE_ICASE bug of old gnulib.
82386         Check for REG_STARTEND of recent libc.
82387         Rename local variables from jm_* to gl_*.
82388         Quote operand of "test -f".
82389         Say "recent enough" version of libc, not "version 2".
82390         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82391         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82392         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82393         Remove check for btowc, isascii.
82394         Require AM_LANGINFO_CODESET.
82395
82396 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82397
82398         * lib/regex.c, regex.h: Sync from libc.
82399         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82400         * lib/regexec.c:
82401         New files, synced from libc, except that regex_internal.h
82402         currently has a small porting fix.
82403
82404 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82405
82406         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82407         regex_internal.c, regexec.c.
82408         Add regex_internal.h too, but as a comment, since the libc version
82409         is currently broken in gnulib mode.
82410
82411 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82412
82413         Support programs like Emacs that use gnulib but not gettext.
82414         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82415         * modules/gettext-h: New file.
82416         * modules/gettext (Files): Remove lib/gettext.h.
82417         (Depends-on): Add gettext-h.
82418         (Makefile.am): Remove lib_SOURCES.
82419         * modules/argmatch, modules/c-stack, modules/closeout:
82420         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82421         * modules/execute, modules/file-type, modules/getaddrinfo:
82422         * modules/getopt, modules/human, modules/javacomp:
82423         * modules/javaexec, modules/mkdir-p, modules/obstack:
82424         * modules/openat, modules/pagealign_alloc, modules/pipe:
82425         * modules/quotearg, modules/regex, modules/rpmatch:
82426         * modules/unicodeio, modules/userspec, modules/version-etc:
82427         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82428         * modules/xsetenv:
82429         Depend on gettext-h, not gettext.
82430
82431 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82432
82433         * gnulib-tool (func_import): Add support for 'public domain' license.
82434         * modules/alloca, modules/atexit, modules/memmove:
82435         Now public domain, not GPL.
82436         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82437         * modules/realloc, modules/strerror, modules/strtod:
82438         Now LGPL, not GPL.
82439
82440 2005-07-05  Bruno Haible  <bruno@clisp.org>
82441
82442         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82443         autoconf CVS. Needed for mingw.
82444
82445 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82446
82447         Remove the dependency of the strftime module on the tzset module.
82448         * modules/strftime (Depends-on): Remove dependency on tzset.
82449
82450 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82451
82452         Remove the dependency of the strftime module on the tzset module.
82453         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82454         gl_FUNC_TZSET_CLOBBER.
82455
82456 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82457
82458         Remove the dependency of the strftime module on the tzset module.
82459         * lib/strftime.c (my_strftime)
82460         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82461         Copy the input structure, to work around some of the bug with
82462         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82463         Solaris releases, you should also use the tzset module, but we won't
82464         require it as a dependency any more since we don't want LGPLed code
82465         to depend on GPLed code.
82466
82467 2005-07-02  Jim Meyering  <jim@meyering.net>
82468
82469         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82470         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82471         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82472         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82473
82474 2005-07-02  Jim Meyering  <jim@meyering.net>
82475
82476         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82477
82478 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82479
82480         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82481         declares only 'struct timespec;' (!).
82482
82483 2005-07-01  Jim Meyering  <jim@meyering.net>
82484
82485         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82486         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82487         * lib/save-cwd.c, tempname.c:
82488         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82489         and don't include <sys/file.h>).
82490
82491 2005-06-29  Jim Meyering  <jim@meyering.net>
82492
82493         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82494         type name.  Use the variable name instead.
82495         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82496         Likewise.
82497
82498 2005-06-28  Simon Josefsson  <jas@extundo.com>
82499
82500         * modules/check-version (Files): Add check-version.m4.
82501
82502 2005-06-28  Simon Josefsson  <jas@extundo.com>
82503
82504         * m4/check-version.m4: New file, suggested by Jim Meyering
82505         <jim@meyering.net>.
82506
82507 2005-06-28  Simon Josefsson  <jas@extundo.com>
82508
82509         * lib/check-version.h, lib/check-version.c: New files.
82510
82511 2005-06-28  Simon Josefsson  <jas@extundo.com>
82512
82513         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82514         collision with global variable.  Better indentation.  Don't
82515         increment buffer pointer beyond buffer end.  Based on comments
82516         from Paul Eggert <eggert@cs.ucla.edu>.
82517
82518         * lib/base64.h: Indent.
82519
82520 2005-06-28  Simon Josefsson  <jas@extundo.com>
82521
82522         * doc/gnulib.texi (Library version handling): New section.
82523
82524 2005-06-28  Jim Meyering  <jim@meyering.net>
82525
82526         * check-module (find_included_lib_files): Hard-code another
82527         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82528         but modules/fts-lgpl (correctly) does not list those files.
82529
82530         * modules/canonicalize (Files): Add lib/pathmax.h.
82531
82532 2005-06-25  Simon Josefsson  <jas@extundo.com>
82533
82534         * modules/check-version: New file.
82535
82536 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82537
82538         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82539         initializer of struct addrinfo, as an indication that we don't
82540         care how many members the structure has.
82541
82542 2005-06-24  Derek Price  <derek@ximbiot.com>
82543         and Bruno Haible  <bruno@clisp.org>
82544
82545         Remove stat module & update lstat.
82546         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82547         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82548         * m4/stat.m4: Remove this file.
82549
82550 2005-06-24  Derek Price  <derek@ximbiot.com>
82551         and Bruno Haible  <bruno@clisp.org>
82552
82553         Remove stat module & update lstat.
82554         * lib/stat.c: Remove this file...
82555         (slash_aware_lstat): ...moving this content and its support...
82556         * lib/lstat.c (rpl_lstat): ...into here.
82557         * lib/lstat.h: New file.
82558
82559 2005-06-24  Derek Price  <derek@ximbiot.com>
82560         and Bruno Haible  <bruno@clisp.org>
82561
82562         Remove stat module & update lstat.
82563         * config/srclist.txt (libc sources): Remove stat.
82564
82565 2005-06-24  Derek Price  <derek@ximbiot.com>
82566         and Bruno Haible  <bruno@clisp.org>
82567
82568         Remove stat module & update lstat.
82569         * MODULES.html.sh (stat): Remove.
82570         * MODULES.html: Regenerated.
82571         * modules/lstat (Description): Correct function name.
82572         (Files): Add "lstat.h".
82573         (Depends-on): Remove stat, add xalloc, stat-macros.
82574         * modules/stat: Remove this file.
82575         (Include): Add "lstat.h", remove <sys/stat.h>.
82576
82577 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82578
82579         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82580         (ranged_convert): Don't save conversion in a temporary struct.
82581         This causes a warning with GCC 4.0.0, and anyway in the typical
82582         case it's not worth the extra 100 bytes or so of code.
82583         (ranged_convert, __mktime_internal): When calling a function via a
82584         pointer P, use P () rather than (*P) (), as we now assume C89 or
82585         better.
82586
82587 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82588
82589         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82590         "who -r" failed to give output.  Problem reported by Tim Waugh.
82591
82592         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82593         (xcalloc): Use it to avoid needless tests.
82594         Problem reported by Jim Meyering.
82595
82596 2005-06-20  Derek Price  <derek@ximbiot.com>
82597
82598         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82599         unnecessary for Autoconfs > 2.59c.
82600
82601 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82602
82603         * lib/argp.h (__option_is_short): Check upper limit of
82604         __key. Isprint() requires its argument to have the value
82605         of an unsigned char or EOF.
82606
82607 2005-06-16  Jim Meyering  <jim@meyering.net>
82608
82609         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82610         when either N or S is zero.
82611
82612 2005-06-16  Derek Price  <derek@ximbiot.com>
82613
82614         * m4/bison.m4: Declare YACC & YFLAGS precious.
82615
82616 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82617
82618         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82619         multibyte string or pattern, fall back on unibyte matching.
82620         Problem reported by James Youngman.
82621
82622 2005-06-08  Bruno Haible  <bruno@clisp.org>
82623
82624         * modules/csharpcomp: New file.
82625         * MODULES.html.sh (C#): Add csharpcomp.
82626
82627 2005-06-08  Bruno Haible  <bruno@clisp.org>
82628
82629         * m4/csharpcomp.m4: New file, from GNU gettext.
82630
82631 2005-06-08  Bruno Haible  <bruno@clisp.org>
82632
82633         * lib/csharpcomp.h: New file, from GNU gettext.
82634         * lib/csharpcomp.c: New file, from GNU gettext.
82635         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82636
82637 2005-06-08  Bruno Haible  <bruno@clisp.org>
82638
82639         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82640         warning on mingw.
82641
82642 2005-06-07  Derek Price  <derek@ximbiot.com>
82643
82644         Sync from CVS.
82645         * lib/glob_.h: Indent nested #ifdef.
82646
82647 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82648
82649         Sync from coreutils.
82650         Use "file name" when talking about file names, instead of "filename"
82651         or "path", as per the GNU coding standards.
82652         * lib/mkdir-p.c: Renamed from makepath.c.
82653         (make_dir_parents): Renamed from make_path.  All callers changed.
82654         * lib/mkdir-p.h: Likewise.  All includers changed.
82655         * lib/filenamecat.c: Renamed from path-concat.c.
82656         (file_name_concat): Renamed from path_concat.  All callers changed.
82657         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82658         * lib/filenamecat.h: Likewise.  All includers changed.
82659         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82660         in comments or local variable names.
82661         * lib/basename.c: Likewise.
82662         * lib/canonicalize.c, canonicalize.h: Likewise.
82663         * lib/dirname.c, dirname.h: Likewise.
82664         * lib/euidaccess.c: Likewise.
82665         * lib/exclude.c: Likewise
82666         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82667         * lib/fsusage.c, fsuage.h: Likewise.
82668         * lib/fts.c, fts_.h: Likewise.
82669         * lib/getcwd.c: Likewise.
82670         * lib/getloadavg.c: Likewise.
82671         * lib/mkstemp.c: Likewise.
82672         * lib/mountlist.c, mountlist.h: Likewise.
82673         * lib/openat.c, openat.h: Likewise.
82674         * lib/readlink-stub.c: Likewise.
82675         * lib/readutmp.c, readutmp.h: Likewise.
82676         * lib/rename.c: Likewise.
82677         * lib/rmdir.c: Likewise.
82678         * lib/same.c: Likewise.
82679         * lib/savedir.c: Likewise.
82680         * lib/stripslash.c: Likewise.
82681         * lib/tempname.c: Likewise.
82682         * lib/xreadlink.c: Likewise.
82683         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82684         All uses changed.
82685         * lib/exclude.h: Likewise.
82686
82687         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82688         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82689         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82690         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82691         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82692         files have been getting away with it for years (MORE/BSD 4.3
82693         is extinct now).
82694         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82695         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82696
82697         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82698         Define to 256, not 255, as per modern POSIX.
82699
82700 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82701
82702         Sync from coreutils.
82703         Use "file name" when talking about file names, instead of "filename"
82704         or "path", as per the GNU coding standards.
82705         * MODULES.html.sh: mkdir-p renamed from makepath.
82706         filenamecat renamed from path-concat.
82707         * modules/filenamecat: Renamed from modules/path-concat.
82708         (Files): filenamecat.h and filenamecat.c renamed from
82709         path-concat.h and path-concat.c.
82710         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82711         (Include): filenamecat.h, not path-concat.h.
82712         * modules/mkdir-p: Renamed from modules/makepath.
82713         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82714         makepath.c.
82715         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82716         (Include): mkdir-p.h, not makepath.h.
82717
82718 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82719
82720         Sync from coreutils.
82721         * m4/mkdir-p.m4: Renamed from makepath.m4.
82722         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82723         Rename files from makepath.c to mkdir-p.c, and from
82724         makepath.h to mkdir-p.h.
82725         * m4/filenamecat.m4: Renamed from path-concat.m4.
82726         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82727         Rename files from path-concat.c to filenamecat.c,
82728         and from path-concat.h to filenamecat.h.
82729         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82730         "file name" in local variables or comments.
82731         * m4/rename.m4: Likewise.
82732
82733 2005-06-01  Bruno Haible  <bruno@clisp.org>
82734
82735         * modules/csharpexec: New file.
82736         * MODULES.html.sh (C#): New section.
82737
82738 2005-06-01  Bruno Haible  <bruno@clisp.org>
82739
82740         * m4/csharp.m4: New file, from GNU gettext.
82741         * m4/csharpexec.m4: New file, from GNU gettext.
82742
82743 2005-06-01  Bruno Haible  <bruno@clisp.org>
82744
82745         * lib/csharpexec.h: New file, from GNU gettext.
82746         * lib/csharpexec.c: New file, from GNU gettext.
82747         * lib/csharpexec.sh.in: New file, from GNU gettext.
82748
82749 2005-05-31  Derek Price  <derek@ximbiot.com>
82750             Paul Eggert  <eggert@cs.ucla.edu>
82751
82752         Sync from cvs.
82753         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82754
82755 2005-05-31  Derek Price  <derek@ximbiot.com>
82756             Paul Eggert  <eggert@cs.ucla.edu>
82757
82758         Sync from cvs.
82759         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82760
82761 2005-05-29  Derek Price  <derek@ximbiot.com>
82762
82763         * config/srclist.txt (glob_.h, glob.c): Add these files.
82764
82765 2005-05-29  Derek Price  <derek@ximbiot.com>
82766
82767         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82768         * modules/glob: New file.
82769         * modules/getlogin_r: Add link to POSIX spec in description.
82770
82771 2005-05-29  Derek Price  <derek@ximbiot.com>
82772             Paul Eggert  <eggert@cs.ucla.edu>
82773
82774         * m4/glob.m4: New file.
82775
82776 2005-05-29  Derek Price  <derek@ximbiot.com>
82777             Paul Eggert  <eggert@cs.ucla.edu>
82778
82779         * lib/glob_.h, lib/glob.c: New files.
82780
82781 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82782
82783         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82784         * modules/fts-lgpl (Depends-on): Remove gettext.
82785
82786 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82787
82788         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82789         and don't require gt_INTTYPES_PRI.
82790
82791 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82792
82793         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82794
82795         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82796         the configuration hassle isn't worth it.
82797         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82798         (LONGEST_MODIFIER, PRIuMAX): Remove.
82799
82800 2005-05-27  Bruno Haible  <bruno@clisp.org>
82801
82802         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82803
82804 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82805
82806         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82807         _POSIX_PTHREAD_SEMANTICS for Solaris.
82808
82809 2005-05-25  Derek Price  <derek@ximbiot.com>
82810
82811         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82812
82813 2005-05-25  Derek Price  <derek@ximbiot.com>
82814             Paul Eggert  <eggert@cs.ucla.edu>
82815
82816         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82817         * lib/getlogin_r.c, getlogin_r.h: New files.
82818
82819 2005-05-25  Bruno Haible  <bruno@clisp.org>
82820             Derek Price  <derek@ximbiot.com>
82821
82822         * lib/getlogin_r.h: Simplify API documentation.
82823
82824 2005-05-23  Derek Price  <derek@ximbiot.com>
82825
82826         * modules/minmax (Files): Add m4/minmax.m4.
82827         (configure.ac): Add gl_MINMAX.
82828
82829 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82830
82831         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82832         so that unistd-safer.h (GPL'ed code) need not be included.
82833
82834 2005-05-22  Bruno Haible  <bruno@clisp.org>
82835
82836         * m4/minmax.m4: New file.
82837         Based on a patch by Derek Price <derek@ximbiot.com>.
82838
82839 2005-05-22  Bruno Haible  <bruno@clisp.org>
82840
82841         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82842         (INT64_MIN): Fix definition.
82843         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82844
82845         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82846         NEED_SIGNED_INT_TYPES.
82847
82848         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82849         HAVE_SYSTEM_INTTYPES.
82850
82851 2005-05-22  Bruno Haible  <bruno@clisp.org>
82852
82853         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82854         Also include <sys/param.h> if it defines MIN, MAX.
82855         Based on a patch by Derek Price <derek@ximbiot.com>.
82856
82857 2005-05-21  Jim Meyering  <jim@meyering.net>
82858
82859         * modules/fts (Files): Add m4/inttypes-pri.m4.
82860         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82861
82862 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82863
82864         New fts module.
82865         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82866         (setup_dir, free_dir): New functions.
82867         (enter_dir, leave_dir): Define trivial
82868         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82869         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82870         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82871         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82872         Move to fts-cycle.c.
82873         (fts_open): Use setup_dir.
82874         (fts_close): Use free_dir.
82875         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82876         This adds a label and some gotos, but the alternatives were messier.
82877         Check for memory allocation failure when entering a dir.
82878         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82879         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82880         (FTS): New member fts_cycle, that is a union that contains the
82881         old active_dir_ht and cycle_state.  All uses changed to mention
82882         fts_cycle.ht and fts_cycle.state.
82883         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82884         fts.c, with the following changes:
82885         (setup_dir, free_dir): New functions.
82886         (enter_dir): Now returns bool.  Return true if successful, false
82887         if memory exhausted.  All callers changed.
82888         Do not bother partly cleaning up on
82889         memory allocation failure; that is free_dir's job.
82890         However, free ad if hash_insert fails, to avoid memory leak.
82891         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82892         fts->fts_options to see which union member to use.
82893
82894 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82895
82896         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82897         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82898
82899 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82900
82901         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82902
82903 2005-05-20  Jim Meyering  <jim@meyering.net>
82904
82905         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82906         Now a macro, to pacify GCC.
82907
82908 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82909
82910         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82911         of -1.
82912
82913 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82914
82915         * lib/chown.c (rpl_chown): Return -1 on failure.
82916
82917 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82918
82919         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82920         Don't check for stddef.h.
82921         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82922         don't use its results.
82923         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82924         since we include them unconditionally.  Don't require
82925         AM_STDBOOL_H, since stdbool is a prerequisite.
82926         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82927         since we assume C89 or better.
82928         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82929         as we don't use their results.
82930         Don't check for fchdir, memmove, memset, strrchr, as we use
82931         them unconditionally.
82932         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82933         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82934
82935 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82936
82937         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82938         Include <stddef.h> unconditionally, since we assume C89 now.
82939         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82940         * lib/fts.c: Include fts_.h first, to check interface.
82941         Do not include intprops.h; no longer needed.
82942         Include cycle-check.h and hash.h, since fts_.h no longer does.
82943         Remove unnecessary casts of closedir to void.
82944         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82945         decide whether to decrement nlinks.
82946         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82947         (FTS): Use struct hash_table * instead of Hash_table, so that
82948         we no longer need to include hash.h here.
82949
82950 2005-05-18  Jim Meyering  <jim@meyering.net>
82951
82952         * modules/dirfd (License): Change to LGPL.  Most of the code
82953         is already in the public domain.
82954
82955 2005-05-18  Jim Meyering  <jim@meyering.net>
82956
82957         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82958         Reported by Yoann Vandoorselaere.
82959
82960 2005-05-17  Jim Meyering  <jim@meyering.net>
82961
82962         * m4/fts.m4: New file, from coreutils.
82963
82964 2005-05-17  Jim Meyering  <jim@meyering.net>
82965
82966         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82967
82968 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82969
82970         Sync from coreutils.
82971         * m4/unlinkdir.m4: New file.
82972
82973 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82974
82975         Sync from coreutils.
82976         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82977         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82978         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82979         White space changes only.
82980         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82981         special.
82982         * lib/yesno.c: Include getline.h, not ctype.h.
82983         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82984         Use getline to remove arbitrary restriction on response length.
82985
82986 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82987
82988         * config/srclist-update: Spell out "Street" in FSF postal
82989         mail address; this is the style the FSF seems to prefer.
82990
82991         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82992         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82993         this updates FSF postal mail address.
82994
82995         Sync from coreutils.
82996         * modules/unlinkdir: New file.
82997         * modules/yesno (Depends-on): Add getline.
82998         * MODULES.html.sh (File system functions): Add unlinkdir.
82999
83000 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83001
83002         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83003         lib/strsep.h:
83004         Change the initial comment to refer to GPL, not LGPL.
83005         gnulib-tool will change it to LGPL as needed.
83006
83007         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83008         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83009         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83010         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83011         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83012         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83013         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83014         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83015         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83016         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83017         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83018         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83019         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83020         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83021         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83022         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83023         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83024         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83025         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83026         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83027         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83028         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83029         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83030         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83031         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83032         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83033         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83034         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83035         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83036         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83037         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83038         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83039         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83040         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83041         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83042         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83043         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83044         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83045         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83046         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83047         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83048         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83049         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83050         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83051         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83052         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83053         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83054         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83055         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83056         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83057         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83058         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83059         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83060         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83061         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83062         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83063         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83064         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83065         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83066         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83067         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83068         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83069         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83070         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83071         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83072         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83073         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83074         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83075         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83076         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83077         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83078         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83079         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83080         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83081         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83082         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83083         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83084         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83085         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83086         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83087         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83088         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83089         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83090         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83091         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83092         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83093         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83094         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83095         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83096         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83097         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83098         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83099         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83100         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83101         lib/yesno.c, lib/yesno.h:
83102         Update FSF postal mail address.
83103
83104 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83105
83106         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83107         tests/test-memmem.c, tests/test-stpncpy.c:
83108         Update FSF postal mail address.
83109
83110 2005-05-13  Bruno Haible  <bruno@clisp.org>
83111
83112         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83113         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83114         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83115         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83116         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83117         Add support for 64-bit integers in the MSVC compiler.
83118
83119 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83120
83121         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83122
83123 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83124
83125         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83126
83127 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83128
83129         * doc/getdate.texi (General date syntax): Don't say that date
83130         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83131         Problem reported by Nic Ferrier.
83132
83133 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83134
83135         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83136         specified in ai_socktype. Fix invalid ai_protocol
83137         check. ai_protocol is usually set to 0 or depending on
83138         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83139         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83140         ai_socktype / ai_protocol in the returned addrinfo structure.
83141
83142 2005-05-10  Simon Josefsson  <jas@extundo.com>
83143
83144         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83145         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83146
83147 2005-05-10  Karl Berry  <karl@gnu.org>
83148
83149         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83150         (from http://www.gnu.org/licenses).
83151         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83152         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83153         fdl.texi suffices.
83154
83155 2005-05-10  Karl Berry  <karl@gnu.org>
83156
83157         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83158         (COPYING.DOC): remove.
83159
83160         * config/srclist-update: new FSF address.
83161
83162 2005-05-10  Derek Price  <derek@ximbiot.com>
83163
83164         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83165         possible.
83166
83167 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83168             Bruno Haible  <bruno@clisp.org>
83169
83170         * modules/inet_ntop: New file.
83171         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83172         inet_ntop.
83173
83174 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83175             Bruno Haible  <bruno@clisp.org>
83176
83177         * m4/inet_ntop.m4: New file.
83178
83179 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83180             Bruno Haible  <bruno@clisp.org>
83181
83182         * lib/inet_ntop.h: New file.
83183         * lib/inet_ntop.c: New file, from glibc with modifications.
83184
83185 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83186
83187         * modules/time_r (License): Change to LGPL.
83188         * modules/extensions (License): Change to LGPL.  Actually,
83189         the license is more permissive than that, but currently gnulib-tool
83190         doesn't know how to handle more-permissive licenses.
83191
83192         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83193         Problem reported by Dave Love.
83194
83195 2005-05-08  Jim Meyering  <jim@meyering.net>
83196
83197         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83198         blank.
83199
83200 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83201
83202         * modules/argmatch (Depends-on): Add stdbool.
83203         * modules/backupfile (Depends-on): Likewise.
83204         * modules/chdir-long (Depends-on): Likewise.
83205         * modules/closeout (Depends-on): Likewise.
83206         * modules/cycle-check (Depends-on): Likewise.
83207         * modules/dirname (Depends-on): Likewise.
83208         * modules/fnmatch (Depends-on): Likewise.
83209         * modules/fsusage (Depends-on): Likewise.
83210         * modules/fwriteerror (Depends-on): Likewise.
83211         * modules/getcwd (Depends-on): Likewise.
83212         * modules/getloadavg (Depends-on): Likewise.
83213         * modules/hard-locale (Depends-on): Likewise.
83214         * modules/makepath (Depends-on): Likewise.
83215         * modules/mountlist (Depends-on): Likewise.
83216         * modules/nanosleep (Depends-on): Likewise.
83217         * modules/posixtm (Depends-on): Likewise.
83218         * modules/quotearg (Depends-on): Likewise.
83219         * modules/readtokens (Depends-on): Likewise.
83220         * modules/readtokens0 (Depends-on): Likewise.
83221         * modules/readutmp (Depends-on): Likewise.
83222         * modules/save-cwd (Depends-on): Likewise.
83223         * modules/strftime (Depends-on): Likewise.
83224         * modules/userspec (Depends-on): Likewise.
83225         * modules/utimecmp (Depends-on): Likewise.
83226         * modules/xgetcwd (Depends-on): Likewise.
83227         * modules/xnanosleep (Depends-on): Likewise.
83228         * modules/xstrtod (Depends-on): Likewise.
83229         * modules/yesno (Depends-on): Likewise.
83230
83231 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83232
83233         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83234         needless checks.
83235
83236 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83237
83238         Merge from coreutils.  Among other things,
83239         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83240         * lib/fd-safer.c: New file.
83241         * lib/fcntl-safer.h, open-safer.c: Remove.
83242         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83243         * lib/dup-safer.c: Include unistd-safer.h first.
83244         Don't include errno.h.
83245         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83246         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83247         * lib/file-type.c: Rely on file-type.h change.
83248         * lib/getloadavg.c: Include unistd-safer.h.
83249         (getloadavg): Use safer open.
83250         * lib/getusershell.c: Include "stdio-safer.h".
83251         (getusershell): Use safer fopen.
83252         * lib/long-options.c (long_options): Use NULL rather than 0.
83253         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83254         'free'.
83255         * lib/modechange.c: Likewise.
83256         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83257         (MODE_DONE): New constant.
83258         (struct mode_change): Remove 'next' member.
83259         (make_node_op_equals): New function; like the old one of the
83260         same name, except it allocates an array.
83261         (mode_compile, mode_create_from_ref): Use it.
83262         (mode_compile): Allocate result as an array, not a linked list.
83263         Parse octal string ourself, so that we catch mistakes like "+0".
83264         (mode_adjust): Arg is an array, not a linked list.
83265         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83266         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83267         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83268         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83269         Remove.  This is now stat-macros.h's job.
83270         (talloc): Remove.  All callers replaced by xalloc, so that
83271         our invokers don't have to worry about reporting memory failures.
83272         (make_node_op_equals): Remove.
83273         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83274         New constants.
83275         (struct mode_change): Moved here from modechange.h.
83276         (mode_append_entry): Remove.
83277         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83278         apps to have incorrect behavior.  Use simpler algorithm for head
83279         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83280         Detect more invalid usages rather than having somewhat-random behavior.
83281         Don't insert an "a=" action, as that leads to incorrect behavior.
83282         (mode_compile, mode_create_from_ref): Return NULL on error instead
83283         of an enum, since now there's only one way to have an error.  All
83284         callers changed.
83285         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83286         at the correct time.  Simplify calculation of "+u" and its ilk.
83287         Don't mishandle "+X".
83288         (mode_free): Remove "register" and localize decls.
83289         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83290         (struct mode_change): Move to modechange.c; callers don't
83291         need to see this stuff.
83292         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83293         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83294         (mode_change, mode_adjust): Reflect the new signatures noted above.
83295         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83296         that might redefine system include files.
83297         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83298         (my_usleep): Use NULL rather than (void *) 0.
83299         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83300         Use siginterrupt to specify that system calls should be interrupted.
83301         (rpl_nanosleep): Move initialization of suspended closer to call of
83302         my_usleep.
83303         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83304         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83305         (desirable_utmp_entry): New function.
83306         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83307         using x2nrealloc, to simplify logic.
83308         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83309         size calculation.  Do not assume utmp file is a regular file.
83310         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83311         (READ_UTMP_CHECK_PIDS): New constant.
83312         * lib/save-cwd.c: Include unistd-safer.h.
83313         (save_cwd): Use fd_safer.
83314         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83315         [!_LIBC] Include "stat-macros.h" instead.
83316         * lib/unistd-safer.h (fd_safer): New decl.
83317
83318 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83319
83320         * modules/getloadavg (Depends-on): Add unistd-safer.
83321         * modules/getusershell (Depends-on): Add stdio-safer.
83322         * modules/lstat (Depends-on): Remove xalloc.
83323         * modules/mkstemp (Depends-on): Add stat-macros.
83324         * modules/modechange (Depends-on): Remove xstrtol.
83325         Add stat-macros, xalloc.
83326         * modules/save-cwd (Depends-on): Add unistd-safer.
83327         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83328         * modules/unistd-safer (Files): Add lib/fd-safer.c
83329         (Makefile.am): Remove lib_SOURCES.
83330
83331         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83332         Remove fcntl-safer; unistd-safer supersedes it.
83333
83334 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83335
83336         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83337         AC_HEADER_STAT.
83338         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83339         (gl_PREREQ_CHOWN): Remove.
83340         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83341         it.  Don't require AC_HEADER_STAT.
83342         (gl_PREREQ_LSTAT): Remove.
83343         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83344         Don't require AC_HEADER_STAT.
83345         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83346         (gl_PREREQ_RMDIR): Remove.
83347         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83348         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83349         the stat-macros module a prerequisite.
83350         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83351         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83352         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83353         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83354         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83355         variable names.
83356         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83357         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83358         variable prefixes.
83359         * m4/fcntl-safer.m4: Remove.
83360         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83361         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83362         Invoke gl_PREREQ_FD_SAFER.
83363         (gl_PREREQ_FD_SAFER): New macro.
83364         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83365         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83366         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83367         Remove duplicate call to AC_LIBOBJ(readutmp).
83368         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83369
83370         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83371         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83372
83373 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83374
83375         * MODULES.html.sh (Misc): Add byteswap.
83376
83377 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83378
83379         * modules/getcwd (Depends-on): Add extensions.
83380         * modules/openat (Depends-on): Likewise.
83381
83382 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83383
83384         * modules/byteswap: New file.
83385
83386 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83387
83388         * m4/byteswap.m4: New file.
83389
83390 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83391
83392         * lib/byteswap_.h: New file.
83393
83394 2005-04-25  Karl Berry  <karl@gnu.org>
83395
83396         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83397
83398 2005-04-25  Albert Chin  <china@thewrittenword.com>
83399
83400         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83401         Toolkit C bug.
83402
83403 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83404
83405         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83406         (func_ln_if_changed): Remove forcibly for no error message
83407         in case file does not exist.
83408
83409 2005-04-19  Simon Josefsson  <jas@extundo.com>
83410
83411         * gnulib-tool (Options): Make --symlink mean --symbolic.
83412
83413 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83414
83415         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83416
83417 2005-04-16  Simon Josefsson  <jas@extundo.com>
83418
83419         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83420
83421 2005-04-15  Simon Josefsson  <jas@extundo.com>
83422
83423         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83424
83425 2005-04-15  Simon Josefsson  <jas@extundo.com>
83426
83427         * gnulib-tool: Rename --symlink to --symbolic.
83428
83429 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83430
83431         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83432         symbolic links to files instead of copying/moving.  Add --aux-dir,
83433         specifying directory relative --dir where auxiliary build tools
83434         are placed.
83435
83436 2005-04-14  Bruno Haible  <bruno@clisp.org>
83437
83438         * modules/allocsa (License): Change to LGPL.
83439         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83440
83441 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83442
83443         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83444         that "UTC +1 second" continues to work.  Problem reported
83445         by Dmitry V. Levin.
83446         (relunit_snumber): New rule.
83447         (relunit): Use it.
83448
83449 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83450
83451         * lib/getdate.y (universal_time_zone_table): New constant.
83452         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83453         universal_time_zone_table.
83454         (lookup_zone): Prefer universal_time_zone_table to
83455         local_time_zone_table, so that "GMT" time stamps are allowed in
83456         London during the summer.  Problem reported by Ian Abbott.
83457
83458 2005-04-12  Jim Meyering  <jim@meyering.net>
83459
83460         * lib/human.c (humblock): Set *options even when returning due to
83461         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83462         warning from gcc-4.
83463
83464 2005-04-09  Jim Meyering  <jim@meyering.net>
83465
83466         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83467         -Wuninitialized: initialize tm0.tm_year.
83468
83469 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83470
83471         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83472         count, since there's no maximum.  All uses changed.
83473         Add member dsts_seen.
83474         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83475         not being INT_MAX.
83476         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83477         Use pc_rels_seen to decide whther a date is absolute.
83478
83479         * lib/getdate.y (number): Don't overwrite year.
83480         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83481         check.
83482
83483 2005-04-02  Simon Josefsson  <jas@extundo.com>
83484
83485         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83486         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83487
83488 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83489
83490         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83491         where no absolute path name can be longer than PATH_MAX.
83492
83493 2005-03-27  Jim Meyering  <jim@meyering.net>
83494
83495         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83496
83497 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83498
83499         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83500         "one's complement" -> "ones' complement" in comment, as per Knuth.
83501         "value of type" -> "type or expression" in comment.
83502         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83503
83504 2005-03-26  Jim Meyering  <jim@meyering.net>
83505
83506         Comment nits.
83507         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83508         Correct typos: s/or/of/.
83509
83510 2005-03-26  Jim Meyering  <jim@meyering.net>
83511
83512         * modules/check-include-files: Move to ../ and rename to...
83513         * check-module: ...this.
83514
83515 2005-03-25  Jim Meyering  <jim@meyering.net>
83516
83517         * modules/xvasprintf (Files): Add xalloc.h.
83518
83519 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83520
83521         * modules/gettext (Files): config/config.rpath ->
83522         build-aux/config.rpath
83523         * modules/iconv (Files): Likewise.
83524         Problem reported by Oskar Liljeblad.
83525
83526 2005-03-23  Jim Meyering  <jim@meyering.net>
83527
83528         * modules/check-include-files: New script to check for
83529         missing dependencies, multiple includes, etc.
83530
83531         * modules/c-strtold (Depends-on): Add xalloc.
83532         * modules/c-strtod (Depends-on): Add xalloc.
83533         * modules/hash (Depends-on): Add xalloc.
83534         (Files): Remove lib/xalloc.h.
83535
83536         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83537         * modules/userspec (Files): Add lib/inttostr.h.
83538
83539 2005-03-23  Jim Meyering  <jim@meyering.net>
83540
83541         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83542
83543 2005-03-22  Jim Meyering  <jim@meyering.net>
83544
83545         * modules/stat-macros: New module.
83546         * modules/canonicalize, modules/euidaccess, modules/file-type,
83547         * modules/filemode, modules/lchown, modules/makepath,
83548         * modules/rmdir, modules/stat: Depend on new stat-macros module
83549         rather than listing lib/stat-macros.h manually.
83550         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83551
83552 2005-03-22  Jim Meyering  <jim@meyering.net>
83553
83554         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83555
83556 2005-03-22  Bruno Haible  <bruno@clisp.org>
83557
83558         * config/srclist.txt: Replace target directory 'config' with
83559         'build-aux'.
83560         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83561         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83562         ../build-aux/.
83563
83564 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83565
83566         * modules/chdir-long (Depends-on): Add mempcpy.
83567
83568         * modules/acl, modules/backupfile, modules/c-strtod,
83569         modules/c-strtold, modules/canon-host, modules/canonicalize,
83570         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83571         modules/exclude, modules/exitfail, modules/file-type,
83572         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83573         modules/getdate, modules/getline, modules/getpagesize,
83574         modules/getpass, modules/getugroups, modules/group-member,
83575         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83576         modules/inttostr, modules/long-options, modules/makepath,
83577         modules/md5, modules/memcasecmp, modules/memcoll,
83578         modules/modechange, modules/mountlist, modules/path-concat,
83579         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83580         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83581         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83582         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83583         modules/strftime, modules/strndup, modules/strverscmp,
83584         modules/timespec, modules/unlocked-io, modules/userspec,
83585         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83586         modules/yesno:
83587         Remove lib_SOURCES line from Makefile.am section, as this is now
83588         done automatically by the corresponding Autoconf macro.
83589
83590 2005-03-21  Jim Meyering  <jim@meyering.net>
83591
83592         Changes imported from coreutils.
83593
83594         * lib/cycle-check.c: Don't include xalloc.h.
83595
83596         * lib/path-concat.c: Don't include assert.h.
83597         (path_concat): Remove assertion that would have triggered
83598         for ABASE starting with more than one slash.
83599         Reported by Andreas Schwab.
83600
83601         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83602         properly when ABASE is an absolute file name.
83603         Correct the description of this function.
83604         Include <assert.h>.
83605         Add an assertion and a test driver.
83606         This fixes a bug introduced on 2004-07-02.
83607         Andreas Schwab reported the resulting failure of cp --parents:
83608         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83609
83610 2005-03-21  Jim Meyering  <jim@meyering.net>
83611
83612         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83613         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83614
83615 2005-03-21  Jim Meyering  <jim@meyering.net>
83616         and  Paul Eggert  <eggert@cs.ucla.edu>
83617
83618         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83619         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83620         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83621         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83622         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83623         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83624         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83625         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83626         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83627         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83628         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83629         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83630         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83631         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83632         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83633         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83634         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83635         for these modules.
83636
83637 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83638
83639         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83640         (which shouldn't happen), generate nothing instead of returning 0
83641         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83642
83643 2005-03-16  Bruno Haible  <bruno@clisp.org>
83644
83645         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83646         HAVE_LONGLONG_64BIT.
83647
83648 2005-03-16  Bruno Haible  <bruno@clisp.org>
83649
83650         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83651         HAVE_LONGLONG_64BIT.
83652
83653 2005-03-16  Bruno Haible  <bruno@clisp.org>
83654
83655         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83656         HAVE_LONGLONG_64BIT.
83657
83658 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83659
83660         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83661         reliably distinguish strftime failure from empty output on POSIX
83662         hosts.
83663
83664 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83665
83666         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83667         (iconv_string): Don't guess a size-zero buffer, as that might cause
83668         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83669         result would be 'too large', where 'too large' is (heuristically)
83670         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83671         overflow concerns.  This will prevent some unwanted malloc failures
83672         when the inputs are very large.
83673
83674 2005-03-15  Karl Berry  <karl@gnu.org>
83675
83676         * config/srclist.txt (config.rpath): from gettext.
83677         * config/config.rpath: update.
83678
83679 2005-03-15  Bruno Haible  <bruno@clisp.org>
83680
83681         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83682         to 'negate'.
83683
83684         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83685         variable.
83686
83687         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83688         results.
83689
83690 2005-03-14  Simon Josefsson  <jas@extundo.com>
83691
83692         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83693         <fx@gnu.org>.
83694
83695 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83696
83697         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83698         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83699         intprops.h.
83700         * lib/strtol.c: Likewise.
83701
83702 2005-03-14  Jim Meyering  <jim@meyering.net>
83703
83704         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83705         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83706         to be nonzero so that we (and caller) can detect the difference
83707         between a valid zero-length expansion and an error return, even
83708         when the underlying strftime fails before writing anything into
83709         that location.
83710
83711 2005-03-14  Bruno Haible  <bruno@clisp.org>
83712
83713         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83714         Update from GNU gettext 0.14.3.
83715
83716 2005-03-10  Jim Meyering  <jim@meyering.net>
83717
83718         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83719
83720 2005-03-10  Jim Meyering  <jim@meyering.net>
83721
83722         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83723         so that this module works on systems without fchdir.
83724
83725 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83726
83727         Factor int-properties macros into a single file, except for
83728         glibc-related files.
83729         * lib/intprops.h: New file.
83730         * lib/getloadavg.c: Include it instead of limits.h.
83731         (INT_STRLEN_BOUND): Remove.
83732         * lib/human.c: Include intprops.h.
83733         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83734         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83735         302/1000.
83736         * lib/inttostr.h: Include intprops.h instead of limits.h.
83737         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83738         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83739         for consistency with intprops.h.
83740         (time_t_is_integer, twos_complement_arithmetic): Use them.
83741         * lib/sig2str.h: Include <signal.h>, intprops.h.
83742         (INT_STRLEN_BOUND): Remove.
83743         * lib/strftime.c (TYPE_SIGNED): Remove.
83744         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83745         * lib/strtol.c: Adjust comments to match intprops.h.
83746         * lib/userspec.c: Include intprops.h.
83747         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83748         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83749         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83750         instead of rolling our own expressions.
83751         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83752
83753         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83754         instead of int.
83755         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83756         the right thing even if adding 1900 would overflow.  Similarly
83757         for tm_mon + 1 and tm_yday + 1.
83758         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83759         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83760         (DO_SIGNED_NUMBER): New macro.
83761         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83762
83763 2005-03-07  Bruno Haible  <bruno@clisp.org>
83764
83765         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83766
83767 2005-03-07  Bruno Haible  <bruno@clisp.org>
83768
83769         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83770
83771 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83772
83773         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83774         (func_import): Only replace files via --import when they have actually
83775         changed.
83776
83777 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83778
83779         * m4/mmap-anon.m4: New file.
83780         * m4/pagealign_alloc.m4: New file.
83781
83782 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83783             Bruno Haible  <bruno@clisp.org>
83784
83785         * modules/pagealign_alloc: New file.
83786         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83787
83788 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83789             Bruno Haible  <bruno@clisp.org>
83790
83791         * lib/pagealign_alloc.h: New file.
83792         * lib/pagealign_alloc.c: New file.
83793
83794 2005-03-03  Bruno Haible  <bruno@clisp.org>
83795
83796         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83797         Use an all-permissive copyright notice, recommended by RMS.
83798
83799 2005-03-02  Bruno Haible  <bruno@clisp.org>
83800
83801         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83802         of AIX, the replacement has to be done only after <string.h> is
83803         included, therefore not in config.h. stpncpy.h does the replacement,
83804         and stpncpy.c uses it.
83805
83806 2005-03-02  Bruno Haible  <bruno@clisp.org>
83807
83808         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83809         stpncpy.c uses it.
83810
83811 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83812
83813         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83814         The workaround isn't strictly needed for POSIX conformance, and
83815         it's too much of a pain to configure and maintain.  We'll ask
83816         people to fix their kernels instead.
83817         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83818         (NANOSLEEP_BUG_WORKAROUND): Remove.
83819         (xnanosleep): Remove the workaround.
83820
83821 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83822
83823         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83824         Reported by Derek Price.
83825         (Include): Add "timespec.h".
83826
83827         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83828
83829 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83830
83831         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83832         to detect nanosleep bug.
83833
83834 2005-03-01  Bruno Haible  <bruno@clisp.org>
83835
83836         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83837
83838 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83839
83840         * modules/gethrxtime: New file.
83841         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83842         (Depends-on): Add gethrxtime.
83843         (configure.ac): Add gl_XNANOSLEEP.
83844         (Makefile.am): Remove lib_SOURCES line.
83845
83846 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83847
83848         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83849         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83850
83851 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83852
83853         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83854         * lib/timespec.h (gettime): Return void, since it always
83855         succeeds now.  All uses changed.
83856         * lib/gettime.c (gettime): Likewise.
83857         [HAVE_NANOTIME]: Prefer nanotime.
83858         Assume gettimeofday succeeds, as POSIX requires.
83859         Assime time () succeeds, since other code already does.
83860         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83861         (timespec_subtract): Remove.
83862         (NANOSLEEP_BUG_WORKAROUND): New constant.
83863         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83864         things considerably.  Use it only on GNU/Linux hosts, since the
83865         workaround shouldn't be needed elsewhere.
83866
83867 2005-02-24  Bruno Haible  <bruno@clisp.org>
83868
83869         * modules/gettext (Files): Add m4/glibc2.m4.
83870
83871 2005-02-24  Bruno Haible  <bruno@clisp.org>
83872
83873         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83874         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83875         * m4/progtest.m4:
83876         Update from GNU gettext 0.14.2.
83877         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83878
83879 2005-02-24  Bruno Haible  <bruno@clisp.org>
83880
83881         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83882         * lib/config.charset: Update from GNU gettext 0.14.2.
83883
83884 2005-02-24  Bruno Haible  <bruno@clisp.org>
83885
83886         * lib/gettext.h: Update from GNU gettext 0.14.2.
83887
83888 2005-02-23  Simon Josefsson  <jas@extundo.com>
83889
83890         * m4/iconvme.m4: New file.
83891
83892 2005-02-23  Jim Meyering  <jim@meyering.net>
83893
83894         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83895         change.
83896         Thanks to Bruno Haible for catching it.
83897
83898 2005-02-22  Simon Josefsson  <jas@extundo.com>
83899
83900         * modules/iconvme: New file.
83901
83902         * MODULES.html.sh: Add iconvme.
83903
83904 2005-02-22  Simon Josefsson  <jas@extundo.com>
83905
83906         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83907
83908 2005-02-22  Simon Josefsson  <jas@extundo.com>
83909
83910         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83911
83912 2005-02-22  Jim Meyering  <jim@meyering.net>
83913
83914         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83915         s/ifndef/ifdef/.
83916
83917 2005-02-20  Neil Conway  <neilc@samurai.com>
83918
83919         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83920         returned by OSX/Darwin if the specified buffer is not large
83921         enough for the hostname.
83922
83923 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83924
83925         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83926         pass it to _help, otherwise the latter coredumps trying to
83927         dereference state.root_argp.
83928
83929 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83930
83931         * modules/chdir-long (Depends-on): Add memrchr.
83932         * modules/memrchr (Files): Add lib/memrchr.h.
83933         (Include): "memrchr.h".
83934
83935 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83936
83937         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83938
83939 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83940
83941         * lib/memrchr.h: New file.
83942         * lib/chdir-long.c: Include it.
83943         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83944         Don't bother including stddef.h.
83945
83946 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83947
83948         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83949         inclusion.
83950         Include <sys/types.h>, for dev_t.
83951         (ME_DUMMY, ME_REMOTE): Move from here....
83952         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83953         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83954         Dmitry V. Levin.
83955         Include mountlist.h first, to test the interface.
83956
83957 2005-01-29  Bruno Haible  <bruno@clisp.org>
83958
83959         * lib/progname.c (program_name): Initialize.
83960         Needed when linking statically on MacOS X.
83961
83962 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83963
83964         Sync from coreutils.
83965         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83966         (Depends-on): Add c-strtod.
83967         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83968
83969 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83970
83971         Sync from coreutils.
83972         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83973
83974         Remove files that are specific to coreutils.
83975         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83976
83977 2005-01-28  Bruno Haible  <bruno@clisp.org>
83978
83979         * modules/javacomp: New file.
83980         * MODULES.html.sh (Java): Add javacomp.
83981
83982 2005-01-28  Bruno Haible  <bruno@clisp.org>
83983
83984         * m4/javacomp.m4: New file, from GNU gettext.
83985
83986 2005-01-28  Bruno Haible  <bruno@clisp.org>
83987
83988         * lib/javacomp.sh.in: New file, from GNU gettext.
83989         * lib/javacomp.h: New file, from GNU gettext.
83990         * lib/javacomp.c: New file, from GNU gettext.
83991
83992 2005-01-26  Simon Josefsson  <jas@extundo.com>
83993
83994         * lib/gai_strerror.c: Use GPL in header.
83995
83996 2005-01-26  Bruno Haible  <bruno@clisp.org>
83997
83998         * modules/javaexec: New file.
83999         * MODULES.html.sh (Java): Add javaexec.
84000
84001 2005-01-26  Bruno Haible  <bruno@clisp.org>
84002
84003         * m4/javaexec.m4: New file, from GNU gettext.
84004
84005 2005-01-26  Bruno Haible  <bruno@clisp.org>
84006
84007         * lib/javaexec.sh.in: New file, from GNU gettext.
84008         * lib/javaexec.h: New file, from GNU gettext.
84009         * lib/javaexec.c: New file, from GNU gettext.
84010
84011 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84012
84013         * modules/lchown (Depends-on): Remove lchown.h
84014
84015 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84016
84017         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84018         must be defined if the header file was not found, in order
84019         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84020
84021 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84022
84023         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84024         initializers for struct pentry_state.
84025         (__argp_error): Check return value of __asprintf
84026         (__argp_failure): Translate error message
84027
84028         * lib/argp-parse.c: Removed braces around the expansion of N_()
84029
84030 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84031
84032         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84033         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84034         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84035         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84036         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84037         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84038         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84039         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84040         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84041         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84042         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84043         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84044         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84045         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84046         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84047         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84048         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84049         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84050         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84051         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84052         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84053         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84054         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84055         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84056         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84057         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84058         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84059         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84060         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84061         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84062         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84063         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84064         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84065         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84066         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84067         Use an all-permissive copyright notice, recommended by RMS.
84068
84069 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84070
84071         * modules/chdir-long (Depends-on): Remove mempcpy.
84072
84073 2005-01-21  Jim Meyering  <jim@meyering.net>
84074
84075         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84076         same value as for Solaris 9.
84077
84078         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84079         component length.  This included changing the parameter to be
84080         of type `char *' rather than `char const *'.
84081         * lib/chdir-long.h (chdir_long): Update prototype.
84082
84083         * lib/openat.c (fdopendir, fstatat): New functions.
84084         * lib/openat.h: Include headers required for use of DIR and struct
84085         stat.
84086         [AT_SYMLINK_NOFOLLOW]: Define.
84087         (fdopendir, fstatat): Add prototypes.
84088
84089 2005-01-21  Bruno Haible  <bruno@clisp.org>
84090
84091         * modules/classpath: New file.
84092         * MODULES.html.sh (Java): Add classpath.
84093
84094 2005-01-21  Bruno Haible  <bruno@clisp.org>
84095
84096         * lib/classpath.h: New file, from GNU gettext.
84097         * lib/classpath.c: New file, from GNU gettext.
84098
84099 2005-01-20  Simon Josefsson  <jas@extundo.com>
84100
84101         * modules/version-etc-fsf: New file.
84102
84103 2005-01-20  Simon Josefsson  <jas@extundo.com>
84104
84105         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84106         * lib/version-etc.c: Remove version_etc_copyright.
84107         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84108         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84109
84110 2005-01-20  Simon Josefsson  <jas@extundo.com>
84111
84112         * lib/base64.h (isbase64): Add.
84113
84114         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84115         using a unsigned prototype, don't inline.
84116         (base64_decode): Use it.
84117
84118 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84119
84120         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84121         it.
84122
84123 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84124
84125         * lib/save-cwd.c (save_cwd): Remove code to support the case
84126         where fchdir is missing or flaky.
84127
84128 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84129
84130         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84131
84132 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84133
84134         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84135         AC_LIBSOURCES now does this.
84136         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84137         with new ullong_max module.
84138
84139 2005-01-19  Bruno Haible  <bruno@clisp.org>
84140
84141         * modules/sh-quote: New file.
84142         * MODULES.html.sh (Executing programs): Add sh-quote.
84143
84144 2005-01-19  Bruno Haible  <bruno@clisp.org>
84145
84146         * lib/sh-quote.h: New file, from GNU gettext.
84147         * lib/sh-quote.c: New file, from GNU gettext.
84148
84149 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84150
84151         Merge from coreutils.
84152         * m4/ullong_max.m4: New file.
84153         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84154         (gl_MACROS): Assume localeconv exists.
84155
84156 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84157
84158         Merge changes from coreutils, as described below in several
84159         changelogs dated today.
84160
84161         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84162         (O_DIRECTORY): Remove; not needed here, since "." must be
84163         a directory.  All uses removed.
84164         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84165         universal on Suns, and we also need to test for IRIX.
84166         Revamp code to use 'if' rather than '#if'.
84167         Avoid unnecessary comparison of cwd->desc to 0.
84168
84169         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84170         for known valid error numbers rather than observed invalid ones.
84171
84172 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84173
84174         * modules/ullong_max: New file.
84175
84176         * modules/chdir-long, modules/openat: New files.
84177         * modules/save-cwd (Depends-on): Depend on chdir-long.
84178         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84179
84180 2005-01-18  Jim Meyering  <jim@meyering.net>
84181
84182         Merge from coreutils.
84183         * m4/chdir-long.m4, m4/openat.m4: New files.
84184         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84185         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84186         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84187         is sane and DOES follow symlinks.  Besides, testing 20 different
84188         systems found no broken chown implementations.
84189         Prompted by a change in rsync's copy of this macro.
84190         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84191
84192         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84193
84194         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84195         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84196         NULL-means-set-to-current-time semantics.
84197         Remove temporary file immediately, rather than waiting
84198         for configure's at-exit trap code to do it.
84199
84200 2005-01-18  Jim Meyering  <jim@meyering.net>
84201
84202         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84203
84204         * lib/utimens.c (futimens): Account for the fact that futimes
84205         can also fail with errno == ENOSYS or errno == ENOENT.
84206         Patch from Dmitry V. Levin.
84207
84208         Change the name of the robust chdir function from chdir to chdir_long.
84209         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84210         (restore_cwd): Use chdir_long, not chdir.
84211         * lib/chdir-long.c: Renamed from chdir.c.
84212         * lib/chdir-long.h: Renamed from chdir.h.
84213         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84214         Hurd.
84215
84216 2005-01-18  Bruno Haible  <bruno@clisp.org>
84217
84218         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84219         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84220         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84221         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84222         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84223         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84224         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84225         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84226         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84227         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84228         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84229         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84230         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84231         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84232         Use an all-permissive copyright notice, recommended by RMS.
84233
84234 2005-01-18  Bob Proulx  <bob@proulx.com>
84235
84236         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84237         simplify offsetof() macro construct to avoid compile failure with
84238         native HP-UX 11.0 ANSI C compiler.
84239
84240 2005-01-17  Bruno Haible  <bruno@clisp.org>
84241
84242         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84243         redundant because stpncpy.m4 takes care of it.
84244
84245 2005-01-17  Bruno Haible  <bruno@clisp.org>
84246
84247         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84248
84249 2005-01-17  Bruno Haible  <bruno@clisp.org>
84250
84251         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84252         used.
84253
84254 2005-01-17  Bruno Haible  <bruno@clisp.org>
84255
84256         * lib/fwriteerror.h (fwriteerror): Change specification to include
84257         fclose.
84258         * lib/fwriteerror.c: Include <stdbool.h>.
84259         (fwriteerror): At the end, close the file stream. Record whether
84260         stdout was already closed.
84261
84262 2005-01-17  Bruno Haible  <bruno@clisp.org>
84263
84264         * lib/execute.c (environ): Declare if needed.
84265         * lib/pipe.c (environ): Likewise.
84266         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84267
84268 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84269
84270         * modules/argp: Depend on vsnprintf
84271
84272 2005-01-10  Jim Meyering  <jim@meyering.net>
84273
84274         * modules/closeout (Depends-on): Add atexit.
84275
84276 2005-01-06  Bruno Haible  <bruno@clisp.org>
84277
84278         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84279
84280 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84281
84282         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84283         definitions to be after all include files, to avoid collisions.
84284         Problem reported by Bob Proulx.
84285
84286 2005-01-04  Jim Meyering  <jim@meyering.net>
84287
84288         Changes imported from coreutils.
84289         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84290         as the mkstemp template, use a temporary directory and an
84291         8.3-friendly template to avoid trouble on systems like DJGPP.
84292         Reported by Juan M. Guerrero via Stepan Kasal.
84293         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84294         close. Remove the temporary directory right away, rather than waiting
84295         for configure's at-exit trap code to do it.
84296         Suggestion from Stepan Kasal.
84297
84298 2005-01-01  Simon Josefsson  <jas@extundo.com>
84299
84300         * gnulib-tool: Print #include directives when --import'ing.
84301
84302 2004-12-28  Simon Josefsson  <jas@extundo.com>
84303
84304         * tests/test-base64.c: Include required header files.  Remove
84305         unused variables.
84306
84307 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84308
84309         * modules/error (Depends-on): Remove gettext.
84310
84311 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84312
84313         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84314         not needed.  This removes a dependency on the gettext module.
84315         [defined _LIBC]: Do not include <libintl.h>; not needed.
84316
84317 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84318
84319         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84320         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84321
84322 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84323
84324         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84325         HAVE_DECL_STRTOLD.
84326
84327 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84328
84329         * modules/getdate (Depends-on): Remove alloca-opt.
84330
84331 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84332
84333         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84334
84335 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84336
84337         * lib/argp-parse.c: Include <stddef.h>.
84338         (alignof, alignto): New macros.
84339         (parser_init): Don't assume that void * is aligned sufficiently
84340         for struct option.
84341
84342         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84343         need to extend the stack.
84344         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84345         large.
84346
84347 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84348
84349         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84350
84351 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84352
84353         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84354         (2004-10-24) change.  Apparently this was a false alarm.
84355
84356         * modules/getdate: Depend on alloca-opt, not alloca.
84357
84358 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84359
84360         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84361         Remove now-obsolete comment about AIX.
84362         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84363         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84364         (YYMAXDEPTH): New macro.
84365
84366 2004-12-18  Simon Josefsson  <jas@extundo.com>
84367
84368         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84369
84370 2004-12-18  Bruno Haible  <bruno@clisp.org>
84371
84372         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84373
84374 2004-12-18  Bruno Haible  <bruno@clisp.org>
84375
84376         * lib/fatal-signal.c (fatal_signals): Make non-const.
84377         (init_fatal_signals): New function.
84378         (uninstall_handlers, install_handlers): Ignore signals that were set to
84379         SIG_IGN.
84380         (at_fatal_signal): Call init_fatal_signals.
84381         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84382         SIG_IGN.
84383         Reported by Paul Eggert.
84384
84385 2004-12-18  Bruno Haible  <bruno@clisp.org>
84386
84387         * doc/alloca.texi: New file.
84388         * doc/alloca-opt.texi: New file.
84389
84390 2004-12-17  Jim Meyering  <jim@meyering.net>
84391
84392         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84393         Otherwise, install-sh could exit with improper exit status when
84394         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84395
84396 2004-12-16  Simon Josefsson  <jas@extundo.com>
84397
84398         * tests/test-base64.c: Add license.
84399
84400 2004-12-15  Stepan Kasal  <address@hidden>
84401
84402         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84403
84404 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84405
84406         * modules/getcwd (Files): Add m4/d-ino.m4.
84407         Suggested by Mark D. Baushke.
84408
84409 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84410
84411         * lib/getdate.y (textint): New member "negative".
84412         (time_zone_hhmm): New function.
84413         Expect 14 shift-reduce conflicts, not 13.
84414         (o_colon_minutes): New rule.
84415         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84416         (yylex): Set the "negative" member of signed numbers.
84417
84418 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84419
84420         * doc/getdate.texi (Time of day items, Time zone items):
84421         Describe new formats +00:00, UTC+00:00.
84422
84423 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84424
84425         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84426         spurious "-l"s.  Problem reported by Stepan Kasal.
84427
84428 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84429
84430         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84431         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84432
84433 2004-12-04  Simon Josefsson  <jas@extundo.com>
84434
84435         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84436         Vandoorselaere <yoann@prelude-ids.org>.
84437
84438 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84439
84440         Changes imported from coreutils.
84441         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84442         exist.
84443         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84444
84445 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84446
84447         Changes imported from coreutils.
84448         * lib/hard-locale.c: Assume <locale.h> exists.
84449         Include "strdup.h".
84450         (GLIBC_VERSION): New macro.
84451         (hard_locale): Assume setlocale exists.
84452         Rewrite to avoid #ifdef.
84453         Use strdup rather than malloc + strcpy.
84454         * lib/human.c: Assume <locale.h> exists.
84455         (human_readable): Assume localeconv exists.
84456
84457 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84458
84459         * modules/hard-locale (Depends-on): Add strdup.
84460
84461 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84462
84463         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84464         convert T2, not T.  (Imported from libc.)
84465
84466 2004-11-30  Simon Josefsson  <jas@extundo.com>
84467
84468         * modules/restrict (License): Change to LGPL.
84469
84470 2004-11-30  Simon Josefsson  <jas@extundo.com>
84471
84472         * m4/restrict.m4: Add copyright and copying conditions.
84473
84474 2004-11-30  Simon Josefsson  <jas@extundo.com>
84475
84476         * m4/base64.m4: New file.
84477
84478 2004-11-30  Simon Josefsson  <jas@extundo.com>
84479
84480         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84481         base64.
84482
84483         * tests/test-base64.c: New file.
84484
84485         * modules/base64: New file.
84486
84487 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84488
84489         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84490         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84491
84492         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84493
84494 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84495
84496         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84497         (__getcwd.c): Don't restore errno; glibc doesn't.
84498         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84499         first, falling back to our code only if its results look suspicious.
84500         Ensure that the resulting buffer is only as large as necessary.
84501
84502         * lib/readutmp.c: Include readutmp.h first.
84503         Include <errno.h>, since readutmp.h no longer does that.
84504         * lib/readutmp.h: Don't include <errno.h>,
84505         <sys/param.h>, <time.h>; not needed to establish interface.
84506         (errno): Remove decl.
84507         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84508         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84509         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84510
84511 2004-11-28  Simon Josefsson  <jas@extundo.com>
84512
84513         * lib/base64.h, base64.c: New file.
84514
84515 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84516
84517         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84518
84519 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84520
84521         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84522         (Depends-on): Remove pathmax, same.  Add mempcpy.
84523         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84524         (Makefile.am): Append getcwd.h to lib_SOURCES.
84525         (Include): Add getcwd.h.
84526         (Maintainer): Change from Jim Meyering to "all, glibc",
84527         since getdate now uses intended-for-glibc code.
84528         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84529         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84530
84531 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84532
84533         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84534         HP's ANSI C compiler.
84535         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84536         Declaring int functions causes warnings on some modern systems and
84537         shouldn't be needed to compile on ancient ones.
84538         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84539         defined.
84540
84541         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84542         with the following changes.
84543         (__set_errno): Parenthesize properly.
84544         Include <stdbool.h>.
84545         (MIN, MAX, MATCHING_INO): New macros.
84546         (__getcwd): Define with prototype, not K&R form.
84547         Use heuristics to allocate default buffer on stack if possible.
84548         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84549         behavior, and to avoid the PATH_MAX limit when computing
84550         ../../../../...
84551         Use MATCHING_INO to compare inode number to file.
84552         Check for arithmetic overflow in size calculations.
84553         Fix bug in reallocation of dot array that caused getcwd to fail
84554         on directories nested deeper than 75.
84555         Be more careful about saving errno on error.
84556         Do not use realloc; use only free+malloc, as this is a bit
84557         more flexible and avoids a needless copy operation.
84558         Do not inspect st_dev and st_ino for symbolic links; POSIX
84559         doesn't specify the latter.
84560         Check for closedir errors.
84561         Avoid needless casts.
84562         Use "#ifdef weak_alias" around weak_alias, to be like other
84563         glibc code.
84564         The following changes to getcwd.c have effect only when used in
84565         gnulib; they have no effect inside glibc proper.
84566         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84567         as alloca isn't used.
84568         (alloca, __alloca): Likewise.
84569         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84570         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84571         unconditionally, as gnulib assumes C89 or better.
84572         Do not include <sys/param.h>.
84573         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84574         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84575         better.
84576         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84577         Include <dirent.h> in a way that is compatible with modern Autoconf.
84578         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84579         New macros, if not already defined.
84580         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84581         Use "_LIBC", not "defined _LIBC", for consistency.
84582         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84583         a mempcpy module.
84584         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84585         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84586         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84587         credit only to Jim Meyering and adjust the copyright dates.
84588         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84589         <stdlib.h>, <unistd.h>, "pathmax.h".
84590         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84591         (INITIAL_BUFFER_SIZE): Remove.
84592         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84593
84594 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84595
84596         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84597         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84598         Use the _ONCE methods, for efficiency.
84599         Check for fcntl.h.  In test program, include <errno.h>
84600         and <fcntl.h> if available.  Remove old K&R cruft from
84601         test program.  Check for common errors in GNU/Linux,
84602         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84603         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84604         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84605         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84606         name accordingly.
84607         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84608         accommodate new getcwd.c.
84609         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84610         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84611         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84612         that's all we need now.
84613
84614 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84615
84616         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84617         argp-parse.c depends on getopt internals, that means we should
84618         always use our getopt, to be on the safe side.
84619         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84620         order not to spoil the result of an eventual previous invocation
84621         of gl_GETOPT_SUBSTITUTE.
84622
84623 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84624
84625         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84626         redefinition warnings. To avoid them, include the defines
84627         in `#if !defined __need_getopt ... #endif'. The only place
84628         where __getopt_argv_const is used is in definitions
84629         of getopt_long and getopt_long_only below, which are as well
84630         protected by `#ifndef __need_getopt'.
84631         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84632         __need_getopt after including <stdio.h> and <unistd.h> These
84633         headers might have defined it.
84634
84635 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84636
84637         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84638
84639 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84640
84641         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84642         (futimens): New function, which uses futimes if available.
84643         (futimens, utimens): Support timespec==NULL, with same semantics
84644         as utime and utimens.
84645         * lib/utimens.h (futimens): New decl.
84646
84647 2004-11-23  Jim Meyering  <jim@meyering.net>
84648
84649         * lib/getopt_.h: Remove trailing blanks.
84650
84651 2004-11-23  Jim Meyering  <jim@meyering.net>
84652
84653         * lib/__fpending.c: Add comment.
84654
84655 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84656
84657         * modules/canonicalize (Depends-on): Add xreadlink.
84658         Problem reported by James Youngman.
84659
84660 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84661
84662         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84663         New macros.
84664         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84665         optopt): Use them instead of invoking ## directly; otherwise, the
84666         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84667
84668 2004-11-19  Bruno Haible  <bruno@clisp.org>
84669
84670         * lib/strtok_r.c: Move comments from here...
84671         * lib/strtok_r.h: ... to here.
84672
84673 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84674
84675         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84676         implementations that mishandle size_t overflow.
84677
84678 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84679
84680         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84681         might fail.  Problem reported by Yoann Vandoorselaere.
84682         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84683         implementations that mishandle size_t overflow.
84684
84685 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84686
84687         * modules/canon-host (Depends-on): Add strdup.
84688
84689 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84690
84691         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84692
84693 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84694
84695         * lib/canon-host.c: Include "strdup.h".
84696         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84697         Use strdup instead of malloc/strcpy to duplicate strings.
84698
84699         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84700         (human_space_before_unit): New constant.
84701         * lib/human.c (human_readable): Support it.
84702
84703         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84704         (xgetcwd): Set errno correctly when failing.
84705         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84706         the failure is actually due to a PATH_MAX problem.
84707
84708         Further getopt changes to make it more likely that glibc will
84709         buy the changes back.
84710         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84711         (getopt): Use it, so to preserve glibc semantic
84712         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84713         when compiling for libc.
84714         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84715         (getopt_long, getopt_long_only): Use it.
84716
84717         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84718         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84719         (getopt): Argv is now char * const *, as per standard.
84720         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84721         not char *__getopt_argv_const *.
84722         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84723         _getopt_long_only_r): Likewise.
84724         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84725         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84726         _getopt_long_r, _getopt_long_only_r): Likewise.
84727         * lib/getopt_.h (__getopt_argv_const): Remove.
84728         (getopt): Argv is now char * const *, as per standard.
84729
84730         * lib/getdate.y (tORDINAL): New token.
84731         (day, relunit): Allow it for relative times.
84732         (relative_time_table): Use tORDINAL for ordinals.
84733
84734 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84735
84736         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84737         Document that "second" isn't allowed as an ordinal number.
84738
84739 2004-11-16  Jim Meyering  <jim@meyering.net>
84740
84741         * modules/closeout (Depends-on): Add fpending.
84742
84743 2004-11-15  Jim Meyering  <jim@meyering.net>
84744
84745         * lib/closeout.c: Include "__fpending.h" once again.
84746         Include <stdbool.h>.
84747         (close_stdout): Don't fail just because stdout was closed initially,
84748         since some programs don't write to stdout in the normal course of
84749         operation (other than --version and --help), and we don't want this
84750         function to make e.g. `touch file >&-' fail.
84751         But do fail if it was closed and someone has tried to write to it.
84752         E.g., `printf foo >&-' must fail.
84753
84754 2004-11-13  Jim Meyering  <jim@meyering.net>
84755
84756         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84757
84758 2004-11-12  Simon Josefsson  <jas@extundo.com>
84759
84760         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84761         small doc fix is still pending.
84762
84763 2004-11-11  Simon Josefsson  <jas@extundo.com>
84764
84765         * modules/strtok_r: New file.
84766
84767         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84768         strtok_r.
84769
84770 2004-11-11  Simon Josefsson  <jas@extundo.com>
84771
84772         * m4/strtok_r.m4: New file.
84773
84774         * m4/getopt.m4: Replace opterr.
84775
84776 2004-11-11  Simon Josefsson  <jas@extundo.com>
84777
84778         * lib/strtok_r.h, strtok_r.c: New file.
84779
84780 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84781
84782         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84783         of replacing opterr, getopt, etc.  This should handle the
84784         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84785
84786 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84787
84788         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84789         we can stop lying to compilers about the constness of argv when we
84790         are compiled outside glibc.
84791         (getopt, getopt_long, getopt_long_only): Use it.
84792         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84793         _getopt_internal, getopt): Likewise.
84794         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84795         _getopt_long_only_r): Likewise.
84796         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84797         _getopt_long_r, _getopt_long_only_r): Likewise.
84798
84799         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84800         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84801         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84802         the other external symbols.
84803         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84804         declaration, since the above renaming now works around collisions.
84805
84806 2004-11-11  Jim Meyering  <jim@meyering.net>
84807
84808         * lib/linebreak.c: Remove trailing blanks.
84809         * lib/alloca_.h: Likewise.
84810         * lib/acosl.c: Likewise.
84811         * lib/euidaccess.c: Likewise.
84812         * lib/allocsa.h: Likewise.
84813
84814 2004-11-10  Simon Josefsson  <jas@extundo.com>
84815
84816         * m4/getaddrinfo.m4: New file.
84817
84818 2004-11-10  Simon Josefsson  <jas@extundo.com>
84819
84820         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84821
84822 2004-11-10  Simon Josefsson  <jas@extundo.com>
84823
84824         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84825         getaddrinfo.
84826
84827         * modules/getaddrinfo: New file.
84828
84829 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84830
84831         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84832
84833 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84834
84835         * lib/mktime.c (SHR): New macro, which is a portable
84836         substitute for >> that should work even on Crays.
84837         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84838         Problem reported by Mark D. Baushke in
84839         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84840         * lib/getdate.y (SHR): Likewise.
84841         (tm_diff): Use it.
84842         * lib/strftime.c (SHR): Likewise.
84843         (tm_diff): Use it.
84844         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84845         quote_these_too, so that right shifts are well defined.  All uses
84846         changed.
84847
84848 2004-11-10  Jim Meyering  <jim@meyering.net>
84849
84850         Ensure that no close failure goes unreported.
84851         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84852         return early when it seems there's nothing to flush.
84853         Don't include __fpending.h.
84854
84855 2004-11-10  Jim Meyering  <jim@meyering.net>
84856
84857         * modules/closeout (Depends-on): Remove fpending.
84858
84859 2004-11-10  Jim Meyering  <jim@meyering.net>
84860
84861         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84862
84863 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84864
84865         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84866         gl_FUNC_STRFTIME.
84867         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84868         and AC_REQUIRE when possible, to avoid duplicate checks.
84869         Check for <wchar.h>.
84870
84871 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84872
84873         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84874
84875 2004-11-09  Bruno Haible  <bruno@clisp.org>
84876
84877         * m4/sockpfaf.m4: New file.
84878
84879 2004-11-05  Bruno Haible  <bruno@clisp.org>
84880
84881         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84882         Reported by Mark D. Baushke <mdb@cvshome.org>.
84883
84884 2004-11-04  Bruno Haible  <bruno@clisp.org>
84885
84886         2004-09-11  Bruno Haible  <bruno@clisp.org>
84887                 * allocsa.valgrind: New file.
84888         2004-02-06  Bruno Haible  <bruno@clisp.org>
84889                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84890                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84891                 Reported by Christopher Seip <chris.seip@hp.com>.
84892
84893 2004-11-04  Bruno Haible  <bruno@clisp.org>
84894
84895         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84896         (Makefile.am): Distribute it.
84897
84898 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84899
84900         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84901         with errno == ERANGE if the buffer is too small.
84902         Problem reported by Mark D. Baushke.
84903
84904 2004-11-03  Albert Chin  <china@thewrittenword.com>
84905             Paul Eggert  <eggert@cs.ucla.edu>
84906
84907         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84908         equivalent, substitute $ac_type for equivalent type rather than
84909         blindly using uint32_t *always* which won't work if uint32_t is not
84910         available.  Define _UINT32_T to work around typedef of uint32_t if
84911         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84912         2.5.1.
84913
84914 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84915
84916         * m4/jm-macros.m4: Sync from coreutils.
84917         (gl_MACROS): Check for mbrlen, for pathchk.
84918         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84919
84920 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84921
84922         * lib/xreadlink.c (MAXSIZE): New macro.
84923         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84924         size does not exceed MAXSIZE.  Avoid cast.
84925         As suggested by Mark D. Baushke in
84926         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84927         if readlink fails with buffer size just under MAXSIZE, try again
84928         with MAXSIZE.
84929
84930 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84931
84932         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84933
84934 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84935         and  Paul Eggert  <eggert@cs.ucla.edu>
84936
84937         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84938         (get_date): Overparenthesize to avoid GCC warning.
84939
84940 2004-11-02  Bruno Haible  <bruno@clisp.org>
84941
84942         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84943         returns void.
84944
84945 2004-11-02  Bruno Haible  <bruno@clisp.org>
84946
84947         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84948         function returns void.
84949
84950 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84951
84952         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84953         fflush_unlocked, flockfile, funlockfile, funlockfile,
84954         fputs_unlocked, putc_unlocked.
84955
84956 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84957
84958         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84959         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84960         already declared.
84961
84962 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84963
84964         * modules/getdate (Files): Add doc/getdate.texi.
84965         (Depends-on): Add setenv, xalloc.
84966
84967 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84968
84969         * lib/getdate.y: Add support for TZ="foo" within a date string.
84970         Fix some bugs near time_t boundaries.  Reject dates with
84971         out-of-range components, e.g., "Sept 31".
84972         Include <stdlib.h>, "setenv.h", "xalloc.h".
84973         (ISDIGIT_LOCALE): Remove; unused.
84974         Note that the TZ and time functions used here are not reentrant.
84975         (mktime_ok, get_tz): New functions.
84976         (TZBUFSIZE): New constant.
84977         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84978         This requires that we sometimes generate our own TZ="XXX..." setting.
84979
84980 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84981
84982         * doc/getdate.texi: New file, from coreutils with modifications for
84983         the new TZ parsing.
84984
84985 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84986
84987         * lib/mktime.c (not_equal_tm): Remove redundant check.
84988
84989 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84990
84991         * modules/regex (lib_SOURCES): Add regex.c.
84992         Reported by James Youngman in
84993         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84994
84995 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84996
84997         * lib/getdate.y: Use Bison 1.875 features, and some minor
84998         code cleanups.  This change does not affect semantics.
84999         Don't include <stdlib.h>; no longer needed.
85000         Don't include unlocked-io.h; only the "#if TEST" code uses
85001         stdio, and performance isn't crucial there.
85002         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85003         Bison 1.875 features as described below.
85004         All uses of "PC." replaced by "pc->".
85005         (YYSTYPE): Add a forward declaration.
85006         (yylex, yyerror): Use full prototypes in forward decls.
85007         Use "%pure-parser" rather than obsolescent "%pure_parser".
85008         Use %parse-param and %lex-param instead of obsolescent
85009         YYPARSE_PARAM and YYLEX_PARAM.
85010         (meridian_table, month_and_day_table, time_units_table,
85011         relative_time_table, time_zone_table, military_table,
85012         lookup_zone, lookup_word, get_date):
85013         Use NULL instead of 0 where appropriate.
85014         (to_hour): Avoid abort (), to avoid a dependency on
85015         stdlib.h.
85016         (yyerror, yylex): Now accepts parser_control * arg.
85017         (main) [TEST]: Use '\0' rather than 0 for char.
85018
85019 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85020
85021         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85022
85023 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85024
85025         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85026         It's now the caller's responsibility to handle the case where
85027         !HAVE_GETPAGESIZE && !defined getpagesize.
85028
85029         * lib/mktime.c (leapyear): Arg is long int, not int.
85030
85031 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85032
85033         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85034
85035 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85036
85037         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85038         missing.  Problem reported by James Youngman.
85039
85040 2004-10-16  Simon Josefsson  <jas@extundo.com>
85041
85042         * gnulib-tool: Fix comments.  Fix parse problem.
85043         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85044
85045 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85046
85047         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85048         implementation of getopt_long.  Problem reported by Alexander Taler in:
85049         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85050
85051 2004-10-15  Bruno Haible  <bruno@clisp.org>
85052
85053         * gnulib-tool: Untabify. Initialize supplied_libname.
85054         (func_usage): More homogenous output.
85055         (func_modules_transitive_closure, func_modules_to_filelist,
85056         func_emit_lib_Makefile_am): New functions.
85057         (func_import): New function, extracted from big case statement. Use
85058         func_get_license, func_modules_transitive_closure,
85059         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85060         opt_lgpl. Don't use test -a, as it's not portable.
85061         (func_create_testdir): Use func_modules_transitive_closure,
85062         func_modules_to_filelist, func_emit_lib_Makefile_am.
85063
85064 2004-10-15  Bruno Haible  <bruno@clisp.org>
85065
85066         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85067
85068 2004-10-15  Bruno Haible  <bruno@clisp.org>
85069
85070         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85071         the portions belonging to each module.
85072         Suggested by Derek Robert Price <derek@ximbiot.com>.
85073
85074 2004-10-12  Simon Josefsson  <jas@extundo.com>
85075
85076         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85077         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85078         to real functions.
85079
85080 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85081
85082         * modules/vsnprintf: New file.
85083
85084 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85085
85086         * m4/vsnprintf.m4: New file.
85087
85088 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85089
85090         * lib/vsnprintf.h: New file.
85091         * lib/vsnprintf.c: New file.
85092
85093 2004-10-11  Bruno Haible  <bruno@clisp.org>
85094
85095         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85096         vsnprintf.
85097
85098 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85099
85100         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85101
85102 2004-10-07  Bruno Haible  <bruno@clisp.org>
85103
85104         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85105         fits into the provided buffer.
85106
85107 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85108
85109         * lib/diacrit.c, diacrit.h: Add GPL notice.
85110
85111         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85112         notice.
85113         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85114         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85115         This avoids a potential constant-folding bug.
85116
85117 2004-10-05  Bruno Haible  <bruno@clisp.org>
85118
85119         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85120         for the declaration of strsep.
85121
85122 2004-10-05  Bruno Haible  <bruno@clisp.org>
85123
85124         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85125
85126 2004-10-04  Simon Josefsson  <jas@extundo.com>
85127
85128         * modules/memmem: New file.
85129         * tests/test-memmem.c: New file.
85130         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85131
85132 2004-10-04  Simon Josefsson  <jas@extundo.com>
85133
85134         * m4/memmem.m4: New file.
85135
85136 2004-10-04  Simon Josefsson  <jas@extundo.com>
85137
85138         * lib/memmem.h: New file.
85139         * lib/memmem.c: New file, taken from glibc.
85140
85141 2004-10-04  Simon Josefsson  <jas@extundo.com>
85142
85143         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85144         '#ifdef USE_UNLOCKED_IO'.
85145
85146 2004-10-04  Simon Josefsson  <jas@extundo.com>
85147
85148         * config/srclist.txt: Add memmem from glibc.
85149
85150 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85151
85152         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85153
85154         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85155         modules/exclude, modules/getdate, modules/getline,
85156         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85157         modules/getusershell, modules/linebuffer, modules/md5,
85158         modules/mountlist, modules/posixtm, modules/readtokens,
85159         modules/readutmp, modules/regex, modules/sha1,
85160         modules/version-etc, modules/yesno:
85161         Remove dependency on unlocked-io.
85162
85163 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85164
85165         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85166
85167         * m4/unlocked-io.m4: Add copyright notice.
85168         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85169
85170 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85171
85172         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85173         * lib/xmalloc.c (xmemdup): Likewise.
85174         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85175         XFREE): Remove these long-obsolescent macros.
85176         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85177         * lib/xstrdup.c: Remove.
85178
85179         * lib/regex.c (re_comp): Cast gettext return value to char *,
85180         Problem reported by Martin Neitzel via Mark D. Baushke.
85181
85182 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85183
85184         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85185         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85186         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85187         regex.c, sha1.c, version-etc.c, yesno.c:
85188         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85189         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85190         the includer's responsibility.
85191
85192         Sync from coreutils.
85193
85194         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85195         points to the start of a string, as the C Standard says the
85196         resulting behavior is undefined.
85197
85198         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85199         simple -> simple_backups, numbered_existing ->
85200         numbered_existing_backups, numbered -> numbered_backups
85201         to avoid shadowing problems.  All uses changed.
85202         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85203         * lib/backupfile.c (check_extension, numbered_backup):
85204         Rename locals to avoid shadowing 'basename'.
85205         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85206         once.
85207
85208         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85209         * lib/.cvsignore: Add getopt.h.
85210
85211 2004-10-04  Bruno Haible  <bruno@clisp.org>
85212
85213         * modules/README: New file.
85214         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85215         not a module.
85216
85217 2004-10-02  Jim Meyering  <jim@meyering.net>
85218
85219         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85220
85221 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85222
85223         * modules/strsep: New file.
85224
85225 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85226
85227         * m4/strsep.m4: New file.
85228
85229 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85230
85231         * lib/strsep.h: New file.
85232         * lib/strsep.c: New file.
85233
85234 2004-10-01  Simon Josefsson  <jas@extundo.com>
85235
85236         * lib/snprintf.c (snprintf): Handle size==0.
85237
85238 2004-10-01  Simon Josefsson  <jas@extundo.com>
85239             Bruno Haible  <bruno@clisp.org>
85240
85241         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85242         (snprintf): Declare 'args'.
85243
85244 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85245
85246         * lib/snprintf.c: Remove comments as to why each header is needed.
85247
85248 2004-10-01  Bruno Haible  <bruno@clisp.org>
85249
85250         * MODULES.html.sh: Add strsep.
85251
85252 2004-09-30  Simon Josefsson  <jas@extundo.com>
85253
85254         * modules/snprintf: New file.
85255
85256 2004-09-30  Simon Josefsson  <jas@extundo.com>
85257
85258         * m4/snprintf.m4: New file.
85259
85260 2004-09-30  Simon Josefsson  <jas@extundo.com>
85261
85262         * lib/snprintf.h, lib/snprintf.c: New files.
85263
85264 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85265
85266         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85267         (hol_entry_help): Never translate an empty string.
85268         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85269         * lib/argp.h (OPTION_NO_TRANS): New option.
85270
85271 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85272
85273         * modules/argp (Maintainer): Replace Simon Josefsson
85274         by Sergey Poznyakoff.
85275
85276 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85277
85278         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85279         changes merged back into glibc.
85280
85281 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85282
85283         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85284
85285 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85286
85287         * lib/xvasprintf.c: Include xalloc.h.
85288         (xvasprintf): Use xalloc_die, not xmalloc_die.
85289
85290 2004-09-29  Bruno Haible  <bruno@clisp.org>
85291
85292         * modules/alloca-opt: New file, derived from modules/alloca.
85293         * modules/allocsa: Depend on alloca-opt instead of alloca.
85294         * modules/setenv: Likewise.
85295         * modules/vasnprintf: Likewise.
85296         * MODULES.html.sh: Add alloca-opt.
85297
85298 2004-09-28  Simon Josefsson  <jas@extundo.com>
85299
85300         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85301         LGPL, and to replace license template from GPL to LGPL.
85302
85303 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85304
85305         * modules/dummy: Change license to LGPL.
85306
85307 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85308
85309         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85310
85311 2004-09-24  Simon Josefsson  <jas@extundo.com>
85312
85313         * modules/minmax (License): Change from GPL to LGPL.
85314
85315 2004-09-23  Simon Josefsson  <jas@extundo.com>
85316
85317         * gnulib-tool (--import): Typo.
85318
85319 2004-09-23  Simon Josefsson  <jas@extundo.com>
85320
85321         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85322
85323 2004-09-22  Bruno Haible  <bruno@clisp.org>
85324
85325         * modules/*: Add 'License' field.
85326         * gnulib-tool: Accept --extract-license option.
85327         (func_get_license): New function.
85328
85329 2004-09-21  Bruno Haible  <bruno@clisp.org>
85330
85331         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85332         Reported by Simon Josefsson.
85333
85334 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85335
85336         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85337         gl_AC_TYPE_LONG_LONG.
85338
85339 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85340
85341         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85342
85343 2004-09-18  Simon Josefsson  <jas@extundo.com>
85344         and  Paul Eggert  <eggert@cs.ucla.edu>
85345
85346         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85347         calls with autoreconf.  Define GL_LIB.
85348
85349 2004-09-14  Karl Berry  <karl@gnu.org>
85350
85351         * config/srclist.txt: unsync setenv.c, sigh.
85352
85353 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85354
85355         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85356         Problem reported by Bruno Haible in:
85357         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85358
85359 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85360
85361         * config/srclist.txt: Comment out argp-pvh.c.
85362
85363 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85364
85365         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85366         in case some system header has #define'd it.  Problem reported by
85367         Soeren D. Schulze in
85368         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85369
85370 2004-09-09  Karl Berry  <karl@gnu.org>
85371
85372         * regex.[ch]: delete from the root.  These were supposed to be
85373                 synced with emacs cvs, but this has not happened for about
85374                 a year, and anyway nothing else uses emacs regex.[ch].
85375                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85376                 lib/regex[.ch] is untouched.
85377
85378 2004-09-09  Bruno Haible  <bruno@clisp.org>
85379
85380         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85381
85382 2004-09-09  Bruno Haible  <bruno@clisp.org>
85383
85384         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85385         modifications.
85386         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85387
85388 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85389
85390         * modules/xvasprintf: New file.
85391         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85392
85393 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85394
85395         * lib/xvasprintf.h: New file.
85396         * lib/xvasprintf.c: New file.
85397         * lib/xasprintf.c: New file.
85398
85399 2004-09-08  Bruno Haible  <bruno@clisp.org>
85400
85401         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85402
85403 2004-09-08  Bruno Haible  <bruno@clisp.org>
85404
85405         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85406         length is > INT_MAX.
85407         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85408         more.
85409
85410 2004-09-08  Bruno Haible  <bruno@clisp.org>
85411
85412         * lib/stdint_.h: New file, taken from GNU clisp.
85413
85414 2004-09-08  Bruno Haible  <bruno@clisp.org>
85415             Oskar Liljeblad  <oskar@osk.mine.nu>
85416
85417         * modules/stdint: New file.
85418         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85419
85420 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85421
85422         Import from coreutils.
85423         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85424         strings on unbounded length.  alloca's performance benefits aren't
85425         that important here.
85426         (V_STRDUP): Remove.
85427         (parse_with_separator): New function, with most of the internals
85428         of the old parse_user_spec.  Allow user to omit both user and group,
85429         for compatibility with FreeBSD.
85430         Clone only the user name, not the entire spec.
85431         Do not set *uid, *gid unless entirely successful.
85432         Avoid memory leak in some failing cases.
85433         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85434         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85435         (parse_user_spec): Rewrite to use parse_with_separator.
85436
85437 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85438
85439         * modules/userspec: Don't depend on alloca.
85440
85441 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85442
85443         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85444
85445 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85446
85447         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85448         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85449         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85450
85451 2004-08-16  Simon Josefsson  <jas@extundo.com>
85452
85453         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85454         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85455         Add --dry-run for --import.
85456         Let user provided command line parameters override configure.ac
85457         settings.
85458
85459 2004-08-12  Simon Josefsson  <jas@extundo.com>
85460
85461         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85462         as discussed with Paul Eggert in threads rooted at
85463         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85464         and
85465         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85466         Before, the test was empty, and relied on ELIDE_CODE in source
85467         code.)
85468         (gl_PREREQ_GETOPT): New macro.
85469         (gl_GETOPT): Use them.
85470
85471 2004-08-12  Simon Josefsson  <jas@extundo.com>
85472
85473         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85474         * lib/getopt_.h: Renamed from getopt.h.
85475
85476 2004-08-12  Simon Josefsson  <jas@extundo.com>
85477
85478         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85479         Change default library name from libfoo to libgnu.
85480         Now, if you have a configure.ac that says:
85481                 gl_SOURCE_BASE(gl)
85482                 gl_M4_BASE(gl/m4)
85483                 gl_MODULES(error getopt etcetera)
85484                 gl_INIT
85485         you can import all you need by running:
85486                 ../gnulib/gnulib-tool --import
85487
85488         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85489         (Makefile.am): Rewrite, use logic from argz.
85490         (Include): Use <getopt.h> instead of "getopt.h".
85491
85492 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85493
85494         * modules/argp (Files): Add m4/unlocked-io.m4.
85495         (Depends-on): Add extensions.
85496
85497 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85498
85499         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85500         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85501         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85502         Check for program_invocation_name, program_invocation_short_name,
85503         flockfile, funlockfile, features.h, _getopt_long_only_r.
85504
85505 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85506
85507         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85508         its complicated substitute.
85509         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85510         and program_invocation_name.
85511         (__argp_basename) [!_LIBC]: Remove; the only use was
85512         replaced by its body.
85513         (__argp_short_program_name): Change condition from
85514         !defined __argp_short_program_name to
85515         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85516         to match argp-namefrob.h.
85517         (__argp_failure): Don't assume strerror_r returns char *.
85518         * lib/argp-parse.c (N_): Define unconditionally.
85519         (argp_default_options): Fill out initializers with 0 to avoid
85520         gcc warnings.
85521
85522 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85523
85524         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85525         getopt1.c.
85526
85527 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85528
85529         Merge from coreutils.
85530
85531         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85532
85533         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85534         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85535
85536 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85537
85538         Merge from coreutils.
85539
85540         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85541         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85542         for Reliant Unix 5.43.
85543
85544         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85545         (union fooround): Use uintmax_t, not long int.
85546         The rest is a merge from libc:
85547         [defined _LIBC]: Include <shlib-compat.h>.
85548         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85549
85550         * lib/settime.c (settime): Recode to avoid warning with
85551         Sun Forte C 6U2.
85552
85553         * lib/strverscmp.c: Convert to UTF-8.
85554
85555 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85556
85557         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85558         m4/uintmax_t.m4.
85559
85560 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85561
85562         * modules/xalloc-die: New file.
85563         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85564
85565         * modules/md5 (Files): Add m4/uint32_t.m4.
85566         * modules/sha1: Renamed from modules/sha.
85567         (Files):
85568         Rename lib/sha.h to lib/sha1.h.
85569         Rename lib/sha.c to lib/sha1.c.
85570         Rename m4/sha.m4 to m4/sha1.m4.
85571         (lib_SOURCES): Likewise.
85572         (configure.ac): Rename gl_SHA to gl_SHA1.
85573         (Include): sha.h -> sha1.h.
85574
85575 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85576
85577         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85578         * m4/sha1.m4: Renamed from sha.m4.
85579         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85580
85581 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85582
85583         * lib/obstack.h (obstack_empty_p):
85584         Don't assume that chunk->contents is suitably aligned.
85585         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85586         Likewise. Problem reported by Benno in
85587         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85588
85589         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85590         readable.  This could be improved further but it'd take some work.
85591
85592 2004-08-08  Simon Josefsson  <jas@extundo.com>
85593
85594         * modules/xgethostname (Depends-on): Remove exit and error (not
85595         used).
85596
85597         * modules/getpass-gnu: Add getpass.h.
85598         (Depends-on): Add stdbool.
85599         * modules/getpass: Add getpass.h.
85600
85601 2004-08-08  Simon Josefsson  <jas@extundo.com>
85602
85603         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85604         Check getpass declaration.
85605
85606 2004-08-08  Simon Josefsson  <jas@extundo.com>
85607
85608         * lib/xgethostname.c: Don't include error.h (not used).
85609
85610         * lib/getpass.h: Add.
85611         * lib/getpass.c: Include getpass.h first.
85612
85613 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85614
85615         * lib/xalloc-die.c: New file.
85616         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85617         All uses removed.
85618         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85619         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85620         xalloc-die.c.
85621         (_, N_, xalloc_die): Move to xalloc-die.c.
85622         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85623         so that we needn't mess with xalloc_msg_memory_exhausted.
85624
85625         * lib/sha1.h: Renamed from sha.h.
85626         (SHA1_H): Renamed from _SHA_H.
85627         (sha1_ctx): Renamed from sha_ctx.
85628         (sha1_init_ctx): Renamed from sha_init_ctx.
85629         (sha1_process_block): Renamed from sha_process_block.
85630         (sha1_process_bytes): Renamed from sha_process_bytes.
85631         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85632         (sha1_read_ctx): Renamed from sha_read_ctx.
85633         (sha1_stream): Renamed from sha_stream.
85634         (sha1_buffer): Renamed from sha_buffer.
85635         * lib/sha1.c: Likewise; renamed from sha.c.
85636         Do not include <sys/types.h>.
85637         Include <stddef.h> rather than <stdlib.h>.
85638
85639 2004-08-08  Bruno Haible  <bruno@clisp.org>
85640
85641         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85642         FILESYSTEM_PREFIX_LEN.
85643         * lib/progreloc.c: Likewise.
85644         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85645
85646 2004-08-06  Simon Josefsson  <jas@extundo.com>
85647
85648         * modules/progname (Depends-on): Don't depend on stdbool.
85649
85650 2004-08-06  Simon Josefsson  <jas@extundo.com>
85651
85652         * modules/getsubopt: New file.
85653         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85654         getsubopt.
85655
85656 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85657
85658         More merge from coreutils.
85659
85660         * m4/utimens.m4, m4/utimecmp.m4: New files.
85661         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85662         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85663         prereq.m4, sha.m4: Import changes from coreutils.
85664
85665 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85666
85667         More merge from coreutils.
85668         * modules/raise, modules/readtokens0, modules/utimens:
85669         * modules/utimecmp, module/xnanosleep: New files.
85670         * modules/strftime: Add lib/strftime.h.
85671         Change include from <time.h> to "strftime.h".
85672         * modules/yesno: Add lib/yesno.h.
85673         * modules/backupfile: Remove lib/addext.c.
85674         * modules/euidaccess: Add stat-macros.h.
85675         * modules/canonicalize, modules/euidaccess,
85676         modules/filemode, modules/lchown, modules/makepath,
85677         modules/rmdir, modules/stat: Likewise.
85678
85679 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85680
85681         Merge from tar.
85682         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85683         SIZE_MAX is a valid preprocessor constant.
85684         (__argp_basename): Change from "#ifndef _LIBC"
85685         to "#ifndef __argp_short_program_name", so that
85686         we don't compile these functions for tar.
85687
85688         More merges from coreutils.
85689         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85690         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85691         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85692         * lib/addext.c: Remove; no longer needed.
85693         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85694         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85695         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85696         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85697         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85698         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85699         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85700         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85701         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85702         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85703         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85704         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85705         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85706         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85707         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85708         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85709         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85710         Import changes from coreutils.
85711
85712 2004-08-05  Simon Josefsson  <jas@extundo.com>
85713
85714         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85715
85716 2004-08-05  Simon Josefsson  <jas@extundo.com>
85717
85718         * m4/getsubopt.m4: New file.
85719
85720 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85721
85722         Merge from coreutils.
85723
85724         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85725         * m4/getcwd-path-max.m4: New files.
85726
85727         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85728         FILESYSTEM_PREFIX_LEN ->
85729         FILE_SYSTEM_PREFIX_LEN.
85730         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85731         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85732         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85733         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85734
85735         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85736         prerequisite modules now handle the DOS stuff.
85737         Don't check for unistd.h.
85738
85739 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85740
85741         Merge from coreutils.
85742
85743         * lib/.gdb-history: Remove; this doesn't belong here.
85744
85745         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85746         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85747         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85748         * lib/getcwd.c: New files.
85749
85750         * lib/dirname.h: Include <stdbool.h>.
85751         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85752         for consistency with POSIX terminology.  All uses changed.
85753         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85754         (strip_trailing_slashes): Use bool for booleans.
85755         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85756
85757         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85758         sometimes returns a positive errno value even when it succeeds.
85759         (print_errno_message) [!LIBC]: Fall back on strerror if
85760         __strerror_r fails.
85761
85762         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85763         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85764         (longest_relative_suffix): New function.
85765         (path_concat): Use it.  Assume first argument is not NULL.
85766         Port to DOS.  Omit redundant separators.
85767         Report an error instead of returning NULL.
85768         Use mempcpy instead of memcpy.
85769         (xpath_concat): Remove: not declared or used.
85770
85771         * lib/same.h: Include <stdbool.h>
85772         (same_name): Return bool, not int.
85773         * lib/same.c (same_name): Likewise.
85774         (errno): Don't declare; we assume C89 or better now.
85775
85776         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85777         if not already defined.
85778
85779         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85780         * lib/dup-safer.c (errno): Likewise.
85781
85782 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85783
85784         Merge from coreutils.
85785         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85786         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85787         * modules/path-concat: Don't depend on strdup.
85788
85789 2004-08-03  Simon Josefsson  <jas@extundo.com>
85790
85791         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85792         * lib/progname.h: Don't include stdbool.h.
85793
85794 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85795
85796         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85797         * MODULES.html.sh (func_all_modules): Remove fatal.
85798
85799 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85800
85801         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85802
85803 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85804
85805         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85806         working.
85807
85808 2004-08-02  Simon Josefsson  <jas@extundo.com>
85809
85810         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85811         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85812         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85813
85814 2004-08-01  Simon Josefsson  <jas@extundo.com>
85815
85816         * lib/xgetdomainname.c: Include stdlib.h, for free().
85817
85818 2004-07-19  Bruno Haible  <bruno@clisp.org>
85819
85820         * MODULES.html.sh (func_all_modules): Add dummy.
85821
85822 2004-07-16  Simon Josefsson  <jas@extundo.com>
85823
85824         * modules/dummy: New file.
85825
85826 2004-07-16  Simon Josefsson  <jas@extundo.com>
85827
85828         * lib/dummy.c: New file.
85829
85830 2004-07-16  Bruno Haible  <bruno@clisp.org>
85831
85832         * lib/backupfile.h: Add extern "C" for C++.
85833         * lib/closeout.h: Likewise.
85834         * lib/copy-file.h: Likewise.
85835         * lib/findprog.h: Likewise.
85836         * lib/full-write.h: Likewise.
85837         * lib/pathname.h: Likewise.
85838         * lib/progname.h: Likewise.
85839         * lib/stpcpy.h: Likewise.
85840         * lib/stpncpy.h: Likewise.
85841         * lib/strcase.h: Likewise.
85842         * lib/strstr.h: Likewise.
85843         * lib/xalloc.h: Likewise.
85844
85845         * lib/mbswidth.h: Add extern "C" for C++.
85846         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85847
85848 2004-07-13  Robert Millan  <robertmh@gnu.org>
85849
85850         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85851
85852 2004-07-09  Simon Josefsson  <jas@extundo.com>
85853
85854         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85855         failed without this.)
85856
85857 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85858
85859         * modules/chown (Files): Add lib/fchown-stub.c, since
85860         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85861
85862 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85863
85864         * lib/fchown-stub.c: New file.
85865
85866 2004-06-24  Jim Meyering  <jim@meyering.net>
85867
85868         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85869
85870 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85871
85872         * modules/argz: Omit "#include".
85873
85874         * MODULES.html.sh (func_all_modules): Add calloc, to match
85875         2004-06-01 addition of calloc module.
85876
85877 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85878
85879         * m4/argz.m4: New file, which is autoupdated from libtool.
85880
85881 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85882
85883         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85884         libtool.
85885
85886 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85887
85888         * config/srclist-update: Don't insist on "USA." before the
85889         close-comment, as libtool omits the period and puts the */ on a
85890         separate line.
85891         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85892         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85893
85894 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85895
85896         * modules/argz: New file.
85897         * MODULES.html.sh (func_all_modules): Add argz.
85898
85899 2004-06-12  Jim Meyering  <jim@meyering.net>
85900         and  Paul Eggert  <eggert@cs.ucla.edu>
85901
85902         * modules/hash (Files): Add lib/xalloc.h.
85903         * modules/pipe (Depends-on): Add wait-process.
85904         * modules/stat (Depends-on): Add xalloc.
85905         * modules/userspec (Files): Add lib/userspec.h.
85906         * modules/xstrto
85907
85908         Upgrade from gettext-0.13.
85909         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85910         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85911         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85912
85913 2004-06-10  Jim Meyering  <jim@meyering.net>
85914
85915         * lib/calloc.c: New file.
85916
85917 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85918
85919         * lib/getdate.y (yylex): Allow space between sign and number.
85920         Problem reported by Dan Jacobson.
85921
85922 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85923
85924         Merge from coreutils CVS.
85925
85926         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85927         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85928         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85929         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85930         xstrtol.m4: Fix copyright date and/or serial number.
85931
85932         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85933         See if we need an fchown replacement.
85934         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85935         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85936         and use the replacement function if we detect either defect.
85937
85938         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85939         gl_UTIMECMP.
85940
85941 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85942         and  Jim Meyering  <jim@meyering.net>
85943
85944         Merge from coreutils CVS.
85945
85946         * lib/stat-macros.h: New file, with contents from file-type.h
85947         and coreutils' system.h.
85948         * lib/file-type.c: Include "stat-macros.h".
85949         * lib/file-type.h (file_type): Move all macro definitions to new file,
85950         stat-macros.h.
85951
85952         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85953         Wrap old code with this conditional.
85954         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85955         function that does not dereference symlinks.
85956         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85957
85958         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85959         dependency problems.
85960         (xreadlink): Accept new arg SIZE, for efficiency.
85961         All decls and uses changed.
85962         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85963
85964         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85965         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85966
85967         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85968         sysexits.h.
85969
85970 2004-06-01  Jim Meyering  <jim@meyering.net>
85971
85972         * m4/calloc.m4: New file.
85973
85974 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85975
85976         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85977         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85978         Also, fix a typo in a diagnostic.
85979
85980 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85981
85982         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85983         or AC_FUNC_REALLOC.
85984
85985 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85986
85987         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85988         macros to be defined.
85989         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85990         the allocator returns NULL because the requested size is zero.
85991
85992 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85993
85994         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85995         var.  Add comment explaining why libc still defines it.  This
85996         merges the following patch from glibc:
85997         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85998
85999 2004-05-20  Andreas Schwab  <schwab@suse.de>
86000
86001         * m4/free.m4: Replace free if it not known to work, not the other
86002         way round.
86003
86004 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86005
86006         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86007         present in glibc since revision 1.1 of this file.
86008         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86009         obstack_alignment_mask, obstack_alloc, obstack_base,
86010         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86011         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86012         obstack_grow0, obstack_init, obstack_int_grow,
86013         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86014         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86015         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86016         nonexistent functions.
86017
86018 2004-05-18  Karl Berry  <karl@gnu.org>
86019
86020         * config/srclist.txt: break link for vasnprintf.c.
86021
86022 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86023
86024         Port obstack to the AS/400, where pointers are 16 bytes wide and
86025         you cannot cast an integer to a valid pointer.  This patch is
86026         currently waiting to be integrated into glibc; see
86027         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86028
86029         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86030         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86031         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86032         (struct obstack): temp member is now a union of a pointer and
86033         an integer, instead of an integer.  All integer uses changed.
86034         This does not affect the physical layout of struct obstack,
86035         except on hosts (like the AS/400) where the size or alignment of
86036         void * is greater than that of ptrdiff_t.
86037         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86038         __STDC__)]: Store temporary in pointer member of union, not
86039         integer member.
86040         * lib/obstack.c: Include <stddef.h>, for offsetof.
86041         (struct fooalign): Remove; it doesn't need a name.
86042         (union fooround): Change double to long double, and add void *.
86043         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86044         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86045         not a macro.  Hence the values are always int; so remove all
86046         casts-to-int in uses.
86047
86048 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86049
86050         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86051         we can get this patch merged into glibc.
86052
86053 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86054             Paul Eggert  <eggert@cs.ucla.edu>
86055
86056         * m4/argp: Depend on alloca.
86057
86058 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86059             Paul Eggert  <eggert@cs.ucla.edu>
86060
86061         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86062         freecoding.
86063
86064 2004-05-17  Bruno Haible  <bruno@clisp.org>
86065
86066         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86067         precision that consists of a '.' followed by an empty digit string.
86068         Patch by Tor Lillqvist <tml@iki.fi>.
86069
86070 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86071
86072         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86073         for backward compatibility with older code.  We need our own
86074         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86075         it under some other name, and our alloca.h will define it.
86076
86077 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86078             Derek Price  <derek@ximbiot.com>
86079
86080         * lib/alloca.c: Include <alloca.h>, to get our interface.
86081         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86082         include <alloca.h> first.  Use C89 prototype for alloca; this
86083         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86084         Use #elif for simplicity, since we can assume C89 now.
86085         Don't try to source the system alloca.h since it will not be found
86086         and to prevent recursively including its replacement.
86087         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86088         * lib/regex.c: Likewise.
86089
86090 2004-05-16  Derek Price  <derek@ximbiot.com>
86091             Paul Eggert  <eggert@cs.ucla.edu>
86092
86093         getline cleanup.  This changes the getndelim2 API: both order of
86094         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86095         no delimiter).
86096
86097         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86098         interface does that.
86099         (getline): Always use getdelim, so that we don't have two
86100         copies of this code.
86101         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86102         if available.
86103         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86104         (GETNDELIM2_MAXIMUM): New macro.
86105         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86106         instead of the old practice of delim2==0.  All callers changed.
86107         Return -1 on overflow, instead of returning junk.
86108         Do not set *linesize unless allocation succeeds.
86109         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86110         that we include sys/types.h.
86111         * lib/getnline.h: Likewise.
86112         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86113         (getndelim2): Reorder arguments.
86114         * lib/getnline.c (getnline, getndelim):
86115         Don't discard the NMAX argument.
86116         (getnline): Invoke getndelim, to avoid code duplication.
86117         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86118         of (size_t) -1 by callers of the getnline family.
86119
86120 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86121
86122         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86123         Check for gettimeofday.
86124         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86125         Check for settimeofday, stime.
86126
86127 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86128
86129         * lib/nanosleep.c (suspended): Change its type from int to
86130         sig_atomic_t volatile.
86131         (first_call): Make it private to rpl_nanosleep, and have it
86132         be zero initially as that's a bit faster.
86133         (my_usleep): Round up fractional times instead of truncating them,
86134         as this is the usual meaning for 'sleep'.
86135
86136         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86137         doesn't work.
86138         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86139         (ENOSYS): Define if not defined.
86140         (settime): Fall back on stime if it exists and settimeofday fails.
86141         But don't bother with fallbacks if a method fails with errno == EPERM.
86142
86143 2004-05-11  Jim Meyering  <jim@meyering.net>
86144
86145         Prior to this change, the save_cwd caller required read access to the
86146         current directory on most systems (ones with the fchdir function).
86147
86148         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86149         fails, try write-only, and finally, resort to using xgetcwd.
86150
86151 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86152
86153         * lib/obstack.c, obstack.h: Import changes from libc.
86154
86155 2004-04-28  Bruno Haible  <bruno@clisp.org>
86156
86157         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86158         also implicitly appends .exe to executables.
86159         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86160         accepts Windows pathnames.
86161         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86162         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86163         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86164         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86165         Reported by Derek Robert Price <derek@ximbiot.com>.
86166
86167 2004-04-21  Karl Berry  <karl@gnu.org>
86168
86169         * config/srclist.txt (localcharset.c): break sync.
86170
86171 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86172
86173         * m4/host-os.m4: Add a copyright notice.
86174
86175 2004-04-20  Jim Meyering  <jim@meyering.net>
86176
86177         Change UTILS_ to gl_ in AC_DEFINE'd names.
86178         Change utils_- and jm_-prefixed variables, too.
86179         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86180         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86181         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86182
86183         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86184         Don't emit trailing blanks.
86185         Also rename jm_-prefixed variables to have gl_ prefix.
86186
86187         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86188         Also rename jm_-prefixed variables to have gl_ prefix.
86189
86190         * m4/jm-macros.m4: Reflect the renamings.
86191         * m4/prereq.m4: Likewise.
86192
86193 2004-04-20  Jim Meyering  <jim@meyering.net>
86194
86195         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86196         memory.
86197
86198 2004-04-20  Jim Meyering  <jim@meyering.net>
86199             Bruno Haible  <bruno@clisp.org>
86200
86201         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86202         memory when realloc fails.
86203
86204 2004-04-19  Jim Meyering  <jim@meyering.net>
86205
86206         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86207         now that readutmp.c may call `free (0)'.
86208
86209 2004-04-19  Bruno Haible  <bruno@clisp.org>
86210
86211         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86212         * m4/inttypes_h.m4: Likewise.
86213         * m4/stdint_h.m4: Likewise.
86214         * m4/intmax_t.m4: Likewise.
86215         * m4/uintmax_t.m4: Likewise.
86216
86217 2004-04-18  Jim Meyering  <jim@meyering.net>
86218
86219         * m4/prereq.m4: Don't forbid jm_ prefix.
86220
86221         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86222         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86223         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86224         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86225         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86226         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86227         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86228         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86229         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86230         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86231         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86232         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86233         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86234         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86235         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86236         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86237         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86238         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86239         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86240
86241 2004-04-18  Jim Meyering  <jim@meyering.net>
86242
86243         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86244         failure, don't leak memory and do call END_UTMP_ENT.
86245
86246 2004-04-16  Jim Meyering  <jim@meyering.net>
86247
86248         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86249         coreutils' stat program.
86250         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86251
86252 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86253
86254         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86255         C89.
86256         (CHAR_BIT): Remove, since we assume C89.
86257         Include <stdint.h> if available, as per current Autoconf CVS advice.
86258
86259 2004-03-31  Jim Meyering  <jim@meyering.net>
86260
86261         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86262         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86263         * m4/xalloc.m4: Likewise.
86264
86265 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86266
86267         Merge from coreutils.
86268
86269         * m4/inttostr.m4: New file.
86270         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86271         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86272         Require gl_CLOCK_TIME.
86273         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86274
86275 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86276
86277         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86278         not bool, to be more consistent with Unix conventions.
86279         Suggested by Bruno Haible.
86280
86281         Merge from coreutils.
86282
86283         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86284         * lib/umaxtostr.c: New files.
86285
86286         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86287         the usual <time.h> dance.
86288         (get_date): Change signature to support fractional time stamps.
86289         All callers changed.
86290         * lib/getdate.y: Include "getdate.h" first, as we can now
86291         assume C89 and don't need to worry about 'const'.
86292         Similarly, include "unlocked-io.h" near start, not in middle.
86293         Include <limits.h>.
86294         (textint.value): Use long int rather than int.
86295         (textint.digits): Use size_t rather than int.
86296         (BILLION, LOG10_BILLION): New constants.
86297         (parser_control): New member rel_ns.  Members day_ordinal,
86298         time_zone, month, day, hour, minutes, rel_year, rel_month,
86299         rel_day, rel_hour, rel_minutes, rel_seconds
86300         are now long int, not int.  Member seconds is now struct timespec,
86301         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86302         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86303         not int.
86304         (%union.intval): Now long int, not int.
86305         New member timespec.
86306         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86307         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86308         (spec): Now is a timespec or an item list.
86309         (timespec, items): New nonterminals.
86310         (time, rel, relunit, number, get_date):
86311         Add support for fractional seconds.
86312         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86313         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86314         (to_hour): First arg is now long int, not int.
86315         (to_year): Returns long int, not int.
86316         Don't treat year -70 like 70.
86317         (tm_diff): Returns long int, not int.
86318         (lookup_word): Use bool instead of int when appropriate.
86319         (yylex): Use size_t for count, not int.
86320         Detect overflow when parsing large integer constants.
86321         Add support for fractions.
86322         (get_date): Make pointers 'const' if possible.
86323         Use more-portable code to detect integer overflow.
86324         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86325         Don't use ctime; it's not reliable if the year has >4 digits.
86326
86327         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86328         This is for compatibility with BSD.
86329
86330         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86331         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86332         From coreutils' system.h.
86333
86334         * lib/userspec.c: Don't include "posixver.h".
86335         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86336         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86337         compatible extension.  Simplify code by removing a boolean int
86338         that was always nonzero if a string was nonnull.
86339
86340 2004-03-30  Jim Meyering  <jim@meyering.net>
86341
86342         Merge from coreutils.
86343
86344         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86345         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86346         on some systems one must include <grp.h> before it.
86347         Reported by Christian Krackowizer.
86348
86349 2004-03-30  Jim Meyering  <jim@meyering.net>
86350
86351         Merge from coreutils.
86352
86353         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86354
86355         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86356         an empty input stream.
86357
86358         * lib/readtokens.c: Include <stdbool.h>.
86359         (readtoken): Use `size_t' rather than int/long.
86360         All callers adjusted.
86361         Use `bool' rather than `int' where appropriate.
86362         Use memset rather than an explicit loop.
86363         Use x2nrealloc rather than xrealloc.
86364         Allow the use of `\0' as a delimiter.
86365         (readtokens): Likewise.
86366         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86367
86368 2004-03-30  Jim Meyering  <jim@meyering.net>
86369
86370         * m4/realloc.m4: Remove file, since now it does no more than
86371         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86372         the `configure.ac' section of module/realloc.
86373         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86374
86375 2004-03-30  Bruno Haible  <bruno@clisp.org>
86376
86377         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86378         nonnull.
86379
86380 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86381
86382         Merge changes to getloadavg.c from coreutils and Emacs.
86383
86384         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86385         Define to an expression, not to the empty string.
86386         Include cloexec.h and xalloc.h.
86387         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86388         Use set_cloexec_flag rather than rolling our own.
86389         * lib/cloexec.c, lib/cloexec.h: New files.
86390
86391 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86392
86393         * m4/cloexec.m4: New file.
86394
86395 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86396
86397         * lib/getopt.h: Sync with libc CVS.
86398
86399 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86400             Bruno Haible  <bruno@clisp.org>
86401
86402         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86403         mbswidth.
86404
86405 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86406             Bruno Haible  <bruno@clisp.org>
86407
86408         * lib/mbswidth.h: Include <wchar.h> only if
86409         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86410         <wchar.h>.
86411         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86412
86413 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86414
86415         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86416         Sync with libc CVS.
86417         * lib/getopt_int.h: New file, also synced from libc.
86418
86419 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86420
86421         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86422         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86423         Bring back getopt.c, getopt.h, getopt1.c.
86424
86425 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86426
86427         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86428         All uses changed.  Check for sa_sigaction member; this fixes
86429         a bug first reported by Jason Andrade in
86430         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86431
86432 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86433
86434         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86435         '#if' expressions.  Unlike the code it replaces, it does not
86436         depend on (defined _SC_PAGESIZE).  However, it does depend on
86437         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86438         first reported by Jason Andrade in
86439         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86440
86441 2004-02-25  Simon Josefsson  <jas@extundo.com>
86442
86443         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86444
86445 2004-02-25  Simon Josefsson  <jas@extundo.com>
86446
86447         * lib/strdup.h: New file.
86448         * lib/strdup.c: Include it.
86449         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86450         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86451
86452 2004-02-23  Karl Berry  <karl@gnu.org>
86453
86454         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86455         (from fencepost.gnu.org:/gd/gnuorg).
86456
86457 2004-02-23  Karl Berry  <karl@gnu.org>
86458
86459         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86460         * config/srclist.txt: add maintain/standards documents.
86461
86462 2004-02-18  Bruno Haible  <bruno@clisp.org>
86463
86464         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86465         Reported by Derek Robert Price <derek@ximbiot.com>.
86466
86467 2004-02-16  Karl Berry  <karl@gnu.org>
86468
86469         * config/mkinstalldirs, install-sh: update from automake.
86470
86471 2004-02-06  Karl Berry  <karl@gnu.org>
86472
86473         * m4/po.m4: update from gettext 0.14.1.
86474
86475 2004-02-06  Karl Berry  <karl@gnu.org>
86476
86477         * lib/config.charset: update from gettext 0.14.1.
86478
86479 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86480
86481         Add comments and code, prompted by suggestions from Bruno Haible
86482         for sh-quote.
86483         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86484         describing the enum quoting_style values.
86485         * lib/quotearg.c (quotearg_alloc): New function.
86486         (quotearg_buffer_restyled): Treat lone { and } as special.
86487         Treat = as special.  Work around bug with older shells
86488         that "see" a '\' that is really the 2nd byte of a multibyte char.
86489         Quote empty string with shell_quoting_style.
86490
86491 2004-02-03  Bruno Haible  <bruno@clisp.org>
86492
86493         * m4/pipe.m4: New file, from GNU gettext.
86494
86495 2004-02-03  Bruno Haible  <bruno@clisp.org>
86496
86497         * lib/pipe.h: New file, from GNU gettext.
86498         * lib/pipe.c: New file, from GNU gettext.
86499
86500 2004-01-27  Bruno Haible  <bruno@clisp.org>
86501
86502         * m4/execute.m4: New file, from GNU gettext.
86503
86504 2004-01-27  Bruno Haible  <bruno@clisp.org>
86505
86506         * lib/execute.h: New file, from GNU gettext.
86507         * lib/execute.c: New file, from GNU gettext.
86508         * lib/w32spawn.h: New file, from GNU gettext.
86509
86510 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86511
86512         Merge from diffutils.
86513
86514         * lib/file-type.c (file_type): Add typed memory objects.
86515         * lib/file-type.h (S_TYPEISTMO): New macro.
86516
86517         * lib/c-stack.h (c_stack_action): Remove argv argument.
86518         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86519         (die): Don't calculate message unless segv_action returns.
86520         (get_stack_location, min_address_from_argv, max_address_from_argv,
86521         volatile stack_base, volatile_stack_size): Remove.
86522         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86523         that every segmentation violation is a stack overflow.  (Ouch!)
86524         See Debian bug 136249 (still outstanding) for more info about why
86525         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86526
86527 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86528
86529         Exit-status fix from coreutils.
86530
86531         Use exit_failure consistently in place of EXIT_FAILURE,
86532         so that program exit statuses are consistent on failure.
86533
86534         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86535         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86536         * lib/argmatch.h: Comment fix to match the above.
86537         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86538         Now a macro referring to exit_failure, instead of a separate
86539         variable.  Include "exitfail.h" to get it.
86540         * lib/xstrtol.h: Include "exitfail.h".
86541         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86542
86543         * lib/long-options.c (parse_long_options): Use prototype
86544         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86545         for clarity.
86546
86547 2004-01-21  Jim Meyering  <jim@meyering.net>
86548
86549         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86550         so as not to conflict with a different-sized __mktime_internal
86551         function in GNU libc.
86552         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86553         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86554
86555 2004-01-20  Karl Berry  <karl@gnu.org>
86556
86557         * config/config.guess: update from config.
86558
86559         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86560
86561 2004-01-20  Bruno Haible  <bruno@clisp.org>
86562
86563         Safer stack allocation.
86564         * lib/setenv.c: Include allocsa.h.
86565         (alloca): Remove fallback definition.
86566         (freea): Remove macro.
86567         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86568         instead of freea.
86569
86570 2004-01-20  Bruno Haible  <bruno@clisp.org>
86571
86572         * m4/eealloc.m4: New file, from GNU gettext.
86573
86574 2004-01-20  Bruno Haible  <bruno@clisp.org>
86575
86576         * m4/allocsa.m4: New file, from GNU gettext.
86577
86578 2004-01-20  Bruno Haible  <bruno@clisp.org>
86579
86580         * lib/xallocsa.h: New file, from GNU gettext.
86581         * lib/xallocsa.c: New file, from GNU gettext.
86582
86583 2004-01-20  Bruno Haible  <bruno@clisp.org>
86584
86585         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86586
86587 2004-01-20  Bruno Haible  <bruno@clisp.org>
86588
86589         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86590         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86591         specially.
86592
86593 2004-01-20  Bruno Haible  <bruno@clisp.org>
86594
86595         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86596         patch.
86597
86598 2004-01-20  Bruno Haible  <bruno@clisp.org>
86599
86600         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86601
86602 2004-01-20  Bruno Haible  <bruno@clisp.org>
86603
86604         * lib/eealloc.h: New file.
86605
86606 2004-01-20  Bruno Haible  <bruno@clisp.org>
86607
86608         * lib/binary-io.h: Avoid warnings on Cygwin.
86609
86610 2004-01-20  Bruno Haible  <bruno@clisp.org>
86611
86612         * lib/allocsa.h: New file, from GNU gettext.
86613         * lib/allocsa.c: New file, from GNU gettext.
86614
86615 2004-01-18  Karl Berry  <karl@gnu.org>
86616
86617         * doc/gpl.texi, doc/lgpl.texi: new files.
86618
86619 2004-01-18  Karl Berry  <karl@gnu.org>
86620
86621         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86622         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86623
86624 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86625
86626         Merge from coreutils.
86627
86628         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86629         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86630         (gl_DEFAULT_POSIX2_VERSION): Move
86631         the documentation from 'configure' into 'config.hin',
86632         so that 'configure --help' isn't burdened by it and
86633         we don't have to worry about its formatting there.
86634         Reword the documentation so that it's more succinct
86635         and can be run together into a single paragraph.
86636         * m4/same.m4 (gl_SAME): Check for pathconf.
86637
86638 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86639
86640         Merge from coreutils.
86641
86642         * lib/posixver.c: Include posixver.h.
86643
86644         * lib/same.c: Include <stdbool.h>, <limits.h>.
86645         (_POSIX_NAME_MAX): Define if not defined.
86646         (MIN): New macro.
86647         (same_name): If file names are silently truncated, report
86648         that the file names are the same if they are the same after
86649         the silent truncation.
86650
86651         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86652         conversion function.
86653         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86654         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86655         longer needed.
86656
86657 2004-01-15  Jim Meyering  <jim@meyering.net>
86658
86659         Merge from coreutils.
86660
86661         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86662         if no library is required.
86663         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86664         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86665         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86666         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86667         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86668         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86669         value, $ac_cv_search_crypt, if it's "none required".
86670         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86671         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86672         not gl_FUNC_GETLOADAVG.
86673         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86674         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86675
86676 2004-01-15  Jim Meyering  <jim@meyering.net>
86677
86678         Merge from coreutils.
86679
86680         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86681         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86682         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86683
86684         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86685         optional configure-time default.
86686
86687         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86688
86689         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86690
86691 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86692
86693         Merge from coreutils.
86694
86695         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86696         value, $ac_cv_search_nanosleep, if it's "none required".
86697
86698 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86699
86700         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86701         with like-named macro in fnmatch.c.
86702         (EXT): Use an internal constant instead.
86703
86704         Merge fnmatch patches from glibc.
86705         * lib/fnmatch.c (mbsinit): Remove define.
86706         Add libc_hidden_ver (__fnmatch, fnmatch).
86707         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86708         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86709
86710 2004-01-14  Karl Berry  <karl@gnu.org>
86711
86712         * config/install-sh: update from automake.
86713
86714 2004-01-13  Karl Berry  <karl@gnu.org>
86715
86716         * config/install-sh: update from automake.
86717
86718 2004-01-09  Karl Berry  <karl@gnu.org>
86719
86720         * config/install-sh: update from automake.
86721
86722 2004-01-05  Karl Berry  <karl@gnu.org>
86723
86724         * config/config.{sub,guess}: update from config.
86725
86726 2003-12-31  Karl Berry  <karl@gnu.org>
86727
86728         * config/depcomp: update from automake.
86729
86730 2003-12-14  Karl Berry  <karl@gnu.org>
86731
86732         * lib/config.charset: update from gettext-runtime.
86733
86734 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86735
86736         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86737         Bug reported by Alfred M. Szmidt.
86738
86739 2003-12-03  Bruno Haible  <bruno@clisp.org>
86740
86741         * m4/gettext.m4: Upgrade from gettext-0.13.
86742         * m4/po.m4: Upgrade from gettext-0.13.
86743         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86744         * m4/intmax.m4: New file, from gettext-0.13.
86745         * m4/printf-posix.m4: New file, from gettext-0.13.
86746
86747 2003-11-29  Karl Berry  <karl@gnu.org>
86748
86749         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86750
86751 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86752             Bruno Haible  <bruno@clisp.org>
86753
86754         * lib/printf-parse.h: Don't include sys/types.h.
86755         (ARG_NONE): New macro.
86756         (char_directive): Change type of *arg_index fields to size_t.
86757         * lib/printf-parse.c: Don't include sys/types.h.
86758         (SSIZE_MAX): Remove macro.
86759         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86760         Remove unnecessary overflow check.
86761         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86762         fields.
86763
86764 2003-11-25  Bruno Haible  <bruno@clisp.org>
86765
86766         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86767
86768 2003-11-25  Bruno Haible  <bruno@clisp.org>
86769
86770         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86771         gt_TYPE_SSIZE_T.
86772
86773 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86774
86775         * modules/alloca: Remove dependency on xalloc.
86776
86777 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86778
86779         * lib/alloca.c: Remove dependency on xalloc module.
86780         (xalloc_die): Remove.
86781         (memory_full) [!defined emacs]: New macro.
86782         [!defined emacs]: Don't include xalloc.h.
86783         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86784         address arithmetic overflows.  Change datatypes a bit to avoid
86785         unnecessary casts.
86786
86787 2003-11-22  Jim Meyering  <jim@meyering.net>
86788
86789         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86790         s/size/size_t/.
86791
86792 2003-11-21  Karl Berry  <karl@gnu.org>
86793
86794         * config/config.{sub,guess}: update from config.
86795
86796 2003-11-18  Karl Berry  <karl@gnu.org>
86797
86798         * config/config.{sub,guess}: update from config.
86799
86800         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86801
86802 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86803
86804         * README: Mention that S+T cannot overflow if S is the size of
86805         an existing object and T is sufficiently small.
86806
86807 2003-11-17  Jim Meyering  <jim@meyering.net>
86808
86809         On systems without utime and without a utimes function capable of
86810         dealing with a NULL struct utimbuf* argument, this utime replacement
86811         could -- in unusual circumstances -- leak a file descriptor.
86812         * lib/utime.c: Include <unistd.h> and <errno.h>.
86813         (utime_null): Be sure to close `fd' and to preserve errno.
86814         Reported by Geoff Collyer via Arnold Robbins.
86815
86816 2003-11-17  Bruno Haible  <bruno@clisp.org>
86817
86818         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86819         (Depends-on): Add xsize.
86820
86821 2003-11-17  Bruno Haible  <bruno@clisp.org>
86822
86823         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86824
86825 2003-11-17  Bruno Haible  <bruno@clisp.org>
86826
86827         * lib/vasnprintf.c (alloca): Remove fallback definition.
86828         (freea): Remove definition.
86829         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86830         Reported by Paul Eggert.
86831
86832 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86833             Bruno Haible  <bruno@clisp.org>
86834
86835         Protect against address arithmetic overflow.
86836         * lib/printf-args.h: Include stddef.h.
86837         (arguments): Change type of field 'count' to size_t.
86838         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86839         'unsigned int' where appropriate.
86840         * lib/printf-parse.h: Include sys/types.h.
86841         (char_directive): Change type of *arg_index fields to ssize_t.
86842         (char_directives): Change type of fields 'count', max_*_length to
86843         size_t.
86844         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86845         (SSIZE_MAX): Define fallback value.
86846         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86847         instead of 'int' where appropriate. Check a_allocated, d_allocated
86848         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86849         * lib/vasnprintf.c: Include xsize.h.
86850         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86851         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86852         overflow. Avoid wraparound when converting a width or precision from
86853         decimal to binary.
86854
86855 2003-11-16  Bruno Haible  <bruno@clisp.org>
86856
86857         Update from GNU gettext.
86858         * lib/printf-parse.c: Generalize to it can be compiled for wide
86859         strings.
86860         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86861         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86862         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86863         SNPRINTF): New macros.
86864         Don't include <alloca.h> if the file is used inside libintl.
86865         (local_wcslen): New function, for Solaris 2.5.1.
86866         (VASNPRINTF): Use it instead of wcslen.
86867
86868 2003-11-16  Bruno Haible  <bruno@clisp.org>
86869
86870         * lib/xsize.h (xmax): New function.
86871         (xsum, xsum3, xsum4): Declare as "pure" functions.
86872
86873 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86874
86875         * modules/xalloc (Files): Undo latest change, since xalloc.h
86876         no longer needs SIZE_MAX or PTRDIFF_MAX.
86877
86878 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86879
86880         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86881         gl_PTRDIFF_MAX.
86882
86883 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86884
86885         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86886         "return", to pacify some unknown compiler.  Problem reported
86887         by Joerg Schilling.
86888
86889 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86890
86891         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86892         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86893         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86894         heuristic is just as accurate as far as we know, and it removes a
86895         dependency on size_max.m4 and ptrdiff_max.m4.
86896
86897 2003-11-11  Bruno Haible  <bruno@clisp.org>
86898
86899         * modules/xsize (Files): Add m4/size_max.m4.
86900         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86901
86902 2003-11-11  Bruno Haible  <bruno@clisp.org>
86903
86904         * m4/size_max.m4: New file.
86905         * m4/ptrdiff_max.m4: New file.
86906         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86907         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86908         (gl_XALLOC): Invoke it.
86909
86910 2003-11-11  Bruno Haible  <bruno@clisp.org>
86911
86912         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86913         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86914         defined.
86915
86916 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86917
86918         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86919         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86920         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86921         From Bruno Haible.
86922         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86923         not (size_t) -1, since it's defined here.
86924
86925 2003-11-09  Karl Berry  <karl@gnu.org>
86926
86927         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86928
86929 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86930
86931         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86932         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86933         Reject sizes of exactly SIZE_MAX bytes.
86934         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86935         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86936
86937 2003-11-05  Bruno Haible  <bruno@clisp.org>
86938
86939         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86940         SIZE_MAX defined in <limits.h> on Solaris.
86941
86942 2003-11-04  Jim Meyering  <jim@meyering.net>
86943
86944         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86945         variable names, rather than @VAR@.
86946         * modules/poll: Likewise.
86947
86948 2003-11-04  Bruno Haible  <bruno@clisp.org>
86949
86950         * modules/xsize: New file.
86951         * modules/linebreak: Depend on xsize.
86952         * MODULES.html.sh (func_all_modules): Add xsize.
86953
86954 2003-11-04  Bruno Haible  <bruno@clisp.org>
86955
86956         * m4/xsize.m4: New file.
86957
86958 2003-11-04  Bruno Haible  <bruno@clisp.org>
86959
86960         * lib/xsize.h: New file.
86961         * lib/linebreak.c: Include xsize.h.
86962         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86963         argument for overflow.
86964         Suggested by Paul Eggert.
86965
86966 2003-11-03  Karl Berry  <karl@gnu.org>
86967
86968         * config/config.{guess,sub}: update from config.
86969
86970 2003-11-03  Jim Meyering  <jim@meyering.net>
86971
86972         * modules/userspec (lib_SOURCES): Add userspec.h.
86973         (Include): Add "userspec.h".
86974         Improve description.
86975
86976 2003-11-03  Jim Meyering  <jim@meyering.net>
86977
86978         * lib/userspec.c: Include "userspec.h".
86979         * lib/userspec.h: New file.
86980
86981 2003-11-03  Bruno Haible  <bruno@clisp.org>
86982
86983         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86984
86985 2003-11-03  Bruno Haible  <bruno@clisp.org>
86986
86987         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86988         available, to avoid (extremely rare) race condition.
86989         Suggested by Paul Eggert.
86990
86991 2003-11-02  Karl Berry  <karl@gnu.org>
86992
86993         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86994
86995 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86996
86997         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86998         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86999         (read_filesystem_list): Set and use me_type_malloced.
87000         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87001         whatever the type happens to be), for brevity and consistency.
87002         Check for size calculation overflow on Alphas running OSF/1.
87003
87004 2003-10-31  Jim Meyering  <jim@meyering.net>
87005
87006         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87007
87008         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87009
87010 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87011             Bruno Haible  <bruno@clisp.org>
87012
87013         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87014         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87015
87016 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87017
87018         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87019         netbsd*-gnu*.  Suggested by Robert Millan.
87020
87021 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87022
87023         * modules/group-member: Depend on stdbool.
87024
87025 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87026
87027         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87028
87029 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87030
87031         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87032         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87033         after the 'gnu' in these cases.  This fixes some bugs in the
87034         previous change, and is based on suggestions by Robert Millan.
87035
87036 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87037
87038         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87039         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87040         no longer needed.
87041         * lib/quotearg.c (quotearg_n_options): Use it.
87042         * lib/group-member.c: Include <stdbool.h>.
87043         (free_group_info): Arg is now const *; don't free arg.
87044         (get_group_info): Now returns bool and accepts struct group_info *,
87045         rather than returning a malloc'ed struct group_info *.
87046         All uses changed.  Check for overflow in internal size calculation.
87047
87048         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87049         rather than xmalloc/xrealloc.
87050         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87051         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87052         conformance bug: the old code used a pointer after freeing the
87053         storage that it addressed.
87054         * lib/hash.c (hash_initialize): Simplify the code by using
87055         xalloc_oversized rather than doing it by hand.
87056         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87057         the buffer preserved.  Use free and xmalloc instead.
87058         * lib/quotearg.c (quotearg_n_options): Likewise.
87059         Use a simpler test for size overflow.  Don't use xalloc_oversized
87060         because unsigned int might be wider than size_t (!); this suggests
87061         that we should switch from unsigned int to size_t for slot numbers.
87062
87063 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87064
87065         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87066         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87067         NetBSD kernels.  Requested by Richard Stallman.
87068
87069 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87070
87071         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87072         to allocate the returned structure.  Do not allocate a subarray,
87073         as x2nrealloc will do that.
87074         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87075         instead of xnrealloc.
87076         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87077
87078 2003-10-27  Bruno Haible  <bruno@clisp.org>
87079
87080         * lib/stdbool_.h: Better support for BeOS.
87081
87082 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87083
87084         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87085         now uses inline.
87086
87087 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87088
87089         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87090         callers that want to do their own size-overflow checking.  Include
87091         <stdbool.h>, since xalloc_oversized returns bool.
87092         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87093         to use xalloc_oversized.
87094
87095         Add two functions x2realloc, x2nrealloc, for programs that grow
87096         arrays dynamically by doubling their sizes.
87097         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87098         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87099         New functions.
87100
87101         Port to C99 semantics for 'inline' of external functions.
87102         Bug reported by Bruno Haible.
87103         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87104         with the old contents of xnmalloc.
87105         (xnmalloc, xmalloc): Use it.
87106         (xnrealloc_inline): New static inline function,
87107         with the old contents of xnrealloc.
87108         (xnrealloc, xrealloc): Use it.
87109
87110         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87111         that.
87112
87113 2003-10-26  Karl Berry  <karl@gnu.org>
87114
87115         * config/srclist.txt (COPYING.DOC): no longer available from
87116         /gd/gnuorg; don't know where the ultimate source is.
87117
87118 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87119
87120         Fix several address-calculation bugs in the hash modules,
87121         plus some minor code cleanup.
87122
87123         * lib/hash.h: Include <stdbool.h>, for bool.
87124         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87125         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87126         hash_get_n_entries, hash_get_max_bucket_length,
87127         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87128         hash_rehash): Use size_t rather than unsigned.
87129         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87130         hash_get_n_buckets_used, hash_get_n_entries,
87131         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87132         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87133         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87134         Likewise.
87135         (SIZE_MAX): Define if not defined.
87136         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87137         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87138         hash_print):
87139         Use const * when possible.
87140         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87141         (check_tuning): Fix bug: if tuning parameters were very close to
87142         0 or 1, rounding errors could have caused subscript violations.
87143         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87144         (hash_initialize): Add 'fail:' label
87145         to free table and return NULL, and use it to simplify code.
87146         Use calloc rather than clearing the storage ourself.
87147         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87148         buffer size calculations.
87149         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87150         Include <stddef.h>, for size_t.
87151         * lib/hash-pjw.c (hash_pjw): Likewise.
87152         Switch to method described by Bruno Haible.
87153         Include <limits.h>, for CHAR_BIT.
87154         (SIZE_BITS): New macro.
87155
87156 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87157
87158         * m4/getline.m4 (AM_FUNC_GETLINE):
87159         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87160         hosts.  Problem reported by Derek Robert Price in
87161         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87162         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87163         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87164
87165 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87166
87167         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87168         ceiling the allocation at NMAX bytes rather than silently
87169         discarding input bytes before NMAX is reached.  This makes
87170         a difference only if NMAX exceeds SIZE_MAX / 2.
87171
87172         * lib/obstack.c: Merge from glibc.
87173         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87174         Add libc_hidden_def (_obstack_newchunk).
87175         (_obstack_free) [! defined _LIBC]: Remove.
87176         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87177         a clone of the function body.
87178         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87179         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87180
87181         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87182         glibc.
87183         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87184         arg to memcpy.
87185
87186         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87187         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87188         Don't use lvalue casts, as GCC plans to remove support for them
87189         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87190         was also present in the non-GCC version, indicating that this
87191         code had always been buggy and had never been widely used.
87192         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87193         Use the fast variant of each macro, rather than copying the
87194         definiens of the fast variant; that way, we'll be more likely to
87195         catch future bugs in the fast variants.
87196
87197 2003-10-20  Bruno Haible  <bruno@clisp.org>
87198
87199         * modules/wait-process: New file.
87200         * MODULES.html.sh (func_all_modules): Add wait-process.
87201
87202 2003-10-20  Bruno Haible  <bruno@clisp.org>
87203
87204         * m4/wait-process.m4: New file.
87205
87206 2003-10-20  Bruno Haible  <bruno@clisp.org>
87207
87208         * lib/wait-process.h: New file, from GNU gettext.
87209         * lib/wait-process.c: New file, from GNU gettext.
87210
87211 2003-10-19  Jim Meyering  <jim@meyering.net>
87212
87213         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87214         HPUX 10.20.
87215
87216 2003-10-18  Karl Berry  <karl@gnu.org>
87217
87218         * config/config.guess: update from config.
87219
87220 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87221
87222         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87223         (getgroups): First arg is int, not size_t.
87224         Don't let 'free' mangle errno.
87225
87226 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87227
87228         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87229
87230 2003-10-16  Karl Berry  <karl@gnu.org>
87231
87232         * config/config.{guess,sub}: update from config.
87233
87234 2003-10-16  Jim Meyering  <jim@meyering.net>
87235
87236         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87237         memcpy.
87238
87239 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87240
87241         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87242         (SIZE_MAX): Remove.
87243         (new_exclude, add_exclude_file): Initial size no longer needs to
87244         be a power of 2.
87245         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87246         our own address arithmetic overflow checking.
87247
87248         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87249         (fnmatch): Do not alloca more than 2000 wide characters;
87250         instead, use malloc for large buffers.
87251         Check for address arithmetic overflow, and return -1
87252         with errno set to ENOMEM in that case.
87253         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87254         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87255         instead, return -1.  Check for address arithmetic overflow.
87256
87257 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87258
87259         Handle invalid suffixes and overflow independently, so that
87260         callers can treat them independently as needed.  Fix some bugs in
87261         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87262         suffix for a human-readable blocksize.  The major caller-visible
87263         change is the addition of a new
87264         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87265         that both overflow and suffix chars were found.
87266
87267         * lib/human.c (humblock): Don't check separately for invalid suffix
87268         char; that is xstrtoumax's job (now that its bug is fixed).
87269         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87270         INTMAX_MAX]: New macros.
87271         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87272         TYPE_MAXIMUM): New macros.
87273         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87274         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87275         if overflow occurs, as it's what __strtol does and it's more useful
87276         in practice.
87277         (__xstrtol): If __strtol reports some error other than ERANGE,
87278         reflect it to the caller as LONGINT_INVALID.  If it reports
87279         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87280         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87281         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87282         value.
87283         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87284         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87285         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87286         [defined UINTMAX_MAX]: New macros.
87287
87288 2003-10-14  Bruno Haible  <bruno@clisp.org>
87289
87290         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87291
87292 2003-10-14  Bruno Haible  <bruno@clisp.org>
87293
87294         * m4/sig_atomic_t: New file, from GNU gettext.
87295         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87296
87297 2003-10-14  Bruno Haible  <bruno@clisp.org>
87298
87299         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87300         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87301         Also use volatile where needed.
87302
87303 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87304
87305         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87306         Change maintainer from Bruno Haible to 'all'.
87307
87308 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87309
87310         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87311
87312 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87313
87314         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87315         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87316         and define in terms of the other primitives.
87317         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87318         (SIZE_MAX): Define if not already defined.
87319         (array_size_overflow): New function.
87320         (xalloc_die): Abort instead of exiting if 'error' returns.
87321         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87322         (xmalloc, xrealloc): Use them.
87323         (xcalloc): Check for address arithmetic overflow.
87324         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87325         a bit faster than strcpy.
87326
87327 2003-10-10  Simon Josefsson  <jas@extundo.com>
87328
87329         * modules/argp (Depends-on): Add restrict and strcase.
87330
87331 2003-10-10  Simon Josefsson  <jas@extundo.com>
87332
87333         * m4/argp.m4: Add AC_C_INLINE.
87334
87335 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87336
87337         Merge getpass from libc, plus a few fixes.
87338
87339         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87340         Include <stdbool.h>.
87341         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87342         __fsetlocking to empty.
87343         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87344         do include <bits/libc-lock.h>.
87345         Do not include <fcntl.h>; not needed.
87346         [_LIBC]: Include <wchar.h>.
87347         (NOTCANCEL_MODE): New macro.
87348         (flockfile, funlockfile) [_LIBC]: New macros.
87349         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87350         [!_LIBC]: New macros.
87351         (call_fclose): New function.
87352         (getpass): Use it.  Save tty stream separately; this simplifies the
87353         code and makes it more reliable if stdin happens to equal stdout.
87354         Invoke __fsetlocking on tty.
87355         Handle thread cancellation if needed.
87356         Namespace cleanup (use __tcgetattr, __getline).
87357         Use bool for Booleans.
87358         [USE_IN_LIBIO]: Handle wide streams.
87359         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87360         stream might go where.
87361
87362         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87363         doesn't have to include <stdio.h> before us.
87364         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87365         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87366         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87367         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87368         if not declared, so that we can use getpass.c code from libc without
87369         rewriting it.
87370         (flockfile, ftrylockfile, funlockfile): New macros.
87371
87372 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87373
87374         * modules/getpass: Depend on stdbool.
87375
87376 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87377
87378         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87379
87380 2003-10-07  Karl Berry  <karl@gnu.org>
87381
87382         * config/config.{guess,sub}: update from config.
87383
87384 2003-10-06  Jim Meyering  <jim@meyering.net>
87385             Bruno Haible  <bruno@clisp.org>
87386
87387         This lets translators provide better translations for the
87388         "Written by ..." part of --version output.
87389         * lib/version-etc.h: Include stdarg.h.
87390         (version_etc_copyright): Declare as readonly.
87391         (version_etc): Make this function variadic with a NULL-terminated list
87392         of author name strings.
87393         (version_etc_va): New declaration.
87394         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87395         (version_etc_copyright): Declare as readonly.
87396         (version_etc_va): New function. Provide a different translatable string
87397         for each possible number of authors < 10. Abbreviate when there are 10
87398         authors or more.
87399         (version_etc): Make this function variadic. Call version_etc_va.
87400         Suggestion from Gary V. Vaughan.
87401
87402         * lib/long-options.h (parse_long_options): Change prototype: the
87403         authors string is moved to the end and becomes variadic.
87404         * lib/long-options.c: Include stdarg.h.
87405         (parse_long_options): Make this function variadic, too.
87406         Call version_etc_va, not version_etc.
87407
87408 2003-10-06  Bruno Haible  <bruno@clisp.org>
87409
87410         * modules/version-etc-2: Remove file.
87411         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87412
87413 2003-10-06  Bruno Haible  <bruno@clisp.org>
87414
87415         * modules/fatal-signal: New file.
87416         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87417
87418 2003-10-06  Bruno Haible  <bruno@clisp.org>
87419
87420         * m4/fatal-signal.m4: New file.
87421         * m4/signalblocking.m4: New file, from GNU gettext.
87422
87423 2003-10-06  Bruno Haible  <bruno@clisp.org>
87424
87425         * lib/version-etc-2.h: Remove file.
87426         * lib/version-etc-2.c: Remove file.
87427
87428 2003-10-06  Bruno Haible  <bruno@clisp.org>
87429
87430         * lib/fatal-signal.h: New file, from GNU gettext.
87431         * lib/fatal-signal.c: New file, from GNU gettext.
87432
87433 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87434
87435         * README: Rework advice for preventing empty .o files.
87436         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87437         not <sys/types.h>.
87438
87439 2003-10-04  Karl Berry  <karl@gnu.org>
87440
87441         * lib/argp*: update from libc.
87442
87443 2003-10-04  Karl Berry  <karl@gnu.org>
87444
87445         * config/config.{guess,sub}: update from config.
87446
87447 2003-10-02  Bruno Haible  <bruno@clisp.org>
87448
87449         * modules/lchown (Include): Add lchown.h.
87450         * modules/time_r (Include): Use "..." syntax.
87451         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87452
87453 2003-10-01  Simon Josefsson  <jas@extundo.com>
87454
87455         * MODULES.html.sh (func_all_modules): Move gethostname from section
87456         'based on' to section 'lacking' POSIX:2001.
87457
87458 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87459
87460         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87461         to output mode on the same stream.
87462
87463 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87464
87465         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87466         Fix arg typo in previous patch.
87467
87468 2003-09-28  Jim Meyering  <jim@meyering.net>
87469
87470         * lib/error.c: Correct cpp indentation.
87471
87472 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87473
87474         * modules/free: New file.
87475
87476 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87477
87478         * m4/free.m4: New file.
87479
87480 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87481
87482         * lib/minmax.h (MIN, MAX)
87483         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87484         Omit the special code that used __typeof__, since we worry that
87485         it could be more trouble than it's worth.  See:
87486         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87487         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87488
87489         * lib/free.c: New file.
87490
87491 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87492
87493         Trivial fixes to Makefile.am parts of module listings.
87494         * modules/strstr: Append strstr.h to lib_SOURCES.
87495         * modules/strcase: Likewise, for strcase.h.
87496
87497 2003-09-27  Karl Berry  <karl@gnu.org>
87498
87499         * config/mkinstalldirs: update from automake.
87500
87501 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87502
87503         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87504         (error_tail): Do not loop, reallocating temporary buffer, since
87505         the output cannot contain more wide characters than the input
87506         contains bytes, the size must be big enough already.  This avoids
87507         one potential size overflow calculation.  Check for size overflow
87508         when calculating temporary buffer size.  Free temporary buffer
87509         when done, if it was allocated with malloc; this plugs a memory
87510         leak.  Remove casts from void * to pointers, that are no longer
87511         needed now that we're assuming C89 or better.
87512
87513         Merge error changes from glibc.
87514
87515         * lib/error.c, error.h: Update copyright notice header to match glibc.
87516         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87517         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87518         Disable cancellation while printing error.
87519         * lib/error.h: Prepend __ to parameter names.
87520
87521 2003-09-26  Jim Meyering  <jim@meyering.net>
87522
87523         * lib/error.c (error_tail): Move some declarations
87524         into inner scope where the local variables are used.
87525
87526 2003-09-26  Bruno Haible  <bruno@clisp.org>
87527
87528         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87529         stpncpy().
87530         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87531
87532 2003-09-26  Bruno Haible  <bruno@clisp.org>
87533
87534         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87535         (stpncpy): Define as alias for gnu_stpncpy.
87536         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87537
87538 2003-09-25  Simon Josefsson  <jas@extundo.com>
87539
87540         * lib/xgetdomainname.h: New file.
87541         * lib/xgetdomainname.c: New file.
87542
87543 2003-09-25  Simon Josefsson  <jas@extundo.com>
87544             Bruno Haible  <bruno@clisp.org>
87545
87546         * modules/getdomainname: New file.
87547         * modules/xgetdomainname: New file.
87548         * MODULES.html.sh (func_all_modules): Add getdomainname,
87549         xgetdomainname.
87550
87551 2003-09-25  Simon Josefsson  <jas@extundo.com>
87552             Bruno Haible  <bruno@clisp.org>
87553
87554         * m4/getdomainname.m4: New file.
87555
87556 2003-09-25  Simon Josefsson  <jas@extundo.com>
87557             Bruno Haible  <bruno@clisp.org>
87558
87559         * lib/getdomainname.h: New file.
87560         * lib/getdomainname.c: New file.
87561
87562 2003-09-25  Karl Berry  <karl@gnu.org>
87563
87564         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87565
87566 2003-09-25  Karl Berry  <karl@gnu.org>
87567
87568         * config/install-sh: update from automake.
87569
87570 2003-09-25  Bruno Haible  <bruno@clisp.org>
87571
87572         * modules/version-etc-2: New file, from modules/version-etc with
87573         modifications.
87574         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87575
87576 2003-09-25  Bruno Haible  <bruno@clisp.org>
87577
87578         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87579         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87580
87581 2003-09-24  Simon Josefsson  <jas@extundo.com>
87582
87583         * modules/xgethostname: Add xgethostname.h.
87584
87585 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87586
87587         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87588         the buffer associated with the argument.  Bug reported by
87589         Simon Josefsson.
87590
87591 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87592
87593         * README: Document assumptions that 'int' is at least 32 bits
87594         wide, that integer arithmetic is 2's complement without overflow,
87595         that there are no holes in integer values, that adding sizes of
87596         two nonoverlapping objects can't overflow, and that all-bits-zero
87597         yields scalar zero.  Fix spelling and capitalization typos.
87598
87599 2003-09-19  Karl Berry  <karl@gnu.org>
87600
87601         * lib/argp.h: update from libc.
87602
87603 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87604
87605         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87606         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87607         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87608
87609 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87610
87611         * gnulib-tool: Use "test -h", not "test -L", for portability
87612         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87613         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87614         (sed_extract_prog): Issue s commands one-by-one, rather than
87615         using \| in one s command.
87616
87617 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87618
87619         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87620         input error, instead of returning NULL the next time we are called
87621         (and therefore losing track of errno).
87622
87623 2003-09-16  Bruno Haible  <bruno@clisp.org>
87624
87625         * gnulib-tool (func_create_testdir): Warn about duplicated
87626         dependencies.
87627
87628 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87629
87630         * modules/argmatch, modules/fatal, modules/obstack,
87631         modules/xalloc, modules/xgethostname: Sort dependencies by
87632         importance, not alphabetically.
87633
87634 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87635
87636         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87637         fails, so that the caller gets the proper errno.
87638
87639         * lib/readutmp.c (read_utmp): Likewise.
87640         Check for fstat error.  Close stream and free storage
87641         when failing.
87642
87643 2003-09-14  Karl Berry  <karl@gnu.org>
87644
87645         * config/srclist.txt (strdup.c): disable for c89 changes.
87646
87647 2003-09-14  Jim Meyering  <jim@meyering.net>
87648
87649         * lib/getloadavg.c: Correct cpp indentation.
87650         * lib/strdup.c: Likewise.
87651         * lib/vasnprintf.c: Likewise.
87652
87653 2003-09-14  Bruno Haible  <bruno@clisp.org>
87654
87655         * modules/fwriteerror: New file.
87656         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87657
87658 2003-09-14  Bruno Haible  <bruno@clisp.org>
87659
87660         * lib/fwriteerror.h: New file.
87661         * lib/fwriteerror.c: New file.
87662
87663 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87664
87665         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87666         modules/xgethostname, modules/xalloc: Depend on exit.
87667
87668 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87669
87670         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87671
87672         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87673         and AC_MINIX, too, so that their extensions are available.
87674
87675         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87676         This macro has been superseded by gl_BACKUPFILE.
87677
87678         More patches to assume C89 or better.
87679
87680         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87681
87682         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87683         unconditionally.
87684         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87685         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87686         Include <string.h>, <stdlib.h> unconditionally.
87687         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87688         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87689         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87690         headers or for string.h.
87691         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87692         or strtoul.
87693
87694         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87695         headers.
87696         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87697         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87698         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87699         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87700         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87701         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87702         memcpy, memset.
87703         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87704         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87705         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87706         strtol.
87707         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87708         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87709         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87710         strtoul.
87711
87712 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87713
87714         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87715         * lib/obstack.c [!defined _LIBC]: Likewise.
87716         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87717         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87718         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87719
87720         More changes to assume C89 or better.
87721
87722         * lib/error.c (error_tail): Assume vprintf.
87723
87724         * lib/argmatch.c (getenv): Remove decl.
87725         * lib/progreloc.c (get_full_program_name): Define via prototype.
87726         * lib/setenv.c (clearenv): Likewise.
87727         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87728         needed.
87729         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87730         (malloc, memcpy): Remove decls.
87731         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87732         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87733         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87734         (memcpy): Remove macro.
87735         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87736         (__P): Remove.  All uses removed.
87737         (PTR): Remove.  All uses changed to void *.
87738         (CHAR_BIT, NULL): Remove.
87739         (spaces, zeros, memset_space, memset_zero)
87740         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87741         Remove.
87742         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87743         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87744         Define with prototype.
87745         Remove now-unnecessary prototype decl.
87746         (extra_args_spec): Assume ANSI C.  All uses changed.
87747         (extra_args_spec_iso): Remove.
87748         (my_strftime, emacs_strftimeu): Define via prototype.
87749         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87750         unconditionally.
87751         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87752         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87753         (strtoul, strtol): Remove decls.
87754         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87755         LONG_MAX): Remove.
87756         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87757         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87758         (LOCALE_PARAM_PROTO): New macro.
87759         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87760         (INTERNAL (strtol), strtol): Define with a prototype.
87761         (PARAMS): Remove.  All uses removed.
87762         * lib/tempname.c: Include <string.h> unconditionally.
87763         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87764         * lib/xgethostname.c (main): Define with a prototype.
87765         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87766         Include <stdlib.h> unconditionally.
87767         (calloc, malloc, realloc, free): Remove decls.
87768         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87769         Include <stdlib.h> unconditionally.  Sort include file names.
87770         (strtod): Remove.
87771         (xstrtod): Define with a prototype.
87772         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87773         (strtol, strtoul): Remove decls.
87774
87775 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87776
87777         More patches to assume C89 or better.
87778         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87779         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87780         string.h, memchr, STDC_HEADERS.
87781
87782 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87783
87784         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87785         Include <stdlib.h>, <string.h> unconditionally.
87786         Remove now-unnecessary cast to char *.
87787         * lib/strnlen.c: Include <string.h> unconditionally.
87788         * lib/yesno.c (yesno): Define with a prototype.
87789
87790 2003-09-11  Bruno Haible  <bruno@clisp.org>
87791
87792         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87793
87794 2003-09-10  Jim Meyering  <jim@meyering.net>
87795
87796         * lib/error.c: Correct indentation of cpp directives.
87797
87798 2003-09-10  Bruno Haible  <bruno@clisp.org>
87799
87800         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87801         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87802         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87803         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87804         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87805         <stdlib.h> and <string.h> checks.
87806         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87807         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87808
87809 2003-09-10  Bruno Haible  <bruno@clisp.org>
87810
87811         * lib/strcspn.c: Include <string.h> unconditionally.
87812         * lib/strpbrk.c: Include <string.h> unconditionally.
87813         * lib/strstr.c: Include <string.h> unconditionally.
87814         * lib/unicodeio.c: Include <string.h> unconditionally.
87815         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87816         * lib/unsetenv.c: Likewise.
87817         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87818         * lib/yesno.c: Include <stdlib.h> unconditionally.
87819         (rpmatch): Add prototype.
87820
87821 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87822
87823         More patches to assume C89 or better.
87824         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87825         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87826         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87827         or for string.h.
87828         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87829         stdlib.h.
87830         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87831         C headers.
87832         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87833         string.h.
87834         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87835         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87836         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87837         or for string.h.
87838         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87839         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87840         C headers.
87841         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87842         memcpy.
87843         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87844         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87845         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87846         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87847         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87848         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87849         string.h, free.
87850         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87851         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87852         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87853         C headers, or for string.h.
87854         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87855         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87856         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87857         headers, memory.h, stdlib.h, string.h, strings.h.
87858         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87859         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87860         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87861         strchr.
87862         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87863         headers, memory.h, string.h.
87864         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87865         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87866         free.
87867         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87868         headers.
87869         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87870         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87871         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87872         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87873         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87874
87875 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87876
87877         More K&R removal.
87878
87879         * lib/acosl.c (main): Use a prototype.
87880         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87881         tanl.c: Likewise.
87882
87883         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87884
87885         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87886         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87887         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87888         with a prototype.
87889         * lib/getopt.c (const): Remove macro.
87890         Include <string.h> unconditionally.
87891         (my_index): Remove; all uses changed to strchr.
87892         (strlen): Remove decl.
87893         (exchange): Remove forward decl; no longer needed.
87894         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87895         Define with prototype.
87896         * lib/getopt1.c (const): Remove macro.
87897         (getopt_long, getopt_long_only, main): Define with prototype.
87898
87899         * lib/getugroups.c: Include <string.h> unconditionally.
87900
87901         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87902         (getusershell, setusershell, endusershell, readname, main):
87903         Define with prototypes.
87904
87905         * lib/group-member.c: Include group-member.h first.
87906         Include <stdlib.h> unconditionally.
87907
87908         * lib/hard-locale.c: Include hard-locale.h first.
87909         Include <stdlib.h>, <string.h> unconditionally.
87910
87911         * lib/hash.c (free, malloc): Remove decls.
87912         Include <stdlib.h> unconditionally.
87913
87914         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87915         (getenv): Do not declare.
87916
87917         * lib/idcache.c: Include <string.h> unconditionally.
87918
87919         * lib/long-options.c: Include long-options.h first, to test interface.
87920         Include <stdlib.h> unconditionally.
87921
87922         * lib/makepath.c: Include makepath.h first, to test interface.
87923         Include <stdlib.h> and <string.h> unconditionally.
87924
87925         * lib/linebuffer.c: Include <stdlib.h>.
87926         (free): Remove decl.
87927
87928         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87929         stddef.h. rpl_malloc returns void *, not char *.
87930         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87931         prototype.
87932
87933         * lib/md5.h: Include <limits.h> unconditionally.
87934         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87935         (__P): Remove; all uses removed.
87936         * lib/md5.c: Include "md5.h" first.
87937         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87938         md5_buffer, md5_process_bytes, md5_process_block):
87939         Define with prototypes.
87940         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87941         * lib/sha.c: Include "sha.h" first.
87942         Include <stdlib.h>, <string.h> unconditionally.
87943
87944         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87945         * lib/memcmp.c (__ptr_t): Likewise.
87946         * lib/memrchr.c (__ptr_t): Likewise.
87947         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87948         Include <string.h> unconditionally.
87949         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87950         * lib/memchr.c: Include <stdlib.h> unconditionally.
87951         * lib/memchr.c (LONG_MAX): Remove.
87952         * lib/memrchr.c (LONG_MAX): Likewise.
87953         * lib/memchr.c (__memchr): Define via a prototype.
87954         * lib/memrchr.c (__memrchr): Likewise.
87955         * lib/memcmp.c (__P): Remove, and remove all uses.
87956         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87957         Remove forward decls; no longer needed.
87958         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87959         Use types required by C89 in prototype.
87960
87961         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87962         * lib/savedir.c: Likewise.
87963         * lib/mkdir.c (free): Remove decl.
87964         * lib/rmdir.c (rmdir): Define with a prototype.
87965         * lib/savedir.c: Include savedir.h first, to test interface.
87966
87967         * lib/mktime.c (STDC_HEADERS): Remove.
87968         Include <stdlib.h>, <string.h> unconditionally.
87969
87970         * lib/modechange.c: Include <stdlib.h> unconditionally.
87971         (malloc): Remove decl.
87972
87973         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87974         (free): Remove decl.
87975
87976         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87977         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87978         (This type really should be intptr_t, but that's a C99ism.)
87979         (_obstack_memcpy): Remove: all uses changed to memcpy.
87980         Include <string.h> unconditionally.
87981         (struct obstack): Assume __STDC__ for types of members
87982         chunkfun, freefun, extra_arg.
87983         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87984         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87985         obstack_begin, obstack_specify_allocation,
87986         obstack_specify_allocation_with_arg, obstack_chunkfun,
87987         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87988         Remove unprototyped decls and the macros that use them.
87989         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87990         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87991         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87992         (defined __STDC__ && __STDC__)]:
87993         Remove nonprototyped code.
87994         Include <stdlib.h> unconditionally.
87995         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87996         _obstack_allocated_p, _obstack_free, obstack_free,
87997         _obstack_memory_used, print_and_abort):
87998         Define using prototypes.
87999         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88000         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88001         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88002         obstack_next_free, obstack_object_size, obstack_room) [0]:
88003         Remove unused, unprototyped code.
88004
88005         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88006
88007         * lib/physmem.c (physmem_total, physmem_available, main): Define
88008         with prototypes.
88009
88010         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88011         (main): Define with a prototype.
88012
88013         * lib/posixver.c (getenv): Remove decl.
88014
88015         * lib/putenv.c (malloc): Returns void *, not char *.
88016         Include <string.h> unconditionally.
88017         (strchr, memcpy, NULL): Do not define.
88018
88019         * lib/readtokens.c: Include readtokens.h first, to test interface.
88020         Include <stdlib.h>, <string.h> unconditionally.
88021         (init_tokenbuffer): Define with a prototype.
88022
88023         * lib/regex.c (PARAMS): Remove.  All uses removed.
88024         All uses of _RE_ARGS removed, too.
88025         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88026         unconditionally.
88027         (bzero): Assume memset exists.
88028         (memcmp, memcpy, NULL): Remove.
88029         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88030         char, or assignments to local vars of type signed char.
88031         (init_syntax_once, PREFIX(extract_number_and_incr),
88032         PREFIX(print_partial_compiled_pattern),
88033         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88034         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88035         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88036         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88037         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88038         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88039         wcs_compile_range, byte_compile_range, truncate_wchar,
88040         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88041         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88042         count_mbs_length, wcs_re_match_2_internal,
88043         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88044         PREFIX(alt_match_null_string_p),
88045         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88046         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88047         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88048         now-unnecessary declaration, if any.
88049         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88050         regcomp, regexec):
88051         Remove now-unnecessary casts among pointer types.
88052         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88053
88054         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88055         (free): Remove decl.
88056
88057         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88058
88059         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88060         (free): Remove decl.
88061
88062         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88063         * lib/xgetcwd.c: Likewise.
88064
88065         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88066         (free): Remove decl.
88067
88068         * lib/strchrnul.c (strchrnul): Define with a prototype.
88069         Fix bug: c_in was not converted to char before searching.
88070
88071         The following changes are not K&R related:
88072
88073         * lib/group-member.h: Include <sys/types.h>, so that this file is
88074         self-contained.
88075         * lib/makepath.h: Likewise.
88076
88077         * lib/getusershell.c (readname, default_index, line_size, readname):
88078         Use size_t, not int, for sizes.
88079         (readname): If the size overflows, report an error instead of
88080         looping forever.
88081
88082 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88083
88084         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88085         libc.
88086
88087 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88088
88089         * README: New section: portability guidelines.
88090
88091 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88092
88093         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88094         C89 spec.
88095
88096 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88097
88098         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88099
88100 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88101
88102         Assume C89 or better; remove K&R cruft.
88103         A few of these changes were first proposed by Derek Robert Price
88104         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88105
88106         * lib/addext.c: Include <string.h> unconditionally.
88107         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88108         Don't declare getenv or malloc.
88109
88110         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88111         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88112         (NULL): Remove.
88113         (find_stack_direction, alloca): Use prototypes.
88114
88115         * lib/atexit.c (atexit): Define using a prototype.
88116
88117         * lib/basename.c, dirname.c, stripslash.c:
88118         Include <string.h> unconditionally.
88119
88120         * lib/bcopy.c: Include <stddef.h>.
88121         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88122
88123         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88124
88125         * lib/error.h (error, error_at_line, error_print_progname)
88126         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88127         * lib/error.c: Include error.h first, to check interface.
88128         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88129         (VA_START): Remove; all uses changeed to va_start.
88130         (exit, strerror): Remove decls.
88131         (error_print_progname): Prototype uncondionally.
88132         Don't include <errno.h>; no longer needed.
88133         (private_strerror): Remove.
88134         (error_tail): Always define.
88135         (error, error_at_line): Assume C89 or better; always use prototypes.
88136         * lib/fatal.c: Include "fatal.h" first, to test interface.
88137         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88138         (VA_START): Remove; all uses changed to va_start.
88139         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88140         this case.
88141         (exit): Remove decl.
88142         (fatal): Prototype unconditionally.  Assume va_start works.
88143         Abort at end, to pacify gcc.
88144
88145         * lib/euidaccess.c (main): Define with a prototype.
88146
88147         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88148
88149         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88150
88151         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88152         prototypes.
88153         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88154         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88155         (getenv): Remove decl.
88156         (fnmatch): Define using a prototype.
88157         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88158         (FCT): Define using a prototype.
88159
88160         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88161
88162         * lib/gethostname.c: Include <stddef.h>.
88163         (gethostname): Define with prototype.  Length is size_t, not int.
88164
88165 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88166
88167         Assume C89 or better; remove K&R cruft.
88168         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88169         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88170         string.h, getenv, malloc.
88171         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88172         headers.
88173         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88174         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88175         do not check for strerror.
88176         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88177         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88178         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88179         do not check for doprnt or vprintf.
88180         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88181         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88182
88183 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88184
88185         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88186         getversion.c should have been removed then, but was accidentally
88187         preserved.
88188
88189         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88190         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88191
88192 2003-09-08  Karl Berry  <karl@gnu.org>
88193
88194         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88195                 config, forget about prep.
88196
88197         * config/depcomp, missing: update from automake.
88198
88199 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88200
88201         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88202         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88203
88204 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88205
88206         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88207         copy_tm_result.  Bug reported by Simon Josefsson in
88208         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88209
88210 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88211
88212         * m4/time_r.m4: New file.
88213         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88214         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88215         is. Check for timegm declaration.
88216         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88217         Do not check for gmtime_r.
88218         Replace mktime if __mktime_internal does not exist and if mktime
88219         hasn't been replaced already.
88220
88221 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88222
88223         * lib/time_r.c, lib/time_r.h: New files.
88224
88225         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88226         __localtime_r.
88227         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88228         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88229
88230         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88231         __gmtime_r.
88232         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88233         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88234         Include <time_r.h>.
88235
88236         * lib/timegm.c: Switch to glibc implementation, with the following
88237         changes:
88238         [defined HAVE_CONFIG_H]: Include <config.h>.
88239         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88240         (__mktime_internal) [!defined _LIBC]: New decl.
88241         (__gmtime_r) [!defined _LIBC]: New macro and function.
88242         (timegm): Use a prototype, since gnulib assumes C89.
88243         Do not bother declaring tmp to be const, as it's not really usefu.
88244         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88245         (timegm): Declare only if HAVE_DECL_TIMEGM.
88246
88247 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88248
88249         * MODULES.html.sh (func_all_modules): Add time_r.
88250         * modules/time_r: New file.
88251         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88252         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88253
88254 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88255
88256         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88257         Bug reported by Lute Kamstra in
88258         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88259
88260         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88261         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88262         course with correspondingly smaller numbers for tomorrow and
88263         yesterday.  From Tadayoshi Funaba.  Originally installed into
88264         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88265         coreutils merge?).
88266
88267 2003-08-31  Simon Josefsson  <jas@extundo.com>
88268
88269         * modules/timegm: New file.
88270         * MODULES.html.sh (func_all_modules): Add timegm.
88271
88272 2003-08-31  Simon Josefsson  <jas@extundo.com>
88273
88274         * m4/timegm.m4: New file.
88275
88276 2003-08-31  Simon Josefsson  <jas@extundo.com>
88277
88278         * lib/timegm.h: New file.
88279         * lib/timegm.c: New file.  Based on
88280         wget-1.8.2/src/http.c:mktime_from_utc.
88281
88282 2003-08-31  Karl Berry  <karl@gnu.org>
88283
88284         * lib/argp.h: update from libc.
88285
88286 2003-08-28  Bruno Haible  <bruno@clisp.org>
88287
88288         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88289         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88290         followed by '#define fnmatch fnmatch_posix' gives an error.
88291
88292 2003-08-28  Bruno Haible  <bruno@clisp.org>
88293
88294         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88295         warning on QNX, which defines O_BINARY to 000000.
88296
88297 2003-08-27  Jim Meyering  <jim@meyering.net>
88298
88299         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88300         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88301         would fail after 32.  Reported by Danny Levinson.  Details here:
88302         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88303
88304 2003-08-24  Bruno Haible  <bruno@clisp.org>
88305
88306         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88307         MSVC7 <stdio.h> is included later.
88308
88309 2003-08-22  Simon Josefsson  <jas@extundo.com>
88310
88311         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88312
88313 2003-08-20  Karl Berry  <karl@gnu.org>
88314
88315         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88316
88317 2003-08-20  Bruno Haible  <bruno@clisp.org>
88318
88319         * modules/progname: New file.
88320         * MODULES.html.sh (func_all_modules): Add progname.
88321
88322 2003-08-20  Bruno Haible  <bruno@clisp.org>
88323
88324         * lib/progname.h: New file, from GNU gettext.
88325         * lib/progname.c: New file, from GNU gettext.
88326         * lib/progreloc.c: New file, from GNU gettext.
88327
88328 2003-08-19  Jim Meyering  <jim@meyering.net>
88329
88330         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88331         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88332
88333 2003-08-19  Bruno Haible  <bruno@clisp.org>
88334
88335         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88336         more.
88337
88338 2003-08-19  Bruno Haible  <bruno@clisp.org>
88339
88340         * lib/xstrdup.c: Assume <string.h> exists.
88341
88342 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88343
88344         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88345         in makefile rules.
88346
88347 2003-08-18  Jim Meyering  <jim@meyering.net>
88348
88349         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88350         * m4/lib-ld.m4: Likewise.
88351
88352 2003-08-18  Jim Meyering  <jim@meyering.net>
88353
88354         * lib/setenv.h: Indent nested cpp directive.
88355         * lib/vasnprintf.c: Remove trailing blanks.
88356
88357 2003-08-17  Simon Josefsson  <jas@extundo.com>
88358
88359         * modules/xstrndup: New file.
88360         * MODULES.html.sh (func_all_modules): Add xstrndup.
88361
88362 2003-08-17  Simon Josefsson  <jas@extundo.com>
88363
88364         * modules/argp: Fix autoconf macro name. Add more dependencies.
88365
88366 2003-08-17  Simon Josefsson  <jas@extundo.com>
88367
88368         * m4/xstrndup.m4: New file.
88369
88370 2003-08-17  Simon Josefsson  <jas@extundo.com>
88371
88372         * m4/argp.m4: New file.
88373
88374 2003-08-17  Simon Josefsson  <jas@extundo.com>
88375             Bruno Haible  <bruno@clisp.org>
88376
88377         * lib/xstrndup.h: New file.
88378         * lib/xstrndup.c: New file.
88379
88380 2003-08-17  Bruno Haible  <bruno@clisp.org>
88381
88382         * modules/strndup (Files, Include): Add lib/strndup.h.
88383
88384 2003-08-17  Bruno Haible  <bruno@clisp.org>
88385
88386         * modules/euidaccess (Files): Add lib/euidaccess.h.
88387
88388 2003-08-17  Bruno Haible  <bruno@clisp.org>
88389
88390         * lib/strndup.h: New file.
88391
88392 2003-08-17  Bruno Haible  <bruno@clisp.org>
88393
88394         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88395         like AC_GNU_SOURCE.
88396         * modules/extensions (configure.ac): Comment out the invocation of
88397         gl_USE_SYSTEM_EXTENSIONS.
88398
88399 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88400
88401         Merges from coreutils, etc.
88402         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88403         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88404         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88405         fixing a typo.
88406         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88407         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88408
88409 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88410
88411         Document merge from coreutils.
88412         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88413         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88414         * modules/utime: Add m4/utimes-null.m4.
88415
88416 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88417
88418         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88419         space, undoing this 2003-08-12 change:
88420         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88421
88422 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88423
88424         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88425         strtoul.c from libc, undoing this 2003-08-12 change:
88426         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88427
88428 2003-08-16  Jim Meyering  <jim@meyering.net>
88429
88430         Merges from coreutils.
88431         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88432         prefix.  Adjust cache variables similarly.  Create 500 rather than
88433         just 300 files, to exercise bug on Darwin6.5, too.
88434         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88435         $missing_dir.
88436         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88437         AM_SYS_POSIX_TERMIOS.
88438         Reported by mkc@mathdogs.com.
88439         Also change use of $am_cv_sys_posix_termios
88440         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88441         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88442         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88443         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88444         in /proc/mounts until it finds one with matching device number.  This
88445         is unnecessary when the FILE argument *is* a mount point.  No stat call
88446         is necessary in that case.  So, disable the statvfs-testing code on
88447         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88448         as RedHat bug# 84846.
88449         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88450         to 1MB, so as not to render systems with no stack size limit (e.g.,
88451         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88452         Include <unistd.h>.  On some systems,
88453         it is required for the definition of _SC_PAGESIZE.
88454
88455 2003-08-16  Jim Meyering  <jim@meyering.net>
88456
88457         Merge from coreutils.
88458         * lib/xstrtoimax.c: #else #if -> #elif.
88459         * lib/xstrtoumax.c: Likewise.
88460
88461 2003-08-16  Jim Meyering  <jim@meyering.net>
88462
88463         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88464         * m4/utimes.m4: Removed.
88465         * m4/utimes-null.m4: Renamed from utimes.m4.
88466
88467         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88468         to 1MB, so as not to render systems with no stack size limit (e.g.,
88469         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88470         Include <unistd.h>.  On some systems,
88471         it is required for the definition of _SC_PAGESIZE.
88472
88473 2003-08-16  Jim Meyering  <jim@meyering.net>
88474         and Paul Eggert  <eggert@cs.ucla.edu>
88475
88476         Merges from coreutils, etc.
88477
88478         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88479         using the latest version from cvs.  This avoids problems with #line
88480         directives using a vendor (Sun) compiler.
88481         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88482         Don't set GETGROUPS_LIB here; now it's
88483         done via getgroups.m4's wrapper function.
88484         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88485         rather than just in sh-util/configure.in, so that the
88486         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88487         same.
88488         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88489         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88490         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88491         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88492         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88493         Remove code that is now done by the newly-required macros.
88494         Append $(EXEEXT) to DF_PROG.
88495         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88496         Do not invoke or require the following here,
88497         since prereq.m4 or some gnulib .m4 now does this for us:
88498         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88499         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88500         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88501         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88502         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88503         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88504         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88505         AC_FUNC_OBSTACK.
88506         Do not replace the following functions, as this is now the job
88507         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88508         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88509         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88510         atexit getpass, strdup, getpagesize.
88511         Replace 'raise'.
88512         Do not check for the following functions, as this is now the job
88513         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88514         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88515         setregid.
88516         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88517         Check for sys/sysctl.h.
88518         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88519         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88520         of checking for ssize_t ourselves.
88521
88522         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88523         Require every macro that gnulib/modules/* suggests for us.
88524         (jm_PREREQ_ADDEXT): New macro.
88525         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88526         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88527
88528         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88529         (gl_PHYSMEM): Use it.
88530         Also check for `table' function.
88531         Check for new headers and functions.
88532         Add check for sys/sysmp.h.
88533         With suggestions from Kaveh Ghazi.
88534         Ignore headers that are present but cannot be compiled.  This
88535         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88536         C 5.4.
88537
88538 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88539
88540         Document merge from coreutils.
88541         * modules/userspec: Depend on posixver.
88542         * modules/strftime: Depend on tzset.
88543
88544 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88545
88546         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88547         rather than tab, after '#' in shell-script copyright notices.
88548         Suggested by Bruno Haible.
88549
88550 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88551
88552         * config/srclist-update: Use three spaces, rather than tab, after '#'
88553         in shell-script copyright notices.  Suggested by Bruno Haible.
88554         Remove unnecessary parenthesization in regular expression.
88555
88556 2003-08-15  Jim Meyering  <jim@meyering.net>
88557
88558         Merge from coreutils.
88559         * lib/xgethostname.c: Include <stdlib.h>.
88560         (xghostname): Don't exit for anything other than memory-related
88561         failure; just return NULL.
88562         * lib/userspec.c: Include "posixver.h".
88563         (parse_user_spec): Accept `.' as a separator only
88564         in pre-POSIX-200112 mode.
88565         * lib/strtoimax.c: Use #elif rather than #else #if.
88566         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88567         Remove function, now that we can rely on a working tzset function.
88568         [!_LIBC]: Ensure that the required autoconf test has been run.
88569         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88570         Use underlying_strftime for %r.
88571         * lib/sha.c: Merge in some clean-up and optimization changes from
88572         glibc.
88573         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88574         Ensure that it is a multiple of 64.
88575         Rearrange loop exit tests so as to avoid performing an
88576         additional fread after encountering an error or EOF.
88577         * lib/realloc.c: Update copyright date.
88578
88579 2003-08-15  Jim Meyering  <jim@meyering.net>
88580         and Paul Eggert  <eggert@twinsun.com>
88581
88582         Merge from coreutils.
88583         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88584         member but strut utmpx does not.  Needed for AIX 4.3.3.
88585         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88586
88587 2003-08-15  Jim Meyering  <jim@meyering.net>
88588         and Paul Eggert  <eggert@cs.ucla.edu>
88589
88590         Merges from coreutils, etc.
88591         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88592         Require gl_FUNC_TZSET_CLOBBER.
88593         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88594         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88595         members.
88596
88597 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88598
88599         Help the merge from coreutils.
88600         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88601         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88602         * m4/tzset.m4: Use it too.
88603
88604 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88605
88606         * modules/tzset: New file.
88607
88608 2003-08-14  Jim Meyering  <jim@meyering.net>
88609
88610         Merges from coreutils.
88611         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88612         variable names, rather than @FNMATCH_H@.
88613         * modules/alloca: Likewise for $(ALLOCA_H).
88614
88615         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88616         the three copies of the literal target, `fnmatch.h'.
88617         * modules/alloca (alloca.h): Likewise.
88618
88619 2003-08-14  Jim Meyering  <jim@meyering.net>
88620
88621         Merge from coreutils.
88622         * m4/tzset.m4: New file.
88623         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88624         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88625         otherwise, AIX 5.1 systems would end up using the latter.
88626         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88627         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88628         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88629         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88630
88631 2003-08-14  Jim Meyering  <jim@meyering.net>
88632
88633         Merge from coreutils.
88634         * lib/obstack.h: Whitespace changes.
88635         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88636         and xcalloc return values.
88637         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88638         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88639         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88640         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88641         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88642         error from mntctl.
88643         Use mntctl's return value to drive the entry-processing loop, since
88644         we can't rely on the value of the vmt_length member in the last
88645         entry.  On some systems doing so could result in exhausting
88646         virtual memory.  Based in part on a patch from Mike Jetzer.
88647
88648 2003-08-14  Jim Meyering  <jim@meyering.net>
88649         and Paul Eggert  <eggert@twinsun.com>
88650
88651         Merges from coreutils, plus other fixes.
88652         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88653         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88654         for credits and details.  Thanks to Kaveh Ghazi for helping
88655         to keep these files in sync.
88656         (ARRAY_SIZE): Define it.
88657         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88658         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88659         (memcasecmp): Don't assume size_t fits in unsigned int.
88660         Remove casts and duplicate code.
88661         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88662         (memcpy): Remove definition.
88663         Merge in some clean-up and optimization changes from glibc.
88664         [BLOCKSIZE]: Move definition to top of file.
88665         Ensure that it is a multiple of 64.
88666         Rearrange loop exit tests so as to avoid performing an
88667         additional fread after encountering an error or EOF.
88668         * lib/md5.h (md5_uintptr): Define.
88669         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88670         return to the initial working directory.  Preserve errno
88671         for caller.
88672         * lib/idcache.c: Include "xalloc.h".
88673         (xmalloc, xrealloc): Remove decls.
88674         (getuser): Remove casts no longer required in C89.
88675         * lib/human.c: Include stdio.h, for sprintf.
88676         * lib/group-member.c: Include "xalloc.h".
88677         (xmalloc, xrealloc): Remove decls.
88678         (get_group_info): Remove casts no longer required in C89.
88679         * lib/getusershell.c (readname): Remove casts no longer required in
88680         C89.
88681         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88682         * lib/getline.c: Whitespace fix, from coreutils.
88683
88684 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88685
88686         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88687         Check for isascii.
88688
88689         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88690         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88691         Undo previous (whitespace-only) change.
88692
88693 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88694
88695         * lib/exclude.c: Include <ctype.h>
88696         (IN_CTYPE_DOMAIN): New macro.
88697         (is_space): New fn.
88698         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88699         and empty lines.
88700
88701         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88702         Undo previous (whitespace-only) change.
88703
88704 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88705
88706         * config/srclist-update: Change update back to the old behavior,
88707         leaving whitespace alone.  Use one 'sed' command rather than a
88708         pipeline.
88709         (fixlicense): Now a variable, not a function.
88710         (remove_trailing_blanks): Remove.
88711         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88712         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88713         Undo previous (whitespace-only) change.
88714
88715 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88716
88717         Merge from coreutils.
88718         * modules/euidaccess: Add lib_SOURCES, include for new
88719         file euidaccess.h
88720
88721 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88722
88723         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88724         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88725         Normalize leading white space and remove trailing white space.
88726
88727         Merge from coreutils
88728         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88729
88730         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88731         0.12.1.  These files are now being upgraded automatically by
88732         ../config/srclist-update.
88733
88734 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88735
88736         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88737         Normalize leading white space and remove trailing white space.
88738         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88739         notice, as per ../config/srclist-update.
88740
88741         Merge from coreutils.
88742         * lib/euidaccess.h: New file.
88743         * lib/euidaccess.c: Include it.
88744         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88745         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88746         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88747
88748 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88749
88750         * config/srclist-update: Add copyright notice.
88751         (remove_id_lines, remove_trailing_blanks): New constants.
88752         (fixfile): Use them to normalize spacing a bit in copied files.
88753         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88754         Normalize leading white space and remove trailing white space.
88755
88756         * config/texinfo.tex: Sync with texinfo.
88757
88758         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88759         strtoul.c from libc, to merge coreutils whitespace changes.
88760
88761         * config/srclist.txt: Get the following m4 files from gettext:
88762         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88763         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88764         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88765         wint_t.m4.
88766
88767 2003-08-12  Karl Berry  <karl@gnu.org>
88768
88769         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88770         been made.
88771
88772 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88773
88774         * modules/gnu-source, m4/gnu-source.m4:
88775         Remove; we're assuming Autoconf 2.54 or later now.
88776         Suggested by Bruno Haible.
88777         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88778
88779 2003-08-11  Bruno Haible  <bruno@clisp.org>
88780
88781         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88782
88783 2003-08-11  Bruno Haible  <bruno@clisp.org>
88784
88785         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88786         (vasnprintf): Use it instead of wcslen.
88787
88788 2003-08-11  Bruno Haible  <bruno@clisp.org>
88789
88790         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88791         value to ensure that _Bool promotes to int. Use #define for _Bool when
88792         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88793
88794 2003-08-10  Karl Berry  <karl@gnu.org>
88795
88796         * lib/regex.h: update from libc (whitespace fix).
88797
88798 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88799
88800         Merge some files from coreutils.  These changes were
88801         originally made by Jim Meyering.
88802         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88803         many older Unixes require this.
88804         * lib/alloca.c (alloca): Remove cast to argument of free;
88805         no longer needed in C89.
88806         * lib/alloca_.h, regex.h: Fix white space to match
88807         what GNU indent does.
88808
88809 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88810
88811         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88812         apparently Emacs's Unicode mode got confused before my 2003-08-05
88813         checkin.
88814
88815 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88816
88817         * m4/extensions.m4: New file.
88818         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88819         Require gl_USE_SYSTEM_EXTENSIONS.
88820         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88821         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88822
88823 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88824
88825         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88826         * modules/extensions, modules/gnu-source: New files.
88827         * modules/timespec, modules/unlocked-io: Depend on extensions.
88828
88829 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88830
88831         * modules/restrict: New file.
88832         * MODULES.html.sh (func_all_modules): Add restrict.
88833         * modules/regex: Depend on restrict.
88834
88835 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88836
88837         * m4/restrict.m4: New file.
88838         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88839
88840 2003-08-07  Bruno Haible  <bruno@clisp.org>
88841
88842         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88843         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88844
88845 2003-08-07  Bruno Haible  <bruno@clisp.org>
88846
88847         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88848         makes the module 'getndelim2' compatible with the module 'getline'.
88849
88850 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88851
88852         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88853         byte with "\201" to avoid glitches when editing that source file
88854         with multi-gnome-terminal.
88855
88856 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88857
88858         * lib/bumpalloc.h: Remove.
88859
88860 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88861
88862         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88863         * modules/bumpalloc: Remove.
88864
88865 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88866
88867         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88868         GNU coding style.
88869
88870         Merge from coreutils.
88871         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88872         1. From glibc.
88873         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88874         from Karl Berry, implemented by Jim Meyering.
88875         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88876         from Dmitry V. Levin.
88877         Remove anachronistic cast of xrealloc.
88878         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88879         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88880         type. Otherwise, it wouldn't compile with at least /bin/cc on
88881         ymp-cray-unicos9.0.2.X.
88882         Combine two mostly-identical uses of alloca into one.
88883         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88884
88885 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88886
88887         [From Emacs.]
88888
88889         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88890         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88891         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88892         obsolete NLIST_NAME_UNION.
88893         [__GNU__]: Undef BSD and FSCALE.
88894         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88895
88896 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88897
88898         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88899         an enum type, so that it's guaranteed to promote to int.  See:
88900         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88901
88902 2003-08-03  Karl Berry  <karl@gnu.org>
88903
88904         * config/depcomp: update from automake.
88905
88906 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88907
88908         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88909         (strerror): Don't assume that a printable int fits in 14 bytes.
88910
88911 2003-07-31  Bruno Haible  <bruno@clisp.org>
88912
88913         * modules/getpass-gnu: New file.
88914         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88915
88916 2003-07-31  Bruno Haible  <bruno@clisp.org>
88917
88918         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88919
88920 2003-07-24  Karl Berry  <karl@gnu.org>
88921
88922         * config/missing: update from automake.
88923
88924 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88925             Bruno Haible  <bruno@clisp.org>
88926
88927         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88928         * lib/getline.c (getline, getdelim): Likewise.
88929         Remove _GNU_SOURCE define; now it's defined in config.h through
88930         m4/getline.m4.
88931
88932 2003-07-23  Karl Berry  <karl@gnu.org>
88933
88934         * config/config.sub: update from prep.
88935
88936 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88937
88938         * modules/xalloc (Depends-on): Add exitfail.
88939         * modules/xmemcoll: Likewise.
88940
88941 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88942
88943         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88944         over-parenthesization in macros.
88945
88946         Sync with coreutils.
88947
88948         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88949         required by C99.
88950
88951         Use `exit_failure' for xalloc and xmemcoll instead of their own
88952         private exit-failure variables.
88953         * lib/xalloc.h (xalloc_exit_failure): Remove.
88954         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88955         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88956         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88957         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88958         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88959
88960 2003-07-20  Jim Meyering  <jim@meyering.net>
88961
88962         * modules/closeout (Depends-on): Add exitfail.
88963         Suggestion from Bruno Haible.
88964
88965 2003-07-19  Karl Berry  <karl@gnu.org>
88966
88967         * config/config.sub: update from prep.
88968
88969 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88970
88971         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88972         Remove.
88973         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88974         to test that it can stand by itself.  Include "exitfail.h".
88975         Clients should set exit_failure instead.
88976         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88977
88978 2003-07-18  Bruno Haible  <bruno@clisp.org>
88979
88980         * modules/getndelim2: New file.
88981         * modules/getline: Share files with module getndelim2.
88982         * modules/getnline: Depend on getndelim2 instead of sharing files with
88983         it. Add getnline.c to lib_SOURCES.
88984         * MODULES.html.sh (func_all_modules): Add getndelim2.
88985
88986 2003-07-18  Bruno Haible  <bruno@clisp.org>
88987
88988         * m4/getndelim2.m4: New file.
88989         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88990         invoke gl_PREREQ_GETNDELIM2.
88991         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88992         gl_PREREQ_GETNDELIM2.
88993         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88994         gl_GETNDELIM2.
88995
88996 2003-07-18  Bruno Haible  <bruno@clisp.org>
88997
88998         * lib/getndelim2.h: New file.
88999         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89000         getndelim2.h.
89001         (getndelim2): Make non-static. Change return type to ssize_t.
89002         * lib/getline.h: Change argument names.
89003         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89004         * lib/getnline.c: Include getndelim2.h.
89005
89006 2003-07-18  Andreas Schwab  <schwab@suse.de>
89007
89008         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89009
89010 2003-07-17  Karl Berry  <karl@gnu.org>
89011
89012         * config/config.sub: update from prep.
89013
89014 2003-07-17  Bruno Haible  <bruno@clisp.org>
89015
89016         * modules/getnline: New file.
89017         * modules/getline: Add lib/getndelim2.c to source file list.
89018         * MODULES.html.sh (func_all_modules): Add getnline.
89019
89020 2003-07-17  Bruno Haible  <bruno@clisp.org>
89021
89022         * m4/getnline.m4: New file.
89023
89024 2003-07-17  Bruno Haible  <bruno@clisp.org>
89025
89026         * m4/Makefile.am.in: Remove file.
89027         * m4/Makefile.am: Remove file.
89028         * m4/Makefile.in: Remove file.
89029
89030 2003-07-17  Bruno Haible  <bruno@clisp.org>
89031
89032         * lib/getnline.h: New file.
89033         * lib/getnline.c: New file.
89034         * lib/getndelim2.c: New file, extracted from getline.c.
89035         (getndelim2): Renamed from getdelim2, with added nmax argument.
89036         * lib/getline.c: Include getndelim2.c.
89037         (getdelim2): Moved out to getndelim2.c.
89038         (getline, getdelim): Update.
89039
89040 2003-07-17  Bruno Haible  <bruno@clisp.org>
89041
89042         * lib/Makefile.am: Remove file.
89043         * lib/Makefile.in: Remove file.
89044
89045 2003-07-17  Bruno Haible  <bruno@clisp.org>
89046
89047         * configure.in: Remove file.
89048         * Makefile.in: Remove file.
89049
89050 2003-07-17  Bruno Haible  <bruno@clisp.org>
89051
89052         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89053
89054 2003-07-16  Karl Berry  <karl@gnu.org>
89055
89056         * config/srclist-update: was running fixlicense twice, which caused
89057                 texinfo.tex to be nullified for some reason.  Simplify,
89058                 $gplsrc is no longer needed as far as I can see?
89059
89060 2003-07-16  Jim Meyering  <jim@meyering.net>
89061
89062         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89063
89064 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89065
89066         * config/srclist.txt: Get the following files from gettext-runtime/intl
89067         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89068         ref-del.sin.  From Bruno Haible.
89069         * config/srclist-update (fixfile): Change grep pattern again, since the
89070         previous fix didn't work (there was another trailing $).  Use
89071         '[$]' to escape the $s.
89072
89073 2003-07-15  Karl Berry  <karl@gnu.org>
89074
89075         * lib/vasnprintf.c: update from gettext.
89076
89077 2003-07-15  Karl Berry  <karl@gnu.org>
89078
89079         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89080         gets expanded when surrounded by '$'.
89081
89082 2003-07-15  Jim Meyering  <jim@meyering.net>
89083
89084         * modules/save-cwd: Don't depend on error.  From Derek Price.
89085
89086 2003-07-15  Jim Meyering  <jim@meyering.net>
89087
89088         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89089
89090 2003-07-14  Simon Josefsson  <jas@extundo.com>
89091
89092         * modules/mempcpy: New file.
89093         * MODULES.html.sh (func_all_modules): Add mempcpy.
89094
89095 2003-07-14  Simon Josefsson  <jas@extundo.com>
89096
89097         * m4/mempcpy.m4: New file.
89098
89099 2003-07-14  Simon Josefsson  <jas@extundo.com>
89100
89101         * lib/mempcpy.h: New file.
89102         * lib/mempcpy.c: New file.
89103
89104 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89105
89106         * modules/getdate, modules/posixtm: Depend on mktime.
89107
89108 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89109
89110         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89111         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89112         unicodeio.c, unicodeio.h, unlocked-io.h:
89113         Switch from LGPL to GPL.
89114
89115 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89116
89117         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89118         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89119         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89120         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89121         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89122         updated automatically by ../config/srclist-update.  This changes
89123         their license from LPGL to GPL.
89124
89125 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89126
89127         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89128         assumed to refer to the root of the most recent stable gettext version.
89129         * config/srclistvars.sh: Add defaults for eggert.
89130         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89131         Match "This program" as well as "The program".  This is needed
89132         for gettext.
89133
89134 2003-07-14  Jim Meyering  <jim@meyering.net>
89135
89136         Don't emit diagnostics.  Let callers do that.
89137         * lib/save-cwd.c: Don't include "error.h".
89138         (save_cwd): Don't call error.  Ensure that errno is valid
89139         when returning nonzero.
89140
89141         * lib/save-cwd.h (restore_cwd): Update prototype.
89142         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89143         Simplify.  Don't call error upon failure.  Let callers do that.
89144         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89145         when auditing is enabled.  But don't bother updating the #if.
89146
89147 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89148
89149         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89150         it breaks C++ compilation.
89151         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89152
89153 2003-07-10  Simon Josefsson  <jas@extundo.com>
89154
89155         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89156
89157 2003-07-10  Jim Meyering  <jim@meyering.net>
89158
89159         * m4/clock_time.m4: Remove trailing blank.
89160         * m4/intmax_t.m4: Likewise.
89161
89162 2003-07-10  Jim Meyering  <jim@meyering.net>
89163
89164         * lib/vasnprintf.c: Remove trailing blanks.
89165         Make cpp indentation consistent.
89166
89167 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89168
89169         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89170         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89171         Switch from LGPL to GPL.
89172
89173 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89174
89175         * config/srclist.txt: Sort sublists.  Add
89176         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89177         that differ from gnulib for one reason or another; we'd like this list
89178         to be smaller but for now let's document what we have.
89179
89180 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89181
89182         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89183         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89184         and sweeter "eval x=$x".
89185         * config/srclist.txt: Get lib/argp* from glibc.
89186
89187 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89188
89189         * lib/mktime.c: Fix some boundary cases and remove need for floating
89190         point.
89191
89192         Issue a compile-time diagnostic if time_t is floating point, or if
89193         two's complement arithmetic is not in effect, or if arithmetic
89194         right shift does not propagate the sign.  These assumptions were
89195         all in the original code but they weren't checked.
89196
89197         (TIME_T_MIDPOINT, verify): New macros.
89198         (__isleap): Remove; it has integer overflow problems.
89199         (leapyear): New function, without those problems.
89200         (ydhms_tm_diff): Remove; splitting into two parts.
89201         (ydhms_diff): New function, containing the arithmetic part of
89202         the old ydhms_tm_diff function.  Issue a compile-time
89203         diagnostic if we are not using C99 integer division.
89204         Avoid casts when possible.
89205         (guess_time_tm): New function, containing the checking part of
89206         the old ydhms_tm_diff function.  Return the new value, rather than
89207         the difference between it and the old.  Accept a new argument T
89208         so that *T specifies the old value.  Check for overflow in the result.
89209
89210         (__mktime_internal): Use a time_t offset, not a long int offset.
89211         This undoes the 2003-06-04 change, which is no longer needed now
89212         that we have better overflow checking.
89213         (localtime_offset): Likewise.
89214
89215         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89216         and long are 64-bit but int is only 32-bit.
89217         (ydhms_diff): Use long int to store year1 and yday1.
89218         Issue a compile-time diagnostic if long int is not wide enough.
89219
89220         (__mktime_internal): Use long int to store adjusted year and yday.
89221         Use plain C rather than preprocessor commands, if that doesn't
89222         affect efficiency.
89223         Check for overflow (and try to repair) after each probe
89224         rather than checking only at the very end.  This avoids some bugs
89225         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89226         does not equal GMT offset at maximum time).
89227         Use integer to check for overflow rather than floating point; this
89228         is more portable to non-IEEE hosts, and is a tad faster.
89229         When we detect that we are oscillating between two values,
89230         don't check whether tm_isdst has the requested value, since
89231         we already know the answer.  When tm_isdst has the wrong value,
89232         use a different heuristic to find the right one, based on the
89233         extreme values actually observed in practice in tz2003a,
89234         rather than the (overly optimistic) "previous 3 calendar quarters".
89235
89236         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89237         "T const" to accommodate glibc style.
89238         (check_result): Use less-confusing report format.  "long" -> "long int.
89239         (main): Likewise.
89240         Don't loop if the iteration overflows time_t.
89241         Allow a negative step in the iteration.
89242
89243 2003-07-06  Karl Berry  <karl@gnu.org>
89244
89245         * config/depcomp: update from automake.
89246         * config/config.sub: update from prep.
89247
89248 2003-07-03  Karl Berry  <karl@gnu.org>
89249
89250         * config/config.guess: update from prep.
89251
89252 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89253
89254         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89255         xreadlink.c now includes it unconditionally.
89256
89257 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89258
89259         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89260         having it depend on HAVE_SYS_TYPES_H.
89261
89262 2003-07-01  Bruno Haible  <bruno@clisp.org>
89263
89264         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89265         <sys/types.h> should be sufficient.
89266         Reported by Paul Eggert.
89267
89268 2003-06-26  Karl Berry  <karl@gnu.org>
89269
89270         * config/depcomp: update from automake.
89271
89272 2003-06-26  Bruno Haible  <bruno@clisp.org>
89273
89274         * modules/human: Depend on module stdbool.
89275
89276 2003-06-25  Bruno Haible  <bruno@clisp.org>
89277
89278         * modules/readlink: New file.
89279         * modules/xreadlink: Depend on it.
89280         * MODULES.html.sh (func_all_modules): Add readlink.
89281
89282 2003-06-25  Bruno Haible  <bruno@clisp.org>
89283
89284         * m4/readlink.m4: New file.
89285
89286 2003-06-25  Bruno Haible  <bruno@clisp.org>
89287
89288         * lib/readlink.c: New file.
89289
89290 2003-06-22  Karl Berry  <karl@gnu.org>
89291
89292         * config/srclist.txt: update mkinstalldirs from automake.
89293         * config/mkinstalldirs: update.
89294
89295 2003-06-22  Bruno Haible  <bruno@clisp.org>
89296
89297         Portability to mingw32.
89298         * m4/ssize_t.m4: New file, from GNU gettext.
89299         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89300         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89301
89302 2003-06-22  Bruno Haible  <bruno@clisp.org>
89303
89304         * modules/safe-read: Add m4/ssize_t.m4.
89305         * modules/xreadlink: Add m4/ssize_t.m4.
89306
89307 2003-06-20  Bruno Haible  <bruno@clisp.org>
89308
89309         Assume C89, so PARAMS isn't needed.
89310         * lib/unicodeio.h (PARAMS): Remove.
89311         * lib/unicodeio.c: Don't use PARAMS.
89312
89313 2003-06-18  Karl Berry  <karl@gnu.org>
89314
89315         * config/config.{guess,sub}: update from prep.
89316
89317 2003-06-18  Jim Meyering  <jim@meyering.net>
89318
89319         Merge changes from coreutils.
89320         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89321         Remove explicit declarations of xmalloc and realloc.
89322         Include xalloc.h.
89323         (read_utmp): Remove anachronistic cast of xmalloc.
89324
89325 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89326
89327         Assume C89, so PARAMS isn't needed.
89328         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89329         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89330         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89331         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89332         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89333         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89334         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89335         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89336         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89337         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89338         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89339         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89340         no longer needed. Anyway, config.h should always be included before any
89341         other file.
89342
89343 2003-06-11  Simon Josefsson  <jas@extundo.com>
89344
89345         * modules/sysexits: New file.
89346         * MODULES.html.sh (func_all_modules): Add sysexits.
89347
89348 2003-06-11  Simon Josefsson  <jas@extundo.com>
89349
89350         * lib/sysexit_.h: New file.
89351
89352 2003-06-11  Derek Price  <derek@ximbiot.com>
89353
89354         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89355         necessary.
89356
89357 2003-06-11  Bruno Haible  <bruno@clisp.org>
89358
89359         * m4/sysexits.m4: New file.
89360
89361 2003-06-10  Simon Josefsson  <jas@extundo.com>
89362
89363         * lib/argp.h: New file, from glibc.
89364         * lib/argp-ba.c: New file, from glibc.
89365         * lib/argp-eexst.c: New file, from glibc.
89366         * lib/argp-fmtstream.c: New file, from glibc.
89367         * lib/argp-fmtstream.h: New file, from glibc.
89368         * lib/argp-fs-xinl.c: New file, from glibc.
89369         * lib/argp-help.c: New file, from glibc.
89370         * lib/argp-namefrob.h: New file, from glibc.
89371         * lib/argp-parse.c: New file, from glibc.
89372         * lib/argp-pv.c: New file, from glibc.
89373         * lib/argp-pvh.c: New file, from glibc.
89374         * lib/argp-xinl.c: New file, from glibc.
89375
89376 2003-06-10  Simon Josefsson  <jas@extundo.com>
89377
89378         * modules/strchrnul: New file.
89379
89380 2003-06-10  Simon Josefsson  <jas@extundo.com>
89381
89382         * modules/argp: New file.
89383
89384 2003-06-10  Simon Josefsson  <jas@extundo.com>
89385
89386         * m4/strchrnul.m4: New file.
89387
89388 2003-06-10  Simon Josefsson  <jas@extundo.com>
89389
89390         * lib/strchrnul.h: New file.
89391         * lib/strchrnul.c: New file.
89392
89393 2003-06-10  Bruno Haible  <bruno@clisp.org>
89394
89395         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89396
89397 2003-06-07  Karl Berry  <karl@gnu.org>
89398
89399         * config/config.{guess,sub}: update from prep.
89400
89401 2003-06-07  Jim Meyering  <jim@meyering.net>
89402
89403         * modules/strtod: Use $(...) notation, not @...@ for
89404         AC_REPLACE'd variables.
89405         * modules/localcharset: Likewise.
89406
89407 2003-06-07  Jim Meyering  <jim@meyering.net>
89408
89409         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89410         in place of my name in the copyright comment.
89411         Remove definition and uses of __P.
89412
89413         From coreutils.
89414         * lib/stat.c: Don't declare xmalloc explicitly.
89415         Instead, include "xalloc.h".
89416         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89417         xrealloc, and xcalloc return values.
89418         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89419         Improve comment.
89420         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89421
89422 2003-06-07  Bruno Haible  <bruno@clisp.org>
89423
89424         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89425         avoid AC_CONFIG_LINKS.
89426         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89427         fnmatch.h, to avoid AC_CONFIG_LINKS.
89428         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89429
89430 2003-06-07  Bruno Haible  <bruno@clisp.org>
89431
89432         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89433         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89434         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89435         directory.
89436         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89437         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89438         directory.
89439
89440 2003-06-06  Jim Meyering  <jim@meyering.net>
89441
89442         Merge from coreutils.
89443         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89444         Consolidate declarations and initializations of *_base* locals.
89445
89446         Merge from coreutils.
89447         This avoids a core dump on systems without GNU putenv,
89448         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89449         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89450         (unsetenv): New static function, from GNU libc.
89451         (rpl_putenv): Use it.
89452
89453         * lib/modechange.c: Remove trailing blanks.
89454
89455         Merge from coreutils.
89456         * lib/fsusage.c: Remove declaration of statfs.
89457         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89458
89459         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89460
89461 2003-06-06  Jim Meyering  <jim@meyering.net>
89462
89463         * lib/stdbool_.h: Renamed from stdbool.h.in.
89464
89465 2003-06-06  Jim Meyering  <jim@meyering.net>
89466             Bruno Haible  <bruno@clisp.org>
89467
89468         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89469         Adjust Makefile.am snippet not to redirect directly to target.
89470         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89471
89472 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89473
89474         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89475         mismatch, look in future quarters as well as past.  This fixes a
89476         bug when processing fall-backwards gaps immediately after a long
89477         period of daylight-saving time.
89478
89479         * lib/mktime.c: Assume freestanding C89 or better.
89480         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89481         (__P): Remove; not used.
89482         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89483         (mktime, not_equal_tm, print_tm, check_result,
89484         main): Use prototypes.  Use const * where appropriate.
89485         (main): Fix typo in testing code that uncovered by above changes.
89486         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89487
89488 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89489
89490         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89491         locale.h, localeconv.  This merges changes from coreutils.
89492
89493         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89494         It can be removed after the next Autoconf is released.
89495         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89496         needed.
89497
89498 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89499
89500         * lib/mktime.c: Fix Debian bug 177940
89501         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89502         (localtime_offset): Now long int, not time_t, because we want it
89503         to be guaranteed to be signed.  All uses changed.
89504         (__mktime_internal): If overflow would occur when adding offset,
89505         don't add it.
89506
89507         Merge 'human' changes from coreutils.  Rewrite to support
89508         locale-specific notations like thousands separators.
89509         * lib/human.c: Simplify authorship notice.
89510         Include human.h immediately after config.h.
89511         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89512         <limits.h>: Do not include, since human.h does.
89513         (SIZE_MAX, UINTMAX_MAX): New macros.
89514         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89515         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89516         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89517         (power_letter): Renamed from suffixes.
89518         (generate_suffix_backwards): Remove.
89519         (adjust_value): Now takes int style (because of human.h changes)
89520         and long double value (for greater precision on some platforms).
89521         (group_number): New function.
89522         (human_readable): Use it.  Use integer options, not enum.
89523         Put the options before the sizes in the arg list.
89524         Support all the new options.
89525         The old human_readable function has been removed;
89526         use inttostr.h instead.
89527         (human_readable, default_block_size, humblock):
89528         Use uintmax_t, not int, for block sizes.
89529         (human_readable_inexact, block_size_types): Remove.
89530         (block_size_opts): New constant.
89531         (human_options): Renamed from human_block_size, with new signature
89532         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89533         * lib/human.h: Add copyright and authorship notice.
89534         Include <limits.h> and <stdbool.h> unconditionally.
89535         (PARAMS): Remove.  All uses removed.
89536         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89537         (enum human_inexact_style): Remove tag; now a nameless enum.
89538         (human_floor, human_ceiling, human_round_to_even): Now have
89539         values 2, 0, 1 rather than -1, 1, 0.
89540         (human_group_digits, human_suppress_point_zero, human_autoscale,
89541         human_base_1024, human_SI, human_B): New constants.
89542         (human_readable_inexact, human_block_size): Remove.
89543         (human_readable): Size args are now uintmax_t, not int.
89544         (human_options): New decl.
89545
89546         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89547         unnecessary now that we assume C89 or better.  This change
89548         imported from coreutils.
89549
89550         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89551         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89552         in the 2003-05-30 sync from glibc.
89553
89554         .h files should stand alone, but we shouldn't include <sys/types.h>
89555         if we can get away with just <stddef.h>.
89556
89557         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89558         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89559         rather than <sys/types.h>, as we merely need size_t.
89560         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89561         to get size_t.
89562         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89563         Include <stdio.h>, to get FILE.
89564         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89565         memcasecmp.h has included <stddef.h> and all we need is size_t.
89566         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89567         our interface, instead of including <sys/types.h>
89568
89569 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89570
89571         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89572         now, as glibc mktime is buggy on non-glibc systems.
89573
89574 2003-06-03  Karl Berry  <karl@gnu.org>
89575
89576         * config/config.sub: update from prep.
89577
89578 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89579
89580         [from coreutils]
89581         Fix some minor time-related bugs with POSIX time arguments.
89582         Some valid time stamps were being rejected (notably -1, and
89583         time stamps before 1900 on 64-bit hosts).  And some invalid
89584         time stamps were being accepted, e.g. September 31.
89585
89586         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89587         that we can return (time_t) -1 successfully.
89588         * lib/posixtm.c: Likewise.
89589         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89590         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89591         (t): Remove static var.
89592         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89593         of static var.  All uses changed.
89594         (year): Do not reject years before 1900; they can occur with
89595         64-bit time_t.
89596         (posix_time_parse): Do not check for out-of-range components;
89597         that is now the caller's responsibility, since our checks were
89598         only approximations.
89599         (posixtime): Use mktime to check for out-of-range components,
89600         since it knows them exactly.
89601         If mktime returns (time_t) -1, check whether an error actually occurred
89602         by invoking localtime on -1.
89603         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89604         posixtime failures better.
89605         Improve the test data (in comments only).
89606
89607 2003-06-02  Karl Berry  <karl@gnu.org>
89608
89609         * config/mkinstalldirs (version): new variable.
89610         (--version): new option.
89611         (usage): improve message.
89612
89613 2003-05-30  Karl Berry  <karl@gnu.org>
89614
89615         * lib/mktime.c: update from libc.
89616
89617 2003-05-30  Bruno Haible  <bruno@clisp.org>
89618
89619         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89620         * config/config.rpath: Upgrade to gettext-0.12.1.
89621
89622 2003-05-30  Bruno Haible  <bruno@clisp.org>
89623
89624         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89625         * m4/nls.m4: New file, from gettext-0.12.1.
89626         * m4/po.m4: New file, from gettext-0.12.1.
89627         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89628
89629 2003-05-30  Bruno Haible  <bruno@clisp.org>
89630
89631         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89632         * lib/localcharset.h: Likewise.
89633         * lib/localcharset.c: Likewise.
89634
89635 2003-05-29  Karl Berry  <karl@gnu.org>
89636
89637         * config/config.rpath: update from gettext.
89638
89639 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89640
89641         Assume the headers required for C89 freestanding compilers.
89642         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89643         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89644         * m4/human.m4 (gl_HUMAN): Likewise.
89645         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89646         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89647         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89648         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89649         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89650         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89651
89652 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89653
89654         Assume the headers required for C89 freestanding compilers.
89655         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89656         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89657         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89658         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89659         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89660         define, since <limits.h> is guaranteed to do that.
89661         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89662         * lib/exclude.c: Include <stdbool.h> unconditionally.
89663         * lib/tempname.c: Include <stddef.h> unconditionally.
89664         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89665         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89666         <stddef.h> does that.
89667         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89668         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89669         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89670         needed.
89671         * lib/xstrtol.c: Likewise.
89672         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89673         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89674
89675         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89676         warnings on some platforms.
89677
89678         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89679         arbitrarily.
89680
89681 2003-05-26  Jim Meyering  <jim@meyering.net>
89682
89683         Merge in a change from coreutils:
89684         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89685         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89686         that condition, rather than `-1' which is slightly misleading.
89687         Change the name of the cache variable to have the gl_ prefix.
89688         Prompted by a patch from Richard Dawe for DJGPP.
89689
89690 2003-05-24  Karl Berry  <karl@gnu.org>
89691
89692         * config/config.guess: update from prep.
89693
89694 2003-05-22  Karl Berry  <karl@gnu.org>
89695
89696         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89697
89698 2003-05-20  Karl Berry  <karl@gnu.org>
89699
89700         * config/config.guess: update from prep.
89701
89702 2003-05-18  Karl Berry  <karl@gnu.org>
89703
89704         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89705         might actually be set by the user.
89706
89707         * config/depcomp, install-sh, mdate-sh: update from automake.
89708
89709 2003-05-17  Bruno Haible  <bruno@clisp.org>
89710
89711         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89712         invalid expansion for AC_EGREP_CPP.
89713         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89714         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89715         Suggested by Akim Demaille <akim@epita.fr> in
89716         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89717
89718 2003-05-12  Jim Meyering  <jim@meyering.net>
89719
89720         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89721         the space-padded-by-default conversion specifiers, %e, %k, %l.
89722
89723 2003-05-12  Bruno Haible  <bruno@clisp.org>
89724
89725         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89726         the string is longer than 4 KB.
89727
89728 2003-05-11  Karl Berry  <karl@gnu.org>
89729
89730         * config/config.{guess,sub}: update from prep.
89731
89732 2003-05-09  Bruno Haible  <bruno@clisp.org>
89733
89734         * modules/error: Add m4/strerror_r.m4 to file list.
89735
89736 2003-05-03  Bruno Haible  <bruno@clisp.org>
89737
89738         Upgrade to Unicode-4.0.
89739         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89740         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89741         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89742         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89743         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89744         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89745         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89746         Change width of U+E0100..U+E01EF from 1 to 0.
89747
89748 2003-04-25  Jim Meyering  <jim@meyering.net>
89749
89750         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89751         of type size_t, not int.
89752
89753 2003-04-25  Bruno Haible  <bruno@clisp.org>
89754
89755         * lib/copy-file.c: Include <stddef.h>, for size_t.
89756
89757 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89758
89759         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89760         code which expansion is under static control.  Patch imported from
89761         Akim Demaille's patch to Bison; see
89762         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89763
89764 2003-04-14  Bruno Haible  <bruno@clisp.org>
89765
89766         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89767
89768 2003-04-11  Jim Meyering  <jim@meyering.net>
89769
89770         Merge changes from Coreutils.
89771
89772         2003-03-22  Jim Meyering  <jim@meyering.net>
89773
89774         * lib/strftime.c (widen): Cast alloca return value to proper type.
89775
89776         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89777
89778         From GNU libc.
89779         * lib/strftime.c (my_strftime): Handle very large width
89780         specifications for numeric values correctly.  Improve checks for
89781         overflow.
89782
89783         2003-01-19  Jim Meyering  <jim@meyering.net>
89784
89785         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89786         definitions.
89787         (nl_get_alt_digit) [! defined my_strftime]: Define.
89788         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89789         _nl_get_alt_digit and _nl_get_walt_digit.
89790
89791         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89792         libc. These changes have no effect outside of _LIBC.
89793
89794 2003-04-10  Bruno Haible  <bruno@clisp.org>
89795
89796         * modules/findprog: New file.
89797         * MODULES.html.sh (func_all_modules): Add it.
89798
89799 2003-04-10  Bruno Haible  <bruno@clisp.org>
89800
89801         * m4/findprog.m4: New file.
89802         * m4/eaccess.m4: New file.
89803
89804 2003-04-10  Bruno Haible  <bruno@clisp.org>
89805
89806         * lib/findprog.h: New file, from GNU gettext.
89807         * lib/findprog.c: New file, from GNU gettext.
89808
89809 2003-04-05  Jim Meyering  <jim@meyering.net>
89810
89811         Merge changes from Coreutils.
89812
89813         * lib/exclude.h (PARAMS): Remove definition and uses.
89814         * lib/exclude.c: Remove uses of `PARAMS'.
89815
89816         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89817         Add test-cases for DOS filenames. Declare program_name.
89818         (main): Set up program_name.  Patch by Rich Dawe.
89819
89820         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89821         error from mntctl.
89822         Use mntctl's return value to drive the entry-processing loop, since
89823         we can't rely on the value of the vmt_length member in the last
89824         entry.  On some systems doing so could result in exhausting
89825         virtual memory.  Based in part on a patch from Mike Jetzer.
89826
89827 2003-04-04  Bruno Haible  <bruno@clisp.org>
89828
89829         * modules/linebreak: New file.
89830         * MODULES.html.sh (func_all_modules): Add it.
89831
89832 2003-04-04  Bruno Haible  <bruno@clisp.org>
89833
89834         * m4/linebreak.m4: New file.
89835
89836 2003-04-04  Bruno Haible  <bruno@clisp.org>
89837
89838         * lib/linebreak.h: New file, from GNU gettext.
89839         * lib/linebreak.c: New file, from GNU gettext with slight
89840         modifications.
89841         * lib/lbrkprop.h: New file, from GNU gettext.
89842
89843 2003-04-03  Bruno Haible  <bruno@clisp.org>
89844
89845         * modules/utf8-ucs4: New file.
89846         * modules/utf16-ucs4: New file.
89847         * modules/ucs4-utf8: New file.
89848         * modules/ucs4-utf16: New file.
89849         * MODULES.html.sh (func_all_modules): Add them.
89850
89851 2003-04-03  Bruno Haible  <bruno@clisp.org>
89852
89853         * m4/utf-ucs4.m4: New file.
89854         * m4/ucs4-utf.m4: New file.
89855
89856 2003-04-03  Bruno Haible  <bruno@clisp.org>
89857
89858         * lib/utf8-ucs4.h: New file, from GNU gettext.
89859         * lib/utf16-ucs4.h: New file, from GNU gettext.
89860         * lib/ucs4-utf8.h: New file, from GNU gettext.
89861         * lib/ucs4-utf16.h: New file, from GNU gettext.
89862
89863 2003-04-02  Bruno Haible  <bruno@clisp.org>
89864
89865         * modules/binary-io: New file.
89866         * MODULES.html.sh (func_all_modules): Add it.
89867
89868 2003-04-02  Bruno Haible  <bruno@clisp.org>
89869
89870         * lib/binary-io.h: New file, from GNU gettext.
89871
89872 2003-04-01  Bruno Haible  <bruno@clisp.org>
89873
89874         * modules/pathname: New file.
89875         * MODULES.html.sh (func_all_modules): Add it.
89876
89877 2003-04-01  Bruno Haible  <bruno@clisp.org>
89878
89879         * lib/pathname.h: New file, from GNU gettext.
89880         * lib/concatpath.c: New file, from GNU gettext.
89881
89882 2003-03-30  Bruno Haible  <bruno@clisp.org>
89883
89884         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89885
89886 2003-03-30  Bruno Haible  <bruno@clisp.org>
89887
89888         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89889         function chown() doesn't exist.
89890
89891 2003-03-28  Bruno Haible  <bruno@clisp.org>
89892
89893         * modules/copy-file: New file.
89894         * MODULES.html.sh (func_all_modules): Add it.
89895
89896 2003-03-28  Bruno Haible  <bruno@clisp.org>
89897
89898         * m4/copy-file.m4: New file.
89899
89900 2003-03-28  Bruno Haible  <bruno@clisp.org>
89901
89902         * lib/copy-file.h: New file, from GNU gettext.
89903         * lib/copy-file.c: New file, from GNU gettext.
89904
89905 2003-03-18  Jim Meyering  <jim@meyering.net>
89906
89907         * lib/quote.c (quote_n): Fix typo in comment.
89908
89909 2003-03-18  Bruno Haible  <bruno@clisp.org>
89910
89911         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89912         checking.
89913         * m4/onceonly_2_57.m4: Likewise.
89914
89915 2003-03-17  Bruno Haible  <bruno@clisp.org>
89916
89917         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89918         (m4_quote): Remove macro.
89919         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89920
89921 2003-03-14  Jim Meyering  <jim@meyering.net>
89922
89923         Merge changes from Coreutils.
89924         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89925         to be const, in order to avoid warnings.
89926         (obstack_room): Likewise.
89927         (obstack_empty_p): Likewise.
89928
89929 2003-03-14  Bruno Haible  <bruno@clisp.org>
89930
89931         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89932         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89933
89934 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89935
89936         Merge changes from Bison.
89937         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89938         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89939         when compiling Bison 1.875's `bitset bset = obstack_alloc
89940         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89941         * lib/hash.c: Include <stdbool.h> unconditionally.
89942
89943 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89944
89945         * m4/onceonly.m4 (m4_quote): New macro.
89946         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89947         Quote AC_FOREACH variable-expansions properly.
89948
89949 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89950
89951         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89952
89953 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89954
89955         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89956         Reported by Bruce Becker; see:
89957         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89958
89959 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89960             Bruno Haible  <bruno@clisp.org>
89961
89962         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89963         Reported by John Hughes, see
89964         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89965
89966 2003-02-20  Bruno Haible  <bruno@clisp.org>
89967
89968         * MODULES.html.sh (func_all_modules): Add poll.
89969
89970 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89971
89972         * modules/poll: New file.
89973
89974 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89975
89976         * lib/poll_.h: New file.
89977         * lib/poll.c: New file.
89978
89979 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89980
89981         * m4/poll.m4: New file.
89982
89983 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89984
89985         * modules/mathl: New file.
89986
89987 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89988
89989         * lib/mathl.h: New file.
89990         * lib/acosl.c: New file.
89991         * lib/asinl.c: New file.
89992         * lib/atanl.c: New file.
89993         * lib/ceill.c: New file.
89994         * lib/cosl.c: New file.
89995         * lib/expl.c: New file.
89996         * lib/floorl.c: New file.
89997         * lib/frexpl.c: New file.
89998         * lib/ldexpl.c: New file.
89999         * lib/logl.c: New file.
90000         * lib/sincosl.c: New file.
90001         * lib/sinl.c: New file.
90002         * lib/sqrtl.c: New file.
90003         * lib/tanl.c: New file.
90004         * lib/trigl.c: New file.
90005         * lib/trigl.h: New file.
90006
90007 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90008
90009         * m4/mathl.m4: New file.
90010
90011 2003-02-18  Bruno Haible  <bruno@clisp.org>
90012
90013         * MODULES.html.sh (func_all_modules): Add mathl.
90014
90015 2003-02-17  Bruno Haible  <bruno@clisp.org>
90016
90017         * modules/mkdtemp: New module.
90018         * MODULES.html.sh (func_all_modules): Add it.
90019
90020 2003-02-17  Bruno Haible  <bruno@clisp.org>
90021
90022         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90023
90024 2003-02-17  Bruno Haible  <bruno@clisp.org>
90025
90026         * lib/mkdtemp.h: New file, from GNU gettext.
90027         * lib/mkdtemp.c: New file, from GNU gettext.
90028
90029 2003-02-02  Jim Meyering  <jim@meyering.net>
90030
90031         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90032         e.g. glibc-2.2.93.
90033
90034 2003-01-31  Bruno Haible  <bruno@clisp.org>
90035
90036         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90037         'rpl_rename'.
90038         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90039         'rpl_strnlen'.
90040         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90041         'rpl_strtod'.
90042         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90043         'rpl_utime'.
90044
90045 2003-01-31  Bruno Haible  <bruno@clisp.org>
90046
90047         * lib/rename.c: #undef rename before defining rpl_rename.
90048         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90049
90050 2003-01-30  Bruno Haible  <bruno@clisp.org>
90051
90052         * modules/vasnprintf, modules/vasprintf: New modules.
90053         * MODULES.html.sh (func_all_modules): Add them.
90054
90055 2003-01-30  Bruno Haible  <bruno@clisp.org>
90056
90057         * m4/signed.m4: New file, from GNU gettext.
90058         * m4/longdouble.m4: New file, from GNU gettext.
90059         * m4/wchar_t.m4: New file, from GNU gettext.
90060         * m4/wint_t.m4: New file, from GNU gettext.
90061         * m4/vasnprintf.m4: New file.
90062         * m4/vasprintf.m4: New file.
90063
90064 2003-01-30  Bruno Haible  <bruno@clisp.org>
90065
90066         * lib/printf-args.h: New file, from GNU gettext.
90067         * lib/printf-args.c: New file, from GNU gettext.
90068         * lib/printf-parse.h: New file, from GNU gettext.
90069         * lib/printf-parse.c: New file, from GNU gettext.
90070         * lib/vasnprintf.h: New file, from GNU gettext.
90071         * lib/vasnprintf.c: New file, from GNU gettext.
90072         * lib/asnprintf.c: New file, from GNU gettext.
90073         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90074         * lib/vasprintf.c: New file, from GNU gettext.
90075         * lib/asprintf.c: New file, from GNU gettext.
90076
90077 2003-01-29  Bruno Haible  <bruno@clisp.org>
90078
90079         * modules/stpncpy: New module.
90080         * MODULES.html.sh (func_all_modules): Add it.
90081
90082 2003-01-29  Bruno Haible  <bruno@clisp.org>
90083
90084         * m4/stpncpy.m4: New file.
90085
90086 2003-01-29  Bruno Haible  <bruno@clisp.org>
90087
90088         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90089         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90090
90091 2003-01-28  Bruno Haible  <bruno@clisp.org>
90092
90093         * modules/c-ctype: New module.
90094         * MODULES.html.sh (func_all_modules): Add it.
90095
90096 2003-01-28  Bruno Haible  <bruno@clisp.org>
90097
90098         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90099         Paul Eggert.
90100         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90101         Paul Eggert.
90102
90103 2003-01-27  Bruno Haible  <bruno@clisp.org>
90104
90105         * modules/xsetenv: New module.
90106         * MODULES.html.sh (func_all_modules): Add it.
90107
90108 2003-01-27  Bruno Haible  <bruno@clisp.org>
90109
90110         * lib/xsetenv.h: New file, from GNU gettext.
90111         * lib/xsetenv.c: New file, from GNU gettext.
90112
90113 2003-01-23  Jim Meyering  <jim@meyering.net>
90114
90115         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90116         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90117
90118 2003-01-23  Bruno Haible  <bruno@clisp.org>
90119
90120         * modules/minmax: New module.
90121         * MODULES.html.sh (func_all_modules): Add it.
90122
90123 2003-01-23  Bruno Haible  <bruno@clisp.org>
90124
90125         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90126         Eggert.
90127
90128 2003-01-22  Bruno Haible  <bruno@clisp.org>
90129
90130         * modules/exit: New module.
90131         * MODULES.html.sh (func_all_modules): Add it.
90132
90133 2003-01-22  Bruno Haible  <bruno@clisp.org>
90134
90135         * lib/exit.h: New file, from GNU gettext.
90136
90137 2003-01-19  Bruno Haible  <bruno@clisp.org>
90138
90139         * gnulib-tool: Recognize option --extract-maintainer.
90140         (func_get_maintainer): New function.
90141         * modules/*: Add Maintainer entry.
90142
90143 2003-01-16  Jim Meyering  <jim@meyering.net>
90144
90145         * m4/regex.m4: The `regex' struct is both input and output.
90146         Initialize it before each use.  Patch by Tim Waugh.
90147
90148 2003-01-16  Bruno Haible  <bruno@clisp.org>
90149
90150         * MODULES.html.sh: Add a table of contents. Add the module name as
90151         leftmost column. Add hyperlinks.
90152
90153 2003-01-15  Bruno Haible  <bruno@clisp.org>
90154
90155         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90156
90157 2003-01-15  Bruno Haible  <bruno@clisp.org>
90158
90159         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90160         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90161         suffix.
90162
90163 2003-01-15  Bruno Haible  <bruno@clisp.org>
90164
90165         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90166
90167 2003-01-15  Bruno Haible  <bruno@clisp.org>
90168
90169         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90170         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90171
90172 2003-01-14  Jim Meyering  <jim@meyering.net>
90173
90174         * lib/same.c (same_name): Tweak a comment.
90175
90176 2003-01-14  Bruno Haible  <bruno@clisp.org>
90177
90178         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90179         when a string comparison is sufficient.
90180
90181 2003-01-14  Bruno Haible  <bruno@clisp.org>
90182
90183         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90184         'unsigned int'.
90185
90186 2003-01-14  Bruno Haible  <bruno@clisp.org>
90187
90188         * lib/hash-pjw.c: Add comment about low quality of this function.
90189
90190 2003-01-13  Bruno Haible  <bruno@clisp.org>
90191
90192         * modules/stpcpy: Distribute lib/stpcpy.h.
90193         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90194
90195 2003-01-13  Bruno Haible  <bruno@clisp.org>
90196
90197         * modules/*: Add a description.
90198         * modules/strpbrk: Fix Makefile.am snippet.
90199         * modules/strtoimax: Fix dependencies.
90200         * modules/strtoumax: Likewise.
90201
90202 2003-01-13  Bruno Haible  <bruno@clisp.org>
90203
90204         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90205         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90206         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90207
90208 2003-01-13  Bruno Haible  <bruno@clisp.org>
90209
90210         * gnulib-tool (func_create_testdir): Store config/* files in the main
90211         directory.
90212         * config.rpath: Move to ...
90213         * config/config.rpath: ... here.
90214         * modules/gettext: Contains config/config.rpath, not config.rpath.
90215         * modules/iconv: Likewise.
90216
90217 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90218
90219         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90220         to avoid collisions with libcurses and libreadline.
90221
90222         * m4/getstr.m4: Remove.
90223         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90224
90225 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90226
90227         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90228         to avoid collisions with libcurses and libreadline.
90229
90230         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90231         * lib/getstr.h, getstr.c: Remove.
90232         * lib/getline.c: Include "getline.h", to check interface.
90233         Move body of old getstr.c here: this defines MIN_CHUNK and
90234         declares getdelim2, which is renamed from getstr.
90235         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90236
90237         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90238         All uses changed.
90239         * lib/linebuffer.h: Likewise.
90240         (readline): Remove backward-compatibility macro.
90241
90242 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90243
90244         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90245         to avoid collisions with libcurses and libreadline.
90246         * getstr: Remove.
90247         * MODULES.html.sh: Remove getstr.
90248         * modules/getline: Depend on unlocked-io, not getstr.
90249
90250 2003-01-12  Jim Meyering  <jim@meyering.net>
90251
90252         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90253
90254 2003-01-10  Bruno Haible  <bruno@clisp.org>
90255
90256         * modules/alloca: Change Makefile.am requirements. Simplify Include
90257         requirements. Add lib/alloca_.h to file list.
90258
90259 2003-01-10  Bruno Haible  <bruno@clisp.org>
90260
90261         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90262
90263 2003-01-10  Bruno Haible  <bruno@clisp.org>
90264
90265         * lib/alloca_.h: New file.
90266         * lib/getdate.y: Unconditionally include alloca.h.
90267         * lib/makepath.c: Likewise.
90268         * lib/setenv.c: Likewise.
90269         * lib/userspec.c: Likewise.
90270
90271 2003-01-09  Karl Berry  <karl@gnu.org>
90272
90273         * MODULES.html.sh: include `dirname $0` in PATH, to find
90274         gnulib-tool.
90275
90276 2003-01-09  Bruno Haible  <bruno@clisp.org>
90277
90278         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90279         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90280
90281 2003-01-09  Bruno Haible  <bruno@clisp.org>
90282
90283         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90284
90285 2003-01-09  Bruno Haible  <bruno@clisp.org>
90286
90287         * lib/stdbool.h.in: New file.
90288
90289 2003-01-09  Bruno Haible  <bruno@clisp.org>
90290
90291         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90292         * MODULES.html.sh: Likewise.
90293
90294 2003-01-08  Jim Meyering  <jim@meyering.net>
90295
90296         * lib/full-write.c: Undefine and define-away `const' after inclusion
90297         of errno.h, not before.  Suggestion from Bruno Haible.
90298
90299 2003-01-08  Bruno Haible  <bruno@clisp.org>
90300
90301         * modules/full-read: Depend on full-write.
90302
90303 2003-01-08  Bruno Haible  <bruno@clisp.org>
90304
90305         * lib/safe-read.c: Include specification header first, to ensure its
90306         selfcontainedness.
90307         * lib/full-write.c: Likewise.
90308
90309 2003-01-07  Jim Meyering  <jim@meyering.net>
90310
90311         * lib/full-write.c: Rework so that it may serve to define full_read,
90312         too.
90313         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90314
90315 2003-01-07  Bruno Haible  <bruno@clisp.org>
90316
90317         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90318         <inttypes.h>.
90319         * lib/xstrtol.h: Likewise.
90320         * lib/xstrtoimax.c: Likewise.
90321         * lib/xstrtoumax.c: Likewise.
90322         * lib/human.h: Likewise.
90323
90324         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90325         on systems that have <inttypes.h> but not <stdint.h>.
90326
90327 2003-01-07  Bruno Haible  <bruno@clisp.org>
90328
90329         * MODULES.html.sh: Add copyright notice.
90330         (missed_files): Omit CVS directory entries.
90331         (func_module): Make it work with sed-3.02.
90332         * MODULES.txt: Remove file.
90333
90334 2003-01-06  Jim Meyering  <jim@meyering.net>
90335
90336         * lib/version-etc.c: Update year in translatable copyright string.
90337
90338 2003-01-03  Karl Berry  <karl@gnu.org>
90339
90340         * config/config.{guess,sub}: update from prep.
90341
90342 2003-01-02  Karl Berry  <karl@gnu.org>
90343
90344         * doc/COPYING.DOC: belatedly updated to 1.2.
90345
90346 2003-01-01  Karl Berry  <karl@gnu.org>
90347
90348         * gnulib-tool (func_verify_module): report module name $module in
90349         error message, not $1.
90350         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90351         be created, only if it doesn't exist.
90352         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90353
90354 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90355
90356         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90357
90358 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90359
90360         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90361         memcmp if strcoll doesn't work.
90362
90363 2002-12-31  Bruno Haible  <bruno@clisp.org>
90364
90365         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90366         nonempty.
90367
90368 2002-12-31  Bruno Haible  <bruno@clisp.org>
90369
90370         * lib/memcoll.c (STRCOLL): New macro.
90371         (memcoll): Use it.
90372
90373 2002-12-31  Bruno Haible  <bruno@clisp.org>
90374
90375         * lib/localcharset.h: New file.
90376         * lib/localcharset.c: Include it.
90377         * lib/unicodeio.c: Likewise.
90378
90379 2002-12-31  Bruno Haible  <bruno@clisp.org>
90380
90381         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90382         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90383
90384 2002-12-31  Bruno Haible  <bruno@clisp.org>
90385
90386         * lib/getline.h: Include <stddef.h>, for size_t.
90387
90388         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90389         * lib/unicodeio.c: Don't include <stddef.h>.
90390
90391 2002-12-31  Bruno Haible  <bruno@clisp.org>
90392
90393         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90394         HAVE_TM_ZONE.
90395
90396 2002-12-24  Karl Berry  <karl@gnu.org>
90397
90398         * config/config.guess: update from prep.
90399
90400 2002-12-24  Bruno Haible  <bruno@clisp.org>
90401
90402         General infrasructure.
90403         * m4/README: Rewritten.
90404         * m4/onceonly.m4: New file.
90405         * m4/onceonly_2_57.m4: New file.
90406
90407         Module atexit.
90408         * m4/atexit.m4: New file.
90409
90410         Module strtod.
90411         * m4/strtod.m4: New file.
90412
90413         Module strtol.
90414         * m4/strtol.m4: New file.
90415
90416         Module strtoul.
90417         * m4/strtoul.m4: New file.
90418
90419         Module memchr.
90420         * m4/memchr.m4: New file.
90421
90422         Module memcmp.
90423         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90424         (jm_FUNC_MEMCMP): Invoke it.
90425
90426         Module memcpy.
90427         * m4/memcpy.m4: New file.
90428
90429         Module memmove.
90430         * m4/memmove.m4: New file.
90431
90432         Module memset.
90433         * m4/memset.m4: New file.
90434
90435         Module strcspn.
90436         * m4/strcspn.m4: New file.
90437
90438         Module strpbrk.
90439         * m4/strpbrk.m4: New file.
90440
90441         Module strstr.
90442         * m4/strstr.m4: New file.
90443
90444         Module strerror.
90445         * m4/strerror.m4: New file.
90446
90447         Module mktime.
90448         * m4/mktime.m4: Renamed from jm-mktime.m4.
90449         (gl_PREREQ_MKTIME): New macro.
90450         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90451
90452         Module malloc.
90453         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90454         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90455         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90456
90457         Module realloc.
90458         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90459         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90460         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90461
90462         Module strftime.
90463         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90464         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90465         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90466         gl_TM_GMTOFF.
90467         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90468
90469         Module xalloc.
90470         * m4/xalloc.m4: New file.
90471
90472         Module alloca.
90473         * m4/alloca.m4: New file.
90474
90475         Module putenv.
90476         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90477         (jm_FUNC_PUTENV): Invoke it.
90478
90479         Module setenv.
90480         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90481         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90482         when invoked twice.
90483         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90484         gt_FUNC_SETENV.
90485
90486         Module memrchr.
90487         * m4/memrchr.m4: New file.
90488
90489         Module stpcpy.
90490         * m4/stpcpy.m4: New file.
90491
90492         Module strcase.
90493         * m4/strcase.m4: New file.
90494
90495         Module strdup.
90496         * m4/strdup.m4: New file.
90497
90498         Module strnlen.
90499         * m4/strnlen.m4: New file.
90500
90501         Module strndup.
90502         * m4/strndup.m4: New file.
90503
90504         Module xstrtod.
90505         * m4/xstrtod.m4: New file.
90506
90507         Module xstrtol.
90508         * m4/xstrtol.m4: New file.
90509
90510         Module getdate.
90511         * m4/getdate.m4: New file.
90512
90513         Module unlocked-io.
90514         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90515         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90516         * m4/jm-glibc-io.m4n: Remove file.
90517
90518         Module long-options.
90519         * m4/long-options.m4: New file.
90520
90521         Module md5.
90522         * m4/md5.m4: New file.
90523
90524         Module sha.
90525         * m4/sha.m4: New file.
90526
90527         Module getstr.
90528         * m4/getstr.m4: New file.
90529
90530         Module getline.
90531         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90532         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90533         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90534         simply getline. Infoke gl_PREREQ_GETLINE.
90535
90536         Module obstack.
90537         * m4/obstack.m4: New file.
90538
90539         Module hash.
90540         * m4/hash.m4: New file.
90541
90542         Module readtokens.
90543         * m4/readtokens.m4: New file.
90544
90545         Module strverscmp.
90546         * m4/strverscmp.m4: New file.
90547
90548         Module stdbool.
90549         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90550         OSF/1.
90551
90552         Module strtoll.
90553         * m4/strtoll.m4: New file.
90554
90555         Module strtoull.
90556         * m4/strtoull.m4: New file.
90557
90558         Module strtoimax.
90559         * m4/strtoimax.m4: New file.
90560
90561         Module strtoumax.
90562         * m4/strtoumax.m4: New file.
90563
90564         Module xstrtoimax.
90565         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90566         jm_AC_PREREQ_XSTRTOIMAX.
90567         Moved the strtol prerequisites to strtol.m4.
90568         Moved the strtoll prerequisites to strtoll.m4.
90569         Moved the strtoimax prerequisites to strtoimax.m4.
90570
90571         Module xstrtoumax.
90572         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90573         jm_AC_PREREQ_XSTRTOUMAX.
90574         Moved the strtoul prerequisites to strtoul.m4.
90575         Moved the strtoull prerequisites to strtoull.m4.
90576         Moved the strtoumax prerequisites to strtoumax.m4.
90577
90578         Module chown.
90579         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90580         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90581
90582         Module dup2.
90583         * m4/dup2.m4: New file.
90584
90585         Module ftruncate.
90586         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90587         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90588
90589         Module getgroups.
90590         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90591         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90592
90593         Module gettimeofday.
90594         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90595         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90596         gl_PREREQ_GETTIMEOFDAY.
90597
90598         Module mkdir.
90599         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90600         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90601
90602         Module mkstemp.
90603         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90604         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90605         jm_AC_TYPE_UINTMAX_T.
90606         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90607
90608         Module stat.
90609         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90610         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90611
90612         Module lstat.
90613         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90614         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90615
90616         Module timespec.
90617         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90618         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90619         * m4/st_mtim.m4: Indentation.
90620
90621         Module nanosleep.
90622         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90623         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90624         gl_PREREQ_NANOSLEEP.
90625
90626         Module regex.
90627         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90628         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90629         (gl_REGEX): New macro.
90630
90631         Module rename.
90632         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90633         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90634
90635         Module rmdir.
90636         * m4/rmdir.m4: New file.
90637
90638         Module utime.
90639         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90640         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90641         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90642
90643         Module dirname.
90644         * m4/dirname.m4: New file.
90645
90646         Module getopt.
90647         * m4/getopt.m4: New file.
90648
90649         Module unistd-safer.
90650         * m4/unistd-safer.m4: New file.
90651
90652         Module fnmatch.
90653         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90654         declaration.
90655         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90656         (gl_FUNC_FNMATCH_POSIX): New macro.
90657         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90658         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90659         simply fnmatch.
90660
90661         Module exclude.
90662         * m4/exclude.m4: New file.
90663
90664         Module human.
90665         * m4/human.m4: New file.
90666
90667         Module acl.
90668         * m4/acl.m4: Nop.
90669
90670         Module backupfile.
90671         * m4/backupfile.m4: New file.
90672         * m4/d-ino.m4: Indentation.
90673
90674         Module fsusage.
90675         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90676         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90677         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90678
90679         Module dirfd.
90680         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90681         requirements.
90682
90683         Module euidaccess.
90684         * m4/euidaccess.m4: New file.
90685
90686         Module file-type.
90687         * m4/file-type.m4: New file.
90688
90689         Module fileblocks.
90690         * m4/fileblocks.m4: New file.
90691
90692         Module filemode.
90693         * m4/filemode.m4: New file.
90694
90695         Module isdir.
90696         * m4/isdir.m4: New file.
90697
90698         Module lchown.
90699         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90700         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90701
90702         Module makepath.
90703         * m4/makepath.m4: New file.
90704
90705         Module modechange.
90706         * m4/modechange.m4: New file.
90707
90708         Module mountlist.
90709         * m4/mountlist.m4: New file.
90710         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90711         Indentation.
90712
90713         Module path-concat.
90714         * m4/path-concat.m4: New file.
90715
90716         Module pathmax.
90717         * m4/pathmax.m4: New file.
90718
90719         Module same.
90720         * m4/same.m4: New file.
90721
90722         Module save-cwd.
90723         * m4/save-cwd.m4: New file.
90724
90725         Module savedir.
90726         * m4/savedir.m4: New file.
90727
90728         Module xgetcwd.
90729         * m4/xgetcwd.m4: New file.
90730         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90731
90732         Module xreadlink.
90733         * m4/xreadlink.m4: New file.
90734
90735         Module safe-read.
90736         * m4/safe-read.m4: New file.
90737
90738         Module safe-write.
90739         * m4/safe-write.m4: New file.
90740
90741         Module closeout.
90742         * m4/closeout.m4: New file.
90743
90744         Module stdio-safer.
90745         * m4/stdio-safer.m4: New file.
90746
90747         Module getpass.
90748         * m4/getpass.m4: New file.
90749
90750         Module getugroups.
90751         * m4/getugroups.m4: New file.
90752
90753         Module group-member.
90754         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90755         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90756
90757         Module idcache.
90758         * m4/idcache.m4: New file.
90759
90760         Module userspec.
90761         * m4/userspec.m4: New file.
90762
90763         Module gettime.
90764         * m4/clock_time.m4: New file.
90765         * m4/gettime.m4: New file.
90766
90767         Module settime.
90768         * m4/settime.m4: New file.
90769
90770         Module posixtm.
90771         * m4/posixtm.m4: New file.
90772
90773         Module gethostname.
90774         * m4/gethostname.m4: New file.
90775
90776         Module canon-host.
90777         * m4/canon-host.m4: New file.
90778
90779         Module gettext.
90780         * m4/codeset.m4: New file, from gettext-0.11.5.
90781         * m4/gettext.m4: New file, from gettext-0.11.5.
90782         * m4/glibc21.m4: New file, from gettext-0.11.5.
90783         * m4/iconv.m4: New file, from gettext-0.11.5.
90784         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90785         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90786         * m4/inttypes.m4: New file, from gettext-0.11.5.
90787         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90788         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90789         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90790         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90791         * m4/lib-link.m4: New file, from gettext-0.11.5.
90792         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90793         * m4/progtest.m4: New file, from gettext-0.11.5.
90794         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90795         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90796         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90797
90798         Module localcharset.
90799         * m4/localcharset.m4: New file.
90800
90801         Module hard-locale.
90802         * m4/hard-locale.m4: New file.
90803
90804         Module mbswidth.
90805         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90806         onceonly macros.
90807         * m4/mbrtowc.m4: Add comment.
90808
90809         Module memcasecmp.
90810         * m4/memcasecmp.m4: New file.
90811
90812         Module memcoll.
90813         * m4/memcoll.m4: New file.
90814
90815         Module unicodeio.
90816         * m4/unicodeio.m4: New file.
90817
90818         Module rpmatch.
90819         * m4/rpmatch.m4: New file.
90820
90821         Module yesno.
90822         * m4/yesno.m4: New file.
90823
90824         Module exitfail.
90825         * m4/exitfail.m4: New file.
90826
90827         Module c-stack.
90828         * m4/c-stack.m4 (gl_C_STACK): New macro.
90829         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90830
90831         Module error.
90832         * m4/error.m4 (gl_ERROR): New macro.
90833         (jm_PREREQ_ERROR): Use onceonly macros.
90834
90835         Module fatal.
90836         * m4/fatal.m4: New file.
90837
90838         Module getloadavg.
90839         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90840         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90841
90842         Module getpagesize.
90843         * m4/getpagesize.m4: New file.
90844
90845         Module getusershell.
90846         * m4/getusershell.m4: New file.
90847
90848         Module physmem.
90849         * m4/physmem.m4: New file.
90850
90851         Module posixver.
90852         * m4/posixver.m4: New file.
90853
90854         Module quotearg.
90855         * m4/quotearg.m4: New file.
90856
90857         Module quote.
90858         * m4/quote.m4: New file.
90859
90860         Module readutmp.
90861         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90862
90863         Module sig2str.
90864         * m4/sig2str.m4: New file.
90865
90866         Other.
90867         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90868         ulonglong.m4.
90869         * m4/intmax_t.m4: New file.
90870         * m4/d-type.m4: Indentation.
90871         * m4/jm-macros.m4: Update.
90872         * m4/prereq.m4 (jm_PREREQ): Update.
90873         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90874         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90875         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90876         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90877         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90878         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90879         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90880         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90881         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90882         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90883         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90884         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90885         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90886         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90887         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90888         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90889         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90890         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90891         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90892
90893 2002-12-24  Bruno Haible  <bruno@clisp.org>
90894
90895         * MODULES.txt: Update according to m4/ changes.
90896
90897         Module gettext.
90898         * config.rpath: New file, from gettext-0.11.5.
90899
90900         * modules/*: New module descriptions.
90901         * gnulib-tool: New file.
90902         * MODULES.html.sh: New file.
90903
90904 2002-12-21  Karl Berry  <karl@gnu.org>
90905
90906         * doc/fdl.texi: update to version 1.2.
90907
90908 2002-12-19  Karl Berry  <karl@gnu.org>
90909
90910         * config/config.guess: update from prep.
90911
90912 2002-12-18  Bruno Haible  <bruno@clisp.org>
90913
90914         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90915         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90916
90917 2002-12-17  Bruno Haible  <bruno@clisp.org>
90918
90919         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90920         stdlib.h, string.h.
90921
90922 2002-12-17  Bruno Haible  <bruno@clisp.org>
90923
90924         * lib/canon-host.c (strdup): Remove unused declaration.
90925
90926         * lib/fsusage.c: Include full_read.h.
90927         (get_fs_usage): Use full_read instead of safe_read.
90928
90929         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90930
90931 2002-12-12  Karl Berry  <karl@gnu.org>
90932
90933         * config/config.guess: update from prep.
90934
90935 2002-12-11  Bruno Haible  <bruno@clisp.org>
90936
90937         * m4/setenv.m4: New file, from gettext-0.11.5.
90938
90939 2002-12-11  Bruno Haible  <bruno@clisp.org>
90940
90941         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90942         not unsetenv().
90943         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90944         modifications:
90945
90946         2002-12-11  Bruno Haible  <bruno@clisp.org>
90947
90948                 * setenv.c (alloca): Fall back to malloc.
90949                 (freea): New macro.
90950                 (setenv): Use freea() to free memory allocated with alloca().
90951
90952         2002-11-13  Bruno Haible  <bruno@clisp.org>
90953
90954                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90955                 function declarations.
90956                 * unsetenv.c (unsetenv): Likewise.
90957
90958         2002-03-04  Bruno Haible  <bruno@clisp.org>
90959
90960                 Portability to AIX 4.3.3.
90961                 * unsetenv.c: New file, extracted from setenv.c.
90962                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90963
90964         2001-12-20  Bruno Haible  <bruno@clisp.org>
90965
90966                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90967                 use malloc instead. For SunOS 4.
90968
90969         2001-12-11  Bruno Haible  <bruno@clisp.org>
90970
90971                 * setenv.c: Declare alloca.
90972                 (compar_fn_t): New typedef.
90973                 (KNOWN_VALUE, STORE_VALUE): Use it.
90974
90975         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90976         setenv.h.
90977
90978 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90979
90980         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90981         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90982         Choose values that are less likely to collide with system fnmatch
90983         options.
90984         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90985         defined (e.g., a pure POSIX system).
90986         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90987         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90988
90989 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90990
90991         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90992         a pain in practice to deal with generated m4 files.  This change
90993         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90994
90995         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90996         and jm-glibc-io.m4, as they are no longer a special case.
90997         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90998         kludge and the auto-generation stuff.  Check only whether the
90999         functions are declared, not whether they exist, since older hosts
91000         that don't declare the functions can't use the optimization anyway.
91001
91002 2002-12-06  Jim Meyering  <jim@meyering.net>
91003
91004         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91005
91006         Merge in changes from libc's misc/error.c, in preparation
91007         for the merge of gnulib's changes back into libc.
91008
91009         * lib/error.c (_): Define only if not already defined.
91010         Move definition to follow all #include directives.
91011         Include unlocked-io.h only if !_LIBC.
91012         [_LIBC]: Include <libio/libioP.h>.
91013         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91014         (fflush): Tweak definition to use INTUSE.
91015         (putc): Define.
91016
91017 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91018
91019         * lib/alloca.c [defined emacs]: Include "lisp.h".
91020         (xalloc_die) [defined emacs]: New macro.
91021         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91022         [! defined emacs]: Include <xalloc.h>.
91023         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91024         (pointer): Typedef to POINTER_TYPE *.
91025         (malloc): Remove decl; we now always use xmalloc.
91026         (alloca): Use old-style definition, since Emacs needs this.
91027         Check for arithmetic overflow when computing combined size.
91028
91029 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91030
91031         Do not generate unlocked-io.h automatically, since it's easier to
91032         maintain it by hand.
91033
91034         * lib/unlocked-io.h: New file, from GNU diffutils,
91035         but with proper copyright notice and attribution.
91036         * lib/gen-uio: Remove.
91037         * lib/Makefile.am: Add copyright notice.
91038         (libfetish_a_SOURCES): Add unlocked-io.h.
91039         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91040         (DISTCLEANFILES, io_functions): Remove macros.
91041         (EXTRA_DIST): Remove gen_uio.
91042         (unlocked-io.h): Remove rule.
91043
91044 2002-12-04  Jim Meyering  <jim@meyering.net>
91045
91046         Reflect the fact that stat.c and lstat.c are no longer generated.
91047         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91048         (DISTCLEANFILES): Likewise.
91049         (EXTRA_DIST): Likewise.
91050         (all_local): Don't depend on stat.c or lstat.c.
91051         (stat.c, lstat.c): Remove rules.
91052         (EXTRA_DIST): Remove xstat.in.
91053
91054         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91055         * lib/stat.c: New file.  Contents mostly from xstat.in.
91056         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91057         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91058
91059         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91060         too.
91061         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91062
91063 2002-12-03  Jim Meyering  <jim@meyering.net>
91064
91065         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91066         but not semantics, to minimize the differences between these two files.
91067         (safe_read): Change comment to mention SAFE_READ_ERROR.
91068
91069         * lib/safe-read.c (IS_EINTR): Define.
91070         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91071
91072 2002-12-02  Jim Meyering  <jim@meyering.net>
91073
91074         * lib/safe-read.c (EINTR): Define.
91075         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91076         (INT_MAX): Provide fallback.
91077         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91078
91079         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91080
91081 2002-12-02  Bruno Haible  <bruno@clisp.org>
91082
91083         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91084         Define, taken from safe-read.c.
91085         (INT_MAX): Provide fallback.
91086         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91087         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91088
91089         * lib/safe-read.c (EINTR): Remove definition.
91090         (safe_read): Don't use EINTR if it is absent.
91091
91092 2002-12-01  Jim Meyering  <jim@meyering.net>
91093
91094         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91095         zero.
91096         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91097
91098 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91099
91100         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91101         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91102         with `if (! (value < limit)) abort ();', for readability.
91103
91104 2002-11-26  Karl Berry  <karl@gnu.org>
91105
91106         * lib/strdup.c: copy from libc again, with jim's ok.
91107         * lib/.cppi-disable: re-add strdup.c
91108
91109 2002-11-25  Karl Berry  <karl@gnu.org>
91110
91111         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91112         instead of "strtol.c".
91113
91114 2002-11-25  Karl Berry  <karl@gnu.org>
91115
91116         * config/install-sh: update from automake for variable quoting, $0 in
91117         error msgs, etc.
91118
91119         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91120         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91121         entry.
91122
91123 2002-11-25  Jim Meyering  <jim@meyering.net>
91124
91125         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91126
91127 2002-11-24  Karl Berry  <karl@gnu.org>
91128
91129         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91130         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91131
91132 2002-11-24  Jim Meyering  <jim@meyering.net>
91133
91134         Update from coreutils:
91135
91136         * lib/mktime.c: Merge in changes from libc.
91137
91138         Avoid a link-time failure on some Linux systems.
91139         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91140         (otherwise).
91141         (__mon_yday): Declare with the STATIC attribute.
91142         (__mktime_internal): Likewise.
91143         Based on a report from Greg Schafer.
91144
91145 2002-11-23  Jim Meyering  <jim@meyering.net>
91146
91147         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91148         Use `unsigned', not `int', as type of index.
91149
91150         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91151
91152         * lib/fsusage.c: Remove unneeded parentheses around operands of
91153         `defined'.
91154
91155 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91156
91157         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91158         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91159         so that we can be included first.
91160         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91161         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91162         No need to include stddef.h or sys/types.h any more.
91163         Surround local include files with "", not "<>".
91164         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91165         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91166         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91167         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91168         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91169         (ISPRINT): Remove; no longer needed now that we assume C89.
91170
91171         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91172         Preserve errno.
91173
91174         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91175         quotearg_char): Use SIZE_MAX rather than
91176         (size_t) -1 when we are talking about "infinity".
91177
91178         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91179
91180 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91181
91182         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91183         hint that one should use `if (! x) abort ();' rather than `assert
91184         (x);', and anyway it's one less thing to worry about configuring.
91185         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91186         hash_rehash, hash_insert): Use abort rather than assert.
91187
91188 2002-11-22  Bruno Haible  <bruno@clisp.org>
91189
91190         * lib/safe-read.h: Assume C89. Add comments.
91191         (safe_read): Change return type to size_t.
91192         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91193         byte counts > SSIZE_MAX correctly.
91194         * lib/safe-write.h: New file.
91195         * lib/safe-write.c: New file.
91196         * lib/full-read.h: New file.
91197         * lib/full-read.c: New file.
91198         * lib/full-write.h: Assume C89. Add comments.
91199         * lib/full-write.c: Include safe-write.h.
91200         (full_write): Rewritten to use safe_write.
91201         Suggested by Jim Meyering and Paul Eggert.
91202
91203 2002-11-21  Jim Meyering  <jim@meyering.net>
91204
91205         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91206
91207         Merge in changes from the coreutils.
91208
91209         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91210         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91211         <stdint.h>.
91212         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91213         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91214         int.  Work more efficiently if X is the same width as uintmax_t.
91215         Do not compare X to -1, to avoid bogus compiler warning.
91216         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91217         Don't assume that f_frsize and f_bsize are the same type.
91218
91219         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91220         warning on FreeBSD.
91221
91222         * lib/makepath.c (make_path): Restore umask *before* creating the final
91223         component.
91224         (make_path): Minor reformatting.
91225
91226         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91227         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91228         HAVE_MALLOC/HAVE_REALLOC.
91229
91230         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91231         dummy ones.  At least on GNU/Linux systems, `auto' means something
91232         else.
91233         From Michael Stone.
91234
91235 2002-11-21  Bruno Haible  <bruno@clisp.org>
91236
91237         Remove case insensitive option matching.
91238         * lib/argmatch.h (argcasematch): Remove declaration.
91239         (ARGCASEMATCH): Remove macro.
91240         (__xargmatch_internal): Remove case_sensitive argument.
91241         (XARGMATCH): Update.
91242         (XARGCASEMATCH): Remove macro.
91243         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91244         case_sensitive argument.
91245         (argcasematch): Remove function.
91246         (__xargmatch_internal): Remove case_sensitive argument.
91247         (main): Use XARGMATCH instead of XARGCASEMATCH.
91248
91249         * lib/xmalloc.c: Change compile-time error message. Add comment about
91250         required autoconf version.
91251
91252 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91253
91254         Merge argmatch cleanups from Bison.  Assume C89.
91255
91256         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91257         Include stdlib.h, for EXIT_FAILURE.
91258         Always include <string.h>, since we assume C89.
91259         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91260         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91261         Include <stddef.h> instead, since it's all we need for size_t.
91262         (PARAMS): Remove.  All uses removed.
91263         (ARRAY_CARDINALITY): Do not bother to #undef.
91264         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91265         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91266         Remove unnecessary parentheses.
91267         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91268         Insert necessary parentheses.
91269         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91270         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91271
91272 2002-11-19  Bruno Haible  <bruno@clisp.org>
91273
91274         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91275         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91276
91277         * lib/mbswidth.h (PARAMS): Remove macro.
91278         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91279         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91280
91281         * lib/gcd.h (PARAMS): Remove macro.
91282         (gcd): Use ANSI C function declarations.
91283         * lib/gcd.c (gcd): Likewise.
91284
91285 2002-11-15  Bruno Haible  <bruno@clisp.org>
91286
91287         * lib/strcspn.c: Include <stddef.h>.
91288         (strcspn): Use ANSI C function declaration. Change return type to
91289         size_t. Use NULL.
91290         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91291         (strpbrk): Use NULL.
91292         * lib/strpbrk.h (PARAMS): Remove macro.
91293         (strpbrk): Use ANSI C function declaration.
91294         * lib/strstr.c: Don't include <sys/types.h>.
91295         * lib/strstr.h (PARAMS): Remove macro.
91296         (strstr): Use ANSI C function declarations.
91297
91298 2002-11-14  Karl Berry  <karl@gnu.org>
91299
91300         * config/mkinstalldirs: `do' on separate line, instead of
91301         `for var; do'.
91302
91303 2002-11-06  Bruno Haible  <bruno@clisp.org>
91304
91305         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91306         * lib/gcd.c (gcd): Likewise.
91307
91308 2002-11-05  Bruno Haible  <bruno@clisp.org>
91309
91310         * lib/gcd.h: New file, from gettext-0.11.5.
91311         * lib/gcd.c: New file, from gettext-0.11.5.
91312
91313 2002-11-05  Bruno Haible  <bruno@clisp.org>
91314
91315         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91316         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91317         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91318         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91319
91320         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91321         <libintl.h>.
91322         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91323         <libintl.h>.
91324
91325         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91326         * lib/human.c: Include gettext.h instead of <libintl.h>.
91327         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91328         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91329         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91330         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91331         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91332         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91333         (textdomain): Remove definition.
91334         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91335
91336         * lib/long-options.c: Remove include of <libintl.h> and definition of
91337         _.
91338         * lib/same.c: Remove include of <libintl.h> and definition of _.
91339
91340 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91341
91342         * lib/config.charset: A few additions for Solaris.
91343
91344 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91345
91346         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91347         * lib/localcharset.c (locale_charset): Declare as extern "C".
91348
91349 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91350
91351         * lib/config.charset: msdos in uk_UA uses CP1125.
91352
91353 2002-11-04  Bruno Haible  <bruno@clisp.org>
91354
91355         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91356         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91357         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91358         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91359         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91360
91361 2002-11-04  Bruno Haible  <bruno@clisp.org>
91362
91363         * lib/localcharset.c (locale_charset): Don't return an empty string.
91364
91365 2002-11-04  Bruno Haible  <bruno@clisp.org>
91366
91367         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91368         aliases.
91369
91370 2002-11-04  Bruno Haible  <bruno@clisp.org>
91371
91372         * lib/config.charset: Update for newest glibc. Add canonical names
91373         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91374
91375 2002-11-04  Bruno Haible  <bruno@clisp.org>
91376
91377         * lib/config.charset: Add support for NetBSD.
91378
91379 2002-11-04  Bruno Haible  <bruno@clisp.org>
91380
91381         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91382
91383 2002-11-01  Bruno Haible  <bruno@clisp.org>
91384
91385         * configure.in: Add AC_CONFIG_AUX_DIR call.
91386         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91387         test/Makefile.
91388         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91389
91390 2002-09-28  Karl Berry  <karl@gnu.org>
91391
91392         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91393         installed automake until the next release, since changes have been
91394         made.
91395
91396 2002-09-25  Karl Berry  <karl@gnu.org>
91397
91398         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91399         * lib/getopt*: copy from libc/posix.
91400         * lib/gettext.h: copy from gettext.
91401         * lib/.cppi-disable: add strdup.c, gettext.h.
91402
91403 2002-09-25  Karl Berry  <karl@gnu.org>
91404
91405         * config/srclist.txt: enable gettext.h check.
91406         * config/config.{guess,sub}: update from prep.
91407         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91408                 from automake 1.6.3.
91409         See srclist*.
91410
91411 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91412
91413         * regex.c (PATFETCH): Remove the translating fetch.
91414         (PATFETCH_RAW): Rename to PATFETCH.
91415         (set_image_of_range): New fun.
91416         (SET_RANGE_TABLE_WORK_AREA): Use it.
91417         (regex_compile): Don't translate the pattern chars so eagerly.
91418         Only do it when inserting an `exactn' bytecode or when handling
91419         a char-range.
91420         (mutually_exclusive_p): Avoid empty statement.
91421
91422 2002-07-06  Jim Meyering  <meyering@lucent.com>
91423
91424         * m4/README: Don't mention Makefile.am.in.
91425         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91426
91427 2002-07-01  Jim Meyering  <meyering@lucent.com>
91428
91429         * lib/c-stack.c: Include sys/time.h.
91430         From Volker Borchert.
91431
91432 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91433
91434         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91435
91436 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91437
91438         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91439         New macro.  Use it uniformly instead of
91440         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91441         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91442         reported by Vin Shelton.
91443
91444 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91445
91446         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91447         Do not assume SA_SIGINFO behavior.
91448         Bug reported by Jim Meyering on NetBSD 1.5.2.
91449
91450 2002-06-22  Jim Meyering  <meyering@lucent.com>
91451
91452         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91453         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91454
91455         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91456         now that configure.ac uses AC_GNU_SOURCE.
91457         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91458         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91459
91460         Update to latest tools.  Suggestions from Paul Eggert.
91461         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91462         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91463         * m4/fnmatch.m4: Likewise.
91464         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91465         to AC_HEADER_STDBOOL
91466
91467 2002-06-22  Jim Meyering  <meyering@lucent.com>
91468
91469         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91470         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91471
91472 2002-06-22  Jim Meyering  <meyering@lucent.com>
91473
91474         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91475
91476         * lib/exitfail.c, exitfail.h: Likewise.
91477         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91478
91479         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91480         of fnmatch.h.
91481         (EXTRA_DIST): Add fnmatch_loop.c.
91482         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91483
91484         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91485         * lib/fnmatch.c: Update from diffutils-2.8.2.
91486         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91487         * lib/fnmatch.h: Remove file.
91488
91489 2002-06-21  Jim Meyering  <meyering@lucent.com>
91490
91491         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91492         * m4/mbrtowc.m4: Likewise.
91493
91494         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91495         * m4/mbswidth.m4: Reflect name change:
91496         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91497         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91498
91499         * m4/lib-link.m4: Update from gettext-0.11.2.
91500         * m4/gettext.m4: Likewise.
91501
91502         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91503         From Alfred M. Szmidt.
91504
91505 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91506
91507         * lib/file-type.h: Report an error if neither S_ISREG nor
91508         S_IFREG is defined, instead of using a test specific to glibc
91509         2.2.  This should be safe, since POSIX requires S_ISREG and
91510         Unix Version 7 had S_IFREG.  We don't need to check for
91511         <sys/types.h> since we don't use any symbols that it defines.
91512
91513 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91514
91515         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91516         $@-t, so that each temporary file name is unique and valid in the first
91517         8 characters, for operation under DOS.
91518
91519 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91520
91521         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91522
91523 2002-06-15  Jim Meyering  <meyering@lucent.com>
91524
91525         Work even with DJGPP 2.03, which lacks support for symlinks.
91526         From Richard Dawe.
91527         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91528         is defined.
91529         * lib/lchown.c (S_ISLNK): Likewise.
91530
91531 2002-06-15  Jim Meyering  <meyering@lucent.com>
91532
91533         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91534         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91535         have been included before this file.
91536
91537 2002-06-14  Jim Meyering  <meyering@lucent.com>
91538
91539         * lib/file-type.h: Use the version from diffutils-2.8.2.
91540         * lib/file-type.c: Likewise.
91541
91542 2002-06-07  Jim Meyering  <meyering@lucent.com>
91543
91544         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91545         They're needed at least for NetBSD 1.5.2.
91546         ($statxfs_includes): Include those same headers.
91547         ($statxfs_includes): Include sys/vfs.h if available.
91548         ($statxfs_includes): Likewise for sys/statvfs.h.
91549         Check for the following members in both structs statfs and statvfs:
91550         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91551
91552 2002-06-01  Jim Meyering  <meyering@lucent.com>
91553
91554         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91555         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91556
91557 2002-05-28  Jim Meyering  <meyering@lucent.com>
91558
91559         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91560         Reported by Volker Borchert.
91561
91562 2002-05-27  Jim Meyering  <meyering@lucent.com>
91563
91564         Fix a problem seen only on nonconforming systems whereby ls.c's
91565         use of localtime, and then of gettimeofday would cause trouble:
91566         the localtime call used to initialize rpl_gettimeofday's save
91567         mechanism would clobber ls's current local time information so
91568         that in any long listing the first file would always be listed
91569         with date 1970-01-01.  Analysis by Volker Borchert.
91570
91571         * lib/gettimeofday.c (localtime): Undefine.
91572         (rpl_localtime): New function.
91573
91574 2002-05-27  Jim Meyering  <meyering@lucent.com>
91575
91576         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91577         localtime.
91578
91579         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91580         use the replacement function; it wouldn't resolve at link time.
91581         Reported by Volker Borchert.
91582
91583 2002-05-22  Jim Meyering  <meyering@lucent.com>
91584
91585         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91586         file-type.h.
91587         * lib/file-type.h: New file.
91588         * lib/file-type.c (file_type): New file/function.  Extracted from
91589         diffutils.
91590
91591 2002-04-30  Jim Meyering  <meyering@lucent.com>
91592
91593         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91594
91595 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91596
91597         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91598
91599 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91600
91601         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91602         Do not check for alloca.h (no longer used) or stdbool.h (was never
91603         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91604
91605 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91606
91607         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91608
91609 2002-04-29  Jim Meyering  <meyering@lucent.com>
91610
91611         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91612         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91613         Use AC_FUNC_STRNLEN here instead.
91614
91615         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91616         With autoconf-2.53a, it's part of AC_PROG_CC.
91617
91618 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91619
91620         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91621         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91622
91623 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91624
91625         * lib/sig2str.h, lib/sig2str.c: New files.
91626         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91627
91628 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91629
91630         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91631         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91632         of 127, since 64 is the largest conceivable number for ancient
91633         nonstandard hosts.
91634         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91635
91636 2002-04-28  Jim Meyering  <meyering@lucent.com>
91637
91638         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91639
91640 2002-04-24  Jim Meyering  <meyering@lucent.com>
91641
91642         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91643         (jm_PREREQ): Use it.
91644
91645         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91646         mach/mach.h fcntl.h.
91647         Check for this function: setlocale.
91648
91649 2002-04-24  Jim Meyering  <meyering@lucent.com>
91650
91651         * lib/gettext.h: New file, from Gettext.
91652         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91653         (libfetish_a_SOURCES): Add gettext.h.
91654
91655 2002-04-16  Jim Meyering  <meyering@lucent.com>
91656
91657         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91658         ut_pid, ut_id, ut_exit.
91659
91660 2002-04-16  Jim Meyering  <meyering@lucent.com>
91661
91662         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91663         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91664         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91665
91666 2002-04-12  Jim Meyering  <meyering@lucent.com>
91667
91668         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91669         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91670         existence of the getmntinfo function.  Needed for Darwin 5.3.
91671
91672         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91673         This is necessary at least on Darwin 5.3.
91674
91675         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91676         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91677         strnlen.o in the library, and that makes some versions of ranlib
91678         object.
91679
91680 2002-04-12  Jim Meyering  <meyering@lucent.com>
91681
91682         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91683
91684 2002-04-09  Jim Meyering  <meyering@lucent.com>
91685
91686         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91687         to be more precise.  Rather than saying we're checking whether the
91688         function `works', say what we're testing.
91689         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91690         Reported by Bruno Haible.
91691
91692 2002-03-10  Jim Meyering  <meyering@lucent.com>
91693
91694         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91695         Suggestion from Santiago Vila.
91696
91697 2002-03-08  Jim Meyering  <meyering@lucent.com>
91698
91699         * lib/rename.c: Mention that this wrapper is needed also on
91700         mips-dec-ultrix4.4 systems.
91701
91702 2002-03-02  Jim Meyering  <meyering@lucent.com>
91703
91704         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91705         not HAVE_CLOCK_SETTIME.
91706
91707 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91708
91709         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91710         Check for clock_settime.
91711
91712 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91713
91714         * lib/nanosleep.h: Rename to....
91715         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91716
91717         * lib/gettime.c: New file.
91718         * lib/settime.c: New file.
91719         * lib/stime.c: Remove.
91720
91721         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91722         timespec.h.  Remove nanosleep.h.
91723
91724 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91725
91726         * m4/acl.m4: New file.
91727         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91728         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91729
91730 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91731
91732         * lib/acl.c, lib/acl.h: New files.
91733         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91734
91735 2002-02-24  Jim Meyering  <meyering@lucent.com>
91736
91737         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91738         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91739         cause trouble.  Reported by Nelson Beebe.
91740
91741 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91742
91743         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91744         compilers that don't know that xalloc_die never returns.
91745
91746 2002-02-20  Jim Meyering  <meyering@lucent.com>
91747
91748         * lib/getdate.c: Regenerate using bison-1.33.
91749
91750 2002-02-17  Jim Meyering  <meyering@lucent.com>
91751
91752         * config/config.guess (main): Don't use `head -1'; it's no longer
91753         portable. Use `sed 1q' instead.
91754
91755 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91756
91757         * m4/codeset.m4: Upgrade to gettext-0.11.
91758         * m4/gettext.m4: Upgrade to gettext-0.11.
91759         * m4/glibc21.m4: Upgrade to gettext-0.11.
91760         * m4/iconv.m4: Upgrade to gettext-0.11.
91761         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91762         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91763         * m4/lib-ld.m4: New file, from gettext-0.11.
91764         * m4/lib-link.m4: New file, from gettext-0.11.
91765         * m4/lib-prefix.m4: New file, from gettext-0.11.
91766         * m4/progtest.m4: Upgrade to gettext-0.11.
91767
91768 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91769
91770         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91771         (jm_PREREQ): Use it.
91772
91773 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91774
91775         * lib/posixver.c, lib/posixver.h: New files.
91776         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91777
91778 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91779             Bruno Haible  <bruno@clisp.org>
91780
91781         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91782         (fwrite_success_callback): New declaration.
91783         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91784         print_unicode_char. Call failure callback instead of error.
91785         (fwrite_success_callback): New function.
91786         (exit_failure_callback): New function.
91787         (fallback_failure_callback): New function.
91788         (print_unicode_char): Call unicode_to_mb.
91789
91790 2002-01-26  Jim Meyering  <meyering@lucent.com>
91791
91792         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91793         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91794
91795 2002-01-26  Jim Meyering  <meyering@lucent.com>
91796
91797         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91798
91799 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91800
91801         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91802
91803 2002-01-22  Jim Meyering  <meyering@lucent.com>
91804
91805         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91806         Otherwise, some versions of automake would omit the rule that makes
91807         Makefile from Makefile.in.
91808
91809 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91810
91811         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91812         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91813         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91814         (memcoll): Set errno to zero if there is no error.
91815
91816         * lib/quotearg.c (quotearg_buffer_restyled):
91817         Fix bug with quoting buffers containing NUL when backslashing escapes.
91818         This bug was exposed by the other changes in this patch.
91819         (quotearg_n_options): New arg ARGSIZE.
91820         All callers changed.
91821         (quoting_options_from_style): New function.
91822         (quotearg_n_style): Use it.
91823         (quotearg_n_style_mem): New function.
91824
91825         * lib/quotearg.h (quotearg_n_style_mem): New function.
91826
91827 2002-01-19  Jim Meyering  <meyering@lucent.com>
91828
91829         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91830         Remove useless quotes: DF_PROG="df".
91831         * m4/strnlen.m4: New file.
91832
91833 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91834
91835         * lib/backupfile.c (ISDIGIT): Comment fix.
91836         * lib/getdate.y (ISDIGIT): Likewise.
91837         * lib/posixtm.c (ISDIGIT, year): Likewise.
91838         * lib/strverscmp.c (ISDIGIT): Likewise.
91839         * lib/userspec.c (ISDIGIT): Likewise.
91840
91841 2002-01-16  Jim Meyering  <meyering@lucent.com>
91842
91843         * lib/getdate.y: Add three semicolons, each just before a closing
91844         brace. Bison (as of version 1.31) no longer papers over that mistake.
91845
91846 2002-01-05  Jim Meyering  <meyering@lucent.com>
91847
91848         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91849
91850 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91851
91852         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91853         not silently exit merely because the output buffer happens to
91854         have nothing pending.
91855
91856 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91857
91858         See the big note in ../ChangeLog.
91859         * lib/human.c (suffixes): Prefer K to k for 1024.
91860         (generate_suffix_backwards): New function.
91861         (human_readable_inexact): Use it.
91862         * lib/xstrtol.c (__xstrtol): If there is no number but there
91863         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91864         Accept 'K' as well as 'k'.
91865
91866 2001-12-15  Jim Meyering  <meyering@lucent.com>
91867
91868         * lib/regex.h (__restrict_arr): Update from libc.
91869
91870         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91871         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91872         (STREQ): Define.
91873
91874 2001-12-14  Jim Meyering  <meyering@lucent.com>
91875
91876         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91877         Suggestion from Bruno Haible.
91878
91879 2001-12-10  Jim Meyering  <meyering@lucent.com>
91880
91881         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91882         xrealloc, Instead, include "xalloc.h".
91883         (initbuffer): Don't cast xmalloc return value to char*.
91884         (readline): Reword comment.
91885         Don't cast xrealloc return value to char*
91886         Return NULL, not 0.
91887
91888 2001-12-09  Jim Meyering  <meyering@lucent.com>
91889
91890         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91891         about `signed and unsigned type in conditional expression'.
91892         * lib/posixtm.c (posix_time_parse): Likewise.
91893
91894         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91895
91896         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91897         to avoid a pedantic warning.
91898
91899         * lib/getstr.c: Don't include assert.h.
91900         (getstr): Remove warning-evoking assertions.
91901         Return -1 if offset parameter is out of bounds.
91902         Change the type of a local from int to size_t.
91903
91904         * lib/strftime.c (my_strftime_localtime_r): Include this function
91905         definition in the `#if ! HAVE_TM_GMTOFF' block.
91906
91907         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91908         Include xalloc.h instead.
91909
91910 2001-12-02  Jim Meyering  <meyering@lucent.com>
91911
91912         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91913         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91914         included.
91915
91916         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91917         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91918
91919 2001-11-30  Akim Demaille  <akim@epita.fr>
91920
91921         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91922         before being defined.
91923
91924 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91925
91926         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91927         First arg is int, not unsigned.
91928         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91929         (SIZE_MAX, UINT_MAX): New macros.
91930         (quotearg_n_options): Abort if N is negative.
91931         Avoid overflow check on hosts where size_t is 64 bits and int
91932         is 32 bits, as overflow is impossible there.
91933         Fix off-by-one typo that caused unnecessary reallocation.
91934
91935 2001-11-27  Jim Meyering  <meyering@lucent.com>
91936
91937         * lib/tempname.c: Merge with version from libc.
91938         * lib/regex.c: Likewise.
91939
91940         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91941         systems for which STDC_HEADERS is 0, it was not included, resulting in
91942         a warning about an integer-to-pointer conversion problem with getenv.
91943         Reported by Volker Borchert.
91944
91945 2001-11-26  Jim Meyering  <meyering@lucent.com>
91946
91947         * lib/gtod.h: Remove file.
91948         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91949         * lib/gettimeofday.c: Don't include gtod.h.
91950         (GTOD_init): Remove function.
91951         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91952         Suggestion from Volker Borchert.
91953
91954 2001-11-23  Jim Meyering  <meyering@lucent.com>
91955
91956         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91957         it.
91958         * lib/hash.c (struct hash_table): Define it here instead.
91959
91960 2001-11-22  Jim Meyering  <meyering@lucent.com>
91961
91962         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91963
91964 2001-11-20  Jim Meyering  <meyering@lucent.com>
91965
91966         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91967         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91968
91969 2001-11-19  Jim Meyering  <meyering@lucent.com>
91970
91971         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91972         directory.  Use "conftestXXXXXX" as the template.
91973         Suggestion from Paul Eggert.
91974
91975         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91976         immediately, so the test doesn't mistakenly hit the max-open-files
91977         limit.
91978
91979 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91980
91981         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91982         (TEMPORARIES): New macro.
91983         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91984         removes an artificial limitation (e.g. HP-UX 10.20, where
91985         TMP_MAX is 17576).
91986
91987 2001-11-18  Jim Meyering  <meyering@lucent.com>
91988
91989         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91990
91991 2001-11-18  Jim Meyering  <meyering@lucent.com>
91992
91993         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91994         on SunOS 4.
91995
91996         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91997         files will be created before anything else.
91998
91999 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92000
92001         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92002         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92003
92004 2001-11-17  Jim Meyering  <meyering@lucent.com>
92005
92006         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92007         Prompted by a report from Bob Proulx.
92008
92009         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92010         Instead, require UTILS_FUNC_MKSTEMP.
92011
92012 2001-11-17  Jim Meyering  <meyering@lucent.com>
92013
92014         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92015         Now, that's done as part of AC_FUNC_STRTOD.
92016
92017 2001-11-17  Jim Meyering  <meyering@lucent.com>
92018
92019         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92020         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92021         rather than group writable.  Patch by Juan F. Codagnone.
92022
92023         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92024         xrealloc, Instead, include "xalloc.h".
92025
92026         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92027         Remove explicit declarations of xmalloc, xrealloc,
92028         and xstrdup.  Instead, include "xalloc.h".
92029
92030         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92031         unlocked-io.h.
92032         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92033         Likewise.
92034         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92035
92036         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92037         Reported by Padraig Brady.
92038
92039         * lib/mkstemp.c: #undef mkstemp.
92040         Include config.h.
92041         (rpl_mkstemp): Rename from mkstemp.
92042         Protoize.
92043
92044 2001-11-16  Jim Meyering  <meyering@lucent.com>
92045
92046         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92047         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92048         determine the amount of total physical memory, use pstat_getstatic.
92049         HPUX-11 doesn't define _SC_PHYS_PAGES.
92050         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92051         If sysconf couldn't be used to determine the amount of available
92052         physical memory, use both pstat_getstatic and pstat_getdynamic.
92053         Based on a patch from Bob Proulx.
92054
92055 2001-11-10  Jim Meyering  <meyering@lucent.com>
92056
92057         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92058         (jm_PREREQ): Use it.
92059
92060 2001-11-09  Jim Meyering  <meyering@lucent.com>
92061
92062         * m4/jm-macros.m4: Require autoconf-2.52f.
92063         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92064         Use these AC_-prefixed names, not the AM_-prefixed ones.
92065
92066         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92067
92068 2001-11-05  Jim Meyering  <meyering@lucent.com>
92069
92070         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92071
92072 2001-11-04  Jim Meyering  <meyering@lucent.com>
92073
92074         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92075         $DEFS.
92076
92077 2001-11-03  Jim Meyering  <meyering@lucent.com>
92078
92079         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92080         of AC_DEFUN.
92081
92082         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92083         know the name of the variable in the macro definition.
92084
92085 2001-11-03  Jim Meyering  <meyering@lucent.com>
92086
92087         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92088         in argmatch_to_argument call.
92089
92090         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92091         argument.
92092
92093         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92094         e.g., a fault due to an attempt to free a NULL pointer.
92095
92096 2001-11-01  Jim Meyering  <meyering@lucent.com>
92097
92098         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92099         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92100
92101 2001-11-01  Jim Meyering  <meyering@lucent.com>
92102
92103         * lib/dirfd.c, lib/dirfd.h: New files.
92104         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92105
92106         * lib/hash.c (hash_print) [TESTING]: Clean up.
92107
92108 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92109
92110         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92111         to avoid a warning if -Wall.
92112
92113 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92114
92115         * README: New file
92116         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92117         (per RMS's instructions, this is now the canonical source)
92118         * lgpl/, gpl/: New directories.
92119
92120 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92121
92122         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92123
92124 2001-10-21  Jim Meyering  <meyering@lucent.com>
92125
92126         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92127         this code would end up calling gettext even in packages built
92128         with --disable-nls.
92129         * lib/getopt.c (_): Likewise.
92130         * lib/regex.c (_): Likewise.
92131
92132 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92133
92134         * m4/error.m4 (jm_PREREQ_ERROR):
92135         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92136         AC_FUNC_STRERROR_R does that.
92137         Check for strerror declaration.
92138
92139         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92140         are supposed to have them these days.
92141         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92142         Merge changes from latest Autoconf CVS.
92143         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92144         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92145         POSIX decided to standardize on the int flavor of strerror_r.
92146
92147 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92148
92149         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92150         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92151         Use strerror_r that is only a macro, even if it is not a function.
92152         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92153         (private_strerror): Use prototypes, not old-style function definition.
92154         (print_errno_message): New function.
92155         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92156         char*-flavored one.
92157         (error_tail, error, error_at_line): Use it.
92158
92159 2001-10-11  Jim Meyering  <meyering@lucent.com>
92160
92161         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92162         and quote_n (1, ... to avoid clobbering a buffer.
92163
92164 2001-10-05  Jim Meyering  <meyering@lucent.com>
92165
92166         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92167         hash-pjw.h.
92168         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92169         * lib/hash-pjw.h: New file.
92170
92171 2001-09-30  Jim Meyering  <meyering@lucent.com>
92172
92173         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92174         `struct fsstat' has the `f_fstypename' member.
92175         Use that to define FS_TYPE, which is now used to make
92176         the getfsstat link test tighter.
92177
92178 2001-09-30  Jim Meyering  <meyering@lucent.com>
92179
92180         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92181         Include <sys/ucred.h>, for Apple Darwin.
92182         Include sys/mount.h and sys/fs_types.h only if available.
92183         (FS_TYPE): Define.
92184         (read_filesystem_list): Use FS_TYPE.
92185
92186 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92187
92188         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92189         a boolean context.
92190
92191 2001-09-29  Jim Meyering  <meyering@lucent.com>
92192
92193         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92194         [one-argument getmntent function]): Include stdio.h before mntent.h.
92195         SunOS 4.1.x needs it for the declaration of `FILE'.
92196         Patch by Volker Borchert.
92197
92198         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92199         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92200         sys/fs_types.h, and make the link-test for getfsstat guard #include
92201         directives with appropriate #if HAVE_*_H tests so that we can
92202         detect getfsstat on Apple Darwin1.3.7 systems.
92203         Reported by Nelson Beebe.
92204         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92205
92206 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92207
92208         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92209         #defines strtoimax.  Also treat the other strto* functions
92210         like strtoimax.
92211
92212         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92213         Check for strtoul and strtoumax,
92214         as those declarations are made even in the signed case.
92215         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92216         Likewise, for strtol and strtoimax.
92217
92218 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92219
92220         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92221         #defines strtoimax.  Also treat the other strto* functions
92222         like strtoimax.
92223
92224         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92225         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92226         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92227
92228 2001-09-26  Jim Meyering  <meyering@lucent.com>
92229
92230         Most macros in unlocked-io.h had the wrong number of arguments.
92231         * lib/gen-uio: New script.
92232         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92233         * lib/unlocked-io.hin: Remove file.
92234         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92235         rather than trying to embed it here.
92236         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92237         Reported by Padraig Brady.
92238
92239 2001-09-25  Volker Borchert  <bt@teknon.de>
92240
92241         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92242         `result'.
92243
92244 2001-09-24  Jim Meyering  <meyering@lucent.com>
92245
92246         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92247
92248 2001-09-23  Jim Meyering  <meyering@lucent.com>
92249
92250         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92251         instead of the mere test for existence of mntent.h.  The latter
92252         would get a false-positive on AIX 3.4 systems.
92253         In the outer getmntent if-block, don't die if neither of the getmntent
92254         tests succeeds.  Instead, just fall through and continue with the
92255         remaining tests.
92256
92257 2001-09-23  Jim Meyering  <meyering@lucent.com>
92258
92259         * lib/mountlist.c: Remove useless parentheses in #if directives.
92260         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92261         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92262
92263 2001-09-22  Jim Meyering  <meyering@lucent.com>
92264
92265         * m4/gettext.m4: New file.  From gettext.
92266         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92267         * m4/progtest.m4: Likewise
92268         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92269         * m4/glibc21.m4: Likewise.
92270
92271         * m4/libintl.m4: Remove.  No longer used.
92272
92273 2001-09-22  Jim Meyering  <meyering@lucent.com>
92274
92275         * lib/localcharset.c: Update from latest gettext.
92276         * lib/config.charset: Likewise.
92277
92278 2001-09-20  Jim Meyering  <meyering@lucent.com>
92279
92280         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92281         strtoimax.
92282         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92283         strtoumax.
92284
92285 2001-09-20  Jim Meyering  <meyering@lucent.com>
92286
92287         * lib/xstrtol.c (strtoimax): Guard declaration with
92288         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92289         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92290         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92291         (strtoumax): Likewise, for completeness (it wasn't necessary).
92292
92293 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92294
92295         * lib/strtoimax.c (HAVE_LONG_LONG):
92296         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92297         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92298         to work around bug in IBM C compiler.
92299
92300 2001-09-17  Jim Meyering  <meyering@lucent.com>
92301
92302         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92303         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92304         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92305         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92306         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92307         whenever the right hand side need not be expanded by the shell.
92308
92309 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92310
92311         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92312         library.  It's not correct, as some older glibcs are buggy.
92313         fnmatch wasn't fixed until glibc 2.2.
92314
92315         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92316         special shell magic here.
92317
92318 2001-09-16  Jim Meyering  <meyering@lucent.com>
92319
92320         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92321         * m4/jm-macros.m4: Require it.
92322
92323 2001-09-16  Jim Meyering  <meyering@lucent.com>
92324
92325         * lib/mkdir.c: New file.
92326
92327 2001-09-15  Jim Meyering  <meyering@lucent.com>
92328
92329         * m4/jm-macros.m4: Check for help2man.
92330
92331 2001-09-11  Jim Meyering  <meyering@lucent.com>
92332
92333         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92334         The body, by Paul Eggert, was moved here from configure.in.
92335         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92336
92337 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92338
92339         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92340         (jm_PREREQ): Use it.
92341
92342 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92343
92344         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92345         Use ssize_t, not int, to store result of readlink.
92346         Check for ssize_t overflow as well as size_t overflow,
92347         as POSIX says the result of readlink is implementation-defined
92348         when ssize_t overflows.
92349         Remove unnecessary cast to char*.
92350         Use free+malloc instead of realloc, as the storage doesn't need
92351         to be preserved and it's clearer and can be more efficient that way.
92352         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92353         * lib/xreadlink.h (xreadlink): Update prototype.
92354
92355 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92356
92357         * lib/xgetcwd.c: Revert some of the previous change; intead,
92358         fix the HAVE_GETCWD_NULL code to behave more like the
92359         !HAVE_GETCWD_NULL code used to.
92360
92361         Include "xalloc.h".
92362         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92363         invoke xalloc_die.
92364
92365 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92366
92367         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92368         sys/param.h, as pathmax.h includes them.
92369
92370 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92371
92372         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92373         (jm_PREREQ_XGETCWD): New macro.
92374
92375         * m4/getcwd.m4: New file.
92376
92377 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92378
92379         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92380         like the HAVE_GETCWD_NULL code.
92381         Include pathmax.h if not HAVE_GETCWD.
92382         Do not include xalloc.h.
92383         (INITIAL_BUFFER_SIZE): New symbol.
92384         Do not use xmalloc / xrealloc, since the caller is responsible for
92385         handling errors.  Preserve errno around `free' during failure.
92386         Do not overrun buffer when using getwd.
92387
92388 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92389
92390         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92391         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92392         getcwd (NULL, 0).
92393
92394 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92395
92396         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92397         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92398         spotted by Jim Meyering.
92399
92400 2001-09-03  Jim Meyering  <meyering@lucent.com>
92401
92402         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92403         failure.
92404
92405 2001-09-02  Jim Meyering  <meyering@lucent.com>
92406
92407         * lib/error.c: Update from GNU libc.
92408
92409 2001-09-01  Jim Meyering  <meyering@lucent.com>
92410
92411         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92412         Used by df.
92413
92414 2001-09-01  Jim Meyering  <meyering@lucent.com>
92415
92416         * lib/xreadlink.c: New file.
92417         * lib/xreadlink.h: New file.
92418         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92419         xreadlink.h.
92420
92421         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92422         doesn't conflict with sparc Solaris 7's definition in
92423         /usr/include/sys/int_types.h.
92424
92425         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92426         files.
92427         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92428         and strncasecmp as r-values.  Unixware didn't have declarations.
92429
92430 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92431
92432         * lib/xstrtol.h: Add copyright notice.
92433         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92434         LONGINT_INVALID_SUFFIX_CHAR.
92435
92436 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92437
92438         * lib/xstrtol.c (strtoimax): New decl.
92439
92440 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92441
92442         * lib/xgetcwd.c: Don't include pathmax.h.
92443         Include stdlib.h and unistd.h if available.
92444         Include xalloc.h.
92445         (xmalloc, xstrdup, free): Remove decls.
92446         (xgetcwd): Don't assume sizes fit in unsigned.
92447         Check for overflow when computing sizes.
92448         Simplify reallocation code.
92449
92450 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92451
92452         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92453         a directory's st_size can have an arbitrary value, so the old
92454         usage could waste an arbitrary amount of memory.  All uses
92455         changed.
92456         * lib/savedir.h: Update prototype.
92457
92458 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92459
92460         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92461
92462         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92463         old strtoimax.c.
92464
92465         Also, make the following further changes to make this file's
92466         configuration more similar to that of strtol.c:
92467         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92468         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92469         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92470         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92471         changed to signed values.
92472
92473         And make the following changes as well:
92474         Fix copyright notice, as 1999 was missing.
92475         (verify): New macro.
92476         (strtoimax): Check sizes at compile-time, not run-time.
92477         Prefer strtol to strtoll if both work.
92478         (main): Remove; it was not that useful and was a pain to maintain.
92479
92480         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92481
92482 2001-08-31  Jim Meyering  <meyering@lucent.com>
92483
92484         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92485         Use an initial, malloc'd, buffer of length 128 rather than
92486         a statically allocated one of length 1024.
92487
92488 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92489
92490         Simplify code, partly by assuming autoconf 2.52 semantics.
92491
92492         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92493
92494         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92495         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92496         All uses removed.
92497         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92498         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92499         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92500         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92501         jm_AC_HEADER_INTTYPES_H.
92502         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92503
92504         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92505
92506         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92507         Quote first arg of AC_DEFUN.
92508         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92509         since they are needed to parse the include file even if we need
92510         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92511         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92512         but with opposite signedness.
92513
92514 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92515
92516         Merge 'exclude' changes from tar 1.13.22.
92517         This fixes one or two unlikely storage allocation overflow bugs,
92518         but doesn't change user-visible behavior otherwise.
92519
92520 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92521
92522         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92523         (jm_PREREQ_EXCLUDE): New macro.
92524
92525 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92526
92527         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92528         tm to be declared.
92529
92530 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92531
92532         * lib/hash.c: Remove '2001' from copyright notice.
92533
92534 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92535
92536         * lib/full-write.h: New file.
92537         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92538         * lib/full-write.c: Correct credits, as cccp.c no longer
92539         exists and anyway it was so heavily changed from the old cccp
92540         code as to be unrecognizable.  Include full-write.h.
92541         (full_write): Return size_t, with short writes meaning failure.
92542         All callers changed.  This fixes a bug with large buffers
92543         on 64-bit hosts.
92544         * lib/utime.c: Include full-write.h.
92545
92546 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92547
92548         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92549         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92550         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92551         Include if available.
92552         (<xalloc.h>): Include
92553         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92554         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92555         collide with FNM macros.
92556         (struct patopts): New struct.
92557         (struct exclude): Use it, as exclude patterns now come with options.
92558         (new_exclude): Support above changes.
92559         (new_exclude, add_exclude_file):
92560         Initial size must now be a power of two to simplify overflow checking.
92561         (free_exclude, fnmatch_no_wildcards): New function.
92562         (excluded_filename): No longer requires options arg, as the options
92563         are determined by add_exclude.  Now returns bool, not int.
92564         (excluded_filename, add_exclude):
92565         Add support for the fancy new exclusion options.
92566         (add_exclude, add_exclude_file): Now takes int options arg.
92567         Check for arithmetic overflow when computing sizes.
92568         (add_exclude_file): xrealloc might modify errno, so don't
92569         realloc until after errno might be used.
92570
92571         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92572         New macros.
92573         (free_exclude): New decl.
92574         (add_exclude, add_exclude_file): Now takes int options arg.
92575         (excluded_filename): No longer requires options arg, as the options
92576         are determined by add_exclude.  Now returns bool, not int.
92577
92578 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92579
92580         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92581
92582 2001-08-27  Jim Meyering  <meyering@lucent.com>
92583
92584         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92585
92586         * lib/version-etc.c (N_): Remove definition.
92587         Revert most of last change.
92588         Instead, simply don't mark the `Copyright...' string for translation.
92589         Based on advice from Paul Eggert.
92590
92591         * lib/strtoxmax.c: Tweak comment.
92592
92593 2001-08-26  Jim Meyering  <meyering@lucent.com>
92594
92595         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92596
92597         * m4/xstrtoimax.m4: New file.
92598         * m4/xstrtoumax.m4: Add comments explaining why we
92599         AC_REPLACE_FUNCS(strtol).
92600
92601 2001-08-26  Jim Meyering  <meyering@lucent.com>
92602
92603         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92604         of copyright with `%s' so translators don't get an untranslated
92605         message in 2002.
92606         (COPYRIGHT_YEAR): Define.
92607         (version_etc): Use fprintf rather than fputs.
92608         Suggestion from Ulrich Drepper.
92609
92610         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92611
92612         * lib/strtoll.c: New file, from GNU libc.
92613         * lib/xstrtoimax.c: New file.
92614
92615         * lib/xstrtol.h: Add xstrtoimax.
92616         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92617         * lib/strtoimax.c: New file.  Likewise, but first define
92618         STRTOUXMAX_SIGNED.
92619
92620         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92621         ...
92622         * lib/strtoxmax.c: ... then renamed to this.
92623
92624 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92625
92626         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92627         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92628         (jm_AC_TYPE_INTMAX_T): New macro.
92629         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92630
92631         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92632
92633         * m4/longlong.m4: Renamed from ulonglong.m4.
92634         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92635         * m4/uintmax_t.m4: Removed.
92636
92637 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92638
92639         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92640         Port to Solaris 8, where 'sed' requires a space after the 'r'
92641         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92642         Redirect output to $tmp just once.
92643
92644 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92645
92646         * lib/addext.c (<errno.h>): Include.
92647         (errno): Declare if not defined.
92648         (addext): Work correctly when pathconf returns -1 and leaves
92649         errno alone because there is no limit.  Also, work even if
92650         pathconf returns a value greater than SIZE_MAX.
92651
92652 2001-08-12  Jim Meyering  <meyering@lucent.com>
92653
92654         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92655         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92656         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92657         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92658         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92659         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92660         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92661         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92662         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92663         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92664         utime.m4, utimes.m4, xstrtoumax.m4:
92665         Quote the first argument in each use of AC_DEFUN.
92666
92667 2001-08-12  Jim Meyering  <meyering@lucent.com>
92668
92669         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92670         Simply `return getcwd (NULL, 0);'.
92671         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92672         Use 1300 as initial value for length, not PATH_MAX.
92673
92674         * lib/pathmax.h: Clean up cpp syntax.
92675
92676 2001-08-12  Jim Meyering  <meyering@lucent.com>
92677
92678         * lib/gettimeofday.c: New file.
92679         * lib/gtod.h: New file.
92680         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92681
92682 2001-08-05  Jim Meyering  <meyering@lucent.com>
92683
92684         * m4/jm-macros.m4: Require autoconf-2.52.
92685
92686 2001-08-04  Jim Meyering  <meyering@lucent.com>
92687
92688         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92689         stmt, to get in sync with glibc.
92690
92691 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92692
92693         The following changes are from gettext 0.10.39 as maintained by
92694         Bruno Haible.
92695
92696         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92697         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92698         with inverted sense.  All uses changed.
92699
92700         * lib/mbswidth.c: Don't include <limits.h>.
92701         Include <stdlib.h> and <string.h> unconditionally.
92702         (iswcntrl, mbsinit, ISCNTRL): New macros.
92703         (mbsnwidth): Use K&R style function declarations.
92704         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92705         can optimize it when MB_CUR_MAX == 1.
92706         The width of control characters is zero, not 1.
92707
92708 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92709
92710         The following changes are from gettext 0.10.39 as maintained by
92711         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92712
92713         * m4/codeset.m4: Upgrade to serial AM1.
92714         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92715         all uses changed.  Quote first arg of AC_DEFUN.
92716         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92717
92718         * m4/iconv.m4: Upgrade to serial AM2.
92719         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92720         Add --with-libconv-prefix.
92721         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92722         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92723         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92724         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92725         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92726
92727         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92728         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92729         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92730         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92731         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92732         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92733         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92734         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92735         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92736
92737         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92738         string.h any more.
92739
92740         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92741         not the default value.
92742
92743         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92744         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92745         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92746         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92747         Also check for iswcntrl, used for wcwidth fallback.
92748         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92749         to Autoconf 2.13.
92750
92751 2001-08-03  Jim Meyering  <meyering@lucent.com>
92752
92753         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92754         as it was in the original.  Reported by Paul Eggert.
92755
92756 2001-07-16  Jim Meyering  <meyering@lucent.com>
92757
92758         * m4/gettimeofday.m4: New file.
92759         Prompted by a report from Bernhard Baehr.
92760
92761 2001-07-15  Jim Meyering  <meyering@lucent.com>
92762
92763         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92764         stuff. Now it's in ../Makefile.cfg.
92765
92766 2001-07-15  Jim Meyering  <meyering@lucent.com>
92767
92768         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92769         (BUILT_SOURCES): Add unlocked-io.h.
92770         (io_functions): Define.
92771         (unlocked-io.h): New rule.
92772         (DISTCLEANFILES): Add unlocked-io.h.
92773         (all-local): Depend on unlocked-io.h, to ensure it is created.
92774
92775         * lib/unlocked-io.hin: New file
92776
92777         * lib/regex.c: Update from glibc.
92778
92779 2001-07-05  Jim Meyering  <meyering@lucent.com>
92780
92781         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92782         recommendation.
92783         (libfetish_a_SOURCES): Put all .h files here instead.
92784         Remove a thus-exposed (better checks in automake) duplicate and
92785         two unnecessary .h files.
92786
92787 2001-07-04  Jim Meyering  <meyering@lucent.com>
92788
92789         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92790         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92791         distcheck failure.
92792
92793 2001-07-02  Jim Meyering  <meyering@lucent.com>
92794
92795         The following changes were prompted by suggestions from Bruno Haible.
92796
92797         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92798         is now generated.
92799         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92800         definition of EXTRA_DIST.
92801         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92802         ensure that the generated file is created/updated whenever the list
92803         of $(unlocked_functions) is changed.
92804         (jm-glibc-io.m4): New rule.
92805         (unlocked-io.h): New rule -- currently unused.
92806
92807 2001-06-24  Jim Meyering  <meyering@lucent.com>
92808
92809         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92810         unmatched right bracket, rather than kludging it with an extra,
92811         falsely-matching quote in a comment.  Patch by Akim Demaille.
92812
92813 2001-06-11  Jim Meyering  <meyering@lucent.com>
92814
92815         * lib/regex.c: Update from GNU libc.
92816
92817 2001-05-27  Jim Meyering  <meyering@lucent.com>
92818
92819         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92820         Check for ut_type in struct utmp.
92821
92822 2001-05-27  Jim Meyering  <meyering@lucent.com>
92823
92824         * lib/readutmp.h (UT_TYPE): Define.
92825
92826 2001-05-24  Jim Meyering  <meyering@lucent.com>
92827
92828         * lib/argmatch.c: Include "quote.h".
92829         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92830         quote function.  Reported by Göran Uddeborg.
92831
92832 2001-05-22  Jim Meyering  <meyering@lucent.com>
92833
92834         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92835         now that we use the package-supplied version unconditionally.
92836         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92837
92838 2001-05-21  Jim Meyering  <meyering@lucent.com>
92839
92840         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92841         shell syntax errors.
92842
92843 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92844
92845         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92846
92847 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92848
92849         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92850         Don't bother to check library strftime, since
92851         we'll be using our own my_strftime function anyway.
92852         Define my_strftime instead of strftime.
92853
92854 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92855
92856         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92857         which is not yet declared.
92858
92859 2001-05-15  Jim Meyering  <meyering@lucent.com>
92860
92861         * m4/regex.m4: Use proper quoting so brackets appear in the test
92862         program.
92863         Reported by, and with help from, Bruno Haible.
92864
92865 2001-05-13  Jim Meyering  <meyering@lucent.com>
92866
92867         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92868         undefined.
92869
92870 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92871
92872         dirname code cleanup.  base_name now behaves more compatibly
92873         with POSIX basename when given file names that have trailing
92874         slashes, and similarly for dir_name.  Add new primitives
92875         base_len and dir_len.  Put the directory-name-related decls
92876         into dirname.h.
92877
92878         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92879         * lib/backupfile.c (base_name): Likewise.
92880         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92881         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92882         * lib/makepath.c (strip_trailing_slashes): Likewise.
92883         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92884         ISSLASH): Likewise.
92885         * lib/rename.c (strip_trailing_slashes): Likewise.
92886         * lib/same.c (base_name): Likewise.
92887         * lib/stripslash.c (ISSLASH): Likewise.
92888
92889         * lib/addext.c: Include <dirname.h> after size_t is defined.
92890         * lib/backupfile.c: Likewise.
92891
92892         * lib/addext.c (addext): Use base_len to trim redundant
92893         trailing slashes instead of doing it ourselves.
92894         But do not trim the last slash if it is not redundant.
92895
92896         * lib/backupfile.c (find_backup_file_name,
92897         max_backup_version): Use base_len instead of rolling it ourselves.
92898         Handle the case of "" and (on DOS) "C:" correctly.
92899
92900         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92901         needed. Include <string.h>, <dirname.h>.
92902         (base_name): Allow file names ending in slashes, other than names
92903         that are all slashes.  In this case, return the basename followed
92904         by the slashes.  This is more general, and can be used in places
92905         where the original base_name purposely had an assertion failure.
92906         (base_len): New function.
92907
92908         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92909         Do not include <assert.h>; no longer needed.
92910         Include xalloc.h.
92911         (memrchr): Remove decl.
92912         (dir_name_r): Remove.
92913         (dir_len): Renamed from dirlen.  All callers changed.
92914         Rewrite in terms of base_name, for simplicity and consistency.
92915         (dir_name): Never return NULL.  All callers changed.
92916         Do not include <stdlib.h> in test program; no longer needed.
92917         return 0; is fine for test program.
92918
92919         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92920         New macros.
92921         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92922
92923         * lib/path-concat.c (path_concat): Use base_len to compute
92924         base length, not strlen; this means we cannot rely on memcpy
92925         to null-terminate.
92926
92927         * lib/same.c (STREQ): Remove.
92928         (same_name): Handle the case where the basename ends in trailing '/'.
92929
92930         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92931         a slash was stripped.  Do not strip the last slash after a
92932         file system prefix.
92933
92934 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92935
92936         * lib/Makefile.am (libfetish_a_SOURCES):
92937         Add strftime.c, since we now compile it on all hosts.
92938
92939         * lib/strftime.c (my_strftime):
92940         Define to nstrftime if emacs, but only if my_strftime is not defined.
92941         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92942         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92943         Add one more extra argument: a nanoseconds value.
92944         All uses changed.
92945         (ns): New macro.
92946         (my_strftime function): Add %N format.
92947         (emacs_strftimeu): Renamed from emacs_strftime,
92948         with extra ut argument.
92949
92950 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92951
92952         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92953
92954 2001-04-21  Jim Meyering  <meyering@lucent.com>
92955
92956         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92957         doesn't interfere.
92958
92959 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92960
92961         * m4/ftruncate.m4: Check for chsize.
92962         Link with ftruncate.o unconditionally if ftruncate is missing.
92963         This was required when cross-compiling to i586-mingw32msvc.
92964
92965 2001-04-08  Jim Meyering  <meyering@lucent.com>
92966
92967         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92968         recomputed; that's necessary when the offset spans a DST transition.
92969         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92970
92971 2001-04-02  Jim Meyering  <meyering@lucent.com>
92972
92973         * lib/regex.h, regex.c: Update from GNU libc.
92974
92975 2001-03-24  Jim Meyering  <meyering@lucent.com>
92976
92977         * m4/jm-macros.m4: Require autoconf-2.49d.
92978
92979 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92980
92981         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92982
92983 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92984
92985         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92986
92987 2001-03-17  Jim Meyering  <meyering@lucent.com>
92988
92989         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92990         now that the version in autoconf is equivalent.
92991         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92992
92993         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92994         Suggestion from Akim Demaille.
92995
92996         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92997         (jm_PREREQ_TEMPNAME): New function.
92998
92999 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93000
93001         * lib/tempname.c (uint64_t): Define to uintmax_t if
93002         not defined, and if UINT64_MAX is not defined.
93003         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93004         Reported by John David Anglin.
93005
93006 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93007
93008         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93009         resolve alias if codeset is empty.
93010         * lib/config.charset (BeOS): Use wildcard syntax.
93011
93012 2001-03-13  Jim Meyering  <meyering@lucent.com>
93013
93014         * lib/path-concat.c (path_concat)
93015         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93016         concatenating e.g., `C:' and `foo'.
93017         From Bruno Haible.
93018
93019 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93020
93021         * lib/localcharset.c (locale_charset): Don't use
93022         setlocale(LC_CTYPE,NULL). Don't return NULL.
93023         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93024
93025 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93026
93027         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93028         support for DOS/DJGPP.
93029
93030 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93031
93032         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93033         lacks mkstemp.  Compile our own tempname.c if we compile our own
93034         mkstemp.c, as mkstemp relies on tempname.
93035
93036 2001-03-01  Jim Meyering  <meyering@lucent.com>
93037
93038         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93039         AH_VERBATIM really does output its argument verbatim.
93040
93041 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93042
93043         * lib/Makefile.am (libfetish_a_SOURCES):
93044         Add dup-safer.c, fopen-safer.c.
93045         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93046
93047         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93048         * lib/unistd-safer.h: New files.
93049
93050 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93051
93052         The mkstemp replacement is taken from glibc 2.2.2, with some
93053         portability fixes for use outside glibc, as follows:
93054
93055         * lib/tempname.c (struct_stat64): New macro.
93056         (direxists, __gen_tempname): Use it.
93057         This avoids a portability problem with Solaris 8.
93058
93059         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93060         (<stddef.h>, <stdint.h>, <string.h>):
93061         Include only if STDC_HEADERS || _LIBC.
93062         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93063         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93064         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93065         (__set_errno): Define this macro if <errno.h> doesn't.
93066         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93067         Define these macros if <stdio.h> doesn't.
93068         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93069         Define these macros if <sys/stat.h>
93070         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93071         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93072         __xstat64): Define if not _LIBC.
93073         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93074         (__gen_tempname): Invoke gettimeofday only if
93075         HAVE_GETTIMEOFDAY || _LIBC;
93076         otherwise, fall back on plain "time".
93077         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93078
93079         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93080
93081         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93082
93083 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93084
93085         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93086
93087 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93088
93089         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93090         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93091         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93092         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93093
93094 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93095
93096         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93097         Remove workaround macros for hosts that have mbrtowc but not
93098         mbstate_t, as we now insist on proper declarations for both
93099         before using mbrtowc.
93100
93101 2001-02-17  Jim Meyering  <meyering@lucent.com>
93102
93103         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93104         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93105         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93106         UnixWare 7.1.1.
93107
93108         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93109         rather than AC_CACHE_VAL.
93110
93111 2001-02-17  Jim Meyering  <meyering@lucent.com>
93112
93113         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93114         around included file name.
93115
93116         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93117
93118         * lib/strftime.c: Update from GNU libc (the only changes were to
93119         comments).
93120
93121 2001-02-17  Jim Meyering  <meyering@lucent.com>
93122
93123         * lib/regex.c: Update from libc.
93124
93125 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93126
93127         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93128         clash.
93129
93130 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93131
93132         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93133         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93134         Reported by Mark Hounschell via Paul Eggert.
93135
93136 2001-02-07  Jim Meyering  <meyering@lucent.com>
93137
93138         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93139
93140 2001-02-05  Jim Meyering  <meyering@lucent.com>
93141
93142         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93143         it includes the patch required for `large file' support with at least
93144         HP-UX's 10.20 /bin/cc.
93145
93146 2001-02-03  Jim Meyering  <meyering@lucent.com>
93147
93148         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93149         AS_IF, now that it works once again (mysteriously).
93150         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93151
93152 2001-01-30  Jim Meyering  <meyering@lucent.com>
93153
93154         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93155         * m4/chown.m4: Rename conftestchown to conftest.chown.
93156         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93157         s/conftestdir2/conftest.d2/.
93158         * m4/utimes.m4: s/conftestdata/conftest.data/
93159         Inspired by Pavel Roskin's change in autoconf.
93160
93161 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93162
93163         * lib/config.charset: Update for FreeBSD 4.2.
93164
93165 2001-01-27  Jim Meyering  <meyering@lucent.com>
93166
93167         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93168         a use of AS_IF.
93169         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93170
93171 2001-01-26  Jim Meyering  <meyering@lucent.com>
93172
93173         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93174         quotearg.c includes it.
93175
93176 2001-01-26  Jim Meyering  <meyering@lucent.com>
93177
93178         * lib/quotearg.c: Include stddef.h.
93179         * lib/quote.c: Include stddef.h.
93180         Reported by Axel Kittenberger.
93181
93182         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93183         line in double quotes so that it evokes a better diagnostic.
93184         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93185         Reported by Axel Kittenberger.
93186
93187 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93188
93189         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93190         as if it was a `charset'.
93191
93192 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93193
93194         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93195         has const.
93196
93197 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93198
93199         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93200         to avoid a warning.  Add back 'const' to inptr.
93201
93202 2001-01-20  Jim Meyering  <meyering@lucent.com>
93203
93204         Be sure that headers are checked before used in code compiled
93205         for the type checks.
93206         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93207         In place of that, invoke jm_CHECK_ALL_TYPES.
93208         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93209         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93210         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93211         The check for ssize_t was mistakenly run before the test for unistd.h.
93212
93213         The configure-time check for stdbool.h was missing.
93214         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93215         (jm_PREREQ_HASH): New function.
93216
93217 2001-01-17  Jim Meyering  <meyering@lucent.com>
93218
93219         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93220         for autoconf-2.49c.
93221         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93222
93223 2001-01-16  Jim Meyering  <meyering@lucent.com>
93224
93225         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93226         From Bruno Haible.
93227
93228 2001-01-14  Jim Meyering  <meyering@lucent.com>
93229
93230         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93231         foo and bar.  Create conftestdir/ in the script, not in the C code.
93232         Remove directories in the script, not in the C code.
93233         Remove conftestdir{,2} before trying to create the directory.
93234         Make the entire configure script fail if the mkdir fails.
93235
93236 2001-01-14  Jim Meyering  <meyering@lucent.com>
93237
93238         * lib/rename.c: New file.  From Volker Borchert.
93239         Include stdlib.h, string.h or strings.h, and xalloc.h.
93240         Use strip_trailing_slashes rather than open-coding it.
93241
93242 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93243
93244         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93245
93246 2001-01-03  Jim Meyering  <meyering@lucent.com>
93247
93248         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93249         of local `inptr' to avoid warning with some system declarations of
93250         iconv.
93251
93252 2001-01-02  Volker Borchert  <bt@teknon.de>
93253
93254         * m4/rename.m4: New file.
93255         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93256
93257 2001-01-01  Jim Meyering  <meyering@lucent.com>
93258
93259         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93260         even on systems with utmpx.h.  It's necessary for the declaration of
93261         utmp's ut_user member.  Reported by Andreas Jaeger.
93262
93263         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93264         available. They are required for the declarations of getgrgid and
93265         getpwuid resp.
93266         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93267         Reported by Andreas Jaeger.
93268
93269 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93270
93271         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93272         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93273         so `make install' also works in VPATH builds.
93274
93275 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93276
93277         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93278         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93279         can be used in subdirectories.
93280
93281 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93282
93283         * lib/modechange.c: Do not assume that mode_t uses the
93284         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93285         the other-execute bit of FOO even if S_IXOTH != 1.
93286
93287         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93288         WOTH, XOTH, ALLM): New macros.
93289         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93290          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93291         Use them.
93292         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93293         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93294         (mode_compile):
93295         No need to use uintmax_t; unsigned long is long enough.
93296         Don't bother to get suffix since we don't use it.
93297
93298 2000-12-26  Jim Meyering  <meyering@lucent.com>
93299
93300         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93301         better with autoheader.
93302
93303 2000-12-24  Jim Meyering  <meyering@lucent.com>
93304
93305         * lib/hash.c (is_prime): Return explicit boolean values.
93306         (hash_get_first): Return NULL to appease Irix5.6's 89.
93307         Reported by Nelson Beebe.
93308
93309 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93310
93311         * lib/localcharset.c (locale_charset): Add support for Win32.
93312
93313 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93314
93315         * lib/physmem.h, lib/physmem.c: New files.
93316
93317         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93318         (noinst_HEADERS): Add physmem.h.
93319
93320         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93321         't' for compatibility with Solaris 8 sort.
93322
93323 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93324
93325         * lib/config.charset: Add support for BeOS.
93326
93327 2000-12-17  Jim Meyering  <meyering@lucent.com>
93328
93329         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93330         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93331
93332 2000-12-16  Jim Meyering  <meyering@lucent.com>
93333
93334         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93335         N and M) would have treated it like `chown N:N FILE'.
93336
93337         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93338
93339 2000-12-16  Jim Meyering  <meyering@lucent.com>
93340
93341         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93342         SHELLS_FILE to a file name that's useful on djgpp systems.
93343         Include stdlib.h.
93344         (ADDITIONAL_DEFAULT_SHELLS): Define.
93345         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93346         Based mostly on a patch from Prashant TR.
93347
93348 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93349
93350         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93351         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93352         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93353
93354 2000-12-08  Andreas Schwab  <schwab@suse.de>
93355
93356         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93357         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93358
93359 2000-12-07  Jim Meyering  <meyering@lucent.com>
93360
93361         * lib/stripslash.c (ISSLASH): Define.
93362         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93363         `/'.
93364         From Prashant TR.
93365
93366         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93367         (dir_name_r): Declare this function as static.
93368         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93369         manifest itself on a name containing a mix of slashes and
93370         backslashes.
93371         Make this function work with names starting with a DOS-style
93372         drive letter and colon prefix.
93373         (dir_name): Append `.' if necessary.
93374         Based mostly on patches from Prashant TR and Eli Zaretskii.
93375
93376         * lib/dirname.h (dir_name_r): Remove prototype.
93377
93378 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93379
93380         * m4/off_t-format.m4: Remove this file.
93381         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93382
93383 2000-12-06  Jim Meyering  <meyering@lucent.com>
93384
93385         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93386         replacement strtoull, we may well need the replacement strtoul, too.
93387         Check for declarations of strtoul and strtoull.
93388         Check for strtol.  Mainly as a cue to cause automake to include
93389         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93390         Check for limits.h -- strtol.c needs it.
93391
93392 2000-12-05  Jim Meyering  <meyering@lucent.com>
93393
93394         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93395
93396 2000-12-04  Jim Meyering  <meyering@lucent.com>
93397
93398         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93399         Also include memory.h, stdlib.h, unistd.h if appropriate.
93400         Reported by Andreas Jaeger (conflicting declaration of malloc).
93401
93402 2000-12-02  Jim Meyering  <meyering@lucent.com>
93403
93404         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93405         * m4/jm-macros.m4 (jm_MACROS): require it.
93406
93407 2000-12-02  Jim Meyering  <meyering@lucent.com>
93408
93409         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93410
93411 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93412
93413         * lib/memrchr.c: Include <config.h> before any system include file.
93414
93415 2000-11-30  Jim Meyering  <meyering@lucent.com>
93416
93417         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93418
93419 2000-11-30  Jim Meyering  <meyering@lucent.com>
93420
93421         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93422
93423 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93424
93425         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93426
93427 2000-11-26  Jim Meyering  <meyering@lucent.com>
93428
93429         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93430
93431 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93432
93433         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93434         size of (size_t) -1; it's not portable.
93435
93436 2000-11-17  Jim Meyering  <meyering@lucent.com>
93437
93438         * lib/strstr.c: Update from GNU libc.
93439
93440 2000-11-17  Akim Demaille  <akim@epita.fr>
93441
93442         * lib/obstack.h: Formatting changes.
93443         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93444         prevent type checking.
93445         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93446         cast the value to (void *): assigning a `foo *' to a `void *'
93447         variable is valid.
93448         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93449
93450 2000-11-16  Jim Meyering  <meyering@lucent.com>
93451
93452         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93453
93454 2000-11-11  Jim Meyering  <meyering@lucent.com>
93455
93456         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93457
93458 2000-11-10  Jim Meyering  <meyering@lucent.com>
93459
93460         * lib/obstack.h: Update from GNU libc.
93461         * lib/obstack.c: Likewise.
93462
93463 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93464
93465         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93466
93467 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93468
93469         * lib/getusershell.c (setusershell): Use rewind rather than
93470         fseek/fseeko, to avoid configuration hassles with fseeko.
93471         Don't bother opening SHELLS_FILE if shellstream is NULL;
93472         it's not necessary.
93473
93474 2000-11-05  Jim Meyering  <meyering@lucent.com>
93475
93476         * lib/makepath.h (make_dir): Declare.
93477         * lib/makepath.c (make_dir): Remove `static' attribute.
93478         Tweak a comment.
93479
93480 2000-11-04  Jim Meyering  <meyering@lucent.com>
93481
93482         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93483
93484 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93485
93486         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93487         last one in a bucket, advance to the next bucket.
93488
93489 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93490
93491         * lib/fnmatch.c: Do not comment out all the code if we are using
93492         the GNU C library, because in some cases we are replacing buggy
93493         code in the GNU C library itself.
93494
93495 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93496
93497         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93498         (regex_compile): Catch bogus \(\1\).
93499
93500 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93501
93502         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93503         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93504         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93505
93506 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93507
93508         * lib/error.h, getline.h, modechange.h:
93509         Remove "2000" from Copyright line, as the file hasn't been
93510         changed this year other than in the copyright notice.
93511
93512         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93513         was changed this year.
93514
93515 2000-10-29  Jim Meyering  <meyering@lucent.com>
93516
93517         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93518         renaming.
93519         * m4/ls-mntd-fs.m4: Likewise
93520
93521 2000-10-29  Jim Meyering  <meyering@lucent.com>
93522
93523         * lib/xstat.in: Fix grammar in comment.
93524
93525 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93526
93527         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93528         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93529         doesn't define __restrict_arr.
93530
93531 2000-10-28  Jim Meyering  <meyering@lucent.com>
93532
93533         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93534         (jm_PREREQ_MEMCHR): New function.
93535
93536 2000-10-28  Jim Meyering  <meyering@lucent.com>
93537
93538         * lib/memchr.c: Update from libc.
93539         Adjust for portability:
93540         [HAVE_STDLIB_H]: Include stdlib.h.
93541         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93542         Undef __memchr, too.
93543         [!weak_alias]: Define __memchr to memchr.
93544
93545         * lib/regex.c: Update from libc.
93546         * lib/regex.h: Likewise.
93547         * lib/getopt1.c: Likewise.
93548         * lib/memcmp.c: Likewise.
93549
93550         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93551         Avoid using fseek, when possible -- it's broken by design.
93552         Patch by Ulrich Drepper.
93553
93554 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93555
93556         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93557         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93558         Giving in to popular pressure to shut up the compiler with casts.
93559
93560 2000-10-26  Jim Meyering  <meyering@lucent.com>
93561
93562         * lib/strftime.c: Update from libc.
93563
93564 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93565
93566         * regex.c: More `unsigned char' -> `re_char' changes.
93567         Also change several `int' into `re_wchar_t'.
93568         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93569         (PUSH_FAILURE_POINTER): Don't cast any more.
93570         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93571         We want GCC to complain, since this piece of code makes
93572         re_match non-reentrant, which *should* be fixed.
93573         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93574         (EXTEND_BUFFER): Use RETALLOC.
93575         (SET_LIST_BIT): Don't cast.
93576         (re_wchar_t): New type.
93577         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93578         that those two functions will always properly return.
93579         (IMMEDIATE_QUIT_CHECK): Cast to void.
93580         (analyse_first): Use recursion rather than an explicit stack.
93581         (re_compile_fastmap): Can't fail anymore.
93582         (re_search_2): Don't check re_compile_fastmap for failure.
93583         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93584         Now also sets the new value (passed in a new argument).
93585         (re_match_2_internal): Use it.
93586         Also, use a new var `reg' of type size_t when looping through regs
93587         rather than reuse the inappropriate `mcnt'.
93588
93589 2000-10-25  Jim Meyering  <meyering@lucent.com>
93590
93591         * lib/obstack.c: Update from libc.
93592
93593 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93594
93595         * regex.c (regex_compile): Change the way of handling a range from
93596         a char less than 256 to a char not less than 256.
93597
93598 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93599
93600         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93601         NT-Emacs only.
93602         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93603         so that re_search functions only quit when callers expect them to.
93604
93605 2000-10-23  Jim Meyering  <meyering@lucent.com>
93606
93607         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93608         wrong.  That set_locale call must not have any side effects.
93609         From Paul Eggert.
93610
93611 2000-10-22  Jim Meyering  <meyering@lucent.com>
93612
93613         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93614         [CYCLIC]: Remove now-unused definition.
93615
93616         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93617         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93618         Suggestion from Ulrich Drepper.
93619
93620 2000-10-21  Jim Meyering  <meyering@lucent.com>
93621
93622         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93623         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93624         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93625
93626 2000-10-21  Jim Meyering  <meyering@lucent.com>
93627
93628         * lib/dirname.c (memrchr): Declare if necessary.
93629         (dir_name): Remove the restriction that there be no
93630         trailing slashes.  Now, this code skips past them, effectively
93631         ignoring them.
93632         [TEST_DIRNAME] (main): New unit tests.
93633
93634         * lib/memrchr.c: New file from GNU libc.
93635         Undef __memrchr, too.
93636         [!weak_alias]: Define __memrchr to memrchr.
93637         Guard weak_alias use with `#ifdef weak_alias'.
93638
93639 2000-10-21  Jim Meyering  <meyering@lucent.com>
93640
93641         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93642         (dir_name): Use dir_name_r.
93643         * lib/dirname.h (dir_name_r): Declare it.
93644
93645 2000-10-17  Jim Meyering  <meyering@lucent.com>
93646
93647         * lib/quote.h (PARAMS): Define and use.
93648         Reported by Akim Demaille.
93649
93650         * lib/getopt.c: Update from libc.
93651
93652 2000-10-16  Jim Meyering  <meyering@lucent.com>
93653
93654         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93655         setlocale.
93656         From Jan Fedak.
93657
93658 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93659
93660         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93661
93662 2000-09-25  Jim Meyering  <meyering@lucent.com>
93663
93664         * lib/md5.h (rol): Define (from GnuPG).
93665
93666         * lib/sha.c: Give credit (GnuPG) where due.
93667         (M): Use rol rather than open-coding it.
93668         Add a FIXME comment.
93669
93670 2000-09-21  Jim Meyering  <meyering@lucent.com>
93671
93672         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93673         Reported by Michael Stone.
93674
93675 2000-09-20  Jim Meyering  <meyering@lucent.com>
93676
93677         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93678         (noinst_HEADERS): Add sha.h.
93679         Based on code from Scott G. Miller and from GnuPG.
93680
93681 2000-09-18  Jim Meyering  <meyering@lucent.com>
93682
93683         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93684         LIBS. Otherwise, everyone ends up linking with -lelf for some
93685         configurations.
93686         Reported by Mike Stone.
93687
93688 2000-09-15  Jim Meyering  <meyering@lucent.com>
93689
93690         * lib/regex.c: Update from libc.
93691
93692 2000-09-10  Jim Meyering  <meyering@lucent.com>
93693
93694         * lib/getopt.c (_getopt_internal): Update from glibc.
93695
93696 2000-09-09  Jim Meyering  <meyering@lucent.com>
93697
93698         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93699         think it should be used as a general replacement for isascii.
93700         * lib/fnmatch.c: Likewise.
93701         * lib/mbswidth.c: Likewise
93702         * lib/regex.c: Likewise.
93703
93704         Don't use atoi.
93705         * lib/userspec.c: Include sys/param.h and limits.h.
93706         Include xstrtol.h.
93707         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93708         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93709         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93710         UID, GID.  Check range.
93711
93712 2000-09-06  Jim Meyering  <meyering@lucent.com>
93713
93714         * lib/getopt.c (_getopt_internal): Update from glibc.
93715
93716 2000-08-30  Jim Meyering  <meyering@lucent.com>
93717
93718         * lib/strftime.c: Merge in changes from GNU libc.
93719
93720 2000-08-26  Jim Meyering  <meyering@lucent.com>
93721
93722         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93723         * m4/fpending.m4: New file.
93724
93725 2000-08-26  Jim Meyering  <meyering@lucent.com>
93726
93727         * lib/closeout.c: Include "__fpending.h".
93728         (close_stdout_status): Return right away if there's nothing to flush.
93729
93730         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93731         * lib/__fpending.c: New file.
93732         * lib/__fpending.h: New file.
93733
93734 2000-08-20  Jim Meyering  <meyering@lucent.com>
93735
93736         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93737         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93738         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93739
93740 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93741
93742         Improve fileutils installation on systems where running
93743         programs (like install) can't be unlinked.
93744         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93745         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93746
93747 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93748
93749         Standardize on "memory exhausted" instead of "Memory exhausted"
93750         or "virtual memory exhausted".
93751         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93752         "virtual memory exhausted".
93753         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93754         our own message.
93755         * lib/userspec.c (parse_user_spec): Likewise.
93756         * lib/bumpalloc.h: comment fix
93757         * lib/same.c, userspec.c: Include xalloc.h.
93758
93759         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93760         not char *const and pointing to a constant array.
93761         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93762         (xrealloc): Comment fix.
93763
93764         * lib/userspec.c (parse_user_spec):
93765         Don't translate a message until just before returning,
93766         to avoid unnecessary translation.
93767
93768 2000-08-07  Jim Meyering  <meyering@lucent.com>
93769
93770         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93771         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93772         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93773         getgroups.c, gethostname.c, getopt.h, group-member.c,
93774         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93775         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93776         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93777         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93778         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93779         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93780         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93781         yesno.c: Back out Copyright date changes for each file with no change
93782         this year.  This eases coordination with other programs using the same
93783         source code modules.  From Paul Eggert.
93784
93785 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93786
93787         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93788         not char, for compatibility with glibc 2.1.3 strftime.c.
93789
93790 2000-08-03  Greg McGary  <greg@mcgary.org>
93791
93792         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93793         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93794         (EXTEND_BUFFER): Use them.
93795
93796 2000-08-01  Jim Meyering  <meyering@lucent.com>
93797
93798         * lib/dirname.c (ISSLASH): Define.
93799         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93800         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93801         both `\' and `/' may be use as path separators.
93802         Based on a patch from Prashant TR.
93803
93804 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93805
93806         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93807         slot vector a constant, since it might get modified.
93808
93809 2000-07-31  Jim Meyering  <meyering@lucent.com>
93810
93811         * lib/xmalloc.c: Use `virtual memory exhausted', not
93812         `Memory exhausted'.
93813         * lib/obstack.c (print_and_abort): Likewise.
93814
93815 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93816
93817         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93818         buffer, so that the caller can always quote one small
93819         component of a "memory exhausted" message in slot 0.
93820         From a suggestion by Jim Meyering.
93821
93822 2000-07-30  Jim Meyering  <meyering@lucent.com>
93823
93824         * lib/makepath.c (make_path): Quote the other instance, too.
93825
93826         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93827         (STATIC_BUF_SIZE): Define.
93828         (quotearg_n_options): Use only statically allocated storage when
93829         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93830         than STATIC_BUF_SIZE.
93831
93832 2000-07-29  Jim Meyering  <meyering@lucent.com>
93833
93834         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93835         * lib/dirname.c (dir_name): Likewise.
93836
93837         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93838         `/'.
93839
93840         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93841         (dir_name): Assert that there are no trailing slashes.
93842
93843 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93844
93845         * lib/mbswidth.h (mbswidth): Add a flags argument.
93846         (mbswidth): New declaration.
93847         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93848         * lib/mbswidth.c (mbswidth): Add a flags argument.
93849         (mbsnwidth): New function.
93850
93851 2000-07-24  Jim Meyering  <meyering@lucent.com>
93852
93853         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93854
93855 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93856
93857         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93858
93859 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93860
93861         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93862         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93863         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93864         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93865         invoke multibyte primitives.
93866
93867 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93868
93869         * lib/quotearg.c:
93870         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93871         so that mbstate_t is always defined.
93872
93873         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93874         be 1 in at least one GCC installation, and this configuration
93875         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93876         performance on hosts that have mbrtowc but have only unibyte
93877         locales, but I assume these hosts are rare.
93878
93879 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93880
93881         * lib/mbswidth.c (_XOPEN_SOURCE):
93882         Don't define; this causes problems on Solaris 7.
93883         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93884
93885 2000-07-23  Jim Meyering  <meyering@lucent.com>
93886
93887         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93888         too: getgrgid, getpwuid, getuid.
93889
93890 2000-07-23  Jim Meyering  <meyering@lucent.com>
93891
93892         * lib/basename.c (base_name): Add an assertion.
93893
93894 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93895
93896         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93897         shadow its mbsinit function.
93898
93899 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93900
93901         * lib/mbswidth.h: New file.
93902         * lib/mbswidth.c: New file.
93903         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93904         (noinst_HEADERS): Add mbswidth.h.
93905
93906 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93907
93908         * lib/config.charset: Add support for FreeBSD. Improve support for
93909         HP-UX and IRIX 6.
93910
93911 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93912
93913         * m4/mbswidth.m4: New file.
93914         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93915
93916 2000-07-15  Jim Meyering  <meyering@lucent.com>
93917
93918         * lib/makepath.c: Include quote.h.
93919         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93920         corresponding argument in a `quote (...)' call.
93921         Give better diagnostics.
93922
93923         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93924         (noinst_HEADERS): Add quote.h.
93925
93926         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93927         from tar's src/misc.c.
93928         * lib/quote.h: New file.  Prototypes for same.
93929
93930 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93931
93932         From a suggestion by Bruno Haible.
93933         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93934         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93935         to decide whether to define the BeOS workaround macro;
93936         this adjusts to the change to AC_MBSTATE_T.
93937
93938 2000-07-14  Jim Meyering  <meyering@lucent.com>
93939
93940         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93941         jm_AC_TYPE_UINTMAX_T.
93942
93943 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93944
93945         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93946
93947         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93948         quotearg_buffer_restyled): Add support for
93949         clocale_quoting_style.  Undo previous change to
93950         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93951         and "{RIGHT QUOTATION MARK}" msgids.
93952
93953 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93954
93955         From a suggestion by Bruno Haible.
93956         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93957         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93958         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93959         and mbstate_t, to a single-part test that simply defines mbstate_t.
93960         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93961         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93962
93963 2000-07-10  Jim Meyering  <meyering@lucent.com>
93964
93965         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93966
93967         * m4/gnu-source.m4: Output to confdefs.h directly.
93968         Suggestion from Akim Demaille.
93969
93970 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93971
93972         The old behavior of quoting `like this' doesn't look good with
93973         newer, ISO-style fonts.  See:
93974         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93975
93976         Instead, quote "like this" by default.  Let the translator
93977         tailor the locale-specific quoting behavior by providing
93978         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93979
93980         * lib/quotearg.c (N_): New macro.
93981         (gettext_default): New function.
93982         (quotearg_buffer_restyled): Use
93983         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93984         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93985
93986 2000-07-09  Jim Meyering  <meyering@lucent.com>
93987
93988         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93989         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93990
93991         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93992         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93993
93994 2000-07-09  Jim Meyering  <meyering@lucent.com>
93995
93996         * lib/Most files: Update copyright dates to include 2000.
93997
93998 2000-07-08  Jim Meyering  <meyering@lucent.com>
93999
94000         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94001         if not defined.
94002         (xgethostname): Remove now-unnecessary #ifdef.
94003         Move declaration of `err' into loop where it's used.
94004
94005 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94006         and Bruno Haible  <haible@clisp.cons.org>
94007
94008         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94009         only if the test for an object-type mbstate_t fails.  This
94010         prevents us from mistakenly reporting that mbstate_t is a
94011         system object type after we "#define mbstate_t int" to work
94012         around its lack.
94013
94014 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94015         and Bruno Haible  <haible@clisp.cons.org>
94016
94017         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94018
94019 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94020
94021         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94022         to strerror_r.
94023         Include <ctype.h> for use of isalpha.
94024
94025 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94026
94027         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94028         by allocating a larger buffer. Test the gethostname return value for
94029         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94030         returns an error and ENAMETOOLONG isn't defined.
94031
94032 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94033
94034         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94035         dimension.
94036
94037 2000-07-04  Jim Meyering  <meyering@lucent.com>
94038
94039         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94040         of the deprecated AC_CHECKING.
94041
94042 2000-07-04  Jim Meyering  <meyering@lucent.com>
94043
94044         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94045         Reported by Bruno Haible.
94046
94047 2000-07-04  Jim Meyering  <meyering@lucent.com>
94048
94049         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94050         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94051         lacks mbrtowc.
94052
94053 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94054
94055         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94056         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94057
94058 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94059         and Bruno Haible  <haible@clisp.cons.org>
94060
94061         * lib/quotearg.c (mbrtowc):
94062         Assign to *pwc, and return 1 only if result is nonzero.
94063         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94064
94065 2000-07-03  Jim Meyering  <meyering@lucent.com>
94066
94067         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94068
94069 2000-07-03  Jim Meyering  <meyering@lucent.com>
94070
94071         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94072         This is necessary to get a definition of e.g., UTMP_FILE on
94073         HP-UX 10.20.
94074         From Bob Proulx.
94075
94076 2000-07-02  Jim Meyering  <meyering@lucent.com>
94077
94078         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94079
94080         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94081         AC_LIBOBJ(function_name).
94082         * m4/chown.m4: Likewise.
94083         * m4/fnmatch.m4: Likewise.
94084         * m4/ftruncate.m4: Likewise.
94085         * m4/getgroups.m4: Likewise.
94086         * m4/getline.m4: Likewise.
94087         * m4/group-member.m4: Likewise.
94088         * m4/jm-macros.m4: Likewise.
94089         * m4/lstat.m4: Likewise.
94090         * m4/malloc.m4: Likewise.
94091         * m4/memcmp.m4: Likewise.
94092         * m4/nanosleep.m4: Likewise.
94093         * m4/putenv.m4: Likewise.
94094         * m4/realloc.m4: Likewise.
94095         * m4/regex.m4: Likewise.
94096         * m4/stat.m4: Likewise.
94097         * m4/strftime.m4: Likewise.
94098
94099 2000-07-02  Jim Meyering  <meyering@lucent.com>
94100
94101         * lib/quotearg.c (mbstate_t): Don't define here.
94102
94103 2000-07-02  Jim Meyering  <meyering@lucent.com>
94104
94105         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94106
94107 2000-07-01  Jim Meyering  <meyering@lucent.com>
94108
94109         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94110
94111 2000-07-01  Jim Meyering  <meyering@lucent.com>
94112
94113         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94114         problem.
94115
94116 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94117
94118         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94119         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94120
94121 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94122
94123         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94124         per change in ../m4/ls-mntd-fs.m4.
94125         (read_filesystem_list): Ignore symbolic links.
94126
94127 2000-06-29  Jim Meyering  <meyering@lucent.com>
94128
94129         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94130         for declaration of strcmp.
94131
94132         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94133
94134         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94135         Avoid warning by casting result to `char *' to remove `const'.
94136
94137 2000-06-28  Jim Meyering  <meyering@lucent.com>
94138
94139         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94140         included by quotearg.c, for which we perform this test.  From
94141         Bruno Haible.
94142
94143 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94144
94145         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94146         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94147         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94148
94149 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94150
94151         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94152
94153 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94154
94155         savedir now sets errno on failure and invokes xmalloc to get memory.
94156         Fix a couple of other minor bugs while we're at it.
94157
94158         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94159         (NAMLEN): Remove macro.
94160         (malloc, realloc): Remove decls.
94161         (stpcpy): Likewise.
94162         ("xalloc.h"): Include.
94163         (NAME_SIZE_DEFAULT): New macro.
94164         (savedir): Use xmalloc / xrealloc to allocate memory.
94165         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94166         Skip "" directory entries.
94167         Use strlen to calculate directory entry length, since the old method
94168         is rarely used these days and isn't worth supporting.
94169         Don't use a pointer after freeing it.
94170         Check for integer overflow when calculating allocation size.
94171         Use memcpy to copy entries, instead of stpcpy.
94172         Set errno properly when returning NULL.
94173         Check for readdir error.
94174
94175 2000-06-26  Jim Meyering  <meyering@lucent.com>
94176
94177         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94178
94179 2000-06-25  Jim Meyering  <meyering@lucent.com>
94180
94181         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94182         Linux header bug when _XOPEN_SOURCE is defined to 500.
94183
94184 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94185
94186         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94187         deficiency.
94188
94189 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94190
94191         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94192         Include xalloc.h.
94193         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94194
94195 2000-06-24  Jim Meyering  <meyering@lucent.com>
94196
94197         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94198         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94199         for which strerror does return char*, but which lacks a conveniently
94200         accessible declaration of the function.  If the compile-test says
94201         strerror_r doesn't work, then resort to a `run'-test that works on
94202         BeOS and segfaults on DEC Unix.
94203
94204 2000-06-24  Jim Meyering  <meyering@lucent.com>
94205
94206         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94207
94208 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94209
94210         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94211         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94212
94213 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94214
94215         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94216         (mbrtowc, mbstate_t): Define substitutes if
94217         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94218         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94219         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94220
94221 2000-06-23  Jim Meyering  <meyering@lucent.com>
94222
94223         * m4/afs.m4: Add missing AC_MSG_RESULT.
94224         Reported by Bruno Haible.
94225
94226         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94227         Suggestion from Bruno Haible.
94228
94229 2000-06-23  Jim Meyering  <meyering@lucent.com>
94230
94231         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94232
94233 2000-06-21  Jim Meyering  <meyering@lucent.com>
94234
94235         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94236
94237 2000-06-21  Jim Meyering  <meyering@lucent.com>
94238
94239         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94240         (noinst_HEADERS): Add getstr.h.
94241
94242         * lib/getline.c (getstr): Move into a separate file.
94243         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94244         the following changes: new parameter, delim2; both delim[12]
94245         parameters have type `int', not `char'.  The latter would lose
94246         with 8-bit delimiters.
94247         * lib/getstr.h: New file.
94248
94249 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94250
94251         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94252         than 1024, return a memory chunk of least possible size, instead
94253         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94254         Use free/xmalloc instead of xrealloc to avoid copying for very long
94255         paths.
94256
94257 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94258
94259         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94260         the empty string.
94261
94262 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94263
94264         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94265         address, not strdup.  Include <stdlib.h> and don't declare free().
94266
94267 2000-06-19  Jim Meyering  <meyering@lucent.com>
94268
94269         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94270
94271 2000-06-18  Jim Meyering  <meyering@lucent.com>
94272
94273         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94274
94275         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94276         `checking whether...' message to be consistent with that of the
94277         lstat test.
94278
94279 2000-06-18  Jim Meyering  <meyering@lucent.com>
94280
94281         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94282         Besides, these days every porting target provides a mkdir function.
94283
94284         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94285         needed. (this snippet comes from src/system.h).
94286
94287 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94288
94289         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94290
94291 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94292
94293         * lib/human.c (adjust_value): New function.
94294         (human_readable_inexact): Apply rounding style even when
94295         printing approximate values.
94296
94297 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94298
94299         * lib/human.c (human_readable_inexact): Allow an input block
94300         size that is not a multiple of the output block size, and vice versa.
94301         Reported by Piergiorgio Sartor.
94302
94303 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94304
94305         * lib/getdate.y (get_date): Apply relative times after time
94306         zone indicator, not before.  Reported by Todd A. Jacobs.
94307
94308 2000-06-13  Jim Meyering  <meyering@lucent.com>
94309
94310         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94311
94312         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94313
94314 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94315
94316         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94317
94318 2000-06-12  Jim Meyering  <meyering@lucent.com>
94319
94320         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94321         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94322         optional argument.
94323         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94324         the optional argument, `lib'.
94325
94326 2000-06-08  Jim Meyering  <meyering@lucent.com>
94327
94328         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94329
94330 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94331
94332         Rewrite largefile configuration so that we don't need to run
94333         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94334         AC_CANONICAL_HOST in configure.in -- jmm]
94335
94336         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94337         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94338         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94339         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94340         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94341         All uses changed.
94342         Instead of inspecting the output of getconf, try to compile the
94343         test program without and with the macro definition.
94344         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94345         for getconf.  Instead, check for the needed flags by compiling
94346         test programs.
94347
94348 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94349
94350         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94351
94352 2000-06-04  Jim Meyering  <meyering@lucent.com>
94353
94354         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94355         SunOS 4.1.4 for which gid_t is an unsigned type.
94356
94357 2000-06-03  Jim Meyering  <meyering@lucent.com>
94358
94359         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94360         now that autoconf requires that.
94361
94362         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94363         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94364         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94365
94366 2000-06-03  Jim Meyering  <meyering@lucent.com>
94367
94368         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94369
94370 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94371
94372         * m4/glibc21.m4: New file.
94373         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94374
94375 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94376
94377         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94378         newer, don't install charset.alias.
94379         * lib/config.charset: Change the Linux/glibc rules so they become empty
94380         on glibc-2.1 or newer.
94381
94382 2000-06-02  Jim Meyering  <meyering@lucent.com>
94383
94384         * lib/mountlist.c: Back out last change.  Instead, do this...
94385         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94386         me_dummy member using the same `ignore'-testing code.
94387         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94388         fs_type strings.
94389         From Mark D. Roth.
94390
94391 2000-05-29  Jim Meyering  <meyering@lucent.com>
94392
94393         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94394         mounts with the `ignore' attribute.  Based on a patch from
94395         Mark D. Roth.
94396
94397 2000-05-28  Jim Meyering  <meyering@lucent.com>
94398
94399         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94400         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94401         * m4/stat.m4: Likewise.
94402         * m4/lstat.m4: Likewise.
94403         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94404
94405         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94406         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94407
94408 2000-05-26  Jim Meyering  <meyering@lucent.com>
94409
94410         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94411
94412 2000-05-24  Jim Meyering  <meyering@lucent.com>
94413
94414         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94415         autoconf requires that.
94416         * m4/lib-check.m4: Likewise.
94417         * m4/jm-macros.m4: Likewise.
94418         * m4/strftime.m4: Likewise.
94419
94420         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94421         AC_CHECK_DECLS, now that autoconf requires that.
94422
94423 2000-05-22  Jim Meyering  <meyering@lucent.com>
94424
94425         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94426         * m4/lstat.m4: Likewise.
94427
94428 2000-05-22  Jim Meyering  <meyering@lucent.com>
94429
94430         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94431
94432 2000-05-20  Jim Meyering  <meyering@lucent.com>
94433
94434         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94435         (jm_PREREQ): Use it.
94436
94437 2000-05-18  Jim Meyering  <meyering@lucent.com>
94438
94439         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94440         back, too, since it may have been modified by allocate_entry.
94441         (hash_delete): Rewrite to use neither the assignment operator
94442         nor the comma operator in an if-expression.
94443
94444 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94445
94446         * lib/closeout.c:
94447         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94448         Remove; no longer needed.
94449         "quotearg.h": Add include.
94450         (file_name): Do not bother to explicitly initialize to NULL; it's less
94451         efficient on some hosts.
94452         (close_stdout_status): Remove test as to whether stdout was already
94453         closed; it breaks for the case "echo x | sort >&-".
94454         Quote file name colons.
94455         Do not assume that _("write error") lacks format strings.
94456
94457 2000-05-15  Jim Meyering  <meyering@lucent.com>
94458
94459         * lib/version-etc.c (version_etc_copyright): Update the copyright
94460         string used in all --version output.
94461
94462 2000-05-14  Jim Meyering  <meyering@lucent.com>
94463
94464         * lib/closeout.c (close_stdout_set_file_name): New function.
94465         (close_stdout_status): Use new file-scoped global.
94466         Return right away if fstat says the stdout file descriptor is invalid.
94467         * lib/closeout.h (close_stdout_set_file_name): Declare.
94468
94469 2000-05-10  Jim Meyering  <meyering@lucent.com>
94470
94471         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94472         (close_stdout_set_status): New function.
94473         * lib/closeout.h (close_stdout_set_status): Declare.
94474
94475 2000-05-09  Jim Meyering  <meyering@lucent.com>
94476
94477         * m4/gettext.m4: Rename this...
94478         * m4/libintl.m4: ...to this.
94479
94480 2000-05-08  Jim Meyering  <meyering@lucent.com>
94481
94482         * lib/long-options.c: Don't include closeout.h.
94483         (parse_long_options): Don't call close_stdout for --version.
94484
94485 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94486
94487         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94488         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94489         2.1.3 bug.  This avoids a clash when files like regex.c define
94490         _GNU_SOURCE.
94491
94492 2000-05-06  Jim Meyering  <meyering@lucent.com>
94493
94494         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94495         (AC_REPLACE_FUNCS): Add strnlen.
94496
94497         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94498         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94499
94500         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94501         AC_SEARCH_LIBS call for nanosleep.
94502         (LIB_NANOSLEEP): Set and AC_SUBST.
94503
94504 2000-05-06  Jim Meyering  <meyering@lucent.com>
94505
94506         * lib/strnlen.c: Undefine __strnlen and strnlen.
94507         [!weak_alias]: Define __strnlen to strnlen.
94508
94509         * lib/atexit.c: New file, from libiberty.
94510
94511 2000-05-06  Jim Meyering  <meyering@lucent.com>
94512
94513         * lib/closeout.c (close_stdout_status): Also check for errors on the
94514         stderr stream.
94515
94516 2000-05-05  Jim Meyering  <meyering@lucent.com>
94517
94518         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94519         AC_SEARCH_LIBS call for clock_gettime.
94520         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94521
94522         * m4/search-libs.m4: Update from autoconf.
94523
94524         su doesn't work on Solaris 2.6.
94525         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94526         <shadow.h>.  Reported by Dragos Harabor.
94527
94528 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94529
94530         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94531         memcpy instead of xmalloc, xrealloc, path_concat.
94532         (locale_charset): Treat empty environment variables as absent.
94533         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94534
94535 2000-05-04  Jim Meyering  <meyering@lucent.com>
94536
94537         * lib/getopt.c: Update from glibc.
94538         * lib/obstack.c: Likewise.
94539         * lib/obstack.h: Likewise.
94540         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94541         file
94542
94543         * lib/regex.h: Likewise.
94544         * lib/strndup.c: Likewise.
94545         * lib/strnlen.c: New file, from glibc.
94546
94547 2000-05-03  Jim Meyering  <meyering@lucent.com>
94548
94549         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94550
94551 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94552
94553         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94554         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94555         compile-time test, rather than inspecting host and OS, to
94556         decide whether to define _LARGEFILE_SOURCE.
94557
94558 2000-05-01  Jim Meyering  <meyering@lucent.com>
94559
94560         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94561
94562         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94563         Based on a patch from Bruno Haible.
94564
94565 2000-05-01  Jim Meyering  <meyering@lucent.com>
94566
94567         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94568
94569 2000-04-29  Jim Meyering  <meyering@lucent.com>
94570
94571         * lib/path-concat.c: Declare strdup only if it's not defined.
94572         * lib/canon-host.c: Likewise.
94573
94574 2000-04-28  Jim Meyering  <meyering@lucent.com>
94575
94576         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94577         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94578         is included first, then limits.h is included by locale.h by libintl.h.
94579         From John David Anglin.
94580
94581 2000-04-25  Jim Meyering  <meyering@lucent.com>
94582
94583         * lib/makepath.c (S_IRWXUGO): Define.
94584         (make_path): Always perform explicit chmod if MODE specifies any
94585         of the `special' permission bits.  Prompted by a bug report against
94586         install from Mate Wierdl and Joost van Baal.
94587
94588 2000-04-18  Jim Meyering  <meyering@lucent.com>
94589
94590         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94591         (jm_PREREQ): Use it.
94592
94593 2000-04-18  Jim Meyering  <meyering@lucent.com>
94594
94595         * lib/README: New file.
94596
94597         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94598         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94599
94600 2000-04-17  Jim Meyering  <meyering@lucent.com>
94601
94602         Get it right :-)
94603         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94604         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94605         Suggestion from Akim Demaille.
94606
94607 2000-04-17  Jim Meyering  <meyering@lucent.com>
94608
94609         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94610         the definition of it to rpl_strftime also defined-away the system's
94611         declaration.
94612
94613 2000-04-15  Jim Meyering  <meyering@lucent.com>
94614
94615         Use `C' to denote so-called `contiguous' files, the same way
94616         that tar does.
94617         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94618         (ftypelet): Use S_ISCTG.
94619         From Michael Deutschmann.
94620
94621 2000-04-14  Jim Meyering  <meyering@lucent.com>
94622
94623         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94624         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94625         clobbered.
94626
94627 2000-04-14  Jim Meyering  <meyering@lucent.com>
94628
94629         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94630
94631 2000-04-13  Jim Meyering  <meyering@lucent.com>
94632
94633         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94634         AH_VERBATIM to insert required #ifndef into config.h.in.
94635         Suggestion from Akim Demaille.
94636
94637 2000-04-12  Jim Meyering  <meyering@lucent.com>
94638
94639         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94640         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94641         Christian Krackowizer.
94642
94643         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94644         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94645         (AC_SYS_LARGEFILE): Require.
94646         (AM_C_PROTOTYPES): Require.
94647
94648 2000-04-08  Jim Meyering  <meyering@lucent.com>
94649
94650         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94651         names don't conflict.  Reported by Eli Zaretskii.
94652
94653 2000-04-07  Jim Meyering  <meyering@lucent.com>
94654
94655         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94656         sys/types.h, to work around system header problems on AIX 3.2.5.
94657         From Bruno Haible.
94658
94659 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94660
94661         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94662         bug.  Deal with the different error behavior of Irix iconv.
94663
94664 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94665
94666         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94667         IRIX if the installer said otherwise.
94668
94669 2000-04-05  Jim Meyering  <meyering@lucent.com>
94670
94671         Portability tweaks required for ultrix4.3.
94672         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94673         (jm_CHECK_DECLS): Add getutent to the list of functions.
94674         (_jm_DECL_HEADERS): Add utmpx.h.
94675         From John David Anglin.
94676
94677         * m4/strftime.m4: Back out the 2000-04-02 change.
94678         Instead of that change, simply undefine putenv in the test program.
94679
94680 2000-04-05  Jim Meyering  <meyering@lucent.com>
94681
94682         Portability tweaks required for ultrix4.3.
94683         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94684         getutent.
94685         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94686         * lib/canon-host.c: Declare strdup.
94687         * lib/path-concat.c: Likewise.
94688         From John David Anglin.
94689
94690 2000-04-04  Jim Meyering  <meyering@lucent.com>
94691
94692         Be more DOS 8.3-friendly.
94693         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94694         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94695         * lib/Makefile.am: Reflect renaming.
94696         Reported by Eli Zaretskii.
94697
94698         Use a temporary file name that won't clash with `charset.alias'
94699         in the DOS 8.3 name space.
94700         * lib/Makefile.am (charset_tmp): Define.
94701         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94702         (uninstall-local): Likewise.
94703         Reported by Eli Zaretskii.
94704
94705 2000-04-03  Jim Meyering  <meyering@lucent.com>
94706
94707         * m4/gettext.m4: Fix typo in comment.
94708
94709         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94710         textutils/configure.in).  Suggestion from Paul Eggert.
94711         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94712
94713 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94714
94715         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94716         variable in the shell rather than using putenv, which isn't
94717         portable.  This avoids the configure-time inter-test dependency
94718         on the potentially-renamed putenv function.
94719
94720 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94721
94722         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94723         before checking struct stat.st_blksize, so that
94724         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94725
94726 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94727
94728         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94729         since strftime.c uses HAVE_STRFTIME to decide whether to use
94730         the underlying strftime.
94731
94732 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94733
94734         * lib/time/strftime.c (my_strftime): Make sure we call the system
94735         strftime, not ourselves, when invoking the underlying strftime.
94736
94737 2000-03-24  Jim Meyering  <meyering@lucent.com>
94738
94739         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94740         (charset_alias): Define.
94741         (install-exec-local): Factor out common code.
94742         (uninstall-local): Split lines longer than 80.
94743         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94744         (SUFFIXES): Define.
94745         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94746         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94747
94748 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94749
94750         * lib/config.charset: Output a line containing "Packages using this
94751         file".
94752         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94753         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94754         ref-del.sed): New rules.
94755
94756 2000-03-17  Jim Meyering  <meyering@lucent.com>
94757
94758         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94759         Otherwise, include <strings.h>
94760
94761 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94762
94763         * lib/unicodeio.c (utf8_wctomb): New function.
94764         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94765         format instead of in UCS-4 with platform dependent endianness.
94766
94767 2000-03-10  Jim Meyering  <meyering@lucent.com>
94768
94769         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94770         From Marco Franzen.
94771
94772 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94773
94774         * lib/savedir.c (savedir): Work even if directory size is
94775         negative; this can happen with some screwy NFS configurations.
94776
94777 2000-03-06  Jim Meyering  <meyering@lucent.com>
94778
94779         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94780         if it's NULL (because we ran out of memory).  From Bruno Haible.
94781
94782 2000-03-05  Jim Meyering  <meyering@lucent.com>
94783
94784         * lib/localcharset.c ("path-concat.h"): Include.
94785         (get_charset_aliases): Use path_concat instead of ANSI string
94786         concatenation.
94787
94788         * lib/unicodeio.h (PARAMS): Define.
94789         Use it to guard prototype.
94790
94791 2000-03-04  Jim Meyering  <meyering@lucent.com>
94792
94793         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94794         for lib/localcharset.c.
94795
94796 2000-03-04  Jim Meyering  <meyering@lucent.com>
94797
94798         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94799         installing into it.
94800         (uninstall-local): Uncomment this rule so `make distcheck' works
94801         once again.
94802
94803         * lib/unicodeio.c (<errno.h>): Include it.
94804         (errno): Declare if not defined.
94805
94806         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94807
94808         * lib/config.charset: New version, incorporating remarks from a linux
94809         i18n mailing list.  From Bruno Haible.
94810
94811 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94812
94813         * m4/codeset.m4: New file.
94814         * m4/iconv.m4: New file.
94815         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94816
94817 2000-03-03  Jim Meyering  <meyering@lucent.com>
94818
94819         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94820
94821 2000-03-02  Jim Meyering  <meyering@lucent.com>
94822
94823         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94824         the messages come out on separate lines.
94825
94826         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94827         rather than jm_CHECK_DECLARATIONS.
94828         * m4/decl.m4: Remove now-unused file.
94829
94830         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94831         geteuid.
94832
94833 2000-03-02  Jim Meyering  <meyering@lucent.com>
94834
94835         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94836
94837 2000-03-01  Jim Meyering  <meyering@lucent.com>
94838
94839         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94840         * lib/unicodeio.c: Likewise.
94841
94842 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94843
94844         * lib/config.charset: New file.
94845         * lib/localcharset.c: New file.
94846         * lib/unicodeio.h, lib/unicodeio.c: New files.
94847         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94848         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94849         (noinst_HEADERS): Add unicodeio.h.
94850         (all-local, install-exec-local, charset.alias): New targets.
94851
94852 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94853
94854         * lib/quotearg.c (ALERT_CHAR): New macro.
94855         (quotearg_buffer_restyled): Use it.
94856
94857 2000-02-27  Jim Meyering  <meyering@lucent.com>
94858
94859         * m4/check-decl.m4: Add getenv to the list.
94860
94861 2000-02-27  Jim Meyering  <meyering@lucent.com>
94862
94863         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94864         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94865
94866         * lib/backupfile.c: Guard inclusion of stdlib.h with
94867         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94868         Declare malloc if needed.
94869
94870         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94871         `#ifndef HAVE_DECL..'
94872         now that autoconf always defines the HAVE_DECL_ symbols.
94873         * lib/human.c: Likewise.
94874         * lib/same.c: Likewise.
94875         * lib/strtoumax.c: Likewise.
94876
94877         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94878         declaration check was not run.
94879         * lib/hash.c: Likewise.
94880         * lib/human.c: Likewise.
94881         * lib/same.c: Likewise.
94882         * lib/strtoumax.c: Likewise.
94883
94884         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94885         `.', then first look up the entire `.'-containing string as a login
94886         name.
94887
94888 2000-02-23  Jim Meyering  <meyering@lucent.com>
94889
94890         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94891         in place of my hack.
94892
94893 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94894
94895         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94896         (textint): New typedef.
94897         (parser_control): Member year changed from int to textint.
94898         All uses changed.
94899         (YYSTYPE): Removed; replaced by %union with int and textint members.
94900         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94901         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94902         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94903         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94904         (date, number, to_year): Use width of number in digits, not its value,
94905         to determine whether it's a 2-digit year, or a 2-digit time.
94906         (yylex): Store number of digits of numeric tokens.
94907         Reported by John Kendall.
94908
94909         (parser_control): Changed from struct parser_control to typedef (for
94910         consistency).  All uses changed.
94911
94912         (tID): Removed; not used.
94913         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94914
94915 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94916
94917         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94918         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94919
94920 2000-02-12  Jim Meyering  <meyering@lucent.com>
94921
94922         * lib/userspec.c (ISDIGIT): Define it.
94923         (isdigit): Remove definition.
94924         (is_number): Use ISDIGIT, not isdigit.
94925         <libintl.h>: Include.
94926         (_ and N_): Define.
94927         (parse_user_spec): Mark translatable strings.
94928
94929 2000-02-10  Jim Meyering  <meyering@lucent.com>
94930
94931         With these changes, nanosleep.[ch] are finally enough like the other
94932         lib/* replacement files to compile on a few more losing systems.
94933
94934         * lib/nanosleep.h: Don't include config.h.
94935         Remove prototype from declaration of nanosleep.
94936         (PARAMS): Remove now-unneeded definition.
94937         * lib/nanosleep.c: #undef nanosleep.
94938         (rpl_nanosleep): Rename from nanosleep.
94939
94940 2000-02-10  Jim Meyering  <meyering@lucent.com>
94941
94942         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94943         gnu_nanosleep to rpl_nanosleep.
94944
94945 2000-02-09  Jim Meyering  <meyering@lucent.com>
94946
94947         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94948         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94949
94950 2000-02-08  Akim Demaille  <akim@epita.fr>
94951
94952         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94953         `[' and `]' and remove uses of `changequote'.
94954         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94955         (AC_SYS_LARGEFILE): Likewise.
94956         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94957         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94958         of changequote.
94959         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94960         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94961         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94962         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94963
94964 2000-02-05  Jim Meyering  <meyering@lucent.com>
94965
94966         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94967         Remove explicit use of AC_HEADER_TIME.  It is required by
94968         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94969         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94970         in autoconf whereby the expansion of the latter ended up preceding
94971         the expansion of its prerequisite, AC_HEADER_TIME.
94972         Reported by Volker Borchert.
94973
94974 2000-02-03  Jim Meyering  <meyering@lucent.com>
94975
94976         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94977
94978 2000-02-03  Jim Meyering  <meyering@lucent.com>
94979
94980         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94981         rather than with `#if HAVE_UTMPNAME'.
94982
94983 2000-02-02  Jim Meyering  <meyering@lucent.com>
94984
94985         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94986         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94987         Reported by Eli Zaretskii.
94988
94989 2000-02-01  Jim Meyering  <meyering@lucent.com>
94990
94991         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94992
94993 2000-01-31  Jim Meyering  <meyering@lucent.com>
94994
94995         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94996         functions.  Add the time.h and sys/time.h headers along with the
94997         AC_REQUIRE'ment of AC_HEADER_TIME.
94998
94999 2000-01-31  Jim Meyering  <meyering@lucent.com>
95000
95001         * lib/nanosleep.h (nanosleep): Guard declaration with
95002         `#if ! HAVE_DECL_NANOSLEEP'.
95003         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95004         the declaration in that vendor's sys/timers.h.
95005         Reported by Christian Krackowizer.
95006
95007         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95008         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95009         (ISPRINT): Likewise.
95010         Reported by Tom Tromey.
95011
95012 2000-01-30  Jim Meyering  <meyering@lucent.com>
95013
95014         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95015
95016         * m4/prereq.m4 (utmp_includes): Define.
95017         Check for ut_user and ut_name members in both struct utmpx
95018         and struct utmp.
95019
95020 2000-01-30  Jim Meyering  <meyering@lucent.com>
95021
95022         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95023         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95024         header files where only utmpx.ut_user is declared.
95025
95026         * lib/readutmp.h (UT_USER): Define.
95027
95028 2000-01-29  Jim Meyering  <meyering@lucent.com>
95029
95030         * m4/lib-check.m4: New file containing library-related checks from
95031         fileutils and sh-utils (textutils had none).
95032
95033 2000-01-28  Jim Meyering  <meyering@lucent.com>
95034
95035         * m4/perl.m4: Change format of warning message to look more like that
95036         from the missing script.  Suggestion from François Pinard.
95037
95038 2000-01-25  Jim Meyering  <meyering@lucent.com>
95039
95040         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95041         well as time.h in the compile check.
95042         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95043         Fix typo in cross-compiling case: s/yes/no/.
95044
95045 2000-01-23  Jim Meyering  <meyering@lucent.com>
95046
95047         * m4/jm-macros.m4: Move df-related tests here from
95048         fileutils/configure.in
95049
95050         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95051         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95052
95053         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95054         s/space/ac_fsusage_space/.
95055         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95056
95057         * m4/ftruncate.m4: New file (derived from part of
95058         fileutils/configure.in).
95059         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95060         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95061
95062         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95063         AC_SUBST these here, rather than just in sh-util/configure.in, so
95064         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95065         all the same.
95066         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95067         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95068         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95069         (AC_SUBST(POW_LIBM)): Likewise.
95070         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95071
95072 2000-01-23  Jim Meyering  <meyering@lucent.com>
95073
95074         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95075         obstack.c.
95076
95077 2000-01-22  Jim Meyering  <meyering@lucent.com>
95078
95079         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95080
95081         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95082
95083         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95084         configure.in
95085         (AC_CHECK_HEADERS): Likewise for sh-utils.
95086         (AC_CHECK_HEADERS): Likewise for textutils.
95087         Merge the three lists of headers.
95088
95089         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95090         from fileutils' configure.in.
95091
95092         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95093         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95094         check-decl.m4.
95095
95096         * m4/check-decl.m4: Use #if rather than #ifdef.
95097         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95098         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95099         (_jm_DECL_HEADERS): Define new function.
95100         (jm_CHECK_DECLARATIONS): Require it.
95101
95102 2000-01-22  Jim Meyering  <meyering@lucent.com>
95103
95104         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95105         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95106         Required for some AIX systems.  Reported by Christian Krackowizer.
95107         [TESTING] (main): New function.
95108
95109         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95110         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95111         letters.
95112
95113         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95114         iswprint.
95115
95116         * lib/strverscmp.c (ISDIGIT): Define.
95117         (strverscmp): Use ISDIGIT, not isdigit.
95118
95119 2000-01-19  Jim Meyering  <meyering@lucent.com>
95120
95121         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95122         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95123         defines `struct timespec' in <sys/time.h>
95124
95125         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95126         Thanks to Akim for explaining.
95127
95128 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95129
95130         * lib/nanosleep.c (nanosleep):
95131         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95132         POSIX.1 doesn't require SA_INTERRUPT and some systems
95133         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95134         it's been part of POSIX.1 since day 1 (in 1988).
95135
95136 2000-01-17  Jim Meyering  <meyering@lucent.com>
95137
95138         * lib/interlock: Remove unused file.  Reported by François Pinard.
95139
95140 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95141
95142         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95143         alert, backslash, formfeed, and vertical tab unnecessarily in
95144         shell quoting style.
95145
95146 2000-01-16  Jim Meyering  <meyering@lucent.com>
95147
95148         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95149         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95150         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95151         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95152
95153 2000-01-16  Jim Meyering  <meyering@lucent.com>
95154
95155         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95156         because the latter didn't work.
95157
95158 2000-01-15  Jim Meyering  <meyering@lucent.com>
95159
95160         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95161         (AC_REPLACE_FUNCS): Add memcpy and memset.
95162         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95163         Add strpbrk.
95164         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95165
95166 2000-01-12  Jim Meyering  <meyering@lucent.com>
95167
95168         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95169         (jm_PREREQ): Use it.
95170         (jm_PREREQ_READUTMP): New macro.
95171         (jm_PREREQ): Use it.
95172
95173 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95174
95175         Quote multibyte characters correctly.
95176         * m4/c-bs-a.m4: New file.
95177         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95178         (jm_PREREQ): Use it.
95179
95180 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95181
95182         * m4/uintmax_t.m4: Port to autoconf 2.13.
95183
95184 2000-01-08  Jim Meyering  <meyering@ascend.com>
95185
95186         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95187         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95188
95189 2000-01-04  Jim Meyering  <meyering@ascend.com>
95190
95191         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95192         jm_STRUCT_DIRENT_D_TYPE.
95193         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95194         jm_STRUCT_DIRENT_D_INO.
95195         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95196         jm_STRUCT_UTIMBUF.
95197         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95198         renamings.
95199         * m4/utime.m4: Likewise.
95200
95201         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95202         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95203
95204 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95205
95206         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95207         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95208
95209 2000-01-02  Jim Meyering  <meyering@ascend.com>
95210
95211         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95212         remember if this is necessary.
95213
95214 1999-12-26  Jim Meyering  <meyering@ascend.com>
95215
95216         * m4/jm-macros.m4: Use it here.
95217         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95218
95219 1999-12-23  Jim Meyering  <meyering@ascend.com>
95220
95221         * m4/jm-macros.m4: Check for clock_gettime (moved from
95222         fileutils/configure.in)
95223         Check for gettimeofday.
95224
95225 1999-12-20  Jim Meyering  <meyering@ascend.com>
95226
95227         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95228         autoconf-2.14a-1999-12-20.
95229
95230 1999-12-19  Jim Meyering  <meyering@ascend.com>
95231
95232         * m4/lstat-slash.m4: New file.
95233         * m4/jm-macros.m4: Use the new macro:
95234         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95235
95236 1999-12-07  Jim Meyering  <meyering@ascend.com>
95237
95238         * m4/perl.m4: Require that File::Compare be available, too.
95239         Too many systems seem to lack it.
95240
95241         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95242         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95243
95244 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95245
95246         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95247         problem with the QNX 4.25 shell, which doesn't propagate exit
95248         status of failed commands inside shell assignments.
95249
95250 1999-11-17  Jim Meyering  <meyering@ascend.com>
95251
95252         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95253
95254 1999-11-07  Jim Meyering  <meyering@ascend.com>
95255
95256         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95257
95258 1999-11-06  Jim Meyering  <meyering@ascend.com>
95259
95260         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95261         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95262
95263 1999-11-05  Jim Meyering  <meyering@ascend.com>
95264
95265         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95266         configure.in of textutils, fileutils, and sh-utils into this one
95267         (shared between those packages) file.
95268         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95269         AC_STRUCT_ST_BLKSIZE.
95270
95271 1999-11-03  Jim Meyering  <meyering@ascend.com>
95272
95273         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95274         of AC_CHECK_TYPE checks includes unistd.h.
95275         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95276         Suggestion from Akim Demaille.
95277
95278 1999-10-30  Jim Meyering  <meyering@ascend.com>
95279
95280         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95281         m4-quoted string.
95282         * m4/ls-mntd-fs.m4: Likewise.
95283         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95284         * m4/jm-winsz1.m4: Likewise.
95285
95286         * m4/const.m4: Remove file, since the fix made it into the experimental
95287         version of autoconf.
95288         * m4/mktime.m4: Likewise.
95289
95290         * m4/check-type.m4: Remove file, now that the latest version of
95291         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95292
95293         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95294         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95295         AC_CHECK_TYPE.
95296
95297 1999-10-04  Jim Meyering  <meyering@ascend.com>
95298
95299         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95300
95301 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95302
95303         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95304         2.95.1 bug with HP-UX 10.20.
95305
95306 1999-09-17  Jim Meyering  <meyering@ascend.com>
95307
95308         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95309         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95310         due to missing strdup (against sh-utils-2.0).
95311
95312 1999-08-29  Jim Meyering  <meyering@ascend.com>
95313
95314         * m4/jm-macros.m4: Require jm_BISON.
95315         * m4/bison.m4: New file.
95316
95317 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95318
95319         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95320         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95321
95322 1999-08-05  Jim Meyering  <meyering@ascend.com>
95323
95324         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95325         to avoid conflicts with `conftest' on 8+3 filesystems.
95326         Suggestion from Eli Zaretskii.
95327
95328 1999-08-04  Jim Meyering  <meyering@ascend.com>
95329
95330         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95331         fileutils and sh-utils (textutils's getline test was inadequate).
95332         (AM_FUNC_GETLINE): Run this test.
95333         (AC_CHECK_FUNCS): Check for getdelim.
95334         Reported by Bob Proulx.
95335
95336 1999-08-02  Jim Meyering  <meyering@ascend.com>
95337
95338         * m4/jm-macros.m4: Add a comment.
95339
95340 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95341
95342         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95343         <inttypes.h> defines strtoumax as a macro (and not as a
95344         function).
95345
95346 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95347
95348         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95349         that we can shift, multiply and divide unsigned long long
95350         values; Ultrix cc can't do it.
95351
95352 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95353
95354         * m4/mktime.m4: New file, which is a preview of what should appear
95355         in the next public autoconf release.
95356
95357 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95358
95359         * m4/lfs.m4: Remove this file.
95360         * m4/largefile.m4: New file.  It contains the old contents of
95361         lfs.m4, except that all names with prefix AC_LFS have been
95362         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95363         compatible with future autoconf versions.  Also, some minor m4
95364         quoting problems have been fixed.
95365
95366 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95367
95368         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95369         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95370         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95371         and simplify the shell code.
95372
95373 1999-08-01  Jim Meyering  <meyering@ascend.com>
95374
95375         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95376         m4.
95377
95378 1999-07-20  Jim Meyering  <meyering@ascend.com>
95379
95380         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95381
95382 1999-07-15  Jim Meyering  <meyering@ascend.com>
95383
95384         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95385
95386 1999-05-22  Jim Meyering  <meyering@ascend.com>
95387
95388         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95389
95390 1999-05-20  Jim Meyering  <meyering@ascend.com>
95391
95392         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95393         Add a colon after each `then' in case $4 is empty.
95394
95395 1999-05-16  Jim Meyering  <meyering@ascend.com>
95396
95397         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95398
95399 1999-05-10  Jim Meyering  <meyering@ascend.com>
95400
95401         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95402
95403         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95404         AC_FUNC_MKTIME.
95405
95406 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95407
95408         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95409
95410 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95411
95412         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95413         not CPPFLAGS, so that linking works correctly in IRIX.
95414
95415 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95416
95417         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95418
95419 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95420
95421         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95422         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95423         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95424         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95425         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95426
95427         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95428
95429 1999-04-20  Jim Meyering  <meyering@ascend.com>
95430
95431         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95432         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95433         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95434
95435 1999-04-18  Jim Meyering  <meyering@ascend.com>
95436
95437         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95438         * m4/jm-macros.m4: Use it.
95439
95440 1999-04-06  Jim Meyering  <meyering@ascend.com>
95441
95442         * m4/strftime.m4: Remove test for %f.
95443
95444 1999-03-29  Jim Meyering  <meyering@ascend.com>
95445
95446         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95447         superset of the AC_TYPE_* checks in the textutils, fileutils,
95448         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95449         AC_TYPE_PID_T.
95450
95451 1999-03-28  Jim Meyering  <meyering@ascend.com>
95452
95453         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95454         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95455         replaced e.g., in the *.sh files of the sh-utils.
95456
95457 1999-03-20  Jim Meyering  <meyering@ascend.com>
95458
95459         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95460         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95461         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95462
95463 1999-03-19  Jim Meyering  <meyering@ascend.com>
95464
95465         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95466
95467 1999-03-12  Jim Meyering  <meyering@ascend.com>
95468
95469         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95470
95471 1999-03-07  Jim Meyering  <meyering@ascend.com>
95472
95473         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95474         declared.
95475
95476 1999-02-17  Jim Meyering  <meyering@ascend.com>
95477
95478         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95479         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95480
95481 1999-02-07  Jim Meyering  <meyering@ascend.com>
95482
95483         * m4/group-member.m4: New file -- extracted from sh-utils'
95484         configure.in.
95485
95486         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95487         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95488
95489 1999-02-06  Jim Meyering  <meyering@ascend.com>
95490
95491         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95492         * m4/fnmatch.m4: Likewise.
95493         * m4/getgroups.m4: Likewise.
95494         * m4/lstat.m4: Likewise.
95495         * m4/malloc.m4: Likewise.
95496         * m4/putenv.m4: Likewise.
95497         * m4/realloc.m4: Likewise.
95498         * m4/regex.m4: Likewise.
95499         * m4/stat.m4: Likewise.
95500         * m4/strftime.m4: Likewise.
95501         Suggestion from Alain Magloire.
95502
95503         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95504         * m4/fnmatch.m4: Likewise.
95505         * m4/getgroups.m4: Likewise.
95506         * m4/getline.m4: Likewise.
95507         * m4/lstat.m4: Likewise.
95508         * m4/malloc.m4: Likewise.
95509         * m4/memcmp.m4: Likewise.
95510         * m4/putenv.m4: Likewise.
95511         * m4/realloc.m4: Likewise.
95512         * m4/regex.m4: Likewise.
95513         * m4/stat.m4: Likewise.
95514         * m4/strftime.m4: Likewise.
95515         Suggestion from Alain Magloire.
95516
95517         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95518         an argument.
95519
95520         * m4/regex.m4: Add a run-time Test for proper operation of
95521         re_compile_pattern.
95522
95523 1999-01-31  Jim Meyering  <meyering@ascend.com>
95524
95525         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95526
95527 1999-01-30  Jim Meyering  <meyering@ascend.com>
95528
95529         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95530
95531         * m4/jm-mktime.m4: Make this a wrapper around the official
95532         AM_FUNC_MKTIME rather than my private copy, now that the official one
95533         is up to date.
95534         * m4/mktime.m4: Remove file.
95535
95536         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95537         * m4/uptime.m4: Likewise.
95538         * m4/uintmax_t.m4: Likewise.
95539
95540 1999-01-28  Jim Meyering  <meyering@ascend.com>
95541
95542         * m4/jm-macros.m4: Use jm_AFS.
95543         * m4/afs.m4: New file (from fileutils' configure.in).
95544
95545         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95546         * m4/chown.m4: Likewise.
95547         * m4/d-ino.m4: Likewise.
95548         * m4/d-type.m4: Likewise.
95549         * m4/fnmatch.m4: Likewise.
95550         * m4/getgroups.m4: Likewise.
95551         * m4/gettext.m4: Likewise.
95552         * m4/jm-mktime.m4: Likewise.
95553         * m4/jm-winsz2.m4: Likewise.
95554         * m4/lcmessage.m4: Likewise.
95555         * m4/ls-mntd-fs.m4: Likewise.
95556         * m4/malloc.m4: Likewise.
95557         * m4/memcmp.m4: Likewise.
95558         * m4/putenv.m4: Likewise.
95559         * m4/realloc.m4: Likewise.
95560         * m4/st_mtim.m4: Likewise.
95561         * m4/strftime.m4: Likewise.
95562
95563 1999-01-16  Jim Meyering  <meyering@ascend.com>
95564
95565         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95566         (ARGMATCH_DIE_DECL): Define.
95567
95568 1999-01-12  Jim Meyering  <meyering@ascend.com>
95569
95570         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95571         Reported by Lars Hecking.
95572
95573 1999-01-10  Jim Meyering  <meyering@ascend.com>
95574
95575         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95576         gross kludge.
95577         * m4/inttypes_h.m4: Likewise.
95578         * m4/lstat.m4: Likewise.
95579         * m4/malloc.m4: Likewise.
95580         * m4/readdir.m4: Likewise.
95581         * m4/realloc.m4: Likewise.
95582         * m4/st_dm_mode.m4: Likewise.
95583         * m4/stat.m4: Likewise.
95584         * m4/utimbuf.m4: Likewise.
95585         * m4/utimes.m4: Likewise.
95586
95587         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95588         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95589         comments in config.h.in are meaningful.
95590
95591         * m4/jm-macros.m4: Require autoconf-2.13 here.
95592
95593         * m4/regex.m4: By default, don't use the included regex.c on systems
95594         with glibc 2.  Suggestion from Uli Drepper.
95595
95596 1999-01-02  Jim Meyering  <meyering@ascend.com>
95597
95598         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95599
95600 1998-12-18  Jim Meyering  <meyering@ascend.com>
95601
95602         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95603         Based on a suggestion from Lars Hecking.
95604
95605 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95606
95607         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95608
95609 1998-11-16  Jim Meyering  <meyering@ascend.com>
95610
95611         * m4/lfs.m4: Double-quote the `uname...` expression.
95612
95613 1998-11-14  Jim Meyering  <meyering@ascend.com>
95614
95615         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95616         * m4/stat.m4: Likewise.
95617
95618 1998-11-03  Jim Meyering  <meyering@ascend.com>
95619
95620         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95621         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95622
95623 1998-10-18  Jim Meyering  <meyering@ascend.com>
95624
95625         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95626
95627 1998-10-17  Jim Meyering  <meyering@ascend.com>
95628
95629         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95630         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95631         calls for those previously hard-coded headers.  Instead, take a new
95632         parameter.
95633         (jm_CHECK_DECLARATIONS): Reflect interface change.
95634         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95635         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95636
95637         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95638
95639 1998-10-14  Jim Meyering  <meyering@ascend.com>
95640
95641         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95642         instead of "TZ=America/Vancouver".  From Paul Eggert.
95643
95644 1998-10-11  Jim Meyering  <meyering@ascend.com>
95645
95646         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95647         This adds a test for a recently added compatibility fix for mktime.c.
95648         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95649
95650 1998-09-27  Jim Meyering  <meyering@ascend.com>
95651
95652         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95653
95654         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95655         ../configure.in, including a change from Gordon Matzigkeit to allow
95656         cross-compiling for the Hurd.
95657
95658         * m4/glibc.m4: New file/macro to test for the GNU C Library
95659         versions 1 and 2.  From Gordon Matzigkeit.
95660         Indent.
95661
95662 1998-09-21  Jim Meyering  <meyering@ascend.com>
95663
95664         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95665
95666 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95667
95668         Port nanosecond-resolution times to UnixWare 2.1.2 and
95669         pedantic Solaris 2.6.
95670
95671         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95672         AC_STRUCT_ST_MTIM.
95673         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95674         Generate name of ns member, instead of just 1 or undef.
95675         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95676
95677 1998-08-15  Jim Meyering  <meyering@ascend.com>
95678
95679         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95680         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95681         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95682         instead of jm_TYPE_SSIZE_T.
95683
95684 1998-08-12  Jim Meyering  <meyering@ascend.com>
95685
95686         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95687
95688 1998-08-02  Jim Meyering  <meyering@ascend.com>
95689
95690         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95691         in acconfig.h manually.
95692
95693 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95694
95695         * m4/st_mtim.m4: New file.
95696
95697 1998-07-28  Jim Meyering  <meyering@ascend.com>
95698
95699         * m4/utimes.m4: Undef stat.
95700
95701 1998-07-25  Jim Meyering  <meyering@ascend.com>
95702
95703         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95704         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95705
95706 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95707
95708         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95709         uid and gid actually remain unchanged.
95710
95711 1998-07-07  Jim Meyering  <meyering@ascend.com>
95712
95713         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95714
95715 1998-07-04  Jim Meyering  <meyering@ascend.com>
95716
95717         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95718         to prove that this macro can be used in packages without regex.c.
95719
95720 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95721
95722         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95723         is to be used.
95724
95725 1998-07-03  Jim Meyering  <meyering@ascend.com>
95726
95727         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95728
95729         * m4/gettext.m4: New file -- from gettext-0.10.35.
95730         * m4/lcmessage.m4: Likewise.
95731         * m4/progtest.m4: Likewise.
95732
95733         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95734         * m4/jm-macros.m4: Require the new macro.
95735
95736 1998-06-29  Jim Meyering  <meyering@ascend.com>
95737
95738         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95739         for the definition of NGROUPS (used in a system header included
95740         by sys/mount.h).
95741
95742 1998-06-28  Jim Meyering  <meyering@ascend.com>
95743
95744         * m4/ls-mntd-fs.m4: New file.
95745         * m4/fstypename.m4: New file.
95746
95747         * m4/jm-macros.m4: Require the new macro.
95748         * m4/jm-glibc-io.m4: New file.
95749
95750 1998-05-19  Jim Meyering  <meyering@ascend.com>
95751
95752         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95753         * m4/lchown.m4: New file.
95754
95755         * m4/Makefile.am.in: New file.
95756         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95757
95758 1998-05-14  Jim Meyering  <meyering@ascend.com>
95759
95760         * m4/Makefile.am (EXTRA_DIST): Add them.
95761         * m4/jm-macros.m4: New file.
95762         * m4/utimbuf.m4: New file.
95763
95764 1998-05-12  Jim Meyering  <meyering@ascend.com>
95765
95766         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95767
95768 1998-05-11  Jim Meyering  <meyering@ascend.com>
95769
95770         * m4/isc-posix.m4: New file.
95771
95772 1998-05-10  Jim Meyering  <meyering@ascend.com>
95773
95774         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95775
95776 1998-05-09  Jim Meyering  <meyering@ascend.com>
95777
95778         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95779         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95780         with automake.
95781
95782         * m4/ssize_t.m4: New file.
95783         * m4/mktime.m4: Remove file -- the new automake has this now.
95784
95785 1998-04-26  Jim Meyering  <meyering@ascend.com>
95786
95787         * m4/assert.m4: New file.
95788         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95789
95790 1998-04-05  Jim Meyering  <meyering@ascend.com>
95791
95792         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95793         (jm_PREREQ): Use it here.
95794
95795 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95796
95797         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95798         in acconfig.h.
95799
95800 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95801
95802         * m4/prereq.m4: New file.
95803         * m4/error.m4: New file.
95804         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95805
95806 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95807
95808         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95809         cache-check for the same variable -- that defeated the purpose of
95810         the test; the test program was never run.  This was a problem only
95811         on systems with losing getline functions -- HP-UX 10.20 is one.
95812         Reported by Bjorn Helgaas.
95813
95814 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95815
95816         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95817
95818 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95819
95820         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95821
95822         * m4/const.m4: New file.  Use an initializer in this declaration
95823         typedef int charset[2]; const charset x;
95824         Reported by Bob Glickstein.
95825
95826 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95827
95828         * m4/chown.m4: Fix reversed types on -1 args to chown.
95829         From Kaveh Ghazi.
95830
95831 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95832
95833         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95834         Add lseek and memchr.
95835
95836         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95837         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95838         have a 20-character limit on names.
95839
95840 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95841
95842         * m4/inttypes_h.m4: New file.
95843         * m4/uintmax_t.m4: New file.
95844         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95845
95846
95847         -----
95848
95849         Local Variables:
95850         coding: utf-8
95851         End:
95852
95853         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95854
95855         Copying and distribution of this file, with or without
95856         modification, are permitted provided the copyright notice
95857         and this notice are preserved.